Skip to content

Unable to assign GPV curve to GPV valve #33

@brendanjosey

Description

@brendanjosey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions