Governing model
The water column is a translating liquid slug with mass m = ρAL. Its motion is
m ẍ = A(Ps − Pg) − C v|v|
where A = πD²/4, v = ẋ, and C = (fL/D)ρA/2. The trapped air follows a polytropic law:
Pg = P0 [V0 / (V0 − Ax)]n
P₀ = 101,325 Pa is textbook atmospheric pressure. Water density ρ = 998 kg/m³ is a textbook value representative of water near room temperature. The gas exponent ranges from the isothermal limit to the ideal-gas adiabatic limit.
What is simplified
This is a lumped-parameter model, not a full water-hammer solver. It treats the water slug as incompressible, assumes a constant supply pressure, uniform gas pressure, fixed slug length, and a single gas pocket. Pipe-wall elasticity, distributed pressure waves, valve dynamics, heat transfer detail, leakage, dissolved air, and structural fracture are not solved.
What is illustrative
Slider ranges, the rig drawing, and the 16.0 bar absolute pressure-rating trip are illustrative, not a design rating. The trip freezes the model when the threshold is crossed; it does not calculate crack growth or a real pipe rupture. All displayed live values are model outputs, not field measurements.
Numerical method
The equations are integrated with classical fourth-order Runge–Kutta at a fixed 1/960 s scaled time step. A separate dissipation state accumulates the work done by quadratic friction. The checks compare the state with the polytropic equation, the mechanical-energy ledger, and the analytic static equilibrium.
An independent educational simulation; not affiliated with a water utility, pipe manufacturer, or engineering standards body.