How a hydroelectric power plant works

The science

Flow through the gate (orifice / Torricelli): Q = Cd · A · √(2 g H). Power: P = η ρ g Q H, energy E = ∫P dt.

Reservoir level: S · dz/dt = Q_in − Q. Opening the gate lowers the head H, so power falls as the reservoir drains; above the crest the extra inflow spills.

Simplifications: constant reservoir area S = 20 km², constant Cd = 0.8, gate area up to 10 m², efficiency η = 0.9 fixed, no penstock friction, no evaporation or turbine curves. The numbers are illustrative, not a specific plant.