Initial valve pressure against the closure-adjusted pressure-rise equation.
Water hammer
A fast valve closure launches a pressure wave through the water main. Change the conditions and watch the surge travel.
Slider values and the pipe rating are illustrative. Water density is textbook: 998 kg/m³.
Three independent checks
A separate Gaussian pulse is tracked across the numerical grid.
Discrete wave energy before and after one round trip with damping set to zero.
05 / REFERENCEThe science+
Governing equations
Δp = ρ a Δv
Joukowsky pressure rise for rapid closure.
Δp ≈ min(ρaΔv, 2ρLΔv / Tc)
A practical slow-closure reduction when the closure lasts longer than the wave round trip.
∂²p/∂t² + γ ∂p/∂t = a² ∂²p/∂x²
Linear damped pressure-wave equation, solved on a one-dimensional grid.
C = aΔt / Δx = 0.45
Fixed time step chosen below the one-dimensional Courant stability limit.
Boundary conditions
The upstream reservoir is held at zero gauge pressure: p(0,t) = 0. The closed valve has zero pressure gradient: ∂p/∂x(L,t) = 0, so an arriving pressure wave reflects with the same pressure sign.
What is simplified
The model uses constant water density and wave speed, a straight uniform pipe, linear wave motion and a single damping coefficient. It does not resolve pipe branches, nonlinear friction, cavitation, column separation, valve mechanics or changing pipe-wall properties.
What is illustrative
The smoothed starting front makes the initial condition resolvable on the grid. The 16 bar pipe rating is an illustrative comparison, not a universal design limit. Slider values describe a teaching scenario, not a real installation.
Constants and units
Water density ρ = 998 kg/m³ is a textbook reference value. Pressure readouts are gauge pressure in bar; 1 bar = 100,000 Pa. Length, speed and time are shown in SI units.