Vorticity calculated for a smooth vortex function using python calculator as curl(Velocity) gives wrong result using the Legrange Hexahedron element. I tried to plot the same in tecplot using a point data and traingulation, the result looks fas it should on tecplot. I used the same number of levels,range,etc.
As you can see from the figure for paraview plot the vorticity doesn’t vary in the cell for the paraview plot as it should(since its lagrange hexahedron), it gives out a constant value for each cell. I have used lagrange point data and triangulation(which is an approximation) to plot in tecplot and it still gives a better result than paraview. I strongly think it is a major issue in paraview for this cell type.
Process in making the state file:
- Create a “Velocity” vector from u,v,w scalar values from data using Calculator Filter
- Create “Vorticity”, from velocity vector using curl(Velocity) in Python Calculator Filter
- Plot the “Z-Vorticity”
Process to reproduce:
Paraview-Open the data file and then open the state file to perform the vorticity calculation.
Tecplot -Open the layout file with datafile in same folder.
StateFile- finalstate.pvsm (401.2 KB)
Layoutfile- vortex.lay (10.2 KB)
Edit: Event the gradient of velocity Calculations seem off(using Gradient of Unstructured data Filter) pics below:
Gradient -0 (dudx)