Water hammer.
A valve closes. A pressure wave races through the pipe.
Set the pipe and valve
The valve is closing. A compression wave travels upstream at the acoustic wave speed.
How large was the surge?
Run one complete closure test. The model records the largest pressure rise and compares it with the instantaneous-closure Joukowsky reference.
Three independent numerical checks
One-step MOC pressure rise for an instantaneous valve stop versus ρaΔV.
Independent right-going pulse test versus the calculated travel time to the valve end.
256 illustrative annular strips integrated across the bore versus the exact circular-area flow.
06 / MODEL NOTESThe science+
Governing equations
The model solves the linearised one-dimensional water-hammer equations for pressure-head disturbance h and velocity disturbance u:
Here a is wave speed, g is gravitational acceleration, f is the Darcy friction factor, V₀ is initial mean velocity and D is internal diameter. The method of characteristics advances the two travelling-wave invariants on a uniform grid with Δx = aΔt.
What is simplified
The pipe is straight, circular, uniform and horizontal. Water density and wave speed are constant. The upstream reservoir holds a fixed pressure head; the valve imposes a linear reduction in velocity over the chosen closing time. The friction term is linearised around the initial flow.
Branching networks, pump dynamics, pipe-wall layers, viscoelasticity, changing temperature, air pockets, cavitation bubbles and fluid-column separation are not resolved. If the computed absolute pressure reaches the vapour-pressure guard, the run stops and flags the limit rather than pretending a single-phase solution remains valid.
Numbers and interpretation
Water density ρ = 998 kg/m³ and gravitational acceleration g = 9.81 m/s² are textbook approximations. The 15 bar starting pressure, dimensions, wave-speed slider, friction values, valve law and pipe rating are illustrative inputs, not a specification for a real installation.
The pressure rating is a threshold marker only. Crossing it does not calculate yielding, cracking or rupture. The cutaway is a schematic object; its proportions and glow are scaled for legibility, not a pressure map to engineering scale.