Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to assign GPV curve to GPV valve #33

Open
brendanjosey opened this issue Feb 2, 2024 · 0 comments
Open

Unable to assign GPV curve to GPV valve #33

brendanjosey opened this issue Feb 2, 2024 · 0 comments

Comments

@brendanjosey
Copy link

brendanjosey commented Feb 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant