USEPA / WNTR

An EPANET compatible python package to simulate and analyze water distribution networks under disaster scenarios.
Other
310 stars 177 forks source link

GPV Setting #75

Open Skulldron opened 5 years ago

Skulldron commented 5 years ago

Hello, I have problem with Epanet Simulation of network, which contains a GPV. In this network GPV has a string setting, which is a reference to defined headloss curve. I get EPANET Error 200 as I guess only float value is accepted. Any ideas of how to make it work? I would appreciate all suggestions ;)

Heres the exact error code:

  File "C:\DEV\Python\lib\site-packages\wntr\sim\epanet.py", line 81, in run_sim

  File "C:\DEV\Python\lib\site-packages\wntr\epanet\toolkit.py", line 187, in EN
open
  File "C:\DEV\Python\lib\site-packages\wntr\epanet\toolkit.py", line 156, in _e
rror
wntr.epanet.toolkit.EpanetException: EPANET Error 200

And here's the inp section with GPV

;ID                 Node1               Node2               Diameter        Type    Setting         MinorLoss   
 967                16_71               valve           55.4            GPV     head_curve              0               ;
pshassett commented 5 years ago

Hi @Skulldron. Assuming your head loss curve "head_curve" is defined according to the EPANET manual guidelines, there shouldn't be an issue there. Be sure to read the manual and check appendix C2 that covers input file format.

According to your valve's definition, your GPV is a link connecting nodes "16_71" and "valve" with a diameter of 55.4. Make sure that these are valid nodes and the intended function of the valve.

saramille commented 5 years ago

It says PSV, PBV, and GPV values in the [VALVES] section are not supported in WNTR.