Variable-depth shallow-water model
∂²η/∂t² = g ∇·(h∇η) − γ ∂η/∂t + F(x,z,t)
η is free-surface displacement (m); h is still-water depth (m); g = 9.81 m/s² and ρ = 1,000 kg/m³ are TEXTBOOK water constants; γ is linear damping (s⁻¹); F is imposed acceleration (m/s²).
Eₚ / A = ½ ρ g η²
The energy readout is gravitational potential-energy density only, not total wave energy.
Seiche reference
T₁ = 2L / √(gH)
For a uniform rectangular basin with closed ends, the fundamental longitudinal mode has wavelength 2L. The displayed grid check uses the exact eigenvalue of the cell-centred finite-difference Laplacian.
Model assumptions
- Linear, depth-averaged shallow-water waves; small surface displacement relative to depth.
- Fixed basin, impermeable shoreline and variable bathymetry; no wetting/drying.
- Uniform linear damping; no Coriolis force, wind stress, turbulence closure or sediment motion.
- The impulse is a prescribed idealised rockslide/seismic forcing, not a forecast of a real volcano.
- Surface height is vertically exaggerated ×18 in the 3D view.