What water hammer is

Water hammer is a transient change in pressure caused when the velocity of liquid in a pipe changes rapidly. The familiar example is a tap or valve that is shut quickly: the flow stops at the boundary, but the water farther upstream is still moving. Its momentum has to be removed. The liquid compresses slightly and the pipe wall expands slightly, storing elastic energy. A pressure disturbance then travels upstream through the system.

The name describes the audible knock that can accompany the event, but the important process is not a solid object striking the pipe. It is a moving compression and decompression wave. The water is only slightly compressible, and a steel pipe is stiff, so the wave speed is often hundreds or more than a thousand metres per second. That is much faster than the bulk flow speed, which in this model is a few metres per second.

A useful way to picture the event is to imagine a long line of connected springs filled with water. The springs are very stiff, so a local push is passed along quickly. The analogy is imperfect, but it captures why a change at one end can be felt far away before much water has travelled along the pipe.

The first pressure rise

For a rapid change in velocity, the Joukowsky relation gives the ideal pressure change:

Δp = ρ a Δu

Here ρ is the liquid density, a is the pressure-wave speed and Δu is the change in mean flow velocity. The relation is a compact statement of momentum transfer in an elastic liquid-filled conduit. It explains why a faster initial flow or a stiffer, faster-wave pipe can create a larger pressure jump when the same abrupt stop occurs.

Wave speed is not simply the speed of sound in water. The pipe wall also deforms. A common thin-wall estimate, used here for a restrained steel pipe, is the Korteweg form:

a = √[ K / {ρ (1 + KD/(Ee))} ]

K is the water bulk modulus, D is the internal diameter, E is the pipe material’s Young’s modulus and e is wall thickness. A more flexible wall stores more of the disturbance as expansion, reducing the wave speed. The expression is an engineering approximation: real supports, wall restraint, joints and viscoelastic effects can change the result.

Why closure time matters

A valve that closes almost instantly produces a sharper wave than one that closes gradually. The important comparison is between the closure time and the time for a wave to travel to the reservoir and return, 2L/a. If closure is much faster than this round-trip time, the initial pressure rise is close to the Joukowsky value. If the flow is reduced over a longer interval, the pressure rise is lower. A useful slow-closure estimate for a simple line is the Michaud expression, Δp ≈ 2ρLu₀/Tc.

These formulas are reference estimates, not universal guarantees. The exact response depends on the valve’s flow characteristic, pipe friction, boundary conditions and reflections. This exhibit uses a deliberately simple boundary rule: the outlet flow speed tapers linearly to zero over the chosen closure time. That makes the timing experiment reproducible and keeps the role of the pressure wave visible. It is not a detailed model of a particular gate valve.

Reflections at the ends

When a pressure wave reaches a boundary, part of it is reflected. At a closed valve, flow cannot continue through the boundary, so the pressure wave reflects with the same sign. At a large constant-head reservoir, pressure is held approximately fixed, so the reflected pressure wave has the opposite sign. The two waves can travel back and forth, producing a changing pressure pattern along the main.

This is why a pressure sensor does not necessarily record the same trace as a sensor beside the valve. The signal depends on where the sensor sits and when each reflected wave arrives. The exhibit’s mid-pipe sensor is placed halfway along the model line. Its first arrival can be compared with the simple travel-time prediction x/a. Later peaks are shaped by reflections and friction.

Friction and the steady starting state

Before the valve moves, the model begins with steady flow. The pressure head falls along the pipe because wall friction removes mechanical energy. The Darcy–Weisbach relation estimates that loss as hf = f(L/D)u₀²/(2g). Increasing length or friction factor raises the loss; increasing diameter reduces it strongly for a fixed velocity. During the transient, the same friction term damps the moving wave.

The calculation advances pressure head and velocity using the method of characteristics. The equations are transformed into relations along paths moving at plus or minus the wave speed. With a grid spacing Δx and a time step Δt = Δx/a, those paths connect neighbouring grid points. The method is well suited to this one-dimensional problem because it follows the direction in which information actually travels.

What the exhibit can and cannot tell you

Change one control at a time. Try the same flow speed with a faster and slower closure, then lengthen the pipe while keeping the other settings fixed. Watch the pressure rise, the time to the sensor and the moving wavefront. The experiment compares the simulated first peak with the rapid- or slow-closure reference, while the other checks compare arrival time and the volume stored by compression with the net boundary flow.

The numerical checks are diagnostics for this model, not certificates for a real installation. The mass-balance check is particularly useful: a pressure wave compresses the water and expands the pipe, so a small volume can be stored even though the fluid is nearly incompressible. The difference between inflow and outflow should account for that changing stored volume.

Real water networks may contain branches, pumps, reservoirs at different elevations, air pockets, non-return valves and changing pipe materials. If the computed gauge pressure approaches the water-vapour limit, liquid columns can separate and later rejoin with severe local effects. This exhibit pauses before that regime because a single-phase model cannot represent cavity formation honestly. It also flags when the calculated pressure exceeds the illustrative pipe rating; it does not predict a crack, rupture or leak.

The central lesson is that the pressure response is controlled by both the moving water and the elastic pipe. A short action at a valve can send information through a long main at acoustic speed. Closure time, pipe length, diameter, wall stiffness and friction all shape what a sensor records. Water hammer is a wave problem as much as it is a plumbing problem.

Frequently asked questions

Does the water itself travel at the pressure-wave speed?

No. The bulk water moves at the flow speed shown by the valve-flow readout. The pressure disturbance travels through the coupled water-and-pipe system much faster, often hundreds or thousands of metres per second.

Why does a thicker steel wall change the wave speed?

A thicker wall is harder to expand for the same internal pressure change. Less of the disturbance goes into wall deformation, so the estimated wave speed rises. The exhibit uses a thin-wall Korteweg approximation and fixed steel properties.

What does the Joukowsky estimate assume?

It represents a rapid velocity change in a simple elastic pipe. The pressure jump is proportional to density, wave speed and velocity change. Friction, valve characteristics and reflections can make the measured peak differ from the ideal estimate.

Why can a longer pipe make a slow closure more demanding?

The wave needs more time to travel to the reservoir and return. A closure that is slow for a short pipe may still be rapid relative to the round-trip time of a longer main. The ratio of closure time to 2L/a is therefore important.

Why does the pressure wave reflect at the reservoir?

The reservoir is approximated as a constant-head boundary. It holds pressure nearly fixed, so an arriving pressure rise is reflected with the opposite sign. A closed valve instead prevents flow and reflects a pressure wave with the same sign.

What is the mid-pipe sensor checking?

It records pressure head at half the pipe length. The first wave should arrive after approximately x/a, where x is the sensor distance from the valve. The check compares that prediction with the first small detectable change in the numerical solution.

Does a rating-exceeded warning mean the pipe will burst?

No. It means the calculated gauge pressure is above the illustrative rating selected for the exhibit. Actual failure depends on material condition, wall thickness, joints, defects, supports, fatigue and design standards, none of which are modelled here.

Why does the model stop near the vapour-pressure limit?

Below that limit, a liquid column can separate and form a vapour cavity. The single-phase equations used here cannot describe cavity growth and collapse, so the model pauses rather than presenting an unreliable negative absolute pressure as a physical result.