Dispersion relation
01 / THEORYFour vertical modes, evaluated from the exact nonrotating dispersion relation.
Five experiments. One living water column. Discover how density stratification guides waves, energy and microscopic fluid parcels.
Follow density surfaces through a travelling internal wave. Change vertical mode to reveal hidden structure.
Four vertical modes, evaluated from the exact nonrotating dispersion relation.
Actual samples at the probe position recorded at each instant.
From hidden density gradients to travelling energy: the equations and experiments behind every animation.
In a stably stratified ocean or lake, denser water lies beneath lighter water. Displacing a fluid parcel upward produces a downward buoyancy force. Pressure and continuity couple many parcels, making internal gravity waves: submerged patterns whose vertical motions can be large even when the free surface barely changes. The moving coloured sheets in our tank represent surfaces of constant density, called isopycnals; they are not independently animated decorations.
We use a 3.00 m-deep, 8.00 m-long idealised tank with reference density ρ₀ = 1025 kg/m³. Density decreases with height, making the squared buoyancy frequency N² positive.
For a nonrotating, incompressible, inviscid fluid under the Boussinesq approximation, the linear internal-wave dispersion relation is ω² = N²k²/(k²+m²). Here k = 2π/λ is horizontal wavenumber, m = nπ/H is vertical wavenumber, n is an integer vertical mode and H is depth. A typical displacement is η = A sin(my) cos(kx−ωt). The rigid-lid and no-normal-flow assumptions require η to vanish at the upper and lower walls. For a weakly damped travelling wave we multiply its amplitude by exp(−γt). This attenuation is phenomenological, not an exact viscous boundary-layer solution.
Our small-amplitude density anomaly is ρ′ = ρ₀N²η/g, with gravity g = 9.81 m/s². Horizontal and vertical velocities follow from the evolving displacement and incompressibility.
Select the first experiment and press Play. Drag the gold observation crosshair to new coordinates, or focus the canvas and use arrow keys. Start at n = 1 and then try n = 2 or 3. The dispersion graph plots the actual equation for modes 1–4. Inspect the changing period and displacement history.
A small band of nearby wavelengths forms a localised pulse. We model its envelope using a Gaussian of width σ, whose centre moves with the horizontal group velocity cgx = Nm²/(k²+m²)3/2. Inside that envelope, oscillating crests move at cp = ω/k. Drag the violet source near the tank floor or change its position using the control, then reset time. Hypothesis: increasing vertical mode can alter the ratio of group to phase speed. This is a narrowband wave-packet approximation in an open observation window; the end walls do not reflect its packet.
The small orange tracer dots follow first-order Lagrangian paths derived by integrating the linear velocity field. In the x–y plane these paths form ellipses; their proportions depend on m/k and on the parcel’s depth. The faint orange loops are theoretical one-cycle orbits, not artificial particles orbiting for decoration. Increase wavelength, then move the probe vertically. The model does not include Stokes drift, turbulent mixing, viscosity-driven streaming or corrections from particle trajectories changing the underlying field. Large amplitudes can violate its linear assumptions.
For a tank with impermeable end walls, horizontal standing harmonics obey k = ℓπ/L. A spatial mode is driven in time by the oscillator q″ + 2βq′ + ω₀²q = F cos(Ωt), where Ω = 2πfᴅ. The experiment integrates this differential equation using fourth-order Runge–Kutta at fixed time steps, independently of frame rate. Sweep the driver frequency on the left graph; its curve represents the predicted steady-state amplitude F/√[(ω₀²−Ω²)²+(2βΩ)²]. Prediction: response rises strongly near resonance and narrows as damping decreases. Real amplitude grows gradually because the oscillator starts from rest.
Linear waves superpose: η = η₁ + η₂. Here the second component uses the next vertical eigenmode and a horizontal wavelength 1.17 times the primary wavelength. The mixing and phase sliders change its strength and relative phase. Watch regions where the individual waves reinforce or cancel, then examine a fixed-probe time trace. The displayed single-mode energy instrument refers to the primary component only; it is not the complete interference energy.
Save a reading to the notebook, then change only one variable. Select the saved row to compare its reference displacement with the live graph. Export the notebook or the sampled time series as CSV. You can also export the actual WebGL canvas as PNG. The clock reports simulated time, and the playback multiplier changes how quickly that time advances, not any physical constant.
The background stratification is uniform, rotation is neglected, and density variations are small compared with ρ₀. The first, third and fifth experiments show analytical linear modes; the packet uses a slowly varying narrowband envelope; the standing-mode driver is a deliberately reduced oscillator, not a full nonlinear fluid solver. When displacement gradients become large, the model-status warning flags a possible breakdown of linear theory. Real internal waves matter in ocean mixing, submarine navigation, limnology, atmospheric wave propagation, offshore engineering and the transfer of energy from tides into the deep ocean.
Isopycnal means a constant-density surface; buoyancy frequency describes the natural restoring oscillation of a parcel; phase velocity tracks a repeating crest; group velocity tracks a narrowband wave envelope; and eigenmode is a spatial pattern compatible with boundary conditions. Ask whether rotation would add the Coriolis frequency to the dispersion relation. Explore what changes near a pycnocline, where density gradients are confined to a thin layer. Investigate whether the energy carried horizontally and vertically points along or across the wavevector.
Linear, constant-N Boussinesq approximation · rigid top and bottom · SI units · no rotation · native local WebGL2 · no build step, CDN or network access needed.