Generate and then pump back with a pumped-hydro plant. Set the head, penstock length and diameter, friction factor, flow, turbine and pump efficiencies and reservoir area to see the Darcy friction head loss, the power-maximising flow of one third head loss, and the round-trip efficiency of a full cycle. A Blender-built plant with numerical checks of the energy bookkeeping.