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.
Linear · monochromatic
Stationary, no currents
No breaking or diffraction
Gradual seabed variation
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.
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.
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.
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.
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.
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.
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.