Ocean Wave Simulator - 3D Sea and Wave Buoy

A Pierson-Moskowitz / JONSWAP sea built from 48 Gerstner waves obeying the true dispersion relation, with a Blender wave buoy that measures it.

Switch to 2D

Presets

Playback

Wind sea (spectrum)

Wind speed, fetch and how narrowly the waves follow the wind. Moving these switches to the spectrum mode.

Water depth

Changes the dispersion relation: shallow water slows long waves.

Mode

Spectrum or one regular wave.

Regular wave

One wave of chosen period and height; look side-on at the buoy orbit.

Camera

Quality

Layers

Model checks

The science

Dispersion: why long waves outrun short ones

For small-amplitude waves on water of depth h the angular frequency and wave-number are tied by ω² = g k tanh(k h). In deep water (kh > π) the tanh is 1, so the phase speed is c = ω/k = g/ω = gT/2π: a 12 s swell runs at 18.7 m/s, a 4 s ripple train at 6.2 m/s, and a storm sorts itself into long, fast swell that reaches a coast first. In shallow water (kh < π/10) c → √(gh) whatever the wavelength. The energy travels at the group speed cg = ½ c [1 + 2kh / sinh 2kh], half the phase speed in deep water and equal to it in shallow water. The page solves the relation for k(ω, h) by Newton iteration; check 3 compares it with both limits.

A sea state is a spectrum

Wind-driven waves are well described as the sum of many independent sinusoids. The Pierson-Moskowitz spectrum for a fully developed sea is S(ω) = α g² ω-5 exp[-β (g/Uω)4] with α = 8.1×10-3, β = 0.74 and U the wind speed at 19.5 m. Its area is m0 = αU4/(4βg²), so the significant wave height Hs = 4√m0 ≈ 0.209 U²/g (check 1 integrates it numerically). For a limited fetch F the page uses JONSWAP: the same shape with the Hasselmann fits for α and the peak frequency and a peak-enhancement factor γ = 3.3. The sea is then built from 48 waves of random phase and direction (cos2s spread), each carrying the energy a²/2 = S(ω)Δω.

Gerstner (trochoidal) waves and the buoy

Every water surface point is labelled by its rest position x0 and moves on an orbit: x = x0 − a coth(kh) sin(k·x0 − ωt) along the wave direction and y = a cos(k·x0 − ωt). This is the linear orbit of a particle (circle in deep water, flat ellipse in shallow water) and it gives sharp crests and wide troughs. The buoy is simply the surface point at the origin: it heaves with the elevation and tilts to the local surface normal, which is computed from the Jacobian of the same map. The spectrum in the lower graph is a periodogram of the buoy's own heave record, the same way a real wave-rider buoy is analysed. Foam appears where the Jacobian of the horizontal map drops towards zero, i.e. where the Gerstner crests would overturn.

Honest simplifications: linear (Airy) waves with no wave-wave interaction, wave breaking, wind forcing or currents; the spectrum is not re-evaluated in shallow water (so shoaling and depth-limited breaking are shown in the 2D companion, not here); only 48 components, so the sea repeats on long time scales; the buoy is a perfect surface follower (valid when it is small compared with the wavelength and its natural period is short); the grid is 420 m wide, so waves longer than about 250 m (winds above ~20 m/s) are cropped. Quantities are SI. The 3D model of the buoy and island is drawn for clarity, not copied from a specific real station.

What to try
  • Press Storm (Bft 10) and then Calm: Hs and the peak period fall together, the peak wavelength changes by a factor of about ten, and the orange spectrum shifts to higher frequency.
  • Set Short fetch (50 km): the sea is lower and shorter than the fully developed sea at the same wind, and the spectrum is sharper (JONSWAP peak).
  • Choose Orbits: regular swell, look from Side-on and watch the yellow trail: the buoy runs on a circle. Then take Orbits: shallow swell (8 m deep): the circle flattens into a long horizontal ellipse.
  • Drag the depth slider down to 5 m and watch the third graph: the group speed catches up with the phase speed and both approach the dashed shallow-water limit.
  • Open Lighthouse to see the Blender island and lantern over the swell.
Loading Blender model...
Buoy heave record (last 128 s)
Wave spectrum: theory, components and the buoy estimate
Phase and group speed against wavelength at this depth
Made with 🟠 Blender · Three.js