actually do the equations

This commit is contained in:
Cal Wing 2025-02-27 19:48:06 +10:00
parent c30f1290c1
commit c704625950

2
a1.py
View File

@ -158,7 +158,7 @@ def calc_energy_power(heights: tuple[float, ...], water_mass_outs: tuple[float,
energy += water_mass_outs[i] * GRAVITY_ACC * \
(heights[i] + relative_elevation) * (efficiency/100), # note the comma
power += energy[i] * time_inc,
power += energy[i] / time_inc,
return energy, power