OpenWaterAnalytics / epanet-python

python wrapper for epanet library
76 stars 40 forks source link

Set Head for Reservoir #93

Open pajarrige opened 10 months ago

pajarrige commented 10 months ago

The function setnodevalue does not accept property EN_HEAD for a node of type EN_RESERVOIR (Error 251: function call contains invalid parameter code). It seems that the only way to set a reservoir head is using EN_ELEVATION. This works fine but is not consistent with the reservoir documentation (reservoir attribute is head, not elevation). Maybe a specific function needed ?