ElevationToStorageAtDate

This function performs a lookup in the Reservoir object’s Elevation Volume Table or based on a given elevation and datetime and evaluates to the corresponding volume. This function must be used when the method is selected. Otherwise, the ElevationToStorage function can be used and no DATETIME argument is required.

Description

Find the volume corresponding to a reservoir’s elevation.

Type

NUMERIC

Arguments

Type

Meaning

1

OBJECT

reservoir object

2

NUMERIC

pool elevation

3

DATETIME

the datetime at which to do the conversion

Evaluation

On the specified reservoir object argument, if the method is selected, , the function will reference the table. The function will select the appropriate column to use based on the datetime argument. On timesteps that exactly match a modification date, the previous column is used. The relationship changes at the end of that timestep and is taken into account when the reservoir dispatches. For this algorithm, the previous column relationship is used.

Otherwise, the Elevation Volume Table is used and the datetime is ignored.

Then, the pool elevation argument is looked up in the Pool Elevation column to determine the Volume from the appropriate column. If the exact elevation is not in the table, the lookup performs a linear interpolation between the two nearest bounding elevations and their corresponding surface areas.

Mathematical Expression

 

 

Comments

If the object is not a reservoir, or the reservoir does not have an Elevation Volume Table or Elevation Volume Table Time Varying , the function aborts the run with an error.

 
ElevationToStorageAtDate(%"Lake Mead", 1210.03 "ft", @”t”)
 
634547087.2 [m3]