SolveSlopeStorageGivenInflowHW

This function is used to solve a Slope Power Reservoir object when inflow and pool elevation are known. A LIST is returned which contains the resulting outflow as the first argument and the resulting storage as the second argument.

Description

List containing the resulting outflow and the resulting storage value

Type

LIST {NUMERIC, NUMERIC}

Arguments

Type

Meaning

1

OBJECT

the object on which to perform the calculations (must be a Slope Power Reservoir)

2

NUMERIC

the inflow value

3

NUMERIC

the pool elevation value

4

DATETIME

the timestep at which to calculate

Evaluation

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

Comments

This function assumes that the Slope Power Reservoir has solved (through simulation) for all timesteps prior to the date specified in argument 4. This is necessary because the solution requires previous inflow, outflow, storage and pool elevation data. 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 is used. This data is already required for the Slope Power Reservoir to dispatch in simulation mode.

 
SolveSlopeStorageGivenInflowHW(%"FtLoudoun", FtLoudoun.Inflow[], FtLoudoun.Pool
Elevation[], @"t")
SolveSlopeStorageGivenInflowHW(%"FtLoudoun", 100.0 "cfs", 240.45 "ft",
@"t")
 
{16.342 "cms", 123348183.75 "m3"}