EPyT
EPyT copied to clipboard
Unable to assign GPV curve to GPV valve
Currently unable to add a GPV curve to GPV Link when creating new '.inp' file. After creating an '.inp', an error is thrown when trying to reload the network to run a simulation.
Looking through epyt epanet class code, there doesn't appear to be a link parameter assigned to EN_GPV_CURVE? (http://wateranalytics.org/EPANET/group___enumerations.html#ga84af78c42cef7c16a513fbdba3b7f4ed) This may not be a function in the current epanet version as there appears to be some fixes addressing this in the current epanet dev branch. https://github.com/OpenWaterAnalytics/EPANET/blob/dev/ReleaseNotes2_3.md
Current work around:
- set desired link as a PRV and update in EPANET2.2 manually.
- manually change the '.inp' file in notepad and/or with python script. However, this not suitable if wanting to use api directly.
Any help would be appreciated.