With the waste valve open, the drive-column speed u follows:
du/dt = (gHₛ − gh − K u|u|/2)/L
When closed, effective pressure head h evolves as:
dh/dt = c²(u − uᴅ)/(gL)
uᴅ = max(0, g(h − Hᴅ)/c)
Here g = 9.81 m/s² and water density ρ = 1000 kg/m³ are textbook approximations; L, Hₛ, Hᴅ, c and K are illustrative settings. Pipe area A = πD²/4. Gauge pressure p = ρgh; delivery flow Qᴅ = Auᴅ.
Rapid closure gives Δp = ρcΔu. The lossless lumped test has h(t) = cu₀/g · sin(ct/L). Its first peak is at πL/(2c). Open steady speed is √(2gHₛ/K).
Fixed-step fourth-order Runge–Kutta, Δt = 0.00025 s (model numerical setting). Switching is resolved to one step. The waste valve closes at a prescribed speed and reopens when drive flow reverses or a closed interval reaches 2L/c. Residual pressure is dissipated at reopening.
The model is a single elastic mode, not a distributed wave solver. Delivery is a one-way linearized impedance into a constant head; the drawn air chamber illustrates real hardware but is not a separate gas state. No elevation changes within the pump, valve inertia, cavitation, leakage or detailed pipe friction are simulated. No claim of affiliation with any pump manufacturer.