Fluid Dynamics

Navier-Stokes in your browser

Real-time 2D fluid simulation using Jos Stam's stable fluids method. Move your mouse to stir the fluid. Click to inject dye.

|
Move mouse to create currents. Click and drag to inject colored dye. The simulation uses Gauss-Seidel relaxation for pressure projection.