Water hammer in a closing pipe
A valve stops the flow. The water does not stop everywhere at once.
The valve begins to close. A compression wave travels back toward the reservoir at the acoustic wave speed.
Independent numerical checks
Checks use the same parameter set but separate boundary, amplitude and timing identities. Numerical residuals are normalized to the relevant physical scale; values are illustrative model outputs.
MODEL NOTESThe science+
Governing equations
The lossless, one-dimensional water-hammer equations are written for pressure perturbation p and mean velocity v:
The characteristic wave speed is a. A valve closure launches a compression wave with the Joukowsky scale:
Waves travel at ±a. At the fixed-head reservoir, pressure reflects with sign −1; at the closed valve, pressure reflects with sign +1. The displayed field is the superposition of those delayed characteristic waves.
What is simplified
- Uniform pipe area and one-dimensional mean flow.
- Linear acoustic response with constant wave speed and density.
- Friction, bends, branches, air pockets, pumps and gradual changes in pipe diameter are omitted.
- The valve velocity falls linearly to zero over the selected closing time.
- Reservoir pressure is fixed; the initial absolute operating pressure is 0.85 MPa (illustrative).
Validity and labels
All control ranges and the initial operating pressure are illustrative. The default density, 998 kg/m³ at 20 °C, is a textbook approximate water value; the slider range is illustrative. The reference vapour pressure at 20 °C is about 2.34 kPa absolute (textbook). If the linear prediction falls below that limit, the display flags the model as invalid: real column separation and cavity collapse are not simulated.
The exact characteristic solution is sampled on a fixed 0.5 ms illustrative model clock. It has no finite-difference CFL instability. Canvas rendering is independent of the simulation clock.