SolveStorage

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

Description

The storage of a reservoir.

Type

NUMERIC

Arguments

Type

Meaning

1

OBJECT

the reservoir object for which to calculate

2

NUMERIC

the average inflow over the timestep

3

NUMERIC

the average outflow over the timestep

4

NUMERIC

the previous (beginning) storage

5

DATETIME

the timestep at which to calculate

Evaluation

This function calls the massBalanceSolveStorage() function on the given reservoir object at the given timestep and provides it with the average inflow and outflow over the timestep, and beginning storage. The function must iterate to convergence due to the storage and pool elevation dependence of the following sources and sinks:

  • The Evaporation and Precipitation Category selected Method.
  • The bankStorageCalcCategory selected Method.
  • The Seepage Calculation Category selected Method.
  • Side inflows including: Hydrologic Inflow Net , Diversion , Return Flow , Canal Flow , Pumped Storage Inflow , and Pumped Storage Outflow . These slots are automatically added as dependencies to the calling rule.

At each iteration, the ending storage is calculated as the previous storage plus the inflow, side inflows, and precipitation over the timestep, minus the evaporation, bank storage, and seepage over the timestep

Mathematical Expression

 

Comments

The given inflow represents the main inflow only and should not include any side inflows. This is the same value which would be in the Inflow slot.

The given outflow represents the total outflow. It should include both Release / Turbine Release and Spill .

The given timestep’s Hydrologic Inflow Net , Diversion , Return Flow , Canal Flow , Pumped Storage Inflow , and Pumped Storage Outflow are automatic dependencies of this function. Since the function evaluation depends on these slots, any change to their values at the indicated timestep, may impact the function result.

 
SolveStorage(%"Hoover Dam", 11651 "cfs", 13672 "cfs",
19787262 "acrefeet", @"June, 1984")
 
123348183.75 "m3"