OpenWaterAnalytics / EPANET

The Water Distribution System Hydraulic and Water Quality Analysis Toolkit
MIT License
273 stars 203 forks source link

API lacks a means to retrieve emitter flow #738

Closed LRossman closed 11 months ago

LRossman commented 1 year ago

The EN_getnodevalue API function with EN_DEMANDas 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_getnodevaluewill return the value in the existing EmitterFlowarray (in the Hydraulstruct).

LRossman commented 11 months ago

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