Whirlpool Simulator (2D)

Plan view of a free-surface vortex over a drain: streaks, dye, height contours, drifting bodies on a Blender-rendered basin.

Switch to 3D

Presets

Playback

Things to try

  1. Click the water to drop dye: it winds into a spiral and stretches.
  2. Raise circulation: contours crowd together as the funnel deepens (depth grows as the square).
  3. Heavy bodies (boat, log) leave the vortex, light ones (duck, buoy) fall in.
  4. Press Restart with viscosity above zero to watch the core spread.

Vortex physics

Look and speed

Layers

Model check

The science

What is modelled

A steady, axisymmetric vortex over a drain, in a basin of radius R and depth h. Real whirlpools (tidal races, drains, spillway intakes) are turbulent and three-dimensional; this is the textbook idealisation that still reproduces the funnel shape, the speeds and the way light and heavy objects behave.

Swirl (Lamb-Oseen vortex)

vθ(r) = Γ / (2π r) · (1 − e−r²/rc²). Far from the axis this is the irrotational free vortex v ∝ 1/r (angular momentum r vθ = Γ/2π is conserved by a tracer). Inside the core it is almost solid-body rotation, ω0 = Γ/(4π rc²). The peak speed sits at r = 1.121 rc with vmax = 0.0715 Γ/rc. Viscosity (eddy viscosity ν) makes the core grow, rc²(t) = rc0² + 4νt, which is the spin-down preset.

Drain (depth-integrated sink)

Mass conservation for a layer of depth h gives 2π r h vr = −Q, so vr = −Q/(2π h r). The singularity at the axis is regularised as vr = −Q r /(2π h (r² + rd²)) with rd = 0.35 rc; a tracer that reaches 0.8 rd is swallowed and re-enters at the rim.

The funnel

Radial momentum balance for the swirling flow (centripetal acceleration supplied by the pressure gradient of the free surface) gives dζ/dr = vθ² / (g r). The drawn surface is the numerical integral ζ(r) = −∫rR vθ²/(g r') dr'. For an unbounded Lamb-Oseen vortex the depth on the axis has the closed form Δh0 = Γ² ln 2 / (4π² g rc²), which the first check compares with a separate numerical integral. If Δh0 ≥ h the funnel reaches the bottom: an air core (dry funnel) forms.

Floating bodies

Each body obeys dv/dt = (u(x) − v)/τ with τ = St · rc/vmax. Small Stokes number (duck, buoy) follows the water and is drawn into the drain; large Stokes number (log, boat) cannot follow the curved streamlines and is flung outward (the same inertial effect that sorts particles in a centrifuge). Bodies lean with the local surface slope.

Honest simplifications

  • Depth-averaged 2D flow plus a surface: no vertical velocity profile, no turbulence, no Ekman layer, no unsteady core wobble.
  • The relief slider only changes the shading contrast; the section graph, the contours and all readouts are at true scale.
  • The basin backdrop and the boat, buoy, log, duck and lifebuoy sprites are top-down Blender renders; they do not affect the flow. Water shading is computed from the surface slope, not from a fluid solver.
  • The tracer, arrow, dye and body motions are kinematic in this prescribed field (they do not feed back on it).

Model checks

(1) funnel depth: two independent computations; (2) a tracer falling into a pure sink: RK4 integration against the implicit closed form r²/2 + rd² ln r = C − Q t/(2πh); (3) circulation measured from the motion of the live tracer particles against the circulation you set.

Swirl and drain speed versus radius
Section through the funnel (true scale)
Tracer fall into the drain: RK4 vs closed form
History: funnel depth and peak swirl
Made with 🟠 Blender · Three.js