EPyT icon indicating copy to clipboard operation
EPyT copied to clipboard

Unable to assign GPV curve to GPV valve

Open brendanjosey opened this issue 1 year ago • 0 comments

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:

  1. set desired link as a PRV and update in EPANET2.2 manually.
  2. 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.

brendanjosey avatar Feb 02 '24 05:02 brendanjosey