Governing equations
The lossless one-dimensional acoustic equations are integrated on a staggered grid:
∂p/∂t + ρa² ∂u/∂x = 0 textbook governing equation
∂u/∂t + (1/ρ) ∂p/∂x = 0 textbook governing equation
p is pressure perturbation, u is axial water velocity, ρ is density and a is effective pressure-wave speed. Water density is 998 kg/m³ (textbook, near 20°C). The effective wave speed is an illustrative input that folds water compressibility and pipe-wall compliance into one value.
Useful estimates
Δp = ρaΔu textbook estimate · Joukowsky, fast closure
Δp ≈ 2ρLU₀/tc textbook estimate · Michaud, slow linear closure
t₁ = L/a · t₂ = 2L/a textbook one-way and round-trip travel times
The reservoir holds pressure fixed, so its ideal pressure-wave reflection coefficient is −1 (textbook boundary result). The valve boundary prescribes a linear fall in flow velocity over the selected closing time.
What is simplified
- The pipe is straight, uniform and represented by one spatial dimension.
- Friction, viscosity, turbulence, branches, bends and local valve losses are omitted.
- The wave speed is set directly; pipe material and wall thickness are not solved.
- The fluid remains single-phase. If calculated absolute pressure reaches the water-vapour threshold, the run stops; cavity formation is not simulated.
- The pressure rating is an illustrative comparison threshold, not a pipe-design rating. An exceedance is flagged, not mechanically fractured.
All scenario inputs and display readouts are illustrative unless marked textbook. The equations describe a simplified educational model, not a design or safety assessment.