Home▸Fluid Dynamics & Aerodynamics▸Whirlpool Drain Vortex: Rankine Model & Free-Surface Dip (2D)

Whirlpool Drain Vortex: Rankine Model & Free-Surface Dip (2D)

2D bathtub-vortex lab: a Rankine combined vortex (solid-body core + free-vortex outer field) sets the tangential flow, cyclostrophic balance shapes the real free-surface dip, and Torricelli's law through the drain opening drives the radial inflow that pulls tracer streaklines into the plughole.

Fluid Dynamics & Aerodynamics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-whirlpool-vortex-water-drain ↗ Open standalone

This 2D companion replaces the decorative 3D funnel mesh with the actual mechanics that shape a draining whirlpool: a Rankine combined vortex sets the tangential flow field (solid-body core matched to a free-vortex tail), cyclostrophic balance turns that into a real free-surface height profile you can read off a live cross-section graph, and Torricelli's law through the adjustable drain opening drives a mass-conserving radial inflow that pulls the tracer particles into genuine inward spirals rather than a scripted animation. Four sliders — circulation, core radius, drain radius and viscous decay rate — each change a distinct term in the underlying equations, and the live readout panel reports circulation, core tangential speed, center surface dip and drain outflow rate as they respond.

⚙ Under the hood

Rankine combined vortex (solid-body core + irrotational free vortex) driving a cyclostrophic free-surface profile, with Torricelli-law drain outflow setting a mass-conserving radial inflow field that moves real tracer streaklines.

rankine vortexcyclostrophic balancetorricelli's lawangular momentumfree surfacebathtub vortex

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)