SolveInflow

This performs a mass balance and evaluates to the inflow of a reservoir given its outflow, previous storage, and end of timestep storage at the specified timestep.

Description

The inflow to a reservoir given outflow and storage.

Type

NUMERIC

Arguments

Type

Meaning

1

OBJECT

the reservoir object for which to calculate

2

NUMERIC

the average outflow over the timestep

3

NUMERIC

the end of timestep storage

4

NUMERIC

the previous (beginning) storage

5

DATETIME

the timestep at which to calculate

Evaluation

This function calls the massBalanceSolveInflow() function on the given reservoir object at the given timestep, and provides it with the average outflow over the timestep, beginning storage, and ending storage. The function computes the end of timestep pool elevation, and then determines the average inflow over the timestep, taking into account the following sources and sinks.

  • The Evaporation and Precipitation Category selected Method.
  • The bankStorageCalcCategory selected Method.
  • The Seepage Calculation Category selected Method.
  • Side inflows like Hydrologic Inflow, Return Flow, and Diversion are NOT including.
Evaluation
(Cont.)

The total inflow is then calculated as the difference between the ending and beginning storage over the timestep, plus the outflow, evaporation, bank storage, and seepage, minus precipitation.

Mathematical Expression

 

 

Comments

The given outflow is a total outflow and should include any spills. The calculated inflow is a total inflow.

 
SolveInflow(%"Hoover Dam", 13651 "cfs", 19853486 "acrefeet",
19787262 "acrefeet", @"June, 1984"}
returns 12.5 "cms"