Get status of PRVs with EPANET-Matlab toolkit


#1

Hello all,

When I use d.getLinkStatus for status of PRVs, I get 0 (closed) or 1 (open) for PRVs while in EPANET software we can get three status for PRVs after hydraulic solving. These status are Open (means Inactive or fully open), Active and Closed.
How I distinguish the status of Open with Active in PRVs with EPANET-Matlab toolkit?

Thank you all,
Alireza


#2

There is only two options : 1, PRV is active, 0, PRV is non- active. In Epanet interface, Option " open" Epanet is assuming that there is no PRV, the link is behaving like a pipe.


#3

This is not a Matlab issue but an EPANET one. The EPANET ENgetlinkvalue will only return OPEN or CLOSED for links status. Can you please open an issue for this on GitHub so we can think if we can report the exact states on the links? This should be easy I think.


#4

Dear karwanAli,
Yes, there is two option in answer of d.getLinkStatus.
1, Active or Open(means Inactive or fully open)
0, Closed
I want to distinguish Active or Open when I get 1 in my code.


#5

Thanks eladsal,
What you mean about report the exact states on the links? Can you give an example؟


#6

Replied on GH.