Water Hammer: Pressure Waves in Pipes
Close a valve. Follow the pressure wave. Discover why a quiet water line can suddenly behave like a spring.
The pipe is at its initial steady flow. Start the simulation to close the valve and launch a compression wave.
Independent numerical checks
Checks are rerun when a parameter changes. They use an independent instantaneous-closure test, not the live run.
MODEL NOTESThe scienceEQUATIONS, ASSUMPTIONS AND LIMITS ⌄
Governing equations
The model uses the one-dimensional, linear water-hammer equations for head H and volume flow Q:
∂Q/∂t + gA ∂H/∂x = 0
Here A is pipe area, g is gravitational acceleration and a is the pressure-wave speed. The method of characteristics advances the two travelling wave families with a fixed Courant number of one.
Wave speed and pressure rise
The Korteweg estimate includes water compressibility and elastic pipe-wall compliance:
For rapid closure, the textbook Joukowsky relation is Δp = ρaΔV. When a linear closure is slow compared with the wave round trip, the first peak is approximated by Δp ≈ 2ρLV/Tc. The experiment compares the measured peak with the appropriate regime estimate.
What is simplified
The pipe is straight, uniform and horizontal. Water is treated as single-phase, with constant density and bulk modulus. The reservoir fixes the upstream pressure head; the valve reduces flow linearly. Friction, branches, air pockets, cavitation, temperature changes, support motion and nonlinear valve characteristics are omitted. These effects can materially alter real transients.
What is illustrative
The geometry, initial speed, material modulus and wall thickness are adjustable teaching values, not a real installation. The hoop-stress estimate uses the thin-wall relation σθ ≈ pD/(2e). Its 120 MPa visual threshold is deliberately illustrative and is not a certified allowable stress, pressure rating or prediction of rupture. The scene geometry is scaled for clarity.
Textbook constants
Water density ρ = 998 kg/m³, bulk modulus K = 2.2 GPa and gravitational acceleration g = 9.80665 m/s² are used as representative textbook values near ordinary laboratory conditions. Real values vary with temperature, pressure and dissolved gas.