Governing model
The one-dimensional water-hammer equations are solved by the method of characteristics on a fixed spatial grid. The time step is set to Δt = Δx/a, so the acoustic characteristic travels exactly one cell per step.
∂H/∂t + (a²/g) ∂V/∂x = 0
∂V/∂t + g ∂H/∂x + f V|V|/(2D) = 0
H is pressure head (m), V is mean flow speed (m/s), a is wave speed (m/s), g is gravitational acceleration, D is inside diameter and f is the Darcy friction factor.
a = √[(K/ρ) / (1 + (K D/(E e))(1 − ν²))]
The elastic wave speed uses the Korteweg thin-wall approximation. Textbook constants: water density 998 kg/m³, water bulk modulus 2.2 GPa, steel Young’s modulus 200 GPa, Poisson ratio 0.30 and g = 9.81 m/s².
ΔH = a ΔV/g · hf = f L V²/(2gD)
The rapid-closure Joukowsky relation is used as an ideal reference bound. For slow closure, the familiar estimate is ΔH ≈ 2LV/(g tc) when tc exceeds the round-trip wave time.
σθ ≈ pD/(2e)
The hoop-stress indicator uses the thin-wall pressure-vessel approximation and an illustrative allowable stress of 80 MPa. This is an educational comparison, not a pipe rating or design recommendation.
What is simplified
- One straight, constant-diameter pipe; no branches, fittings, air pockets or changing elevation.
- A fixed-head reservoir and a valve that closes linearly in time.
- Elastic, small-disturbance wave propagation and a constant Darcy friction factor.
- No cavitation, column separation, plastic deformation, fatigue or post-rupture flow.
Pipe dimensions, flow conditions and the 80 MPa comparison limit are illustrative. Readouts are model outputs, not measurements from real infrastructure. The failure marker only identifies when the simplified hoop-stress estimate crosses that illustrative limit.