A spectrum on the move.
A spectral-wave model follows a distribution over position, frequency and direction. Its balance equation accounts for what enters, what leaves and what changes locally. It does not follow the phase of every crest.
Start with one box.
Consider one geographic cell and one frequency–direction bin. The amount in the box increases when transport brings in more than it carries out, or when local sources supply a net gain. Refraction moves the distribution between directional bins while propagation moves it between geographic cells.
Shoaling is part of transport through a spatially varying group velocity. It should not be added again as an independent energy source. Likewise, turning between directions is not the same process as nonlinear exchange between frequencies.
Why introduce action?
Wave action is energy divided by intrinsic angular frequency σ. Intrinsic frequency is measured relative to the ambient water. For the stationary water and stationary bed used here, σ = 2πf remains constant along a ray, so energy and action conservation give equivalent transport results for each frequency.
Action provides the natural extension when intrinsic frequency changes in more general environments. That motivates the notation, but no current interaction or wave-driven current calculation is included in this lesson.
Read the balance equation term by term
∂N/∂t + ∂(cx N)/∂x + ∂(cy N)/∂y + ∂(cθ N)/∂θ = QE,σ/σ
cx = Cg sinθ, cy = Cg cosθ
The equation shown is for stationary bathymetry and no ambient flow, with x eastward, y northward and clockwise propagation-toward bearings. The terms represent local change, eastward transport, northward transport and directional turning. cθ = dθ/dt must use the same angular convention as θ, with radians in derivatives and integration. It is not a user-chosen constant for arbitrary bathymetry.
Transport is written in conservative form: ∂(cx N)/∂x includes spatial changes in cx. Replacing it with cx ∂N/∂x would omit that effect. General formulations can add ∂(cσ N)/∂σ for intrinsic-frequency transport. That term is zero in the stationary, no-flow setting used here; nonlinear frequency redistribution still belongs in the source terms.
Keep frequency coordinates and units consistent
Let Sf(f,θ) be variance density per hertz and per radian of direction. Under σ = 2πf, Sσ = Sf/(2π), so Sfdf dθ = Sσdσ dθ. Define energy density Eσ = ρg Sσ and action density N = Eσ/σ. The energy source QE,σ must use the same angular-frequency coordinate before dividing by σ.
Integrating Eσ over dσ dθ gives energy per horizontal area, in J/m². Integrating N gives action per area, in J s/m². With radians treated as dimensionless, Eσ has units J s/m² and N has units J s²/m². Calling Sf/σ an angular-frequency action density without the 1/(2π) conversion would be inconsistent.
Move a packet through a row of cells.
This experiment isolates constant-speed, one-dimensional transport of one spectral bin. A smooth packet moves east at 10 m/s through 40 cells of width 50 m. Periodic boundaries wrap the packet around a 2 km domain; this is a numerical test, not a coastline.
Blue: numerical cell averages of N/Nref. Coral: exact translated cell averages. The reference profile is 0.1 + 0.9[(1 + cos(2π(x − 500)/2000))/2]⁸. No sources, refraction or frequency change occur in this isolated test.
Changing the Courant number resets the packet. Δt = Courant × Δx/Cg.
The finite-volume update
Nᵢⁿ⁺¹ = Nᵢⁿ − λ(Nᵢⁿ − Nᵢ₋₁ⁿ), λ = Cg Δt/Δx
For positive constant speed, the upwind flux uses the upstream cell. With 0 ≤ λ ≤ 1, the update is a convex combination of two nonnegative values. Summing over the periodic domain cancels all internal fluxes, conserving integrated action. The exact comparison uses cell averages, not point samples, so it compares the same quantity.
At λ = 1 this particular scheme shifts the cell averages exactly by one cell each step. At smaller λ, repeated averaging spreads the packet and reduces its peak while preserving its total. This numerical diffusion is not whitecapping: no physical energy loss has been specified. The exact shift at λ = 1 is a special constant-speed, uniform-grid result, not a general recommendation for a full spectral model.
Connect the three lessons.
Chapter 17 supplied the physical change in propagation direction and shoreward flux. Chapter 18 separated local gains, losses and redistribution. The balance equation combines those processes while retaining a conservation account for every spectral bin. A complete model additionally needs bathymetry, boundary and initial conditions, physical source formulations and a verified numerical method.