ElevationToMaxRegulatedSpill

This function performs a lookup in a Reservoir object’s Regulated Spill Table based on a given elevation and evaluates to the corresponding maximum regulated spill.

Description

Find the maximum regulated spill at a given reservoir elevation.

Type

NUMERIC

Arguments

Type

Meaning

1

OBJECT

reservoir object

2

NUMERIC

pool elevation

3

DATETIME

datetime context for unit conversions

Evaluation

The pool elevation argument is looked up in the Pool Elevation column, of the Regulated Spill Table, of the reservoir object argument, to determine the Max Regulated Spill . If the exact elevation is not in the table, the lookup performs a linear interpolation between the two nearest bounding elevations and their corresponding maximum regulated spills.

Mathematical Expression

 

Comments

If the object is not a reservoir, or the reservoir does not have a Regulated Spill Table , the function aborts the run with an error ( RegulatedSpillCalc , RegPlusUnregSpillCalc , RegPlusBypassSpillCalc , RegPlusBypassPlusUnregSpillCalc , or Bypass, Reg, and Unreg Spill must be selected as the Spill Calculation Category selected Method).

 
ElevationToMaxRegulatedSpill(%"Lake Mead", 1210.03 "ft",
@"t")
 
1783.25 [cms]