VSP efficiency + retrieving efficiency directly (#81)

* VSP efficiency + retrieving efficiency directly

Changes to the getenergy function (in hydraulic.c) to compute the
correct efficiency of variable speed pumps according to the affinity
laws.
Changes to epanet2.h and epanet.c are for retrieving the efficiency of
pumps throught the ENgetlinkvalue function (code 16 for efficiency)

* Update epanet.c

* VSP efficiency (incl. bas and vb file)

- bas and vb file have been updated with code 16 for efficiency.
- Retrieving efficiency case has been improved.
This commit is contained in:
AngelaMarchi
2016-09-10 02:27:16 +09:30
committed by Sam Hatchett
parent 8b4a03d349
commit 1d071d19ba
5 changed files with 15 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ Global Const EN_SETTING = 12
Global Const EN_ENERGY = 13
Global Const EN_LINKQUAL = 14 'ES
Global Const EN_LINKPATTERN = 15
Global Const EN_EFFICIENCY = 16
Global Const EN_DURATION = 0 ' Time parameters
Global Const EN_HYDSTEP = 1