SolveSlopeStorageGivenInflowOutflow

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

Description

List containing the resulting pool elevation 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 outflow 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.

 
SolveSlopeStorageGivenInflowOutflow(%"FtLoudoun", FtLoudoun.Inflow[],
FtLoudoun.Outflow[], @"t")
SolveSlopeStorageGivenInflowOutflow(%"FtLoudoun", 100.0 "cfs", 110.45 "cfs",
@"t")
 
{1253.2 "m", 123348183.75 "m3"}