Setting a Release Value based on Conditions on a Specific Date in HEC-ResSim

This post demonstrates the use of state variables to set a maximum release from a dam based on conditions on a specific date.

The first state variable that I created is named "relcode".  In this state variable, I am setting a release code based on the pool elevation on 02 April.  This code can be either 1, 2, or 3.  The code remains at its current value if the date is not 02 April.


The second state variable is named "maxrel".  In this state variable, I receive the value of "relcode".  Based on that value, I then select the maximum release from the list within the state variable.


Since I initialized "relcode" to a value of 1, the maximum release is 400 cfs until the computation on 02 April occurs.  Once this occurs, the pool elevation is high enough to allow for a release of 1,100 cfs.  The use of the state variable in the rule set and the results of the simulation are shown below.


The release is shown by the green line on the bottom plot.  


This is a simple demonstration on setting and holding a release based on the conditions at a given time step.  Caution should be exercised in implementing this type of rule.  In the example above, it should be noted that the maximum release would be held until 02 April occurs again.  If this is the desired operation, the rules are sufficient; however, if it is not, additional rules would need to be written to incorporate the rules of operation.

Comments