SolveOutflowGivenEnergyInflow

This function evaluates to Outflow from a LevelPowerReservoir with the given Energy and Inflow at the specific timestep.

 

Description

The outflow from a LevelPowerReservoir.

Type

NUMERIC

Arguments

 

 

1

OBJECT

the reservoir object for which to calculate

(must be a LevelPowerReservoir)

2

NUMERIC

the energy value

3

NUMERIC

the inflow value

4

DATETIME

the timestep at which to calculate

Evaluation

This function behaves identically to the solution of the LevelPowerReservoir in simulation.

Comments

This function assumes that the LevelPowerReservoir has solved for all the timesteps prior to the date specified in argument 4. This is necessary because the solution requires previous storage, inflow, and energy. This information is retrieved from slots on the object at timesteps prior to the date specified in argument 4. If any of this information is missing, an error is posted and the rule fails. If this function is called on the first timestep, the initial input data are used. These data are already required for the LevelPowerReservoir to dispatch in simulation mode.

Side flows are automatically considered by this function. These 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.

 
SolveOutflowGivenEnergyInflow(%"HooverDam", HooverDam.Energy[], HooverDam.Inflow[], @"t")
SolveOutflowGivenEnergyInflow(%"HooverDam", 20.0 "MWH", 1000.0 "cfs",
@"t")
 
16.342 "cms"