The science
Textbook ideal-fluid acceleration with Darcy–Weisbach and minor losses:
dv/dt = a − bv²
a = gHₛ/L
b = f/(2D) + K/(2L)
The waste valve trips at the chosen speed. The textbook rapid-closure Joukowsky estimate is ΔH = cv/g; a gradual-closure approximation limits this to 2Lv/(g t꜀). The delivery check opens if the estimated junction head exceeds Hᴅ.
dv/dt = −d − bv²
d = g(Hᴅ − Hₛ)/L
Vₚ = A ln(1 + bvₜ²/d)/(2b)
The air chamber is an illustrative volume buffer: outlet flow = stored volume / 0.65 s. Integration uses fourth-order Runge–Kutta at 1/240 s, splitting valve events. Textbook gravity g = 9.81 m/s²; illustrative effective wave speed c = 300 m/s, minor-loss coefficient K = 2, reset delay = 0.20 s. All slider values are illustrative SI quantities. Geometry and time shown are scaled for clarity; no transient pressure field, real valve dynamics, cavitation or pipe elasticity are resolved. This is an educational model, not a pump design tool.