Fluid animate is one of a class of algorithms for calculating fluid flow. Specifically, it utilizes the Smoothed-Particle Hydrodynamics model. In this model, the fluid is represented as a gridless collection of particles that will move based on forces applied to the sample. Density and pressure of the fluid is calculated based on proximity of the particles' neighbors, and the particles will move accordingly. This provides several benefits, such as built-in conservation of mass (the particles themselves represent mass) and solely being a calculation of nearest neighbor, as opposed to linear systems of equations. The kernel is broken into 4 parts, as seen in
. However, the heaviest work is being done in
, which is parallellized with Intel® Cilk™ Plus
. Additionally, the Vec3 class can be rewritten to take advantage of Intel® Cilk™ Plus Array Notation.