StorageToElevationAtDate

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 StorageToElevation function can be used and no DATETIME argument is required.

Description

Finds the elevation corresponding to a reservoir’s storage.

Type

NUMERIC

Arguments

Type

Meaning

1

OBJECT

reservoir object

2

NUMERIC

storage

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 timestep’s relationship is used.

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

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

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.

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