//Example 5-3 Performance of Hydraulic Turbine-Generator h = 50 //depth of water [m] mdot = 5000 //water mass flow rate [kg/s] Wdot_elect = 1862 //electricity generated [kW] eta_generator = 95 //generator efficiency [%] rho = 1000 //density of water [kg/m^3] g = 9.81 //gravitational acceleration [m/s^2]