Presets
Playback
Parameters
Camera
Layers
Quality
Model check
The science
Model. A closed 1-D basin of length L holds two homogeneous layers (upper density rho1 and thickness h1, lower rho2 and h2; densities from the water temperatures with a standard fit). The hydrostatic shallow-water equations for the two layers are integrated on a staggered grid (120 cells, forward-backward time stepping at CFL 0.45): du1/dt = -g d(eta)/dx + tau/(rho1 D1) - r u1 and du2/dt = -(rho1/rho2) g d(eta)/dx - g' d(zeta)/dx - r u2 with the layer thicknesses D1 = h1 + eta - zeta, D2 = h2 + zeta and conservative fluxes, so each layer's volume is conserved to rounding error.
Free waves. The linear system has two wave speeds, the roots of c^4 - g H c^2 + g g' h1 h2 = 0 with H = h1 + h2 and g' = g (rho2 - rho1)/rho2. The fast root, c ~ sqrt(gH), is the surface seiche with Merian's period T = 2L/sqrt(gH); the slow root, c ~ sqrt(g' h1 h2/H), is the internal (thermocline) seiche, typically hours long and with a metre-scale tilt for only centimetres at the surface.
Wind set-up. A wind stress tau = rho_air C_D U^2 pushes the upper layer. At rest the surface slope is tau/(rho1 g h1) and the interface slope is -rho1/(rho2 - rho1) times that. The Wedderburn number W = g' h1^2/(u*^2 L), u*^2 = tau/rho1, measures the tilt of the thermocline in units of h1 (tilt = h1/W): for W below about 1 the cold layer would reach the surface (upwelling) and the linear picture stops being valid.
Simplifications. One horizontal dimension; no Earth rotation (fine for lakes smaller than the internal Rossby radius, wrong for large ones); a sharp thermocline instead of a gradual one; constant drag coefficient C_D = 1.3e-3 (it actually grows with wind speed); all wind stress goes into the upper layer; linear Rayleigh friction with one decay time for both layers; a rectangular basin (real lakes have sloping beds that shift the periods by tens of percent). The vertical scale of the drawn waves is exaggerated (the exaggeration factor is shown), the numbers are true.
Numerical checks in the page: the simulated surface and internal seiche periods against Merian's formula and the exact two-layer roots, volume and energy conservation, and the steady wind set-up of both surfaces against the closed forms.