🌊 Tsunami Wave Cross-Section (2D)
2D side-view tsunami simulation using real shallow-water wave physics: depth-dependent wave speed v=sqrt(g*h) and energy-flux shoaling that amplifies wave height as it approaches shore.
⚙ Under the hood
Watch a tsunami wave propagate across a side-view cross-section of the ocean floor in real time. This 2D companion to the 3D shallow-water tsunami simulation uses the same physics -- wave speed v = sqrt(g*h) and energy-flux shoaling -- so you can see the wave slow down and grow taller as the seafloor rises toward shore. Adjust the initial amplitude, pick a depth profile, and trigger a new wave to compare how each bathymetry shapes the run-up.
tsunamishallow waterwave physicsoceanbathymetry2D
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install