A sea is a sum of sine waves
A real ocean surface never looks like a single clean sine wave — it looks like chaos. The mathematical trick that tames it is linear superposition: treat the messy surface as the sum of many simple sinusoidal wave trains, each with its own frequency, direction and amplitude, propagating independently. This is the basis of linear wave theory, and it works remarkably well as long as waves are not so steep that they start breaking or interacting nonlinearly.
Each individual wave component obeys the dispersion relation, which links its wavelength to how fast it travels. In deep water, gravity is the restoring force and longer waves move faster than short ones — this is why a distant storm's energy arrives at a coast as long, smooth swell well before the choppy short-period wind sea that generated it catches up:
ω² = g·k·tanh(k·d) ω = angular frequency (2π/T) g = 9.81 m/s² k = wavenumber (2π/λ) d = water depth deep water (d ≫ λ): ω² ≈ g·k → c = √(gλ/2π) (longer waves are faster) shallow water (d ≪ λ): ω² ≈ g·k²·d → c = √(gd) (speed depends only on depth)
The JONSWAP spectrum
A real sea state is not a handful of clean components — it is a continuous spread of energy across frequency, described by a wave spectrum. The JONSWAP spectrum (Joint North Sea Wave Project, 1973) is the standard model for a developing sea under a steady wind over a limited fetch. It refines the earlier Pierson-Moskowitz spectrum — which describes a fully developed sea — by adding a sharper peak controlled by a peak-enhancement factor γ (typically around 3.3), because real young wind seas concentrate more energy near their peak frequency than a fully developed sea does. Sampling random phases from this spectrum and summing the components is exactly how realistic-looking ocean surfaces are synthesised for both naval engineering and computer graphics.
How a hull responds: the six degrees of freedom
A ship dropped into this surface doesn't just bob up and down — it can move in six independent ways: three translations (surge fore-aft, sway side-to-side, heave up-down) and three rotations (roll, pitch, yaw). Naval architects treat each of these as a damped, forced harmonic oscillator, and the ratio of the hull's response amplitude to the wave's amplitude at each frequency is its Response Amplitude Operator (RAO). Every hull has a natural roll period set by its metacentric height and moment of inertia; when incoming waves arrive near that period the response can amplify sharply, which is why ship designers work hard to keep the natural roll period away from the dominant wave periods a vessel will actually encounter.
Shoaling, refraction and why waves stand up near shore
As a wave train moves from deep into shallow water its speed drops (from the dispersion relation above), and since the rate of energy transport must stay roughly constant, the wave shoals: it slows down, its wavelength shortens and its height grows. Where the seabed contours are not parallel to the wave crests, different parts of the same crest travel at different speeds, bending the wave to align more with the depth contours — this is refraction, and it is why headlands concentrate wave energy (a wave “wraps around” a point) while bays spread it out. Eventually the wave becomes too steep to sustain itself and breaks, converting the last of its organized energy into turbulence and surf.
Frequently asked questions
Why does swell arrive at a beach before the storm's wind waves?
In deep water, longer-wavelength waves travel faster than short ones (the dispersion relation gives phase speed proportional to the square root of wavelength). A distant storm generates a wide range of wavelengths at once, and the long, low swell simply outruns the shorter, choppier wind sea over the intervening distance.
What does the JONSWAP spectrum actually describe?
It's a statistical model of how wave energy is distributed across frequency for a wind-driven sea that hasn't fully developed — a young sea under a steady wind blowing over a limited fetch. It has a sharper, taller peak than the fully-developed Pierson-Moskowitz spectrum because a developing sea concentrates more energy near its dominant frequency.
Why do waves get taller right before they break near shore?
As water shallows, the wave slows down under the dispersion relation, and to conserve the rate of energy transport the wave height must increase to compensate — this shoaling effect steepens the wave until it becomes unstable and breaks.
Try it live
Everything above runs in your browser — open Wave Dynamics and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.
▶ Open Wave Dynamics simulation