Governing model
The water column is treated as a rigid slug of length L, coupled to the free surface in a vertical shaft.
dy/dt = Q / As
dQ/dt = −(g Ap / L) [ y + hf(Q) ]
hf = ( f L / D + K ) · v|v| / (2g), v = Q / Ap
T0 = 2π √( L As / (g Ap) )
Δp = ρ g y
Textbook constants: gravitational acceleration g = 9.81 m/s² and water density ρ = 998 kg/m³. The ideal period is the small-signal, loss-free result.
What is simplified
The model assumes incompressible water, a rigid uniform pipe, one-dimensional flow and a single surge shaft. The pump head is removed instantaneously from an initially steady flow. Darcy–Weisbach wall friction and a fixed local-loss coefficient provide damping.
This is a rigid-column surge model, not a wave-propagation solver. It does not resolve the fast acoustic pressure wave called water hammer, pipe-wall elasticity, air pockets, pump coast-down, cavitation, branch networks or the detailed flow over a shaft rim. When the illustrative freeboard is crossed, the run stops rather than pretending to model the spill.
What is illustrative
The slider ranges, initial flow, fitting coefficient K = 0.5, shaft freeboard = 4.0 m and accelerated display speed are illustrative. The fixed RK4 integration step is 0.025 s. Readouts are scaled model results, not measurements from a real installation.
Numerical method
The coupled equations are advanced with fourth-order Runge–Kutta at a fixed 0.025 s step. A separate zero-friction reference integration checks the closed-form period. The other checks compare integrated flow with shaft volume and mechanical-energy loss with accumulated Darcy dissipation.