1. Mixture compressibility
For a homogeneous water–air mixture, Wood’s relation gives an effective bulk modulus:
1/Kmix = (1 − α)/Kw + α/(γp0)
Here α is the air volume fraction, Kw = 2.2 GPa, γ = 1.4 and p0 = 101.325 kPa. Even a small gas fraction adds substantial compressibility.
2. Wave speed in an elastic pipe
a = √[Kmix / ρmix ÷ (1 + KmixD / Et)]
The pipe-wall correction uses steel E = 200 GPa, bore D and wall thickness t. The model treats the pipe as thin-walled and axially restrained.
3. Pressure rise at closure
Δp = ρ a Δv · min(1, 2L / aTc)
The first factor is the Joukowsky pressure rise for rapid closure. The second is a simple slow-closure correction; Tc is closing time and 2L/a is the wave round-trip time.
4. Wave propagation and reflections
∂²p/∂t² + 2ζ∂p/∂t = a²∂²p/∂x²
A fixed-head reservoir reflects a pressure wave with opposite sign (coefficient −1). A closed valve reflects with the same sign (+1). The canvas solves the damped one-dimensional wave equation on a fixed spatial grid with a stable fixed time step.
What is simplified?
The air is assumed to be many tiny, uniformly distributed bubbles that respond adiabatically. Real bubbles may merge, dissolve, slip relative to water or resonate; a single large air pocket behaves differently. The model uses one-dimensional linear acoustics, a constant reference pressure and a small illustrative damping term. It does not calculate pipe supports, fatigue, cavitation, fluid friction in detail or structural fracture.
Textbook: water density, bulk modulus, gas exponent and steel modulus are representative reference values. Scaled: the pressure field and travelling wave are a numerical one-dimensional model. Illustrative: the pressure-rise limit and its breach marker are teaching aids, not engineering approval.