Home▸Climate, Ecology & Environment▸Harbor Tsunami Defense: Shallow-Water Shoaling & Breakwater Transmission (2D)

🌊 Harbor Tsunami Defense: Shallow-Water Shoaling & Breakwater Transmission (2D)

2D cross-section tsunami lab: a finite-difference shallow-water-equation solver on a real shelf-to-harbor depth profile, showing wave shoaling (Green's law) and a breakwater with an adjustable engineering transmission coefficient.

Climate, Ecology & Environment2DModerate60 FPS📱 Mobile-adapted⇄ 3D version💧 Water
2d-harbor-tsunami-defense ↗ Open standalone

This 2D companion replaces the 3D scene with the cross-section the coastal-engineering math actually lives in: a leapfrog shallow-water-equation solver runs on a real shelf-to-harbor depth profile, a wavemaker drives a true tsunami-period wave train shoreward, Green's-law shoaling emerges from the physics as depth falls, and a breakwater at the harbor mouth attenuates the incoming wave by a live, freeboard-and-gap-driven transmission coefficient — so every slider visibly changes both how much the wave amplifies and how high it floods the harbor quay.

⚙ Under the hood

2D shallow-water tsunami lab: a leapfrog finite-difference solver on a real shelf-to-harbor depth profile, live Green's-law shoaling, and a breakwater whose transmission coefficient responds to crest freeboard and gap width.

tsunamishallow water equationswave shoalinggreen's lawbreakwatercoastal engineering

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)