Penstock Water Hammer Simulator
Interactive method-of-characteristics simulation of the pressure transient (water hammer) that surges through a hydroelectric penstock when the turbine valve closes, with an optional surge tank to see how tunnel inertia is decoupled from the fast elastic surge.
When a hydroelectric turbine's guide vanes slam shut, the moving column of water in the penstock can't stop instantly — its momentum converts into a pressure wave that races up and down the pipe at 900–1400 m/s, a phenomenon engineers call water hammer. This simulator solves the real transient with the method-of-characteristics scheme used in industry (Wylie & Streeter), colouring the penstock live as the surge builds and reflects, and tracks the peak head rise against the classic Joukowsky formula ΔH = aΔV/g. An optional surge tank — the open shaft real dams use to protect their penstocks — decouples the long tunnel's slow inertial oscillation from the fast elastic shock, and toggling it on and off makes the trade-off it buys immediately visible.
Simulate the pressure transient (water hammer) that surges through a hydroelectric penstock when the turbine's guide vanes close, solved with the real method-of-characteristics equations, and see how adding a surge tank cuts the peak surge by decoupling the tunnel's slow inertia from the fast elastic shock.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install