You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FLOWOUT_TURB(J,I,W)=FLOWOUT(J,I,W) ! forcing the turbine release to be equal to the provided release in operation strategy 4 (otherwise flowout is going through changes due to changes in storage; if storage is greater than scap)
IF (RULE(J,W) .EQ.4) THEN ! Force the hydropower to follow the input release (even if VOL>VRESER)
1306
-
ENERGYPRO(J,I,W) =0.9*9.81* FLOWOUT_TURB(J,I,W)
1307
-
ELSE
1308
-
ENERGYPRO(J,I,W) =0.9*9.81* FLOWOUT(J,I,W)
1309
-
END IF
1305
+
1306
+
! Checking conditions for turbine outflow
1307
+
IF (HYDROPOWER_GENERATOR(J,W) .EQ.1) THEN
1308
+
FLOWOUT_TURB(J,I,W)=FLOWOUT(J,I,W) ! forcing the turbine release to be equal to the provided release in operation strategy 4 (otherwise flowout is going through changes due to changes in storage; if storage is greater than scap)
1309
+
ELSE
1310
+
FLOWOUT_TURB(J,I,W)=0.0 ! If the turbine is not connected to generator (generator shutdown)
1311
+
END IF
1312
+
1313
+
IF (FLOWOUT(J,I,W)>=QRESER(J,W)) THEN ! turbine + spillway flow
1314
+
FLOWOUT_TURB(J,I,W) = QRESER(J,W)
1310
1315
ELSE
1311
-
IF (RULE(J,W) .EQ.4) THEN ! Force the hydropower to follow the input release (even if VOL>VRESER)
1312
-
ENERGYPRO(J,I,W) =0.9*9.81* FLOWOUT_TURB(J,I,W)
1313
-
ELSE
1314
-
ENERGYPRO(J,I,W) =0.9*9.81* QRESER(J,W)
1315
-
END IF
1316
+
FLOWOUT_TURB(J,I,W) = FLOWOUT(J,I,W)
1316
1317
END IF
1317
1318
1318
1319
! Update water losses due to seepage and infiltration
! Note: hydraulic head calculated from the maximum water level
1338
-
IF (HYDROPOWER_GENERATOR(J,W) .EQ.0) THEN
1339
-
ENERGYPRO(J,I,W) =0 ! If the turbine is not connected to generator (generator shutdown)
1340
-
ELSE
1341
-
ENERGYPRO(J,I,W) = ENERGYPRO(J,I,W) *((HHO(J,I,W)+HHO(J,I+1,W))/2-(HRESERMAX(J,W)-REALHEAD(J,W)))/1000 ! this part is for hydropower production estimation, ignore if work with irrigation reservoirs
1342
-
END IF
1343
-
1344
-
! Check for minimum environmental flow
1345
-
IF (FLOWOUT(J,I,W) .LE. Qmin(J,I,W)) THEN
1346
-
FLOWOUT(J,I,W) = Qmin(J,I,W)
1347
-
END IF
1335
+
! Calculate energy production
1336
+
ENERGYPRO(J,I,W) =0.9*9.81* FLOWOUT_TURB(J,I,W)*((HHO(J,I,W)+HHO(J,I+1,W))/2-(HRESERMAX(J,W)-REALHEAD(J,W)))/1000 ! this part is for hydropower production estimation, ignore if work with irrigation reservoirs
1337
+
1348
1338
1349
1339
! Set Hydrologic Budget (States & Fluxes) for ROR Dams (Run-of-the-River)
0 commit comments