Before developing a scripted rule in HEC-ResSim, I test the Python logic in an outside editor. In this post, I show the testing of Python logic for determining a flow value based on a pool elevation. Once I know that the Python logic is functioning correctly, I then add the code to HEC-ResSim and modify it for use in HEC-ResSim.
In a follow-up post, I will show the addition of this code to HEC-ResSim along with an examination of the results.
The code shown below is documented with the # symbol. The # is only for documentation and does not impact the results of the code.
I also tested it with a pool elevation value of 80. This result should return a release of 1600.