EPANET icon indicating copy to clipboard operation
EPANET copied to clipboard

Reporting Tank Status

Open LRossman opened this issue 6 years ago • 5 comments

PR #505 has added a Tank Overflow feature to the EPANET engine that might require some updating of the way that a tank's change in status is described in the Status report. Currently we use FILLING, EMPTYING and CLOSED (without stating whether the tank is full or empty). I propose we change these to FILLING, EMPTYING, OVERFLOWING, OFFLINE, OFFLINE-FULL, and OFFLINE-EMPTY.

In addition, we could add a new tank property, EN_TANKSTATUS, that could be retrieved using the EN_getnodevalue() API function. It would have the same values as listed above. I realize that these states could always be checked for in code by using EN_getnodevalue() on EN_TANKLEVEL and EN_DEMAND, but EN_TANKSTATUS would make the job easier.

LRossman avatar Jun 19 '19 15:06 LRossman

I totally agree.

@LRossman can you just explain what you mean by the OFFLINE cases? It is when the tank is closed?

eladsal avatar Jun 20 '19 06:06 eladsal

I suggested that OFFLINE be used to describe a condition where the tank is neither filling nor emptying (i.e., when its EN_DEMAND value is 0). It might not be the best choice of words, since it implies that the tank has been disconnected from the network which is not the case (e.g., an example of a truly offline tank is one that is undergoing a cleaning or other maintenance). Perhaps LEVEL is a better choice, or we could stay with CLOSED.

LRossman avatar Jun 20 '19 12:06 LRossman

In the interest of avoiding further delay in finishing release 2.2, PR #505 was updated to have the Status Report state when a tank begins overflowing (in addition to its current practice of reporting when a tank begins filling, emptying or is closed). The more detailed reporting of a tank's status as discussed in this issue can be a future enhancement.

LRossman avatar Jun 20 '19 19:06 LRossman

sounds like this issue is resolved, yes?

samhatchett avatar Nov 14 '19 13:11 samhatchett

Resolved in the sense that it remains a feature to consider adding in a future version of the Toolkit.

LRossman avatar Nov 14 '19 15:11 LRossman