TargetSlopeHWGivenInflow

This function computes the outflow required to meet a specified Pool Elevation at a specified future timestep. It performs a lumped mass balance across several timesteps specified as a target range. This function should be used with Slope Power Reservoirs.

Description

Computes the outflow required to meet a target pool elevation

Type

NUMERIC

Arguments

Type

Meaning

1

OBJECT

the reservoir on which to perform the calculation

2

DATETIME

the target begin date

3

DATETIME

the target date (target end date)

4

LIST

the inflow values over the target range (there should be one value for each date in the target range)

5

NUMERIC

the target pool elevation value

6

NUMERIC

the previous pool elevation value (before the target begin date)

7

NUMERIC

the previous storage value (before the target begin date)

Evaluation

This function takes the target pool elevation value and converts it to a storage. This is an iterative procedure because there is not a one to one relationship between pool elevation and storage on a slope power reservoir. Once the target storage value has been computed, the change in storage over the target range is determined. Since the total inflow volume over the target range is given as an argument, the total outflow volume can be computed (side flows and hydrologic inflows are considered in this computation). The total outflow volume is then converted to a flow rate and divided by the number of timesteps in the target range. The result is a single timestep outflow value. This value needs to be set on the outflow slot for every timestep in the target range in order to meet the target pool elevation.

Mathematical Expression
 
Comments

 

 
TargetSlopeHWGivenInflow(Lake Mead, @"24:00 January 1, 2002",
@"24:00 January 5, 2002",
{7500 "cfs", 7750 "cfs", 8125 "cfs", 8200 "cfs", 7900 "cfs"}, 1200 "ft", Lake Mead.Pool Elevation[@"24:00 December 31, 2002",
Lake Mead.Storage[@"24:00 December 31, 2002")
 
23.43 "cms"