This is a simplified, coupled hydraulic and thermal model. The fixed-step solver updates line flow, both reservoir levels, motor temperature and accumulated energy at 120 steps per simulated second.
A = πD² / 4 · v = Q / A
hL = (fL/D + Kvalve) · v²/(2g)
Hp = max(0, 27n² − 1250Q²)
dQ/dt = (gA/L) · (Hp − Hstatic − hL)
dhtank/dt = (Q − Qd) / At
dT/dt = heat input − cooling · (T − Tamb)
Assumptions
Water is treated as incompressible. Pipe losses use Darcy–Weisbach with an approximate friction factor and a simplified valve coefficient. The pump curve, efficiency and motor heat terms are illustrative. Reservoirs have constant surface area.
Simplifications & limits
Water hammer, air pockets, pipe elasticity, detailed motor winding physics, and a full NPSH calculation are not modelled. The visual scene is procedural and not a measured engineering site. Outputs are educational approximations, not operating guidance for real infrastructure.
Credits
Procedural scene, solver and synthesized ambience authored for MySimulator. Three.js 0.160.0 is loaded from jsDelivr when available.