where Ec is the energy storage capacity of a battery bank or water
reservoir (Joules); q is the density of water (kg/m3); V is the volume
of the water reservoir (m3); g is the gravitational acceleration
(9.81 m/s2); h is the total head (m).
Then the volume of upper reservoir can be calculated by Eq. (7):