A real 1D shallow-water wave solver (c = βgh, leapfrog scheme) running a subduction-zone tsunami from seafloor rupture to the coast. Watch the wave slow, shoal and amplify β Green's law emerges naturally β then measure arrival time, wave height at the shore and runup.
Linearised shallow-water equations βu/βt = βgΒ·βΞ·/βx and βΞ·/βt = ββ(hu)/βx, solved by leapfrog with a CFL-stable timestep. Long-wave speed c = β(gh) automatically slows the wave from ~200 m/s in the deep ocean to ~15 m/s at the shore, and shoaling amplification follows Green's law H β h^(β1/4) without being hard-coded. Source: static seafloor displacement ~ 0.3Β·10^(0.5(Mβ8)) m, the standard giant-earthquake scaling. Runup = shore height Γ slope factor (1.2 gentle / 1.6 typical / 2.2 steep).