EPANET


EPANET is a public domain, water distribution system modeling software package developed by the United States Environmental Protection Agency's Water Supply and Water Resources Division. It performs extended-period simulation of hydraulic and water-quality behavior within pressurized pipe networks and is designed to be "a research tool that improves our understanding of the movement and fate of drinking-water constituents within distribution systems". EPANET first appeared in 1993.
EPANET 2 is available both as a standalone program and as an open-source toolkit. Its computational engine is used by many software companies that developed more powerful, proprietary packages, often GIS-centric. The EPANET ".inp" input file format, which represents network topology, water consumption, and control rules, is supported by many free and commercial modeling packages. Therefore, it is arguably considered as the industry standard.

Features

EPANET provides an integrated environment for editing network input data, running hydraulic and water quality simulations, and viewing the results in a variety of formats. EPANET provides a fully equipped and extended period of hydraulic analysis that can handle systems of any size. The package also supports the simulation of spatially and temporally varying water demand, constant or variable speed pumps, and the minor head losses for bends and fittings. The modeling provides information such as flows in pipes, pressures at junctions, propagation of a contaminant, chlorine concentration, water age, and even alternative scenario analysis. This helps to compute pumping energy and cost and then model various types of valves, including shutoffs, check pressure regulating and flow control.
EPANET’s water quality modeling functionality allows users to analyze the movement of a reactive or non-reactive tracer material which spreads through the network over time. It rates the reactive material as is grows, tracks the percentage of flow from the given nodes. The package employs the global reaction rate coefficient which can be modified on a pipe-by-pipe basis. The storage tanks can be modeled as complete mix, plug flow or two-compartment reactors.
The visual network editor of EPANET simplifies the process of building piping network models and editing their properties. These various types of data reporting visualization tools are used to assist to analyze the networks, which include the graphics views, tabular views, and special reports.

Hydraulic simulation

Headloss in pipe segments

EPANET hydraulics engine computes headlosses along the pipes by using one of the three formulas:
Since the pipe segment headloss equation is used within the network solver, the formula above is selected for the entire model.

Head-flow Curves of Pumps

Within EPANET, pumps are modeled using a head-flow curve, which defines the relationship between hydraulic head imparted to the system by the pump and flow conveyed by the pump. The model calculates the flow conveyed by the pump element for a given system head condition based on this curve. EPANET can also model a pump as a constant power input, effectively adding a given amount of energy to the system downstream of the pump element.

Network solver

The network hydraulics solver employed by EPANET uses the "Gradient Method" first proposed by Todini and Pilati, which is a variant of Newton-Raphson method.

Water-quality simulation

EPANET includes the capability to model water age and predict flow of non-reactive and, under simplified conditions, reactive materials. This capability is frequently used to predict chlorine residuals within water distribution systems. While the internal water quality simulation capabilities only evaluates decay or growth of a single constituent, an extension is available, which allows modeling of interactions between constituents.

EPANET Toolkit

EPANET's computational engine is available for download as a separate dynamic link library for incorporation into other applications. The source code for EPANET 2 is available on the EPA's EPANET website.
In 2012 the EPANET toolkit, written in C, was rewritten in Java in a more object-oriented style. The code in Java is available on Github: https://github.com/Baseform/Baseform-Epanet-Java-Library.

Compatibility

EPANET uses a binary file format, but also includes the capability for importing and exporting data in dxf, metafile, and ASCII file formats. EPANET's ASCII file format is called an input file within EPANET, and uses a file extension ".inp". The input file can include data describing network topology, water consumption, and control rules, and is supported by many free and commercial modeling packages.
While EPANET is used as the computational engine for most water distribution system models, most models are developed and maintained in hydraulic modeling packages based on EPANET's computational engine. Some of the major hydraulic modeling packages are: