03-12-2019, 08:50 AM
(01-12-2019, 06:58 PM)josemendez Wrote: Fluid does not have angular velocity, it has "vorticity" . That's the value you want to be checking.
Vorticity is a 3D vector in the direction of the curl of the velocity field at the particle's location. Its magnitude is proportional to the rotation speed. Take a look at ObiFoamGenerator.cs script for an example of a script that reads vorticity values: it generates diffuse particles at locations where density is low and vorticity is high.
Cool. Thank you