This is an extension of the getwdsdata.m originally created by Philip Jonkergouw in 2007.
It captures most of the commands allowed by EPANET, and effort was given to be as generic as possible.
*** You need to add the EPANET.DLL file in the folder for this to work properly - you can download it from the EPA website: http://www.epa.gov/nrmrl/wswrd/dw/epanet.html ***
*** There seems to be an bug in setdata.m. To solve this use
[errorcode]=calllib('epanet2','ENsetcontrol', ControlIndex, ControlType, LinkIndex, Setting, NodeINdex, Level)
Details on the parameters can be found in the toolkit.chm file, section ENsetcontrol. *** |