Presets
Playback
Waves
Wind and Earth rotation
Stratification
View
Camera
Layers
Quality
Model check
The science
Surface gravity waves (Airy linear theory)
A small-amplitude wave of period T on water of depth h obeys the dispersion relation ω² = g k tanh(k h), solved here for the wavenumber k by Newton iteration. In deep water (kh > π) this gives L = gT²/2π and a phase speed that grows with period; in shallow water (kh < π/10) it gives c = √(g h). The group speed is cg = ½(1 + 2kh / sinh 2kh) c. Water particles move on ellipses with horizontal and vertical semi-axes a cosh k(h−d)/sinh kh and a sinh k(h−d)/sinh kh, shrinking with depth d and flattening to back-and-forth motion near the bed. Entering shallow water the wave keeps its energy flux cg H², so the height grows by the shoaling factor Ks = √(cg0/cg) until it reaches the breaking limit (about 0.78 h).
Thermohaline density
Seawater density comes from the UNESCO / EOS-80 polynomial (Millero & Poisson 1981) at surface pressure, i.e. the potential density σ0 = ρ − 1000. Temperature and salinity follow a mixed layer of depth Dm above a tanh-shaped thermocline/halocline of thickness Dt. The stability is the Brunt–Väisälä frequency N² = (g/ρ) dρ/dz (z measured downwards, so a stable column has N² > 0); a buoyancy period 2π/N of a few minutes is typical of a strong thermocline. The mixed-layer depth is the first depth where σ0 exceeds its surface value by 0.03 kg/m³. Cold, salty water is dense: this contrast, not the wind, drives the slow global thermohaline overturning.
Wind stress and the Ekman layer
Wind stress is τ = ρa Cd U² with ρa = 1.22 kg/m³ and a drag coefficient of 1.2×10−3 below 11 m/s, (0.49 + 0.065U)×10−3 above (Large & Pond 1981). With the Coriolis parameter f = 2Ω sin φ and a constant eddy viscosity Az, the horizontal current w = u + iv obeys i f w = Az wzz with ρ Az wz = τ at the surface. The solution is w = W0 eκ z, κ = a(1 ± i), a = √(|f|/2Az). The surface current is 45° to the right of the wind in the northern hemisphere (left in the southern), it decays and rotates with depth over the Ekman depth DE = π/a, and the depth-integrated transport τ/(ρ f) is exactly 90° to the right (left) of the wind, independent of Az.
What is simplified
- Waves are linear and monochromatic; the shorter chop on the 3D surface is decoration and is not used in any number. The ship and buoy follow the surface with a simple strip-averaged hydrostatic response (amplitude filtered by sinc(kL/2)), not a full hull motion model; Stokes drift, wave breaking and wave–current interaction are not included.
- The equation of state ignores pressure (potential density at p = 0) and uses a salinity in practical-salinity units; the profile shapes are idealised tanh profiles, not observations.
- The Ekman layer uses a constant eddy viscosity and a steady wind over an infinitely deep ocean; real turbulent mixing, stratification inside the layer and the finite-depth case change the angle (typically 20–45°) and the depth. Latitudes closer than 5° to the equator are clamped because f vanishes there.
- Currents are shown for the Ekman component only; geostrophic and tidal currents are not simulated.
In-page checks
(1) Newton and bisection solutions of the dispersion relation agree, the deep and shallow limits are recovered and the energy flux is conserved across depth. (2) The EOS-80 polynomial reproduces the published test value ρ(35, 5°C) = 1027.67547 kg/m³ and puts the fresh-water density maximum at 3.98°C. (3) The numerically integrated Ekman transport equals τ/(ρ f), the finite-difference residual of the governing equation is small, and the surface current sits 45° from the wind on the correct side.