When the flow stops,
the pressure travels.
A valve can shut in a moment. Water cannot. Watch the pressure wave race through a real-scale pipeline model, reflect, and return.
water hammerTextbook wave equations
Idealised, lossless pipe
The valve is beginning to close. Water compresses and launches a pressure wave towards the reservoir.
TEXTBOOK MODELThree independent checks
VALIDATED AT EACH SETTINGThe scienceEquations, boundary conditions, checks and limitations⌄
Governing equations
With pressure perturbation p and axial water velocity v, the frictionless one-dimensional water-hammer equations are:
∂v/∂t + (1/ρ) ∂p/∂x = 0
For a simplified elastic, thin-walled pipe, c = √[(K/ρ)/(1 + KD/(Ee))], with water density ρ = 998 kg/m³ and bulk modulus K = 2.20 GPa (textbook reference values). D is internal diameter, e wall thickness and E Young's modulus.
∂w₊/∂t + c∂w₊/∂x = 0
∂w₋/∂t − c∂w₋/∂x = 0
The solver advects both characteristic waves by exactly one cell per fixed step Δt = Δx/c. At the reservoir, p(0,t) = 0. At the valve, v(L,t) = v₀ max(0, 1 − t/Tc). It uses no variable-frame numerical integration.
What we check
Before the first reflected wave returns to the valve, the analytical first-wave pressure rise is Δp = ρc Δv (Joukowsky). An independent grid sample is compared with this rise. A front detector tests the predicted transit time. Conservation is tested using ∂e/∂t + ∂(pv)/∂x = 0, where e = p²/(2ρc²) + ρv²/2; valve-boundary work is included.
What is simplified
The pipe is straight and uniform, the reservoir maintains fixed gauge pressure, and pressure waves remain linear. The model omits viscous friction, cavitation, vapor-column separation, fluid temperature variation, joint losses, pipe restraints and the valve's actual flow coefficient. Large transients can invalidate these assumptions.
The rendered cutaway diameter, gauges, pipe stress marks and moving flow tracers are illustrative or speed-scaled, not dimensionally accurate. A limit-exceeded warning is illustrative: structural fracture and leak flow are not solved.