Governing model
The shared main is represented by one inertial water column feeding a compliant junction. The state variables are main flow Q and junction pressure head h.
dQ/dt = (gA/L) [Hs − h − hf(Q)]
Ch · dh/dt = Q − Qt(h) − Ql(h); Ch = ALg/a²
Outlet flows use the orifice relation:
Qi = Cd · Ai · √[2g · max(h, 0)]
Main-pipe friction uses Darcy–Weisbach, with a Reynolds-dependent Darcy friction factor:
hf = f · (L/D) · V|V|/(2g); V = Q/A
The live state is integrated with classical fourth-order Runge–Kutta at a fixed illustrative step factor, Δt = 0.018L/a. The equilibrium reference is solved separately by bisection; a brute-force scan provides an independent cross-check.
Constants and labels
Textbook constants: water density 998 kg/m³, dynamic viscosity 1.002 mPa·s, gravitational acceleration 9.81 m/s², and an orifice discharge coefficient of 0.62. The discharge coefficient is a representative textbook-style value, not a measured fitting.
Illustrative: every slider setting, the joint pressure rating, and the smooth leak-opening ramp. The joint-failure preset uses a threshold flag to make the consequence visible; it does not calculate material stress, crack growth, or a real pipe's burst strength.
Textbook approximation: the model uses a vapor-pressure floor of about −9.5 m gauge head at sea-level pressure. Simplified: the main is a lumped inertial column rather than a spatially resolved pipe network. The two outlets share one junction head. Branch-pipe losses, elevation differences, pumps, water temperature changes, and distributed pressure-wave reflections are omitted. The vapor-pressure floor prevents unbounded sub-atmospheric pressure; cavity growth is not resolved.
Scaled: the cutaway, flow traces, pressure gauge, and leak spray are explanatory visualisations. Their sizes and animation speeds are not engineering drawings or calibrated measurements.
This is an educational hydraulic model, not a design tool for specifying or certifying real water infrastructure.