I’m trying to compute vorticity of a vector field in paraview. The problem is the velocities u,v,w are given as scalar outputs by the program I run. How do I convert the scalars to vector or use the scalars to compute vorticity?

I came across documentation on using python calculator, but I dont seem to understand the commands/syntax to use it. My scalars are u,v,w.

Probably the simplest way is to use the **Calculator** filter with the expression

`u*iHat + v*jHat + w*kHat`

The calculator will produce a 3-element vector.

1 Like

This question came up yesterday. Cory is exactly correct with his answer. However, we are wondering if there is a simplification that should be done. I wrote up a feature request here: https://gitlab.kitware.com/paraview/paraview/issues/18868.

1 Like