Earth in MotionWAVE LAB · INTERACTIVE COASTAL PHYSICS
EXPERIMENT 03 · INDEPENDENT PROTOTYPE · NOT YET IN THE MAIN WEBSITE
Wave refraction · one coherent analytical field

Why do wave crests
turn toward the coast?

Vary the offshore approach angle and coastal profile. Follow a virtual wave gauge (1D), the rotating wavefronts and rays (2D), and the same surface in a rotatable perspective (3D). This experiment uses straight, parallel depth contours, not arbitrary bathymetry or a numerical wave model.

MODEL CLASS
Linear · monochromatic
Stationary, no currents
No breaking or diffraction
Gradual seabed variation
Regular-wave height H₀ (not Hₘ₀)
Conserved along a stationary coast
h₀ at left side of domain
Straight, shore-parallel contours
From shore-normal toward +y
Drag gauge marker in 2D to move
EXPERIMENT PRESETS
t = 0.00 s
Calculating linear wave refraction …
—from shore-normal
—at gauge
—m
—m
—m
—relative to offshore

03 / ORTHOGRAPHIC 3D  3D travelling wave surface

Drag to rotate or use the buttons. The water is plotted on the same x–y domain as the 2D plan. White crest guides in 3D and 2D trace the same phase values; amber lines in 2D are wave rays, not crests. Use Match 2D to look straight down and verify alignment, or Oblique 3D to see wave relief.

Perspective of the calculated free-surface elevation and parallel depth contours.
Phase-consistent wave surface
Seaward ← x → landward
Alongshore +y ↗
t = 0.0 s
Display relief: 0.8×
Camera yaw 30° · no 3D fluid solver
Renderer initializing

02 / PLAN VIEW  Wavefront navigation

Deep ocean teal: troughs; pale cyan: crests (instantaneous surface elevation). White lines: equally spaced wave-phase contours. Amber curves: wave rays normal to crests. Dashed line: selected gauge.

Interactive analytical refraction plan view.
Ray bending and wavefront rotation follow Snell's law.

01 / VIRTUAL GAUGE  Surface elevation η(t)

Regular-wave time series at the selected gauge. The time cursor stays synchronized with both spatial views; the measured period remains T.

Wave-gauge time history.
Wave parameters at the gauge.

04 / TRANSECT  From offshore to nearshore

Depth, wave height and angle are calculated along x. Vertical scales differ, with explicit legends and an indicator of the analytical breaking screen.

Profile comparison across depth contours.
Depth / h₀H / H₀θ / θ₀

05 / VERIFICATION  What must be conserved?

Snell's invariant, frequency, and the onshore component of linear-wave energy flux are independent analytical checks for this parallel-contour case.

Analytical invariants versus cross-shore position.
Invariants evaluated over the whole modelled transect.

What the simulator actually solves

The wave field is a single, prescribed-amplitude regular wave. The seabed varies only in the cross-shore direction (h = h(x)) and is constant in the alongshore direction. Angular frequency ω remains fixed because the medium and bathymetry are stationary and currents are neglected.

01 · FINITE-DEPTH DISPERSION
ω2=gktanh(kh),c=ωk
02 · REFRACTION OVER PARALLEL CONTOURS
sin⁡θ(x)c(x)=sin⁡θ0c0
03 · CROSS-SHORE ENERGY-FLUX CONSERVATION
Ecgcos⁡θ=constant,E=ρgH28
04 · PHASE OF ONE FORWARD-PROPAGATING, LONG-CRESTED WAVE
η(x,y,t)=H(x)2cos⁡∫0xkx(ξ)dξ+kyy−ωt

Here, k = 2π/L (rad m⁻¹), ky = k sin θ remains constant, and kx = k cos θ. The ray trajectory obeys dy/dx = tan θ. Alongshore uniformity means every ray bends in the same way; ray convergence around an arbitrary headland is not being solved.

Engineering interpretation

Refraction rotates wave rays toward the local shore-normal in reducing depth, while shoaling and refraction jointly affect wave height. Because the model neglects breaking, friction, current-induced refraction, nonlinear wave interaction and diffraction, its wave heights must not be used as nearshore design conditions without an appropriate model and observational evaluation.

Prototype status. This lesson is ready for local exploration and technical review, not for engineering design. The 1D/2D/3D views share the same analytical refraction field. No field-data validation, breaking model or production-grade numerical wave model is included.