EPANET Toolkit adaption to GNU/Linux
Manuel Lֳ³pez-Ibֳ¡ֳ±ez, currently at the School of the Built Environment of Napier University in Edinburgh (UK), adapted the EPANET Toolkit version 2.00.10 to GNU/Linux.
A number of new features were added:
- Calculation of pump switches
- Saves time of day (in seconds) when a pump changes its status. The vector of pump scheduling is obtained using
ENgetlinkvalue()
ENgetnodevalue()
can return the initial (EN_INITVOL
) and current volume (EN_VOLUME
) of a tank.ENgetcount()
returns the number of pumps and the number of reservoirs in the network.- When
ENgetcount(EN_CONTROLCOUNT, &count)
, a control may be added dynamically callingENsetcontrol()
withcindex = count + 1
New toolkit functions:
ENgettotalenergycost()
: calculates total energy cost per pump plus demand cost.ENgetpumpswitches()
: number of switches of a pump.ENaddleveltrig()
: adds rule with the following format
IF SYSTEM CLOCKTIME >= start_time (in seconds)
AND SYSTEM CLOCKTIME < stop_time (in seconds)
AND TANK id(tank_index) LEVEL [BELOW|ABOVE] level
THEN PUMP id(pump_index) STATUS IS statusENgetminstoptime()
: returns the shortest time interval (in seconds) that a certain pump was not active.ENgettankindex()
andENgetpumpindex()
: allow to find a pump or tank without knowing its id or index.ENaddpattern()
adds a new pattern to the database.
This version is highly experimental but Manuel is doing a serious effort to document the changes. He is using a Control Version System (CVS) to keep track of the development, so this version is open to contributions from anyone. Manuel is hoping to obtain feedback in the form of code, testing, reports, acknowledge or just complains. 🙂
For more information, and download, please see Manuel Lֳ³pez-Ibֳ¡ֳ±ez web page.
How could I get Epanet version 2.00.10? please help