where conv is the adimensional conversion factor to calculate energy in GWh (conv = 0.00876);
g is a gravity constant (9.81 m/s2);
η is the overall electrical efficiency;
Qup_hydro is the mean annual discharge at the closure section for the upstream subbasin;
Hmean is the mean elevation of the upstream subbasin calculated from the hypsographic curve, using the statistical tool of Arc-GIS;
Hclosure is the elevation at the closure point (point A in the figure);
where Qaff is the afferent discharge (own lower subbasin discharge). The afferent discharge is the difference of the discharge observed at the closure section (point B in the figure) and the sum of the upstream discharges;
Hmean is the elevation of lower subbasin;
Hclosure is the elevation at closure point (point B in the figure);
where Qup_hydro is the sum of the mean annual discharges coming from the upstream subbasins;
Hup_closure is the elevation at the upstream closure point (point A in the figure);
Hclosure is the elevation at closure point (point B in the figure);
r.green.hydro.theoretical elevation=elevation discharge=naturaldischarge rivers=streams lakes=lakes basins=basin stream=stream output=out