Presets
The science

Wave speed. Linear water waves obey the dispersion relation w^2 = g k tanh(k h), c = w/k, solved here by Newton iteration. Deep water (kh large): c = gT/(2 pi); shallow water: c = sqrt(g h). The wave is drawn in its own frame, so the crest stands still while the seabed slides backwards at c. Breaking begins roughly when H exceeds about 0.78 h (a rule of thumb).

Surfer on the face. A board sliding on the surface z = eta(x - ct) feels a horizontal acceleration g s/(1+s^2) down the face, where s is the downhill slope, minus planing drag (1/2 rho Cd A /m) v|v| relative to still water. To stay with the wave at speed c the face must supply s/(1+s^2) = a, a = k c^2/(m g) with k = 1/2 rho CdA, giving s* = (1 - sqrt(1-4a^2))/(2a); if a exceeds 0.5 no slope is enough. The surfer is caught if the speed relative to the wave reaches zero while still on the face.

Simplifications, stated honestly. The face profile is an illustrative cosine-blend shape (steep front of chosen maximum slope, gentle back), not a solved breaking wave; orbital water velocity, board lift, turns and rider weight shifts are ignored; drag area is an illustrative constant; paddling is represented only by the take-off speed. Integrator: RK4, fixed 1/240 s step in the wave frame.

Check. The dispersion root is compared with the deep- and shallow-water closed forms, and the time-integrated riding slope with the analytic s*.