The EPANET-Matlab Class
is an open-source software which operates within the Matlab environment, for providing a programming interface for the latest version of EPANET, a hydraulic and quality modeling software created by the US EPA, with Matlab, a high-level technical computing software. The goal of the Matlab Class is to serve as a common programming framework for research and development in the growing field of smart water networks.
The EPANET-Matlab Class
features easy to use commands/wrappers for viewing, modifying, simulating and plotting results produced by the EPANET libraries.
- Matlab
- EPANET The OpenWaterAnalytics (OWA) EPANET version is recommended instead of the one provided by the EPA.gov website, as a number of bugs have been fixed in the OWA version.
Download the folder Download ZIP
, set the run path in Matlab within the saved folder, and run TEST.m
. This will execute all the commands which have been implemented in the Class.
Example:
d=epanet('Net1.inp')
d.getNodeCount
d.getNodeElevations
To fix a bug Fork
the EPANET-Matlab Class
, Edit
the code and make the appropriate change, and then Pull
it so that we evaluate it.
Keep in mind that some bugs may exist in the EPANET
libraries, in case you are not receiving the expected results.
EPANET
: Public DomainEPANET-MSX
: GNU Lesser General Public LicenseEPANET-Matlab Class
: EUPL
- Marios Kyriakou
- Demetrios Eliades
The EPANET-Matlab Class
is based/inspired on the EPANET-Matlab Toolkit as well as the OpenWaterAnalytics EPANET-Matlab Wrappers