StorageToAreaAtDate

This function performs a lookup in the Reservoir object’s Elevation Volume Table or based on a given storage and datetime and computes the corresponding pool elevation. The function then uses this pool elevation for a lookup in the Reservoir’s Elevation Area Table or and evaluates to the corresponding surface area.

This function must be used when the method or is selected. Otherwise, the StorageToArea function can be used and no DATETIME argument is required.

Description

Find the surface area 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.

Then, the storage argument is looked up in the appropriate storage column to determine the elevation from the Pool Elevation 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.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 Area Table is used.

Then, the computed pool elevation is looked up in the Pool Elevation column to determine the surface area 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 AND Elevation Area Table or Elevation Area Table Time Varying , the function aborts the run with an error.

 
StorageToAreaAtDate(%"Lake Mead", 10520217087.2 [m3], @”t”)
 
634547087.2 [m2]