Basic CFD simulaton scheme
- Advect attribute attached to the fluid (color, velocity, etc.)
- Remove divergence by solving the pressure
- Update velocity
Interactive design and subdivision of a divergence-free (incompressible) vector field. Draw the trace of the particle in the field with the green line. Implemented in Processing.