OpenWaterAnalytics/EPANET

API lacks a means to retrieve emitter flow

Closed this issue · 1 comments

The EN_getnodevalue API function with EN_DEMAND as its property argument retrieves a node's current demand flow which consists of both the regular consumer demand and any emitter flow associated with the node. It would be useful to also be able to retrieve just the emitter flow, especially when using emitters to model fire flow or leakage. This is easily accomplished by adding a new node property named EN_EMITTERFLOW for which EN_getnodevalue will return the value in the existing EmitterFlow array (in the Hydraul struct).

This issue was addressed by PR #739 and can be closed.