Penstock. The water column is treated as rigid and incompressible: (L / g A) dQ/dt = Hg - K Q²/(2 g A²) - Ht, with loss coefficient K = f L/D + 0.7 and Darcy friction factor f from the Swamee-Jain formula. The gate/turbine takes a head Ht = Q²/(2 g (Ag y)²) at opening y; the water starting time Tw = L Q / (g A Hg) (about 2 s here) is why closing the gate raises head and opening it first lowers head.
Turbine and rotor. Power Pt = η ρ g Q Ht with an illustrative efficiency hill (peak 0.92 near 80 % gate). The rotor obeys the swing equation 2 H Sb dω/dt = (Pt - Pe)/ω (Sb = 150 MW), load follows frequency with 1 %/% damping and windage loss is 2 % at rated speed.
Governor. Gate command = trim - Kp(ω - 1) - Ki∫(ω - 1), through a servo with 0.4 s time constant and 25 %/s rate limit; above 1.10 pu speed the gate is driven closed until speed falls back to 1.02 pu. Too much gain with a long water column destabilises the loop: try Kp = 2.5.
Honest simplifications. Rigid column: no water-hammer waves, so the head peak on gate closure is only an order-of-magnitude figure (an instantaneous stop would give the Joukowsky rise ΔH = a Δv/g, about 700 m for a 1000 m/s wave speed). Fixed reservoir level, one unit, no surge tank, constant efficiency curve, schematic valley geometry (vertical and horizontal scales exaggerated, parts drawn larger than true size). Parameters are illustrative, not data from a real plant.
Independent checks (run on load, same core as the 2D twin page):
| running… |