Playground · The Navier–Stokes equations, under your finger

Stir the water. It remembers.

This canvas is a live solution of the incompressible Navier–Stokes equations — the same laws behind weather, coffee, and galaxies of interstellar gas. Drag across it to inject ink and momentum. Then play scientist: raise the viscosity until it behaves like honey, or drop it and let the vortices braid.

∂u/∂t = −(u·∇)u − ∇p/ρ + ν∇²u + f   ·   ∇·u = 0
Drag to stir (touch works). The ink hue drifts with time, so every stroke is dated by its color. The four terms above are exactly what runs each frame: advection, pressure projection, viscous diffusion, and your hand as the force f.
Grid
–
Solver rate
–fps
Kinetic energy
–
Character
–

Things to try: (1) One quick flick at low viscosity — watch the vortex pair swim across the tank on its own momentum, a shape that carries itself. (2) Max the viscosity and flick again — the motion dies within a centimeter; this is the world a bacterium swims in, where nothing coasts. (3) Draw two strokes toward each other and watch the mushroom cloud — that instability is why cream mixes into coffee instead of sitting in a lump. No one has ever proven these equations always have smooth solutions — that proof is worth a million-dollar Clay prize. The simulation, meanwhile, just keeps flowing.