Depth-averaged momentum
Conservative shallow-water equations evolve flow depth h and depth-integrated momentum hu, hv over a sloping bed.
∂h/∂t + ∇ · (hu) = 0
∂(hu)/∂t + ∇ · (hu⊗u + ½gh²I) = −gh∇b − har
Basal resistance
ar = μg cosθ + |u|²/ξ + τy/(ρh)
Mixture density uses a water–rock volumetric blend. A bounded empirical bed-exchange closure adds erosion in fast flow and deposition in slow flow. Speed is capped at 50 m/s for numerical stability. Flow thickness is vertically exaggerated 2.2× for visual legibility.
Numerics & assumptions
- 84 × 84 uniform grid; Δx = Δz = 20 m; fixed Δt = 0.08 s.
- First-order Rusanov finite-volume flux; explicit bed-slope source and resistance update.
- Single effective mixture; hydrostatic pressure; no pore-pressure evolution or full two-phase separation.
- Illustrative synthetic terrain and empirical exchange coefficients; not calibrated to a real volcano.
TEXTBOOK CHECKRK4 / ANALYTIC
ENGINE—m/s
REFERENCE—m/s
DIFFERENCE—%
Quadratic drag benchmark: dv/dt = −v²/ξ, compared with its closed-form solution.
Illustrative educational model, not affiliated with any real institution or manufacturer.