Incompressible 2D flow — velocity field, pressure, and vorticity
Viscosity0.8
Diffusion0.5
Display
The Euler equations describe inviscid incompressible flow: ∂u/∂t + (u·∇)u = -∇p/ρ, with the constraint ∇·u = 0.
This simulation uses Jos Stam's stable fluids method — semi-Lagrangian advection + iterative pressure projection (Helmholtz decomposition).
Drag your mouse to inject dye and velocity. The solver enforces divergence-free flow at every step.