Q Criterion - Gradient of Unstructured Data set NOT Working

I have a CSV file with three cols having velocity magnitude. I reconstructed the velocity vector using the calculator : U:0iHat+U:1jHat+U:2*kHat . Then I applied “Gradient of Unstructured Data set” filter to calc QCriterion but the results I am getting are wrong. QCriterion ranges from 0 to 3.4e+38 there are no negative values which is weird.

I have the foam file in another system where just applied “Gradient of Unstructured Data set” to the velocity results ( I didn’t have to reconstruct as it was already there) and the results are coming properly but same thing is not working with the CSV file even though the velocity contour in both matches

Does the geometry imported from the CSV file consist of only points?
If there is no 2d or 3d mesh, the Gradient of Unstructured Data set filter will not work as expected.

Ya, those are just data points. Each data point will have its coordinate system, velocity, pressure info column wise the csv file. So its not possible to use Gradient of Unstructured Data set filter ?

By constructing a mesh from data points, you can apply the Gradient of Unstructured Data set filter. There are several filters in ParaView to do this.

  • Table To StructuredGrid
  • Delaunay 2D / 3D
  • Resample To Image
  • Point Plane Interpolator
  • Point Volume Interpolator

You will need to select the filter that best fits the characteristics of your point data.

1 Like

I tried to use table to structureGrid filter but I am getting following error:

My csv file has 96921 rows ( 801 x values and 121 y values ) its a 2D mesh ( z column value is same throughout). So in “Whole Extent” I gave this:

What am I doing wrong?

try with 0 to 800 and 0 to 120 for the extent.
now the filters thinks you have a 802 by 122 matrix (one point too much)

1 Like

Thanks it works :slight_smile: