Water Hammer: Pressure Wave Laboratory
Close a valve. Watch a pressure wave race upstream, reflect from a reservoir, and return to the valve.
Three independent numerical checks
Each compares a measured or separately calculated quantity with a theoretical prediction.
The science Equations, assumptions and limitations
For a liquid with effective bulk modulus K and density ρ, the linear acoustic speed is c = √(K/ρ). A change in liquid velocity Δu produces the Joukowsky pressure change Δp = ρcΔu for a sufficiently rapid closure. The one-way transit time is T = L/c; the round trip takes 2L/c.
The simulation propagates the characteristic variables R = p + ρcu and S = p − ρcu along a pipe with an ideal fixed-pressure reservoir at the left and a prescribed velocity boundary at the valve on the right. Each fixed step shifts the characteristics one grid cell, with Δt = Δx/c. The reservoir reflects pressure waves with reversed sign; the closed valve reflects pressure waves with the same sign. Optional attenuation multiplies travelling deviations from the initial flow state by a small loss factor.
Textbook: acoustic wave speed, Joukowsky jump, and transit time. Scaled: pressure and flow readouts calculated from the linear wave model. Illustrative: 12-bar design threshold, colours, apparent pipe diameter and reservoir/valve geometry. The effective modulus represents both liquid compressibility and pipe-wall compliance; the diameter is displayed geometrically and does not change acoustic speed in this simplified model.
The model assumes one-dimensional, small-disturbance acoustics, constant density, uniform pipe properties, no vapour cavities, no turbulent valve law, no fluid–structure coupling, and no pressure-dependent wave speed. The prescribed closure schedule is a teaching approximation, not a valve-flow prediction. A real water network requires transient hydraulic design and pressure ratings; the red warning is not an engineering safety certification. No brand affiliation.