respec / HSPsquared

Hydrologic Simulation Program Python (HSPsquared)
GNU Affero General Public License v3.0
43 stars 17 forks source link

Calculation of IVOL #16

Closed AtrCheema closed 6 years ago

AtrCheema commented 6 years ago

This is not regarding an issue in code but a question while trying to understand code. IVOL accounts for sum of inflows in RCHRES from PLS and impervious surfaces. I suppose this is calculated from PERO and SURO as mentioned in MASS-LINK block of uci. I am trying to understand that how this code calculates IVOL. In file hrchhyd.py, IVOL array is set to zeros for the case when there is no inflow to RCHRES. But for cases when there is inflow from either PERLND or IMPLND in RCHRES, which part of code of HSP2 calculates IVOL. I shall be thankful for the hint.

AtrCheema commented 6 years ago

OK. I got it. It is done inside flow() function inside main.py file.