EULERIAN FLUID DYNAMICS
Navier-Stokes momentum conservation and dye diffusion calculated in typed Float32Array buffers.
FLUID DYNAMICS HUD β‘ PLUS
60 FPS VISCOSITY (THICKNESS) WATER
DYE DISSIPATION MEDIUM
[Click & drag across canvas to inject fluid momentum]
π
ACADEMIC & ALGORITHMIC REFERENCERESEARCH & LEARNING VAULT // Eulerian Fluid Dynamics & Jos Stam Solver
Incompressible Navier-Stokes momentum equations and Stable Fluids semi-Lagrangian advection.
// HISTORICAL ORIGINS
Published by Jos Stam at ACM SIGGRAPH 1999, 'Stable Fluids' revolutionized real-time computer graphics by introducing unconditionally stable semi-Lagrangian advection.
// GOVERNING EQUATIONS
\frac{\partial \mathbf{u}}{\partial t} = -(\mathbf{u} \cdot \nabla)\mathbf{u} + \nu \nabla^2 \mathbf{u} - \frac{1}{\rho}\nabla p + \mathbf{f}, \quad \nabla \cdot \mathbf{u} = 0// BROWSER IMPLEMENTATION
Solves velocity diffusion, semi-Lagrangian back-tracing advection, and Gauss-Seidel pressure Poisson projection on a 72x72 Eulerian grid.
// GUIDED EXPERIMENTS TO TRY IN THIS SANDBOX
1Vortex Karman Street
π― Action:Set Viscosity low and drag continuous fast circular strokes in the center.
β¨ Observe:Watch turbulent counter-rotating vortex eddies swirl and mix colored dye plumes.