epanet_userss_manual_2.2.0
epanet_userss_manual_2.2.0
2 User Manual
Lew Rossman
Hyoungmin Woo
Michael Tryby
Feng Shang
Robert Janke
Terranna Haxton
CONTENTS
Disclaimer i
Acknowledgments ii
Abbreviations iii
1 Introduction 1
1.1 What is EPANET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Hydraulic Modeling Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Water Quality Modeling Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Steps in Using EPANET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
4 EPANET’s Workspace 32
4.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4.2 Menu Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4.3 Toolbars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4.4 Status Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.5 Network Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.6 Data Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.7 Map Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.8 Property Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
i
4.9 Program Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
8 Analyzing a Network 74
8.1 Setting Analysis Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
8.2 Running an Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
8.3 Troubleshooting Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
9 Viewing Results 82
9.1 Viewing Results on the Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
9.2 Viewing Results with a Graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
9.3 Viewing Results with a Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
9.4 Viewing Special Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
References 120
iv
6.6 Reshaping a link. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
6.7 Group edit dialog. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
3.1 Pipe Headloss Formulas for Full Flow (for headloss in feet and flow rate in cfs) . . . . . . . . . . . . . . . . . . 18
3.2 Roughness Coefficients for New Pipe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3 Minor Loss Coefficients for Selected Fittings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.4 Example Time Pattern Multipliers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.5 Actual Demands at Node . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.6 Examples of Simple Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.7 Special Cases of Well-known Kinetic Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3.8 Wall Reaction Formulas Related to Headloss Formula . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
vi
8.2 Typical Values for Status Checking Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
8.3 Water Quality Options for Water Quality Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
8.4 Reaction Options for Water Quality Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
8.5 Times Options for Hydraulic and Water Quality Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
8.6 Energy Options for Hydraulic Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
viii
DISCLAIMER
This User Manual is an updated version of the EPANET 2 Users Manual (EPA/600/R-00/057) written by Lewis
Rossman in 2000. The EPANET 2 software was developed by the United States Environmental Protection Agency
(EPA).
EPANET Version 2.2 includes contributions from EPA and individuals outside the United States Government. It
has been subjected to review by the Office of Research and Development and approved for publication. Approval
does not signify that the contents reflect the views of the Agency, nor does mention of trade names or commercial
products constitute endorsement or recommendation for use.
Execution of any EPANET installation program, and modification to system configuration files must be made at the
user’s own risk. Neither the U.S. EPA nor the program author(s) can assume responsibility for program modification,
content, output, interpretation, or usage.
EPANET installation programs have been extensively tested and verified. However, as for all complex software,
these programs may not be completely free of errors and may not be applicable for all cases. In no event will the
U.S. EPA be liable for direct, indirect, special, incidental, or consequential damages arising out of the use of the
programs and/or associated documentation.
i
ACKNOWLEDGMENTS
The U.S. Environmental Protection Agency gratefully acknowledges all the individuals (OpenWaterAnalytics, Beta
Testers, and EPA technical reviewers) that assisted with the EPANET 2.2.0 release and the technical review and
testing of the software and user manual.
ii
ABBREVIATIONS
iii
EPANET 2.2 USER MANUAL OVERVIEW
iv
EPANET USERS MANUAL, Release 2.2
Units of Measurement provides a table of units of expression for all design and computed parameters.
Error Messages is a list of error message codes and their meanings that the program can generate.
Command Line EPANET describes how EPANET can be run from a command line prompt within a DOS window, and discusses
the format of the files that are used with this mode of operation.
v
CHAPTER
ONE
INTRODUCTION
EPANET is a computer program that performs extended period simulation of hydraulic and water quality behavior
within pressurized pipe networks. A network consists of pipes, nodes (pipe junctions), pumps, valves and storage
tanks or reservoirs. EPANET tracks the flow of water in each pipe, the pressure at each node, the height of water in
each tank, and the concentration of a chemical species throughout the network during a simulation period comprised
of multiple time steps. In addition to chemical species, water age and source tracing can also be simulated.
EPANET is designed to be a research tool for improving our understanding of the movement and fate of drinking
water constituents within distribution systems. It can be used for many different kinds of applications in distribution
systems analysis. Sampling program design, hydraulic model calibration, chlorine residual analysis, and consumer
exposure assessment are some examples. EPANET can help assess alternative management strategies for improving
water quality throughout a system. These can include:
• Altering source utilization within multiple source systems
• Altering pumping and tank filling/emptying schedules
• Use of satellite treatment, such as re-chlorination at storage tanks
• Targeted pipe cleaning and replacement
Running under Windows, 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. These include color-coded
network maps, data tables, time series graphs, and contour plots.
Full-featured and accurate hydraulic modeling is a prerequisite for doing effective water quality modeling. EPANET
contains a state-of-the-art hydraulic analysis engine that includes the following capabilities:
• Places no limit on the size of the network that can be analyzed
• Computes friction headloss using the Hazen-Williams, Darcy-Weisbach, or Chezy-Manning formulas
• Includes minor head losses for bends, fittings, etc.
• Models constant or variable speed pumps
• Computes pumping energy and cost
• Models various types of valves including shutoff, check, pressure regulating, and flow control valves
• Allows storage tanks to have any shape (i.e., diameter can vary with height)
1
EPANET USERS MANUAL, Release 2.2
• Considers multiple demand categories at nodes, each with its own pattern of time variation
• Models pressure driven flow issuing from emitters (sprinkler heads)
• Models pressure driven demand at nodes
• Can base system operation on both simple tank level or timer controls and on complex rule-based controls
In addition to hydraulic modeling, EPANET provides the following water quality modeling capabilities:
• Models the movement of a non-reactive tracer material through the network over time
• Models the movement and fate of a reactive material as it grows (e.g., a disinfection by-product) or decays
(e.g., chlorine residual) with time
• Models the age of water throughout a network
• Tracks the percent of flow from a given node reaching all other nodes over time
• Models reactions both in the bulk flow and at the pipe wall
• Uses n-th order kinetics to model reactions in the bulk flow
• Uses zero or first order kinetics to model reactions at the pipe wall
• Accounts for mass transfer limitations when modeling pipe wall reactions
• Allows growth or decay reactions to proceed up to a limiting concentration
• Employs global reaction rate coefficients that can be modified on a pipe-by-pipe basis
• Allows wall reaction rate coefficients to be correlated to pipe roughness
• Allows for time-varying concentration or mass inputs at any location in the network
• Models storage tanks as being either complete mix, plug flow, or two-compartment reactors
By employing these features, EPANET can study such water quality phenomena as:
• Blending water from different sources
• Age of water throughout a system
• Loss of chlorine residuals
• Growth of disinfection by-products
• Tracking contaminant propagation events
One typically carries out the following steps when using EPANET to model a water distribution system:
1. Draw a network representation of your distribution system (see Section 6.2) or import a basic description of the
network placed in a text file (see Section 11.4).
2. Edit the properties of the objects that make up the system (see Section 6.4).
3. Describe how the system is operated (see Section 6.5).
4. Select a set of analysis options (see Section 8.1).
2
EPANET USERS MANUAL, Release 2.2
3
CHAPTER
TWO
This chapter provides a tutorial on how to use EPANET. If you are not familiar with the components that comprise a water
distribution system and how these are represented in pipe network models you might want to review the first two sections of The
Network Model chapter first.
EPANET Version 2.2 is designed to run under the Windows 7/8/10 operating system of an Intel-compatible personal
computer. It is distributed as a single installer package file, epanet2.2_setup.exe. To install EPANET:
1. Select Run from the Windows Start menu.
2. Enter the full path and name of the epanet2.2_setup.exe file or click the Browse button to locate it on your
computer.
3. Click the OK button type to begin the setup process.
The setup program will ask you to choose a folder (directory) where the EPANET files will be placed. The default
folder is c:\Program Files (x86)\EPANET 2.2. After the files are installed your Start Menu will have a new item
named EPANET 2.2. To launch EPANET simply select this item off of the Start Menu, then select EPANET 2.2 from
the submenu that appears. (The name of the executable file that runs EPANET under Windows is epanet2w.exe.)
Should you wish to remove EPANET from your computer, you can use the following procedure:
1. Open Control Panel.
2. Double-click on the Add/Remove Programs or Uninstall a program item.
3. Select EPANET 2.2 from the list of programs that appears.
4. Click the Add/Remove button or right click and select uninstall.
In this tutorial we will analyze the simple distribution network shown in Fig. 2.1 below. It consists of a source
reservoir (e.g., a treatment plant clearwell) from which water is pumped into a two-loop pipe network. There is also
a pipe leading to a storage tank that floats on the system. The ID labels for the various components are shown in the
figure. The nodes in the network have the characteristics shown in Table 2.1. Pipe properties are listed in Table 2.2.
In addition, the pump (Link 9) can deliver 150 ft of head at a flow of 600 gpm, and the tank (Node 8) has a 60-ft
diameter, a 3.5-ft water level, and a maximum level of 20 feet.
4
EPANET USERS MANUAL, Release 2.2
Our first task is to create a new project in EPANET and make sure that certain default options are selected. To begin,
launch EPANET, or if it is already running select File >> New (from the menu bar) to create a new project. Then
select Project >> Defaults to open the dialog form shown in Fig. 2.2. We will use this dialog to have EPANET
automatically label new objects with consecutive numbers starting from 1 as they are added to the network. On
the ID Labels page of the dialog, clear all of the ID Prefix fields and set the ID Increment to 1. Then select the
Hydraulics page of the dialog and set the choice of Flow Units to GPM (gallons per minute). This implies that US
Customary units will be used for all other quantities as well (length in feet, pipe diameter in inches, pressure in psi,
etc.). Also select Hazen - Williams (H-W) as the headloss formula. If you wanted to save these choices for all future
new projects you could check the Save box at the bottom of the form before accepting it by clicking the OK button.
Next we will select some map display options so that as we add objects to the map, we will see their ID labels and
5
EPANET USERS MANUAL, Release 2.2
symbols displayed. Select View >> Options to bring up the Map Options dialog form. Select the Notation page
on this form and check the settings shown in Fig. 2.3 below. Then switch to the Symbols page and check all of the
boxes. Click the OK button to accept these choices and close the dialog.
Finally, before drawing our network we should insure that our map scale settings are acceptable. Select View >>
Dimensions to bring up the Map Dimensions dialog. Note the default dimensions assigned for a new project. These
settings will suffice for this example, so click the OK button.
We are now ready to begin drawing our network by making use of our mouse and the buttons contained on the Map
Toolbar shown below. (If the toolbar is not visible then select View >> Toolbars >> Map).
First we will add the reservoir. Click the Reservoir button . Then click the mouse on the map at the location of
the reservoir (somewhere to the left of the map).
Next we will add the junction nodes. Click the Junction button and then click on the map at the locations of
nodes 2 through 7.
Finally add the tank by clicking the Tank button and clicking the map where the tank is located. At this point
the Network Map should look something like the drawing in Fig. 2.4.
Next we will add the pipes. Let’s begin with pipe 1 connecting node 2 to node 3. First click the Pipe button
on the Toolbar. Then click the mouse on node 2 on the map and then on node 3. Note how an outline of the pipe is
6
EPANET USERS MANUAL, Release 2.2
7
EPANET USERS MANUAL, Release 2.2
drawn as you move the mouse from node 2 to 3. Repeat this procedure for pipes 2 through 7.
Pipe 8 is curved. To draw it, click the mouse first on Node 5. Then as you move the mouse towards Node 6, click at
those points where a change of direction is needed to maintain the desired shape. Complete the process by clicking
on Node 6.
Finally we will add the pump. Click the Pump button , click on node 1 and then on node 2.
Next we will label the reservoir, pump and tank. Select the Text button on the Map Toolbar and click somewhere
close to the reservoir (Node 1). An edit box will appear. Type in the word SOURCE and then hit the Enter key.
Click next to the pump and enter its label, then do the same for the tank. Then click the Selection button on the
Toolbar to put the map into Object Selection mode rather than Text Insertion mode.
At this point we have completed drawing the example network. Your Network Map should look like the map in Fig.
2.1. If the nodes are out of position you can move them around by clicking the node to select it, and then dragging
it with the left mouse button held down to its new position. Note how pipes connected to the node are moved along
with the node. The labels can be repositioned in similar fashion. To re - shape the curved Pipe 8:
1. First click on Pipe 8 to select it and then click the button on the Map Toolbar to put the map into Vertex
Selection mode.
2. Select a vertex point on the pipe by clicking on it and then drag it to a new position with the left mouse button
held down.
3. If required, vertices can be added or deleted from the pipe by right- clicking the mouse and selecting the
appropriate option from the popup menu that appears.
As objects are added to a project they are assigned a default set of properties. To change the value of a specific
property for an object one must select the object into the Property Editor (Fig. 2.5). There are several different ways
to do this. If the Editor is already visible then you can simply click on the object or select it from the Data page of
the Browser. If the Editor is not visible then you can make it appear by one of the following actions:
• Double-click the object on the map
• Right-click on the object and select Properties from the pop-up menu that appears
• Select the object from the Data page of the Browser window and then click the Browser’s Edit button
Whenever the Property Editor has the focus you can press the F1 key to obtain fuller descriptions of the properties
listed
Let us begin editing by selecting Node 2 into the Property Editor as shown above. We would now enter the elevation
and demand for this node in the appropriate fields. You can use the Up and Down arrows on the keyboard or the
mouse to move between fields. We need only click on another object (node or link) to have its properties appear next
in the Property Editor. (We could also press the Page Down or Page Up key to move to the next or previous object
of the same type in the database.) Thus we can simply move from object to object and fill in elevation and demand
for nodes, and length, diameter, and roughness (C-factor) for links.
For the reservoir you would enter its elevation (700) in the Total Head field. For the tank, enter 830 for its elevation,
4 for its initial level, 20 for its maximum level, and 60 for its diameter. For the pump, we need to assign it a pump
curve (head versus flow relationship). Enter the ID label 1 in the Pump Curve field.
8
EPANET USERS MANUAL, Release 2.2
Next we will create Pump Curve 1. From the Data page of the Browser window, select Curves from the dropdown
list box and then click the Add button . A new Curve 1 will be added to the database and the Curve Editor
dialog form will appear (see Fig. 2.6). Enter the pump’s design flow (600) and head (150) into this form. EPANET
automatically creates a complete pump curve from this single point. The curve’s equation is shown along with its
shape. Click OK to close the Editor.
Having completed the initial design of our network it is a good idea to save our work to a file at this point.
1. From the File menu select the Save As option.
2. In the Save As dialog that appears, select a folder and file name under which to save this project. We suggest
naming the file tutorial.net. (An extension of .net will be added to the file name if one is not supplied.).
3. Click OK to save the project to file.
The project data is saved to the file in a special binary format. If you wanted to save the network data to file as
readable text, use the File >> Export >> Network command instead.
To open our project at some later time, we would select the Open command from the File menu.
We now have enough information to run a single period (or snapshot) hydraulic analysis on our example network.
To run the analysis select Project >> Run Analysis or click the Run button on the Standard Toolbar. (If the
toolbar is not visible select View >> Toolbars >> Standard from the menu bar).
9
EPANET USERS MANUAL, Release 2.2
If the run was unsuccessful then a Status Report window will appear indicating what the problem was. If it ran
successfully you can view the computed results in a variety of ways. Try some of the following:
• Select Node Pressure from the Browser’s Map page and observe how pressure values at the nodes become
color-coded. To view the legend for the color-coding, select View >> Legends >> Node (or right- click on an
empty portion of the map and select Node Legend from the popup menu). To change the legend intervals and
colors, right-click on the legend to make the Legend Editor appear.
• Bring up the Property Editor (double-click on any node or link) and note how the computed results are displayed
at the end of the property list.
• Create a tabular listing of results by selecting Report >> Table (or by clicking the Table button on the
Standard Toolbar). Fig. 2.7 displays such a table for the link results of this run. Note that flows with negative
signs means that the flow is in the opposite direction to the direction in which the pipe was drawn initially.
To make our network more realistic for analyzing an extended period of operation we will create a Time Pattern that
makes demands at the nodes vary in a periodic way over the course of a day. For this simple example we will use a
pattern time step of 6 hours thus making demands change at four different times of the day. (A 1-hour pattern time
step is a more typical number and is the default assigned to new projects.) We set the pattern time step by selecting
Options-Times from the Data Browser, clicking the Browser’s Edit button to make the Property Editor appear (if its
not already visible), and entering 6 for the value of the Pattern Time Step (as shown in Fig. 2.8 below). While we
have the Time Options available we can also set the duration for which we want the extended period to run. Let’s
use a 3-day period of time (enter 72 hours for the Duration property).
10
EPANET USERS MANUAL, Release 2.2
11
EPANET USERS MANUAL, Release 2.2
To create the pattern, select the Patterns category in the Browser and then click the Add button . A new Pattern
1 will be created and the Pattern Editor dialog should appear (see Fig. 2.9). Enter the multiplier values 0.5, 1.3, 1.0,
1.2 for the time periods 1 to 4 that will give our pattern a duration of 24 hours. The multipliers are used to modify
the demand from its base level in each time period. Since we are making a run of 72 hours, the pattern will wrap
around to the start after each 24-hour interval of time.
We now need to assign Pattern 1 to the Demand Pattern property of all of the junctions in our network. We can
utilize one of EPANET’s Hydraulic Options to avoid having to edit each junction individually. If you bring up the
Hydraulic Options in the Property Editor you will see that there is an item called Default Pattern. Setting its value
equal to 1 will make the Demand Pattern at each junction equal Pattern 1, as long as no other pattern is assigned to
the junction.
Next run the analysis (select Project >> Run Analysis or click the button on the Standard Toolbar). For
extended period analysis you have several more ways in which to view results:
• The scrollbar in the Browser’s Time controls is used to display the network map at different points in time. Try
doing this with Pressure selected as the node parameter and Flow as the link parameter.
• The buttons in the Browser can animate the map through time. Click the Forward button to start the
animation and the Stop button to stop it.
• Add flow direction arrows to the map (select View >> Options, select the Flow Arrows page from the Map
Options dialog, and check a style of arrow that you wish to use). Then begin the animation again and note the
change in flow direction through the pipe connected to the tank as the tank fills and empties over time.
• Create a time series plot for any node or link. For example, to see how the water elevation in the tank changes
with time:
1. Click on the tank.
12
EPANET USERS MANUAL, Release 2.2
2. Select Report >> Graph (or click the Graph button on the Standard Toolbar) which will display a
Graph Selection dialog box.
3. Select the Time Series button on the dialog.
4. Select Head as the parameter to plot.
5. Click OK to accept your choice of graph.
Note the periodic behavior of the water elevation in the tank over time (Fig. 2.10).
Next we show how to extend the analysis of our example network to include water quality. The simplest case would
be tracking the growth in water age throughout the network over time. To make this analysis we only have to select
Age for the Parameter property in the Quality Options (select Options-Quality from the Data page of the Browser,
then click the Browser’s Edit button to make the Property Editor appear). Run the analysis and select Age as the
parameter to view on the map. Create a time series plot for Age in the tank. Note that unlike water level, 72 hours
is not enough time for the tank to reach periodic behavior for water age. (The default initial condition is to start all
nodes with an age of 0.) Try repeating the simulation using a 240-hour duration or assigning an initial age of 60
hours to the tank (enter 60 as the value of Initial Quality in the Property Editor for the tank).
Finally we show how to simulate the transport and decay of chlorine through the network. Make the following
changes to the database:
1. Select Options-Quality to edit from the Data Browser. In the Property Editor’s Parameter field type in the word
Chlorine.
2. Switch to Options-Reactions in the Browser. For Global Bulk Coefficient enter a value of -1.0. This reflects the
rate at which chlorine will decay due to reactions in the bulk flow over time. This rate will apply to all pipes in
the network. You could edit this value for individual pipes if you needed to.
3. Click on the reservoir node and set its Initial Quality to 1.0. This will be the concentration of chlorine that
continuously enters the network. (Reset the initial quality in the Tank to 0 if you had changed it.)
Now run the example. Use the Time controls on the Map Browser to see how chlorine levels change by location and
time throughout the simulation. Note how for this simple network, only junctions 5, 6, and 7 see depressed chlorine
13
EPANET USERS MANUAL, Release 2.2
levels because of being fed by low chlorine water from the tank. Create a reaction report for this run by selecting
Report >> Reaction from the main menu. The report should look like Fig. 2.11. It shows on average how much
chlorine loss occurs in the pipes as opposed to the tank. The term “bulk” refers to reactions occurring in the bulk
fluid while “wall” refers to reactions with material on the pipe wall. The latter reaction is zero because we did not
specify any wall reaction coefficient in this example.
We have only touched the surface of the various capabilities offered by EPANET. Some additional features of the
program that you should experiment with are:
• Editing a property for a group of objects that lie within a user- defined area
• Using Control statements to base pump operation on time of day or tank water levels
• Exploring different Map Options, such as making node size be related to value
• Attaching a backdrop map (such as a street map) to the network map
• Creating different types of graphs, such as profile plots and contour plots
• Adding calibration data to a project and viewing a calibration report
• Copying the map, a graph, or a report to the clipboard or to a file
• Saving and retrieving a design scenario (i.e., current nodal demands, pipe roughness values, etc.)
14
CHAPTER
THREE
This chapter discusses how EPANET models the physical objects that constitute a distribution system as well as its operational
parameters. Details about how this information is entered into the program are presented in later chapters. An overview is also
given on the computational methods that EPANET uses to simulate hydraulic and water quality transport behavior.
EPANET models a water distribution system as a collection of links connected to nodes. The links represent pipes,
pumps, and control valves. The nodes represent junctions, tanks, and reservoirs. Fig. 3.1 below illustrates how these
objects can be connected to one another to form a network.
Junctions
Junctions are points in the network where links join together and where water enters or leaves the network. The basic
input data required for junctions are:
• Elevation above some reference (usually mean sea level)
• Water demand (rate of withdrawal from the network)
• Initial water quality
The output results computed for junctions at all time periods of a simulation are:
• Hydraulic head (internal energy per unit weight of fluid)
• Pressure
• Water quality
15
EPANET USERS MANUAL, Release 2.2
𝑞 = 𝐶𝑝𝛾
where 𝑞 = flow rate, 𝑝 = pressure, 𝐶 = discharge coefficient, and 𝛾 = pressure exponent. For nozzles and sprinkler
heads 𝛾 equals 0.5 and the manufacturer usually provides the value of the discharge coefficient in units of gpm/psi
0.5
(stated as the flow through the device at a 1 psi pressure drop).
Emitters are used to model flow through sprinkler systems and irrigation networks. They can also be used to simulate
leakage in a pipe connected to the junction (if a discharge coefficient and pressure exponent for the leaking crack or
joint can be estimated) or compute a fire flow at the junction (the flow available at some minimum residual pressure).
In the latter case one would use a very high value of the discharge coefficient (e.g., 100 times the maximum flow
expected) and modify the junction’s elevation to include the equivalent head of the pressure target. EPANET treats
emitters as a property of a junction and not as a separate network component.
16
EPANET USERS MANUAL, Release 2.2
Note: The pressure-flow relation at a junction defined by an emitter should not be confused with the pressure-
demand relation when performing a pressure driven analysis (PDA). See Pressure Driven Demand for more infor-
mation.
Pipes
Pipes are links that convey water from one point in the network to another. EPANET assumes that all pipes are full
at all times. Flow direction is from the end at higher hydraulic head (internal energy per weight of water) to that at
lower head. The principal hydraulic input parameters for pipes are:
• Start and end nodes
• Diameter
• Length
• Roughness coefficient (for determining headloss)
• Status (open, closed, or contains a check valve)
The status parameter allows pipes to implicitly contain shutoff (gate) valves and check (non-return) valves (which
allow flow in only one direction).
The water quality inputs for pipes consist of:
• Bulk reaction coefficient
• Wall reaction coefficient
These coefficients are explained more thoroughly in Section 3.4 below.
Computed outputs for pipes include:
• Flow rate
• Velocity
• Headloss
• Darcy-Weisbach friction factor
• Average reaction rate (over the pipe length)
• Average water quality (over the pipe length)
The hydraulic head lost by water flowing in a pipe due to friction with the pipe walls can be computed using one of
three different formulas:
• Hazen-Williams formula
• Darcy-Weisbach formula
• Chezy-Manning formula
The Hazen-Williams formula is the most commonly used headloss formula in the US. It cannot be used for liquids
other than water and was originally developed for turbulent flow only. The Darcy-Weisbach formula is the most
theoretically correct. It applies over all flow regimes and to all liquids. The Chezy-Manning formula is more
commonly used for open channel flow.
Each formula uses the following equation to compute headloss between the start and end node of the pipe:
ℎ𝐿 = 𝐴𝑞 𝐵
17
EPANET USERS MANUAL, Release 2.2
where ℎ𝐿 = headloss (Length), 𝑞 = flow rate (Volume/Time), 𝐴 = resistance coefficient, and 𝐵 = flow exponent.
Table 3.1 lists expressions for the resistance coefficient and values for the flow exponent for each of the formulas.
Each formula uses a different pipe roughness coefficient that must be determined empirically. Table 3.2 lists general
ranges of these coefficients for different types of new pipe materials. Be aware that a pipe’s roughness coefficient
can change considerably with age.
With the Darcy-Weisbach formula EPANET uses different methods to compute the friction factor f depending on the
flow regime:
• The Hagen–Poiseuille formula is used for laminar flow (Re < 2,000).
• The Swamee and Jain approximation to the Colebrook-White equation is used for fully turbulent flow (Re >
4,000).
• A cubic interpolation from the Moody Diagram is used for transitional flow (2,000 < Re < 4,000).
Consult Chapter Analysis Algorithms for the actual equations used.
Table 3.1: Pipe Headloss Formulas for Full Flow (for headloss in feet
and flow rate in cfs)
Formula Resistance Coefficient (𝐴) Flow Exponent (𝐵)
Hazen-Williams 4.727 𝐶 −1.852 𝑑−4.871 𝐿 1.852
Darcy-Weisbach 0.0252 𝑓 (𝜖, 𝑑, 𝑞) 𝑑−5 𝐿 2
Chezy-Manning 4.66 𝑛2 𝑑−5.33 𝐿 2
Notes:
𝐶 = Hazen-Williams roughness coefficient
𝜖 = Darcy-Weisbach roughness coefficient (ft)
𝑓 = friction factor (dependent on 𝜖, 𝑑, and 𝑞)
𝑛 = Manning roughness coefficient
𝑑 = pipe diameter (ft)
𝐿 = pipe length (ft)
𝑞 = flow rate (cfs)
Pipes can be set open or closed at preset times or when specific conditions exist, such as when tank levels fall below
or above certain set points, or when nodal pressures fall below or above certain values. See the discussion of Controls
in Section 3.2.
Minor Losses
Minor head losses (also called local losses) are caused by the added turbulence that occurs at bends and fittings. The
importance of including such losses depends on the layout of the network and the degree of accuracy required. They
can be accounted for by assigning the pipe a minor loss coefficient. The minor headloss becomes the product of this
18
EPANET USERS MANUAL, Release 2.2
𝑣2
ℎ𝐿 = 𝐾( )
2𝑔
where 𝐾 = minor loss coefficient, 𝑣 = flow velocity (Length/Time), and 𝑔 = acceleration of gravity (Length/Time 2 ).
Table 3.3 provides minor loss coefficients for several types of fittings.
Pumps
Pumps are links that impart energy to a fluid thereby raising its hydraulic head. The principal input parameters
for a pump are its start and end nodes and its pump curve (the combination of heads and flows that the pump can
produce). In lieu of a pump curve, the pump could be represented as a constant energy device, one that supplies a
constant amount of energy (horsepower or kilowatts) to the fluid for all combinations of flow and head.
The principal output parameters are flow and head gain. Flow through a pump is unidirectional and EPANET will
not allow a pump to operate outside the range of its pump curve.
Variable speed pumps can also be considered by specifying that their speed setting be changed under these same
types of conditions. By definition, the original pump curve supplied to the program has a relative speed setting of
1. If the pump speed doubles, then the relative setting would be 2; if run at half speed, the relative setting is 0.5 and
so on. Changing the pump speed shifts the position and shape of the pump curve (see the section on Pump Curves
below).
As with pipes, pumps can be turned on and off at preset times or when certain conditions exist in the network. A
pump’s operation can also be described by assigning it a time pattern of relative speed settings. EPANET can also
compute the energy consumption and cost of a pump. Each pump can be assigned an efficiency curve and schedule
of energy prices. If these are not supplied then a set of global energy options will be used.
Flow through a pump is unidirectional. If system conditions require more head than the pump can produce, EPANET
shuts the pump off. If more than the maximum flow is required, EPANET extrapolates the pump curve to the required
flow, even if this produces a negative head. In both cases a warning message will be issued.
Valves
Valves are links that limit the pressure or flow at a specific point in the network. Their principal input parameters
include:
• Start and end nodes
• Diameter
19
EPANET USERS MANUAL, Release 2.2
• Setting
• Status
The computed outputs for a valve are flow rate and headloss. The different types of valves included in EPANET are:
• Pressure Reducing Valve (PRV)
• Pressure Sustaining Valve (PSV)
• Pressure Breaker Valve (PBV)
• Flow Control Valve (FCV)
• Throttle Control Valve (TCV)
• General Purpose Valve (GPV)
PRVs limit the pressure at a point in the pipe network. EPANET computes in which of three different states a PRV
can be in:
• Partially opened (i.e., active) to achieve its pressure setting on its downstream side when the upstream pressure
is above the setting
• Fully open if the upstream pressure is below the setting
• Closed if the pressure on the downstream side exceeds that on the upstream side (i.e., reverse flow is not
allowed)
PSVs maintain a set pressure at a specific point in the pipe network. EPANET computes in which of three different
states a PSV can be in:
• Partially opened (i.e., active) to maintain its pressure setting on its upstream side when the downstream pressure
is below this value
• Fully open if the downstream pressure is above the setting
• Closed if the pressure on the downstream side exceeds that on the upstream side (i.e., reverse flow is not
allowed)
PBVs force a specified pressure loss to occur across the valve. Flow through the valve can be in either direction.
PBV’s are not true physical devices but can be used to model situations where a particular pressure drop is known to
exist.
FCVs limit the flow to a specified amount. The program produces a warning message if this flow cannot be main-
tained without having to add additional head at the valve (i.e., the flow cannot be maintained even with the valve
fully open).
TCVs simulate a partially closed valve by adjusting the minor head loss coefficient of the valve. A relationship
between the degree to which a valve is closed and the resulting head loss coefficient is usually available from the
valve manufacturer.
GPVs are used to represent a link where the user supplies a special flow - head loss relationship instead of following
one of the standard hydraulic formulas. They can be used to model turbines, well draw-down or reduced-flow
backflow prevention valves.
Shutoff (gate) valves and check (non-return) valves, which completely open or close pipes, are not considered as
separate valve links but are instead included as a property of the pipe in which they are placed.
Each type of valve has a different type of setting parameter that describes its operating point (pressure for PRVs,
PSVs, and PBVs; flow for FCVs; loss coefficient for TCVs, and head loss curve for GPVs).
Valves can have their control status overridden by specifying they be either completely open or completely closed.
A valve’s status and its setting can be changed during the simulation by using control statements.
Because of the ways in which valves are modeled the following rules apply when adding valves to a network:
20
EPANET USERS MANUAL, Release 2.2
• A PRV, PSV or FCV cannot be directly connected to a reservoir or tank (use a length of pipe to separate the
two)
• PRVs cannot share the same downstream node or be linked in series
• Two PSVs cannot share the same upstream node or be linked in series
• A PSV cannot be connected to the downstream node of a PRV
In addition to physical components, EPANET employs three types of informational objects – curves, patterns, and
controls - that describe the behavior and operational aspects of a distribution system.
Curves
Curves are objects that contain data pairs representing a relationship between two quantities. Two or more objects
can share the same curve. An EPANET model can utilize the following types of curves:
• Pump Curve
• Efficiency Curve
• Volume Curve
• Head Loss Curve Pump Curve
Pump Curve
A Pump Curve represents the relationship between the head and flow rate that a pump can deliver at its nominal
speed setting. Head is the head gain imparted to the water by the pump and is plotted on the vertical (Y) axis of the
curve in feet (meters). Flow rate is plotted on the horizontal (X) axis in flow units. A valid pump curve must have
decreasing head with increasing flow.
EPANET will use a different shape of pump curve depending on the number of points supplied.
Single-Point Curve – A single-point pump curve is defined by a single head-flow combination that represents a
pump’s desired operating point. EPANET adds two more points to the curve by assuming a shutoff head at zero flow
equal to 133% of the design head and a maximum flow at zero head equal to twice the design flow. It then treats the
curve as a three-point curve. Fig. 3.2 shows an example of a single-point pump curve.
Three-Point Curve – A three-point pump curve is defined by three operating points: a Low Flow point (flow and
head at low or zero flow condition), a Design Flow point (flow and head at desired operating point), and a Maximum
Flow point (flow and head at maximum flow). EPANET tries to fit a continuous function of the form
ℎ𝐺 = 𝐴 − 𝐵 𝑞 𝐶
through the three points to define the entire pump curve. In this function, ℎ𝑔 = head gain, 𝑞 = flow rate, and 𝐴, 𝐵,
and 𝐶 are constants. Fig. 3.3 shows an example of a three-point pump curve.
Multi-Point Curve – A multi-point pump curve is defined by providing either a pair of head-flow points or four or
more such points. EPANET creates a complete curve by connecting the points with straight-line segments. Fig. 3.4
shows an example of a multi-point pump curve.
For variable speed pumps, the pump curve shifts as the speed changes. The relationships between flow (𝑄) and head
(𝐻) at speeds 𝑁 1 and 𝑁 2 are
𝑄1 𝑁1
=
𝑄2 𝑁2
(︂ )︂2
𝐻1 𝑁1
=
𝐻2 𝑁2
21
EPANET USERS MANUAL, Release 2.2
22
EPANET USERS MANUAL, Release 2.2
23
EPANET USERS MANUAL, Release 2.2
24
EPANET USERS MANUAL, Release 2.2
Then during the simulation the actual demand exerted at this node will be as follows (Table 3.5):
Controls
Controls are statements that determine how the network is operated over time. They specify the status of selected
links as a function of time, tank water levels, and pressures at select points within the network. There are two
categories of controls that can be used:
• Simple Controls
• Rule-Based Controls Simple Controls
Simple Controls
Simple controls change the status or setting of a link based on:
• The water level in a tank
• The pressure at a junction
• The time into the simulation
• The time of day
They are statements expressed in one of the following three formats:
25
EPANET USERS MANUAL, Release 2.2
where: | x = a link ID label, | status = OPEN or CLOSED, a pump speed setting, or a control valve setting, | y = a
node ID label, | z = a pressure for a junction or a water level for a tank, | t = a time since the start of the simulation
(decimal hours or hours:minutes), | c = a 24-hour clock time.
Some examples of simple controls are (Table 3.6):
There is no limit on the number of simple control statements that can be used.
Note: Level controls are stated in terms of the height of water above the tank bottom, not the elevation (total head)
of the water surface.
Note: Using a pair of pressure controls to open and close a link can cause the system to become unstable if the
pressure settings are too close to one another. In this case using a pair of Rule-Based controls might provide more
stability.
Rule-Based Controls
Rule-Based Controls allow link status and settings to be based on a combination of conditions that might exist in the
network after an initial hydraulic state of the system is computed. Here are several examples of Rule-Based Controls:
Example 1:
This set of rules shuts down a pump and opens a by-pass pipe when the level in a tank exceeds a certain
value and does the opposite when the level is below another value.
RULE 1
IF TANK 1 LEVEL ABOVE 19.1
THEN PUMP 335 STATUS IS CLOSED
AND PIPE 330 STATUS IS OPEN
RULE 2
IF TANK 1 LEVEL BELOW 17.1
THEN PUMP 335 STATUS IS OPEN
AND PIPE 330 STATUS IS CLOSED
Example 2:
These rules change the tank level at which a pump turns on depending on the time of day.
RULE 3
IF SYSTEM CLOCKTIME >= 8 AM
AND SYSTEM CLOCKTIME < 6 PM
AND TANK 1 LEVEL BELOW 12
THEN PUMP 335 STATUS IS OPEN
26
EPANET USERS MANUAL, Release 2.2
RULE 4
IF SYSTEM CLOCKTIME >= 6 PM
OR SYSTEM CLOCKTIME < 8 AM
AND TANK 1 LEVEL BELOW 14
THEN PUMP 335 STATUS IS OPEN
A description of the formats used with Rule-Based controls can be found in Appendix Command Line EPANET,
under the [RULES] heading.
EPANET’s hydraulic simulation model computes junction heads and link flows for a fixed set of reservoir levels,
tank levels, and water demands over a succession of points in time. From one time step to the next reservoir levels
and junction demands are updated according to their prescribed time patterns while tank levels are updated using the
current flow solution. The solution for heads and flows at a particular point in time involves solving simultaneously
the conservation of flow equation for each junction and the headloss relationship across each link in the network.
This process, known as “hydraulically balancing” the network, requires using an iterative technique to solve the non-
linear equations involved. EPANET employs the “Gradient Algorithm” for this purpose. Consult Chapter Analysis
Algorithms for details.
The hydraulic time step used for extended period simulation (EPS) can be set by the user. A typical value is 1 hour.
Shorter time steps than normal will occur automatically whenever one of the following events occurs:
• The next output reporting time period occurs
• The next time pattern period occurs
• A tank becomes empty or full
• A simple control or rule-based control is activated
Basic Transport
EPANET’s water quality simulator uses a Lagrangian time-based approach to track the fate of discrete parcels of
water as they move along pipes and mix together at junctions between fixed-length time steps. These water quality
time steps are typically much shorter than the hydraulic time step (e.g., minutes rather than hours) to accommodate
the short times of travel that can occur within pipes.
The method tracks the concentration and size of a series of non-overlapping segments of water that fills each link of
the network. As time progresses, the size of the most upstream segment in a link increases as water enters the link
while an equal loss in size of the most downstream segment occurs as water leaves the link. The size of the segments
in between these remains unchanged.
For each water quality time step, the contents of each segment are subjected to reaction, a cumulative account is
kept of the total mass and flow volume entering each node, and the positions of the segments are updated. New
node concentrations are then calculated, which include the contributions from any external sources. Storage tank
concentrations are updated depending on the type of mixing model that is used (see below). Finally, a new segment
will be created at the end of each link that receives inflow from a node if the new node quality differs by a user-
specified tolerance from that of the link’s last segment.
Initially each pipe in the network consists of a single segment whose quality equals the initial quality assigned to the
upstream node. Whenever there is a flow reversal in a pipe, the pipe’s parcels are re-ordered from front to back.
27
EPANET USERS MANUAL, Release 2.2
The Two-Compartment Mixing model (Fig. 3.9) divides the available storage volume in a tank into two compart-
ments, both of which are assumed completely mixed. The inlet/outlet pipes of the tank are assumed to be located in
the first compartment. New water that enters the tank mixes with the water in the first compartment. If this compart-
ment is full, then it sends its overflow to the second compartment where it completely mixes with the water already
stored there. When water leaves the tank, it exits from the first compartment, which if full, receives an equivalent
amount of water from the second compartment to make up the difference. The first compartment is capable of sim-
ulating short-circuiting between inflow and outflow while the second compartment can represent dead zones. The
user must supply a single parameter, which is the fraction of the total tank volume devoted to the first compartment.
The FIFO Plug Flow model (Fig. 3.10) assumes that there is no mixing of water at all during its residence time in
a tank. Water parcels move through the tank in a segregated fashion where the first parcel to enter is also the first
28
EPANET USERS MANUAL, Release 2.2
to leave. Physically speaking, this model is most appropriate for baffled tanks that operate with simultaneous inflow
and outflow. There are no additional parameters needed to describe this mixing model.
The LIFO Plug Flow model (Fig. 3.11) also assumes that there is no mixing between parcels of water that enter a
tank. However in contrast to FIFO Plug Flow, the water parcels stack up one on top of another, where water enters
and leaves the tank on the bottom. This type of model might apply to a tall, narrow standpipe with an inlet/outlet
pipe at the bottom and a low momentum inflow. It requires no additional parameters be provided.
𝑅 = 𝐾𝑏 𝐶 𝑛
Here 𝐾𝑏 = a bulk reaction rate coefficient, 𝐶 = reactant concentration (mass/volume), and 𝑛 = a reaction order. 𝐾𝑏
has units of concentration raised to the (1 − 𝑛) power divided by time. It is positive for growth reactions and negative
for decay reactions.
29
EPANET USERS MANUAL, Release 2.2
EPANET can also consider reactions where a limiting concentration exists on the ultimate growth or loss of the
substance. In this case the rate expression becomes
𝑅 = 𝐾𝑏 (𝐶𝐿 − 𝐶) × 𝐶 (𝑛−1)
𝑓 𝑜𝑟 𝑛 > 0, 𝐾𝑏 > 0
𝑅 = 𝐾𝑏 (𝐶 − 𝐶𝐿 ) × 𝐶 (𝑛−1)
𝑓 𝑜𝑟 𝑛 > 0, 𝐾𝑏 < 0
where 𝐶𝐿 = the limiting concentration. Thus there are three parameters (𝐾𝑏 , 𝐶𝐿 , and 𝑛) that are used to characterize
bulk reaction rates. Some special cases of well-known kinetic models are provided in Table 3.7 (see Section 13.2 for
more examples):
The 𝐾𝑏 for first-order reactions can be estimated by placing a sample of water in a series of non-reacting glass
bottles and analyzing the contents of each bottle at different points in time. If the reaction is first-order, then plotting
the natural log (𝐶𝑡 /𝐶0 ) against time should result in a straight line, where 𝐶𝑡 is concentration at time 𝑡 and 𝐶0 is
concentration at time zero. 𝐾𝑏 would then be estimated as the slope of this line.
Bulk reaction coefficients usually increase with increasing temperature. Running multiple bottle tests at different
temperatures will provide more accurate assessment of how the rate coefficient varies with temperature
Wall Reactions
The rate of water quality reactions occurring at or near the pipe wall can be considered to be dependent on the
concentration in the bulk flow by using an expression of the form
𝑅 = (𝐴/𝑉 )𝐾𝑤 𝐶 𝑛
30
EPANET USERS MANUAL, Release 2.2
where 𝐾𝑤 = a wall reaction rate coefficient and (𝐴/𝑉 ) = the surface area per unit volume within a pipe (equal
to 4 divided by the pipe diameter). The latter term converts the mass reacting per unit of wall area to a per unit
volume basis. EPANET limits the choice of wall reaction order to either 0 or 1, so that the units of 𝐾𝑤 are either
mass/area/time or length/time, respectively. As with 𝐾𝑏 , 𝐾𝑤 must be supplied to the program by the modeler.
First-order 𝐾𝑤 values can range anywhere from 0 to as much as 5 ft/day.
The variable 𝐾𝑤 should be adjusted to account for any mass transfer limitations in moving reactants and products
between the bulk flow and the wall. EPANET does this automatically, basing the adjustment on the molecular
diffusivity of the substance being modeled and on the flow’s Reynolds number. See Section 13.2 for details. (Setting
the molecular diffusivity to zero will cause mass transfer effects to be ignored.)
The wall reaction coefficient can depend on temperature and can also be correlated to pipe age and material. It
is well known that as metal pipes age their roughness tends to increase due to encrustation and tuburculation of
corrosion products on the pipe walls. This increase in roughness produces a lower Hazen-Williams C-factor or a
higher Darcy-Weisbach roughness coefficient, resulting in greater frictional head loss in flow through the pipe.
There is some evidence to suggest that the same processes that increase a pipe’s roughness with age also tend to
increase the reactivity of its wall with some chemical species, particularly chlorine and other disinfectants. EPANET
can make each pipe’s 𝐾𝑤 be a function of the coefficient used to describe its roughness. A different function applies
depending on the formula used to compute headloss through the pipe (Table 3.8):
31
CHAPTER
FOUR
EPANET’S WORKSPACE
This chapter discusses the essential features of EPANET’s workspace. It describes the main menu bar, the tool and status bars,
and the three windows used most often – the Network Map, the Browser, and the Property Editor. It also shows how to set
program preferences.
4.1 Overview
The basic EPANET workspace is pictured in Fig. 4.1 below. It consists of the following user interface elements: a
Menu Bar, two Toolbars, a Status Bar, the Network Map window, a Browser window, and a Property Editor window.
A description of each of these elements is provided in the sections that follow.
The Menu Bar located across the top of the EPANET workspace contains a collection of menus used to control the
program. These include:
• File Menu
• Edit Menu
• View Menu
• Project Menu
• Report Menu
• Window Menu
• Help Menu
File Menu
The File Menu contains commands for opening and saving data files and for printing. The commands for the File
Menu are shown in Table 4.1 below.
32
EPANET USERS MANUAL, Release 2.2
33
EPANET USERS MANUAL, Release 2.2
Edit Menu
The Edit Menu contains commands for editing and copying. The commands for the Edit Menu are shown in Table
4.2 below.
View Menu
The View Menu controls how the network map is viewed. The controls for the View Menu are shown in Table 4.3
below.
Project Menu
The Project Menu includes commands related to the current project being analyzed. The commands for the Project
Menu are shown in Table 4.4 below.
34
EPANET USERS MANUAL, Release 2.2
Report Menu
The Report menu has commands used to report analysis results in different formats. The commands for the Report
Menu are shown in Table 4.5 below.
Window Menu
The Window Menu contains the following commands shown in Table 4.6 below.
Help Menu
The Help Menu contains commands for getting help in using EPANET. The Help Menu contains the following
commands shown in Table 4.7 below. Context-sensitive Help is also available by pressing the F1 key.
35
EPANET USERS MANUAL, Release 2.2
4.3 Toolbars
Toolbars provide shortcuts to commonly used operations. There are two such toolbars:
• Standard Toolbar
• Map Toolbar
The toolbars can be docked underneath the Main Menu bar or dragged to any location on the EPANET workspace.
When undocked, they can also be re-sized. The toolbars can be made visible or invisible by selecting View >>
Toolbars.
Standard Toolbar
The Standard Toolbar contains speed buttons for commonly used commands.
Modifies options for the currently active view (View >> Options or Report >> Options)
Map Toolbar
The Map Toolbar contains buttons for working with the Network Map.
36
EPANET USERS MANUAL, Release 2.2
The Status Bar appears at the bottom of the EPANET workspace and is divided into four sections which display the
following information:
• Auto-Length – indicates whether automatic computation of pipe lengths is turned on or off
• Flow Units - displays the current flow units that are in effect
• Zoom Level - displays the current zoom in level for the map (100% is full scale)
• Run Status - a faucet icon shows:
– No running water if no analysis results are available,
– Running water when valid analysis results are available,
– A broken faucet when analysis results are available but may be invalid because the network data have been
modified.
• XY Location - displays the map coordinates of the current position of the mouse pointer.
The Network Map provides a planar schematic diagram of the objects comprising a water distribution network. The
location of objects and the distances between them do not necessarily have to conform to their actual physical scale.
Selected properties of these objects, such as water quality at nodes or flow velocity in links, can be displayed by
using different colors. The color-coding is described in a Legend, which can be edited. New objects can be directly
added to the map and existing objects can be clicked on for editing, deleting, and repositioning. A backdrop drawing
(such as a street or topographic map) can be placed behind the network map for reference. The map can be zoomed
to any scale and panned from one position to another. Nodes and links can be drawn at different sizes, flow direction
arrows added, and object symbols, ID labels and numerical property values displayed. The map can be printed,
copied onto the Windows clipboard, or exported as a DXF file or Windows metafile.
37
EPANET USERS MANUAL, Release 2.2
The Data Browser (shown in Fig. 4.2 below) is accessed from the Data tab on the Browser window. It gives access
to the various objects, by category (Junctions, Pipes, etc.) that are contained in the network being analyzed. The
buttons at the bottom are used to add, delete, and edit these objects.
The Map Browser (shown in Fig. 4.3 below) is accessed from the Map tab of the Browser Window. It selects the
parameters and time period that are viewed in color-coded fashion on the Network Map. It also contains controls for
animating the map through time.
The animation control pushbuttons on the Map Browser work as follows:
The Property Editor (shown in Fig. 4.4 below) is used to edit the properties of network nodes, links, labels, and
analysis options. It is invoked when one of these objects is selected (either on the Network Map or in the Data
Browser) and double-clicked or the Browser’s Edit button is clicked. The following points help explain how to use
the Editor.
• The Editor is a grid with two columns - one for the property’s name and the other for its value.
38
EPANET USERS MANUAL, Release 2.2
39
EPANET USERS MANUAL, Release 2.2
• The columns can be re-sized by re-sizing the header at the top of the Editor with the mouse.
• The Editor window can be moved and re-sized via the normal Windows procedures.
• An asterisk next to a property name means that it is a required property – its value cannot be left
blank.
• Depending on the property, the value field can be one of the following:
• A text box where you type in a value
• A dropdown list box where you select from a list of choices
• An ellipsis button which you click to bring up a specialized editor
• A read-only label used to display computed results
• The property in the Editor that currently has focus will be highlighted with a white background.
• You can use both the mouse and the Up and Down arrow keys on the keyboard to move between
properties.
• To begin editing the property with the focus, either begin typing a value or hit the Enter key.
• To have EPANET accept what you have entered, press the Enter key or move to another property; to
cancel, press the Esc key.
• Clicking the Close button in the upper right corner of its title bar will hide the Editor.
Program preferences allow you to customize certain program features. To set program preferences select Prefer-
ences from the File menu. A Preferences dialog form will appear containing two tabbed pages – one for General
Preferences and one for Format Preferences.
General Preferences
The following preferences can be set on the General tab of the Preferences dialog (as shown below in Table 4.8).
Note: The automatic Backup File is placed in the same directory as the input file. However, the backup file (.bak)
is only created for .net type input files, not the .inp text files. The Preferences Menu screen for the General Tab is
shown in Fig. 4.5 below.
Formatting Preferences
40
EPANET USERS MANUAL, Release 2.2
The Formats tab of the Preferences dialog box (shown in Fig. 4.6) controls how many decimal places are displayed
when results for computed parameters are reported. Use the dropdown list boxes to select a specific Node or Link
parameter. Use the spin edit boxes to select the number of decimal places to use when displaying computed results
for the parameter. The number of decimal places displayed for any particular input design parameter, such as pipe
diameter, length, etc. is whatever the user enters.
41
EPANET USERS MANUAL, Release 2.2
42
CHAPTER
FIVE
This chapter discusses how EPANET uses project files to store a piping network’s data. It explains how to set certain default
options for the project and how to register calibration data (observed measurements) with the project to use for model evaluation.
Project files contain all of the information used to model a network. They are usually named with a .NET extension.
To create a new project:
1. Select File >> New from the Menu Bar or click on the Standard Toolbar.
2. You will be prompted to save the existing project (if changes were made to it) before the new project is created.
3. A new, unnamed project is created with all options set to their default values.
A new project is automatically created whenever EPANET first begins. To open an existing project stored on disk:
1. Either select File >> Open from the Menu Bar or click on the Standard Toolbar.
2. You will be prompted to save the current project (if changes were made to it).
3. Select the file to open from the Open File dialog form that will appear. You can choose to open a file type saved
previously as an EPANET project (typically with a .NET extension) or exported as a text file (typically with a
.INP extension). EPANET recognizes file types by their content, not their names.
4. Click OK to close the dialog and open the selected file.
To save a project under its current name:
• Either select File >> Save from the Menu Bar or click on the Standard Toolbar.
To save a project using a different name:
1. Select File >> Save As from the Menu Bar.
2. A standard File Save dialog form will appear from which you can select the folder and name that the project
should be saved under.
Note: Projects are always saved as binary .NET files. To save a project’s data as readable ASCII text, use the Export
>> Network command from the File menu.
43
EPANET USERS MANUAL, Release 2.2
Each project has a set of default values that are used unless overridden by the EPANET user. These values fall into
three categories:
• Default ID labels (labels used to identify nodes and links when they are first created)
• Default node/link properties (e.g., node elevation, pipe length, diameter, and roughness)
• Default hydraulic analysis options (e.g., system of units, headloss equation, etc.)
To set default values for a project:
1. Select Project >> Defaults from the Menu Bar.
2. A Defaults dialog form will appear with three pages, one for each category listed above.
3. Check the box in the lower right of the dialog form if you want to save your choices for use in all new future
projects as well.
4. Click OK to accept your choice of defaults.
The specific items for each category of defaults will be discussed next.
Default ID Labels
The ID Labels tab of the Defaults dialog form is shown in Fig. 5.1 below. It is used to determine how EPANET will
assign default ID labels to network components when they are first created. For each type of object one can enter
a label prefix or leave the field blank if the default ID will simply be a number. Then one supplies an increment to
be used when adding a numerical suffix to the default label. As an example, if J were used as a prefix for Junctions
along with an increment of 5, then as junctions are created they receive default labels of J5, J10, J15 and so on. After
an object has been created, the Property Editor can be used to modify its ID label if need be.
44
EPANET USERS MANUAL, Release 2.2
45
EPANET USERS MANUAL, Release 2.2
EPANET allows you to compare results of a simulation against measured field data. This can be done via Time
Series plots for selected locations in the network or by special Calibration Reports that consider multiple locations.
Before EPANET can use such calibration data it has to be entered into a file and registered with the project.
Calibration Files
A Calibration File is a text file containing measured data for a particular quantity taken over a particular period of
time within a distribution system. The file provides observed data that can be compared to the results of a network
simulation. Separate files should be created for different parameters (e.g., pressure, fluoride, chlorine, flow, etc.) and
different sampling studies. Each line of the file contains the following items:
• Location ID - ID label (as used in the network model) of the location where the measurement was made
• Time - Time (in hours) when the measurement was made
• Value - Result of the measurement
The measurement time is with respect to time zero of the simulation to which the Calibration File will be applied. It
can be entered as either a decimal number (e.g., 27.5) or in hours:minutes format (e.g., 27:30). For data to be used
in a single period analysis all time values can be 0. Comments can be added to the file by placing a semicolon (;)
before them. For a series of measurements made at the same location the Location ID does not have to be repeated.
An excerpt from a Calibration File is shown below.
;--------------------------
N1 0 0.5
6.4 1.2
12.7 0.9
N2 0.5 0.72
5.6 0.77
To view a summary description of the current project select Project >> Summary from the Menu Bar. The Project
Summary dialog form will appear in which you can edit a descriptive title for the project as well as add notes that
46
EPANET USERS MANUAL, Release 2.2
further describe the project. When you go to open a previously saved file, the Open File dialog box will display
both of these items as different file names are selected. This makes them very useful for locating specific network
analyses. The form also displays certain network statistics, such as the number of junctions, pipes, pumps, etc.
47
CHAPTER
SIX
EPANET uses various types of objects to model a distribution system. These objects can be accessed either directly on the network
map or from the Data page of the Browser window. This chapter describes what these objects are and how they can be created,
selected, edited, deleted, and repositioned.
EPANET contains both physical objects that can appear on the network map, and non-physical objects that encom-
pass design and operational information. These objects can be classified as followed:
1. Nodes
a. Junctions
b. Reservoirs
c. Tanks
2. Links
a. Pipes
b. Pumps
c. Valves
3. Map Labels
4. Time Patterns
5. Curves
6. Controls
a. Simple
b. Rule-Based
Adding a Node
To add a Node using the Map Toolbar:
48
EPANET USERS MANUAL, Release 2.2
1. Click the button for the type of node (junction , reservoir , or tank ) to add from the Map Toolbar
if it is not already depressed.
2. Move the mouse to the desired location on the map and click.
To add a Node using the Browser:
1. Select the type of node (junction, reservoir, or tank) from the Object list of the Data Browser.
1. Click the button for the type of link to add (pipe , pump , or valve ) from the Map Toolbar if it is
not already depressed.
2. On the map, click the mouse over the link’s start node.
3. Move the mouse in the direction of the link’s end node, clicking it at those intermediate points where it is
necessary to change the link’s direction.
4. Click the mouse a final time over the link’s end node.
Pressing the right mouse button or the Escape key while drawing a link will cancel the operation.
To add a straight line Link using the Browser:
1. Select the type of link to add (pipe, pump, or valve) from the Object list of the Data Browser.
2. Click the Add button.
3. Enter the From and To nodes of the link in the Property Editor.
Adding a Map Label
To add a label to the map:
49
EPANET USERS MANUAL, Release 2.2
The Property Editor (see Section 4.8) is used to edit the properties of objects that can appear on the Network Map
(Junctions, Reservoirs, Tanks, Pipes, Pumps, Valves, or Labels). To edit one of these objects, select the object on
the map or from the Data Browser, then click the Edit button on the Data Browser (or simply double-click the
object on the map). The properties associated with each of these types of objects are described in Table 6.1 through
Table 6.7.
Note: The unit system in which object properties are expressed depends on the choice of units for flow rate. Using
a flow rate expressed in cubic feet, gallons or acre-feet means that US units will be used for all quantities. Using a
flow rate expressed in liters or cubic meters means that SI metric units will be used. Flow units are selected from
the project’s Hydraulic Options which can be accessed from the Project >> Defaults menu. The units used for all
properties are summarized in Appendix Units of Measurement.
The junction properties are provided in Table 6.1.
50
EPANET USERS MANUAL, Release 2.2
51
EPANET USERS MANUAL, Release 2.2
52
EPANET USERS MANUAL, Release 2.2
53
EPANET USERS MANUAL, Release 2.2
Note: Pipe lengths can be automatically computed as pipes are added or repositioned on the network map
if the Auto-Length setting is turned on. To toggle this setting On/Off either:
• Select Project >> Defaults and edit the Auto-Length field on the Properties page of the Defaults dialog form.
• Right-click over the Auto-Length section of the Status Bar and then click on the popup menu item that appears.
Be sure to provide meaningful dimensions for the network map before using the Auto-Length feature (see
Section 7.2).
The pump properties are provided in Table 6.5.
54
EPANET USERS MANUAL, Release 2.2
55
EPANET USERS MANUAL, Release 2.2
Loss Coefficient Unitless minor loss coefficient that applies when the valve is completely
opened. Assumed 0 if left blank.
Fixed Status Valve status at the start of the simulation. If set to OPEN or CLOSED then
the control setting of the valve is ignored and the valve behaves as an open
or closed link, respectively. If set to NONE, then the valve will behave as
intended. A valve’s fixed status and its setting can be made to vary throughout
a simulation by the use of control statements. If a valve’s status was fixed to
OPEN/CLOSED, then it can be made active again using a control that assigns
a new numerical setting to it.
Notes:
1. A label’s anchor node property is used to anchor the label relative to a given location on the map. When the
56
EPANET USERS MANUAL, Release 2.2
map is zoomed in, the label will appear the same distance from its anchor node as it did under the full extent
view. This feature prevents labels from wandering too far away from the objects they were meant to describe
when a map is zoomed.
2. The Meter Type and ID properties determine if the label will act as a meter. Meter labels display the value of
the current viewing parameter (chosen from the Map Browser) underneath the label text. The Meter Type and
ID must refer to an existing node or link in the network. Otherwise, only the label text appears.
Curves, Time Patterns, and Controls have special editors that are used to define their properties. To edit one of these
objects, select the object from the Data Browser and then click the Edit button . In addition, the Property Editor
for Junctions contains an ellipsis button in the field for Demand Categories that brings up a special Demand Editor
when clicked. Similarly, the Source Quality field in the Property Editor for Junctions, Reservoirs, and Tanks has a
button that launches a special Source Quality editor. Each of these specialized editors is described next.
Curve Editor
The Curve Editor is a dialog form as shown in Fig. 6.1. To use the Curve Editor, enter values for the following items
(Table 6.8):
As you move between cells in the X-Y data table (or press the Enter key) the curve is redrawn in the preview window.
For single- and three-point pump curves, the equation generated for the curve will be displayed in the Equation box.
Click the OK button to accept the curve or the Cancel button to cancel your entries. You can also click the Load
button to load in curve data that was previously saved to file or click the Save button to save the current curve’s data
to a file.
Pattern Editor
The Pattern Editor, displayed in Fig. 6.2, edits the properties of a time pattern object. To use the Pattern Editor enter
values for the following items (Table 6.9):
As multipliers are entered, the preview chart is redrawn to provide a visual depiction of the pattern. If you reach
the end of the available Time Periods when entering multipliers, simply hit the Enter key to add on another period.
When finished editing, click the OK button to accept the pattern or the Cancel button to cancel your entries. You
can also click the Load button to load in pattern data that was previously saved to file or click the Save button to
save the current pattern’s data to a file.
Controls Editor
57
EPANET USERS MANUAL, Release 2.2
58
EPANET USERS MANUAL, Release 2.2
The Controls Editor, shown in Fig. 6.3, is a text editor window used to edit both simple and rule-based controls.
It has a standard text-editing menu that is activated by right-clicking anywhere in the Editor. The menu contains
commands for Undo, Cut, Copy, Paste, Delete, and Select All.
Demand Editor
The Demand Editor is pictured in Fig. 6.4. It is used to assign base demands and time patterns when there is more
than one category of water user at a junction. The editor is invoked from the Property Editor by clicking the ellipsis
button (or hitting the Enter key) when the Demand Categories field has the focus.
The editor is a table containing three columns. Each category of demand is entered as a new row in the table. The
columns contain the following information:
• Base Demand: baseline or average demand for the category (required)
• Time Pattern: ID label of time pattern used to allow demand to vary with time (optional)
• Category: text label used to identify the demand category (optional)
The table initially is sized for 10 rows. If additional rows are needed select any cell in the last row and hit the Enter
key.
Note: By convention, the demand placed in the first row of the editor will be considered the main category for the
junction and will appear in the Base Demand field of the Property Editor.
Source Quality Editor
The Source Quality Editor is a pop-up dialog used to describe the quality of source flow entering the network at a
specific node. This source might represent the main treatment works, a well head or satellite treatment facility, or an
unwanted contaminant intrusion. The dialog form, shown in Fig. 6.5, contains the following fields (Table 6.10):
59
EPANET USERS MANUAL, Release 2.2
60
EPANET USERS MANUAL, Release 2.2
The properties of an object displayed on the Network Map can be copied and pasted into another object from the
same category. To copy the properties of an object to EPANET’s internal clipboard:
1. Right-click the object on the map.
2. Select Copy from the pop-up menu that appears.
To paste copied properties into an object:
1. Right-click the object on the map.
2. Select Paste from the pop-up menu that appears.
Links can be drawn as polylines containing any number of straight-line segments that add change of direction and
curvature to the link. Once a link has been drawn on the map, interior points that define these line segments can be
added, deleted, and moved (see Fig. 6.6). To edit the interior points of a link:
1. Select the link to edit on the Network Map and click on the Map Toolbar (or select Edit >> Select Vertex
from the Menu Bar, or right-click on the link and select Vertices from the popup menu).
61
EPANET USERS MANUAL, Release 2.2
2. The mouse pointer will change shape to an arrow tip, and any existing vertex points on the link will be displayed
with small handles around them. To select a particular vertex, click the mouse over it.
3. To add a new vertex to the link, right-click the mouse and select Add Vertex from the popup menu (or simply
press the Insert key on the keyboard).
4. To delete the currently selected vertex, right-click the mouse and select Delete Vertex from the popup menu
(or simply press the Delete key on the keyboard).
5. To move a vertex to another location, drag it with the left mouse button held down to its new position.
6. While in Vertex Selection mode you can begin editing the vertices for another link by clicking on the link. To
leave Vertex Selection mode, right-click on the map and select Quit Editing from the popup menu, or select
any other button on the Map Toolbar.
A link can also have its direction reversed (i.e., its end nodes switched) by right- clicking on it and selecting Reverse
from the pop-up menu that appears. This is useful for re-orienting pumps and valves that originally were added in
the wrong direction.
To delete an object:
1. Select the object on the map or from the Data Browser.
2. Either:
62
EPANET USERS MANUAL, Release 2.2
To select a group of objects that lie within an irregular region of the network map:
63
EPANET USERS MANUAL, Release 2.2
64
CHAPTER
SEVEN
EPANET displays a map of the pipe network being modeled. This chapter describes how you can manipulate this map to enhance
your visualization of the system being modeled.
One uses the Map Page of the Browser (Section 4.7) to select a node and link parameter to view on the map.
Parameters are viewed on the map by using colors, as specified in the Map Legends (see below), to display different
ranges of values.
Node parameters available for viewing include:
• Elevation
• Base Demand (nominal or average demand)
• Initial Quality (water quality at time zero)
• *Actual Demand (total demand at current time)
• *Hydraulic Head (elevation plus pressure head)
• *Pressure
• *Water Quality
Link parameters available for viewing include:
• Length
• Diameter
• Roughness Coefficient
• Bulk Reaction Coefficient
• Wall Reaction Coefficient
• *Flow Rate
• *Velocity
• *Headloss (per 1000 feet (or meters) of pipe)
• *Friction Factor (as used in the Darcy-Weisbach headloss formula)
• *Reaction Rate (average over length of pipe)
• *Water Quality (average over length of pipe)
65
EPANET USERS MANUAL, Release 2.2
The items marked with asterisks are computed quantities whose values will only be available if a successful analysis
has been run on the network (see Chapter Analyzing a Network).
The physical dimensions of the map must be defined so that map coordinates can be properly scaled to
the computer’s video display. To set the map’s dimensions:
1. Select View >> Dimensions.
2. Enter new dimension information into the Map Dimensions dialog that appears (see Fig. 7.1) or click
the Auto-Size button to have EPANET compute dimensions based on the coordinates of objects
currently included in the network.
3. Click the OK button to re-size the map.
The information provided in the Map Dimensions dialog consists of the following (Table 7.1):
Note: If you are going to use a backdrop map with automatic pipe length calculation, then it is recommended that
you set the map dimensions immediately after creating a new project. Map distance units can be different from pipe
length units. The latter (feet or meters) depend on whether flow rates are expressed in US or metric units. EPANET
will automatically convert units if necessary.
66
EPANET USERS MANUAL, Release 2.2
EPANET can display a backdrop map behind the pipe network map. The backdrop map might be a street map, utility
map, topographic map, site development plan, or any other picture or drawing that might be useful. For example,
using a street map would simplify the process of adding pipes to the network since one could essentially digitize the
network’s nodes and links directly on top of it (Fig. 7.2).
The backdrop map must be a Windows enhanced metafile or bitmap created outside of EPANET. Once imported, its
features cannot be edited, although its scale and extent will change as the map window is zoomed and panned. For
this reason metafiles work better than bitmaps since they will not loose resolution when re-scaled. Most CAD and
GIS programs have the ability to save their drawings and maps as metafiles.
Selecting View >> Backdrop from the Menu Bar will display a sub-menu with the following commands:
• Load (loads a backdrop map file into the project)
• Unload (unloads the backdrop map from the project)
• Align (aligns the pipe network with the backdrop)
• Show/Hide (toggles the display of the backdrop on and off)
When first loaded, the backdrop image is placed with its upper left corner coinciding with that of the network’s
bounding rectangle. The backdrop can be re-positioned relative to the network map by selecting View >> Backdrop
>> Align. This allows an outline of the pipe network to be moved across the backdrop (by moving the mouse with
the left button held down) until one decides that it lines up properly with the backdrop. The name of the backdrop
file and its current alignment are saved along with the rest of a project’s data whenever the project is saved to file.
For best results in using a backdrop map:
• Use a metafile, not a bitmap.
• Dimension the network map so that its bounding rectangle has the same aspect ratio (width-to-height ratio) as
the backdrop.
67
EPANET USERS MANUAL, Release 2.2
68
EPANET USERS MANUAL, Release 2.2
There are three types of map legends that can be displayed. The Node and Link Legends
associate a color with a range of values for the current parameter being viewed on the map
(see Fig. 7.3). The Time Legend displays the clock time of the simulation time period being
viewed. To display or hide any of these legends check or uncheck the legend from the View
>> Legends menu or right- click over the map and do the same from the popup menu that
appears. Double-clicking the mouse over it can also hide a visible legend.
To move a legend to another location:
1. Press the left mouse button over the legend.
2. With the button held down, drag the legend to its new location and release the button.
To edit the Node Legend:
Fig. 7.3: Example map legend.
1. Either select View >> Legends >> Modify >> Node or right-click on the legend if it is
visible.
2. Use the Legend Editor dialog form that appears (see Fig. 7.4) to modify the legend’s
colors and intervals.
A similar method is used to edit the Link Legend.
The Legend Editor (Fig. 7.4) is used to set numerical ranges to which different colors are assigned for viewing a particular
parameter on the network map. It works as follows:
• Numerical values, in increasing order, are entered in the edit boxes to define the ranges. Not all four boxes need to have
values.
• To change a color, click on its color band in the Editor and then select a new color from the Color Dialog box that will
appear.
• Click the Equal Intervals button to assign ranges based on dividing the range of the parameter at the current time period
into equal intervals.
• Click the Equal Quantiles button to assign ranges so that there are equal numbers of objects within each range, based on
values that exist at the current time period.
• The Color Ramp button is used to select from a list of built-in color schemes.
• The Reverse Colors button reverses the ordering of the current set of colors (the color in the lowest range becomes that of
the highest range and so on).
• Check Framed if you want a frame drawn around the legend.
69
EPANET USERS MANUAL, Release 2.2
The Overview Map allows you to see where in terms of the overall system the main network map is currently focused.
This zoom area is depicted by the rectangular boundary displayed on the Overview Map (Fig. 7.5). As you drag this
rectangle to another position the view within the main map will follow suit. The Overview Map can be toggled on
and off by selecting View >> Overview Map. Clicking the mouse on its title bar will update its map image to match
that of the main network map.
There are several ways to bring up the Map Options dialog form (Fig. 7.6) used to change the appearance of the
Network Map:
• Select View >> Options
• Click the Options button on the Standard Toolbar when the Map window has the focus
• Right-click on any empty portion of the map and select Options from the popup menu that appears
70
EPANET USERS MANUAL, Release 2.2
The dialog contains a separate page, selected from the panel on the left side of the form, for each of the following
display option categories:
• Nodes (controls size of nodes and making size be proportional to value)
• Links (controls thickness of links and making thickness be proportional to value)
• Labels (turns display of map labels on/off)
• Notation (displays or hides node/link ID labels and parameter values)
• Symbols (turns display of tank, pump, valve symbols on/off)
• Flow Arrows (selects visibility and style of flow direction arrows)
• Background (changes color of map’s background)
Node Options
The Nodes page of the Map Options dialog controls how nodes are displayed on the Network Map (Table 7.2).
Link Options
The Links page of the Map Options dialog controls how links are displayed on the map (Table 7.3).
71
EPANET USERS MANUAL, Release 2.2
Label Options
The Label page of the Map Options dialog controls how labels are displayed on the map (Table 7.4).
Notation Options
The Notation page of the Map Options dialog form determines what kind of annotation is provided alongside of the
nodes and links of the map (Table 7.5).
Note: Values of the current viewing parameter at only specific nodes and links can be displayed by creating Map
Labels with meters for those objects. See Section 6.2 and Section 6.4 as well as Table 6.7.
Symbol Options
The Symbols page of the Map Options dialog determines which types of objects are represented with special symbols
on the map (Table 7.6).
72
EPANET USERS MANUAL, Release 2.2
The Flow Arrows page of the Map Options dialog controls how flow-direction arrows are displayed on the network
map (Table 7.7).
Note: Flow direction arrows will only be displayed after a network has been successfully analyzed (see Section 8.2).
Background Options
The Background page of the Map Options dialog offers a selection of colors used to paint the map’s background
with.
73
CHAPTER
EIGHT
ANALYZING A NETWORK
After a network has been suitably described, its hydraulic and water quality behavior can be analyzed. This chapter describes
how to specify options to use in the analysis, how to run the analysis and how to troubleshoot problems that might have occurred
with the analysis.
There are five categories of options that control how EPANET analyzes a network: Hydraulics, Quality, Reactions,
Times, and Energy. To set any of these options:
1. Select the Options category from the Data Browser or select Project >> Analysis Options from the menu bar.
2. Select Hydraulics, Quality, Reactions, Times, or Energy from the Browser.
3. If the Property Editor is not already visible, click the Browser’s Edit button (or hit the Enter key).
4. Edit your option choices in the Property Editor.
As you are editing a category of options in the Property Editor you can move to the next or previous category by
simply hitting the Page Down or Page Up keys, respectively.
Hydraulic Options
Hydraulic options control how the hydraulic computations are carried out. They consist of the following items (Table
8.1):
74
EPANET USERS MANUAL, Release 2.2
75
EPANET USERS MANUAL, Release 2.2
Below are some typical values that might be used for the status checking parameters (Table 8.2):
Note: Choices for Hydraulic Options can also be set from the Project >> Defaults menu and saved for use with all
future projects (see Section 5.2).
Water Quality Options
Water Quality Options control how the water quality analysis is carried out. They consist of the following (Table
8.3):
76
EPANET USERS MANUAL, Release 2.2
Note: The Quality Tolerance determines when the quality of one parcel of water is essentially the same as another
parcel. For chemical analysis this might be the detection limit of the procedure used to measure the chemical,
adjusted by a suitable factor of safety. Using too large a value for this tolerance might affect simulation accuracy.
Using too small a value will affect computational efficiency. Some experimentation with this setting might be called
for.
Reaction Options
Reaction Options set the types of reactions that apply to a water quality analysis. They include the following (Table
8.4):
77
EPANET USERS MANUAL, Release 2.2
Times Options
Times options set values for the various time steps used in an extended period simulation. These are listed below in
Table 8.5 (times can be entered as decimal hours or in hours:minutes notation):
78
EPANET USERS MANUAL, Release 2.2
Table 8.5: Times Options for Hydraulic and Water Quality Analysis
OPTION DESCRIPTION
Total Duration Total length of a simulation in hours. Use 0 to run a single period (snapshot)
hydraulic analysis.
Hydraulic Time Step Time interval between re-computation of system hydraulics. Normal default is
1 hour.
Quality Time Step Time interval between routing of water quality constituent. Normal default is
5 minutes (0:05 hours).
Pattern Time Step Time interval used with all time patterns. Normal default is 1 hour.
Pattern Start Time Hours into all time patterns at which the simulation begins (e.g., a value of 2
means that the simulation begins with all time patterns starting at their second
hour). Normal default is 0.
Reporting Time Step Time interval between times at which computed results are reported. Normal
default is 1 hour.
Report Start Time Hours into simulation at which computed results begin to be reported. Normal
default is 0.
Starting Time of Day Clock time (e.g., 7:30 am, 10:00 pm) at which simulation begins. Default is
12:00 am (midnight).
Statistic Type of statistical processing used to summarize the results of an extended
period simulation. Choices are:
• NONE (current time step results)
• AVERAGE (time-averaged results)
• MINIMUM (minimum value results)
• MAXIMUM (maximum value results)
• RANGE (diff between min and max)
Statistical processing is applied to all node and link results obtained between
the Report Start Time and the Total Duration.
Note: To run a single-period hydraulic analyses (also called a snapshot analysis) enter 0 for Total Duration. In this
case entries for all of the other time options, with the exception of Starting Time of Day, are not used. Water quality
analyses always require that a non-zero Total Duration be specified.
Energy Options
Energy Analysis Options provide default values used to compute pumping energy and cost when no specific energy
parameters are assigned to a given pump. They consist of the following (Table 8.6):
79
EPANET USERS MANUAL, Release 2.2
If the analysis runs successfully the icon will appear in the Run Status section of the Status Bar at the bottom
of the EPANET workspace. Any error or warning messages will appear in a Status Report window. If you edit the
properties of the network after a successful run has been made, the faucet icon changes to a broken faucet indicating
that the current computed results no longer apply to the modified network.
EPANET will issue specific Error and Warning messages when problems are encountered in running a hydraulic/water quality
analysis (see Appendix Error Messages for a complete listing). The most common problems are discussed below.
Pumps Cannot Deliver Flow or Head
EPANET will issue a warning message when a pump is asked to operate outside the range of its pump curve. If the
pump is required to deliver more head than its shutoff head, EPANET will close the pump down. This might lead to
portions of the network becoming disconnected from any source of water.
Network is Disconnected
EPANET classifies a network as being disconnected if there is no way to provide water to all nodes that have
demands. This can occur if there is no path of open links between a junction with demand and either a reservoir, a
tank, or a junction with a negative demand. If the problem is caused by a closed link EPANET will still compute a
hydraulic solution (probably with extremely large negative pressures) and attempt to identify the problem link in its
Status Report. If no connecting link(s) exist EPANET will be unable to solve the hydraulic equations for flows and
pressures and will return an Error 110 message when an analysis is made. Under an extended period simulation it is
possible for nodes to become disconnected as links change status over time.
Negative Pressures Exist
When performing a demand driven analysis (DDA), EPANET will issue a warning message when it encounters
negative pressures at junctions that have positive demands. This usually indicates that there is some problem with
the way the network has been designed or operated. Negative pressures can occur when portions of the network can
only receive water through links that have been closed off. In such cases an additional warning message about the
network being disconnected is also issued.
Alternatively, a pressure driven analysis (PDA) can be performed to determine a hydraulic solution assuming a
pressure-demand relationship at junctions. The hydraulic solution found will have reduced or zero demands and
negative pressures will be largely eliminated. This is considered a more “realistic” solution since large negative
pressures in a network are not physically realistic.
System Unbalanced
A System Unbalanced condition can occur when EPANET cannot converge to a hydraulic solution in some time
period within its allowed maximum number of trials. This situation can occur when valves, pumps, or pipelines keep
switching their status from one trial to the next as the search for a hydraulic solution proceeds. For example, the
pressure limits that control the status of a pump may be set too close together. Or a pump’s head curve might be too
flat causing it to keep shutting on and off.
To eliminate the unbalanced condition one can try to increase the allowed maximum number of trials or loosen the
convergence accuracy requirement. Both of these parameters are set with the project’s Hydraulic Options. If the
unbalanced condition persists, then another hydraulic option, labeled “If Unbalanced”, offers two ways to handle it.
One is to terminate the entire analysis once the condition is encountered. The other is to continue seeking a hydraulic
solution for another 10 trials with the status of all links frozen to their current values. If convergence is achieved
80
EPANET USERS MANUAL, Release 2.2
then a warning message is issued about the system possibly being unstable. If convergence is not achieved then a
“System Unbalanced” warning message is issued. In either case, the analysis will proceed to the next time period.
If an analysis in a given time period ends with the system unbalanced then the user should recognize that the hydraulic
results produced for this time period are inaccurate. Depending on circumstances, such as errors in flows into or out
of storage tanks, this might affect the accuracy of results in all future periods as well.
Hydraulic Equations Unsolvable
Error 110 is issued if at some point in an analysis the set of equations that model flow and energy balance in
the network cannot be solved. This can occur when some portion of a system demands water but has no links
physically connecting it to any source of water. In such a case EPANET will also issue warning messages about
nodes being disconnected. The equations might also be unsolvable if unrealistic numbers were used for certain
network properties.
81
CHAPTER
NINE
VIEWING RESULTS
This chapter describes the different ways in which the results of an analysis as well as the basic network input data can be viewed.
These include different map views, graphs, tables, and special reports.
There are several ways in which database values and results of a simulation can be viewed directly on the Network
Map:
• For the current settings on the Map Browser (see Section 4.7), the nodes and links of the map will be colored
according to the color- coding used in the Map Legends (see Section 7.7). The map’s coloring will be updated
as a new time period is selected in the Browser.
• When the Flyover Map Labeling program preference is selected (see Section 4.9), moving the mouse over any
node or link will display its ID label and the value of the current viewing parameter for that node or link in a
hint-style box.
• ID labels and viewing parameter values can be displayed next to all nodes and/or links by selecting the appro-
priate options on the Notation page of the Map Options dialog form (see Section 7.9).
• Nodes or links meeting a specific criterion can be identified by submitting a Map Query (see below).
• You can animate the display of results on the network map either forward or backward in time by using the
Animation buttons on the Map Browser. Animation is only available when a node or link viewing parameter is
a computed value (e.g., link flow rate can be animated but diameter cannot).
• The map can be printed, copied to the Windows clipboard, or saved as a DXF file or Windows metafile.
Submitting a Map Query
A Map Query identifies nodes or links on the network map that meet a specific criterion (e.g., nodes with pressure
less than 20 psi, links with velocity above 2 ft/sec). An example of a map query is provided in Fig. 9.1.
To submit a map query:
1. Select a time period in which to query the map from the Map Browser.
82
EPANET USERS MANUAL, Release 2.2
Analysis results, as well as some design parameters, can be viewed using several different types of graphs. Graphs
can be printed, copied to the Windows clipboard, or saved as a data file or Windows metafile. Table 9.1 lists the
types of graphs that can be used to view values for a selected parameter.
83
EPANET USERS MANUAL, Release 2.2
Note: When only a single node or link is graphed in a Time Series Plot the graph will also display any
measured data residing in a Calibration File that has been registered with the project (see Section 5.3).
Fig. 9.2 is an example of a time series plot that shows the pressure at node 22 for different times in the analysis.
Fig. 9.3 is an example of a profile plot that shows the pressure at hour 0 for different distances.
Fig. 9.4 is an example of a contour plot that shows the quality contours at hour 16 across the network.
Fig. 9.5 is an example of a frequency plot that shows the frequency of different pressures at hour 0.
Fig. 9.6 is an example of a system flow plot that shows the amount of water produced and consumed for the simulation
duration.
To create a graph:
84
EPANET USERS MANUAL, Release 2.2
85
EPANET USERS MANUAL, Release 2.2
Time Series plots and Profile plots require one or more objects be selected for plotting. To select items into the Graph
Selection dialog for plotting:
1. Select the object (node or link) either on the Network Map or on the Data Browser. (The Graph Selection dialog
will remain visible during this process).
2. Click the Add button on the Graph Selection dialog to add the selected item to the list.
In place of Step 2, you can also drag the object’s label from the Data Browser onto the Form’s title bar or onto the
Items to Graph list box.
Table 9.3 lists the other buttons on the Graph Selection dialog form and how they are used.
86
EPANET USERS MANUAL, Release 2.2
2. Select Report >> Options, or click on the Standard Toolbar, or right-click on the graph.
3. For a Time Series, Profile, Frequency or System Flow plot, use the resulting Graph Options dialog
(Fig. 9.8) to customize the graph’s appearance.
4. For a Contour plot use the resulting Contour Options dialog to customize the plot.
Note: A Time Series, Profile, or Frequency plot can be zoomed by holding down the Shift key while
drawing a zoom rectangle with the mouse’s left button held down. Drawing the rectangle from left to
right zooms in, drawing from right to left zooms out. The plot can also be panned in any direction by
holding down the Ctrl key and moving the mouse across the plot with the right button held down.
The Graph Options dialog form (Fig. 9.8) is used to customize the appearance of an X-Y graph. To use the dialog
box:
1. Select from among the five tabbed pages that cover the following categories of options:
87
EPANET USERS MANUAL, Release 2.2
• General
• Horizontal Axis
• Vertical Axis
• Legend
• Series
2. Check the Default box if you wish to use the current settings as defaults for all new graphs as well.
3. Select OK to accept your selections.
The options contained on each tab of the Graph Options dialog are described below.
Table 9.4 lists the options on the General tab.
Table 9.5 lists the options on the Horizontal and Vertical Axis tabs.
The Series tab (see Fig. 9.8) of the Graph Options dialog controls how individual data series (or curves) are displayed
on a graph. To use this page:
• Select a data series to work with from the Series combo box.
• Edit the title used to identify this series in the legend.
88
EPANET USERS MANUAL, Release 2.2
• Click the Font button to change the font used for the legend. (Other legend properties are selected on the
Legend page of the dialog.)
• Select a property of the data series you would like to modify. The choices are:
– Lines
– Markers
– Patterns
– Labels
(Not all properties are available for some types of graphs.)
The data series properties that can be modified on the Series tab are listed in Table 9.7.
The Contour Options dialog form (Fig. 9.9) is used to customize the appearance of a contour graph. A
description of each option is provided in Table 9.8.
89
EPANET USERS MANUAL, Release 2.2
EPANET allows you to view selected project data and analysis results in a tabular format:
• A Network Table lists properties and results for all nodes or links at a specific period of time.
• A Time Series Table lists properties and results for a specific node or link in all time periods.
Tables can be printed, copied to the Windows clipboard, or saved to file. An example table is shown in Fig. 9.10.
To create a table:
90
EPANET USERS MANUAL, Release 2.2
91
EPANET USERS MANUAL, Release 2.2
Data fields are available for selecting the time period or node/link to which the table applies.
Columns Tab
The Columns tab of the Table Options dialog form (Fig. 9.12) selects the parameters that are displayed in the table’s
columns.
• Click the checkbox next to the name of each parameter you wish to include in the table, or if the item is already
selected, click in the box to deselect it. (The keyboard’s Up and Down Arrow keys can be used to move between
the parameter names, and the spacebar can be used to select/deselect choices).
• To sort a Network-type table with respect to the values of a particular parameter, select the parameter from the
list and check off the Sorted By box at the bottom of the form. (The sorted parameter does not have to be
selected as one of the columns in the table.) Time Series tables cannot be sorted.
Filters Tab
The Filters tab of the Table Options dialog form (Fig. 9.13) is used to define conditions for selecting items
to appear in a table. To filter the contents of a table:
• Use the controls at the top of the page to create a condition (e.g., Pressure Below 20).
• Click the Add button to add the condition to the list.
• Use the Delete button to remove a selected condition from the list.
Multiple conditions used to filter the table are connected by AND’s. If a table has been filtered, a re-
sizeable panel will appear at the bottom indicating how many items have satisfied the filter conditions.
Once a table has been created, you can add/delete columns or sort or filter its data:
• Select Report >> Options or click on the Standard Toolbar or right-click on the table.
• Use the Columns and Filters pages of the Table Selection dialog form to modify your table.
92
EPANET USERS MANUAL, Release 2.2
In addition to graphs and tables, EPANET can generate several other specialized reports. These include:
• Status Report
• Energy Report
• Calibration Report
• Reaction Report
• Full Report
All of these reports can be printed, copied to a file, or copied to the Windows clipboard (the Full Report can only be
saved to file.)
Status Report
EPANET writes all error and warning messages generated during an analysis to a Status Report (see Fig. 9.14).
Additional information on when network objects change status and a final mass balance accounting for water quality
analysis are also written to this report if the Status Report option in the project’s Hydraulics Options was set to Yes
or Full. For pressure driven analysis, node demand deficiency will also be reported in the status report. To view a
status report on the most recently completed analysis select Report >> Status from the main menu.
Energy Report
EPANET can generate an Energy Report that displays statistics about the energy consumed by each pump and the
cost of this energy usage over the duration of a simulation (see Fig. 9.15). To generate an Energy Report select
Report >> Energy from the main menu. The report has two tabs, Table and Chart. One displays energy usage by
pump in a tabular format. The second compares a selected energy statistic between pumps using a bar chart.
Calibration Report
93
EPANET USERS MANUAL, Release 2.2
94
EPANET USERS MANUAL, Release 2.2
A Calibration Report can show how well EPANET’s simulated results match measurements taken from the system
being modeled. To create a Calibration Report:
1. First make sure that Calibration Data for the quantity being calibrated has been registered with the project (see
Section 5.3).
2. Select Report >> Calibration from the main menu.
3. In the Calibration Report Options form that appears (see Fig. 9.16):
• Select a parameter to calibrate against
• Select the measurement locations to use in the report
4. Click OK to create the report.
After the report is created the Calibration Report Options form can be recalled to change report options by selecting
Report >> Options or by clicking on the Standard Toolbar when the report is the current active window in
EPANET’s workspace.
A sample Calibration Report is shown in Fig. 9.17. It contains three tabbed pages: Statistics, Correlation Plot, and
Mean Comparisons.
Statistics Tab
The Statistics tab of a Calibration Report lists various error statistics between simulated and observed
values at each measurement location and for the network as a whole. If a measured value at a location
was taken at a time in-between the simulation’s reporting time intervals then a simulated value for that
time is found by interpolating between the simulated values at either end of the interval.
The statistics listed for each measurement location are:
• Number of observations
• Mean of the observed values
• Mean of the simulated values
• Mean absolute error between each observed and simulated value
• Root mean square error (square root of the mean of the squared errors between the observed and
simulated values)
95
EPANET USERS MANUAL, Release 2.2
These statistics are also provided for the network as a whole (i.e., all measurements and model errors
pooled together). Also listed is the correlation between means (correlation coefficient between the mean
observed value and mean simulated value at each location).
Correlation Plot Tab
The Correlation Plot tab of a Calibration Report displays a scatter plot of the observed and simulated
values for each measurement made at each location. Each location is assigned a different color in the
plot. The closer that the points come to the 45-degree angle line on the plot the closer is the match
between observed and simulated values.
Mean Comparisons Tab
The Mean Comparisons tab of a Calibration Report presents a bar chart that compares the mean observed
and mean simulated value for a calibration parameter at each location where measurements were taken.
Reaction Report
A Reaction Report, available when modeling the fate of a reactive water quality constituent, graphically depicts the
overall average reaction rates occurring throughout the network in the following locations:
• The bulk flow
• The pipe wall
• Within storage tanks
A pie chart shows what percent of the overall reaction rate is occurring in each location. The chart legend displays
the average rates in mass units per hour. A footnote on the chart shows the inflow rate of the reactant into the system.
The information in the Reaction Report can show at a glance what mechanism is responsible for the majority of
growth or decay of a substance in the network. For example, if one observes that most of the chlorine decay in a
system is occurring in the storage tanks and not at the walls of the pipes then one might infer that a corrective strategy
of pipe cleaning and replacement will have little effect in improving chlorine residuals.
A Graph Options dialog box can be called up to modify the appearance of the pie chart by selecting Report >>
Options or by clicking on the Standard Toolbar, or by right-clicking anywhere on the chart.
96
EPANET USERS MANUAL, Release 2.2
Full Report
When the icon appears in the Run Status section of the Status Bar, a report of computed results for all nodes,
links and time periods can be saved to file by selecting Full from the Report menu. This report, which can be viewed
or printed outside of EPANET using any text editor or word processor, contains the following information:
• Project title and notes
• A table listing the end nodes, length, and diameter of each link
• A table listing energy usage statistics for each pump
• A pair of tables for each time period listing computed values for each node (demand, head, pressure, and
quality) and for each link (flow, velocity, headloss, and status)
This feature is useful mainly for documenting the final results of a network analysis on small to moderately sized net-
works (full report files for large networks analyzed over many time periods can easily consume dozens of megabytes
of disk space). The other reporting tools described in this chapter are available for viewing computed results on a
more selective basis.
97
CHAPTER
TEN
This chapter describes how to print, copy to the Windows clipboard, or copy to file the contents of the currently active window
in the EPANET workspace. This can include the network map, a graph, a table, a report, or the properties of an object selected
from the Browser.
To select a printer from among your installed Windows printers and set its properties:
1. Select File >> Page Setup from the main menu.
2. Click the Printer button on the Page Setup dialog that appears (see Fig. 10.1).
3. Select a printer from the choices available in the combo box in the next dialog that appears.
4. Click the Properties button to select the printer’s properties (which vary with choice of printer).
5. Click OK on each dialog box to accept your selections.
The Page Setup dialog menu screen is shown in Fig. 10.1. To format the printed page:
1. Select File >> Page Setup from the main menu.
2. Use the Margins page of the Page Setup dialog form that appears (Fig. 10.1) to:
• Select a printer
• Select the paper orientation (Portrait or Landscape)
• Set left, right, top, and bottom margins
3. Use the Headers/Footers page of the dialog box to:
• Supply the text for a header that will appear on each page
• Indicate whether the header should be printed or not
• Supply the text for a footer that will appear on each page
• Indicate whether the footer should be printed or not
• Indicate whether or not pages should be numbered
4. Click OK to accept your choices.
98
EPANET USERS MANUAL, Release 2.2
To preview a printout, select File >> Print Preview from the main menu. A Preview form will appear
which shows how each page of the object being printed will appear when printed.
To print the contents of the current window being viewed in the EPANET workspace select File >> Print
from the main menu or click on the Standard Toolbar. The following views can be printed:
• Data Browser (properties of the currently selected object)
• Network Map (at the current zoom level)
• Graphs (Time Series, Profile, Contour, Frequency and System Flow plots)
• Tables (Network and Time Series tables)
• Status, Energy, Calibration, and Reaction Reports.
EPANET can copy the text and graphics of the current window being viewed to both the Windows clipboard and to
a file. The Copy Network Map menu screen is shown in Fig. 10.2 below. Views that can be copied in this fashion
include the Network Map, graphs, tables, and reports. To copy the current view to the clipboard or to file:
99
EPANET USERS MANUAL, Release 2.2
Use the Copy dialog as follows to define how you want your data copied and to where:
1. Select a destination for the material being copied (Clipboard or File)
2. Select a format to copy in:
• Bitmap (graphics only)
• Metafile (graphics only)
• Data (text, selected cells in a table, or data used to construct a graph)
3. Click OK to accept your selections or Cancel to cancel the copy request.
100
CHAPTER
ELEVEN
This chapter introduces the concept of Project Scenarios and describes how EPANET can import and export these and other
data, such as the network map and the entire project database.
A Project Scenario consists of a subset of the data that characterizes the current conditions under which a pipe
network is being analyzed. A scenario can consist of one or more of the following data categories:
• Demands (baseline demand plus time patterns for all categories) at all nodes
• Initial water quality at all nodes
• Diameters for all pipes
• Roughness coefficients for all pipes
• Reaction coefficients (bulk and wall) for all pipes
• Simple and rule-based controls
EPANET can compile a scenario based on some or all of the data categories listed above, save the scenario to file,
and read the scenario back in at a later time.
Scenarios can provide more efficient and systematic analysis of design and operating alternatives. They can be used
to examine the impacts of different loading conditions, search for optimal parameter estimates, and evaluate changes
in operating policies. The scenario files are saved as ASCII text and can be created or modified outside of EPANET
using a text editor or spreadsheet program.
101
EPANET USERS MANUAL, Release 2.2
The exported scenario can be imported back into the project at a later time as described in the next section.
EPANET has the ability to import a geometric description of a pipe network in a simple text format. This description
simply contains the ID labels and map coordinates of the nodes and the ID labels and end nodes of the links. This
simplifies the process of using other programs, such as CAD and GIS packages, to digitize network geometric data
and then transfer these data to EPANET.
The format of a partial network text file looks as follows, where the text between brackets (< >) describes what type
of information appears in that line of the file:
[TITLE]
[JUNCTIONS]
102
EPANET USERS MANUAL, Release 2.2
[PIPES]
[COORDINATES]
[VERTICES]
Note that only junctions and pipes are represented. Other network elements, such as reservoirs and pumps, can either
be imported as junctions or pipes and converted later on or simply be added in later on. The user is responsible for
transferring any data generated from a CAD or GIS package into a text file with the format shown above.
In addition to this partial representation, a complete specification of the network can be placed in a file using the
format described in Appendix Command Line EPANET. This is the same format EPANET uses when a project is
exported to a text file (see Section 11.7 below). In this case the file would also contain information on node and link
properties, such as elevations, demands, diameters, roughness, etc.
The current view of the network map can be saved to file using either Autodesk’s DXF (Drawing Exchange Format)
format, the Windows enhanced metafile (EMF) format, or EPANET’s own ASCII text (map) format. The DXF
format is readable by many Computer Aided Design (CAD) programs. Metafiles can be inserted into word processing
documents and loaded into drawing programs for re-scaling and editing. Both formats are vector-based and will not
loose resolution when they are displayed at different scales.
To export the network map at full extent to a DXF, metafile, or text file:
1. Select File >> Export >> Map from the main menu.
2. In the Map Export dialog form that appears (see Fig. 11.2) select the format that you want the map saved in.
3. If you select DXF format, you have a choice of how junctions will be represented in the DXF file. They can be
drawn as open circles, as filled circles, or as filled squares. Not all DXF readers can recognize the commands
used in the DXF file to draw a filled circle.
4. After choosing a format, click OK and enter a name for the file in the Save As dialog form that appears.
103
EPANET USERS MANUAL, Release 2.2
104
CHAPTER
TWELVE
12.1 FAQs
How can I import a pipe network created with a CAD or GIS program?
See Section 11.4.
How do I model a groundwater pumping well?
Represent the well as a reservoir whose head equals the piezometric head of the groundwater aquifer. Then connect
your pump from the reservoir to the rest of the network. You can add piping ahead of the pump to represent local
losses around the pump.
If you know the rate at which the well is pumping then an alternate approach is to replace the well – pump combi-
nation with a junction assigned a negative demand equal to the pumping rate. A time pattern can also be assigned to
the demand if the pumping rate varies over time.
How do I size a pump to meet a specific flow?
Set the status of the pump to CLOSED. At the suction (inlet) node of the pump add a demand equal to the required
pump flow and place a negative demand of the same magnitude at the discharge node. After analyzing the network,
the difference in heads between the two nodes is what the pump needs to deliver.
How do I size a pump to meet a specific head?
Replace the pump with a Pressure Breaker Valve oriented in the opposite direction. Convert the design head to an
equivalent pressure and use this as the setting for the valve. After running the analysis the flow through the valve
becomes the pump’s design flow.
How can I enforce a specific schedule of source flows into the network from my reservoirs?
Replace the reservoirs with junctions that have negative demands equal to the schedule of source flows. (Make sure
there is at least one tank or remaining reservoir in the network, otherwise EPANET will issue an error message.)
How can I analyze fire flow conditions for a particular junction node?
To determine the maximum pressure available at a node when the flow demanded must be increased to suppress a
fire, add the fire flow to the node’s normal demand, run the analysis, and note the resulting pressure at the node.
To determine the maximum flow available at a particular pressure, set the emitter coefficient at the node to a large
value (e.g., 100 times the maximum expected flow) and add the required pressure head (2.3 times the pressure in psi)
to the node’s elevation. After running the analysis, the available fire flow equals the actual demand reported for the
node minus any consumer demand that was assigned to it.
How do I model a reduced pressure backflow prevention valve?
Use a General Purpose Valve with a headloss curve that shows increasing head loss with decreasing flow. Information
from the valve manufacturer should provide help in constructing the curve. Place a check valve (i.e., a short length
of pipe whose status is set to CV) in series with the valve to restrict the direction of flow.
105
EPANET USERS MANUAL, Release 2.2
The tank’s inlet consists of a Pressure Sustaining Valve followed by a short length of large diameter pipe. The
pressure setting of the PSV should be 0, and the elevation of its end nodes should equal the elevation at which the
true pipe connects to the tank. Use a Check Valve on the tank’s outlet line to prevent reverse flow through it.
How do I determine initial conditions for a water quality analysis?
If simulating existing conditions monitored as part of a calibration study, assign measured values to the nodes where
measurements were made and interpolate (by eye) to assign values to other locations. It is highly recommended that
storage tanks and source locations be included in the set of locations where measurements are made.
To simulate future conditions start with arbitrary initial values (except at the tanks) and run the analysis for a number
of repeating demand pattern cycles so that the
water quality results begin to repeat in a periodic fashion as well. The number of such cycles can be reduced if
good initial estimates are made for the water quality in the tanks. For example, if modeling water age the initial
value could be set to the tank’s average residence time, which is approximately equal to the fraction of its volume it
exchanges each day.
How do I estimate values of the bulk and wall reaction coefficients?
Bulk reaction coefficients can be estimated by performing a bottle test in the laboratory (see Bulk Reactions in
Section 3.4). Wall reaction rates cannot be measured directly. They must be back-fitted against calibration data
collected from field studies (e.g., using trial and error to determine coefficient values that produce simulation results
that best match field observations). Plastic pipe and relatively new lined iron pipe are not expected to exert any
significant wall demand for disinfectants such as chlorine and chloramines.
How can I model a chlorine booster station?
Place the booster station at a junction node with zero or positive demand or at a tank. Select the node into the
Property Editor and click the ellipsis button in the Source Quality field to launch the Source Quality Editor. In the
editor, set Source Type to SETPOINT BOOSTER and set Source Quality to the chlorine concentration that water
leaving the node will be boosted to. Alternatively, if the booster station will use flow-paced addition of chlorine
then set Source Type to FLOW PACED BOOSTER and Source Quality to the concentration that will be added to the
concentration leaving the node. Specify a time pattern ID in the Time Pattern field if you wish to vary the boosting
level with time.
How would I model trihalomethanes (THM) growth in a network?
THM growth can be modeled using first-order saturation kinetics. Select Options – Reactions from the Data Browser.
Set the bulk reaction order to 1 and the limiting concentration to the maximum THM level that the water can produce,
106
EPANET USERS MANUAL, Release 2.2
given a long enough holding time. Set the bulk reaction coefficient to a positive number reflective of the rate of THM
production (e.g., 0.7 divided by the THM doubling time). Estimates of the reaction coefficient and the limiting
concentration can be obtained from laboratory testing. The reaction coefficient will increase with increasing water
temperature. Initial concentrations at all network nodes should at least equal the THM concentration entering the
network from its source node.
Can I use a text editor to edit network properties while running EPANET?
Save the network to file as ASCII text (select File >> Export >> Network). With EPANET still running, start up
your text editor program. Load the saved network file into the editor. When you are done editing the file, save it to
disk. Switch to EPANET and read in the file (select File >> Open). You can keep switching back and forth between
the editor program and EPANET, as more changes are needed. Just remember to save the file after modifying it in the
editor, and re-open it again after switching to EPANET. If you use a word processor (such as Word) or a spreadsheet
as your editor, remember to save the file as plain ASCII text.
Can I run multiple EPANET sessions at the same time?
Yes. This could prove useful in making side-by-side comparisons of two or more different design or operating
scenarios.
107
CHAPTER
THIRTEEN
ANALYSIS ALGORITHMS
EPANET uses a variety of algorithms for the hydraulic and water quality analysis. This chapter describes the two different
demand models used for hydraulics analysis and the algorithms for the water quality analysis.
13.1 Hydraulics
The method used in EPANET to solve the flow continuity and headloss equations that characterize the hydraulic state
of the pipe network at a given point in time can be termed a hybrid node-loop approach. Todini and Pilati (1987)
and later Salgado et al. (1988) chose to call it the “Gradient Method”. Similar approaches have been described by
Hamam and Brameller (1971) (the “Hybrid Method) and by Osiadacz (1987) (the “Newton Loop-Node Method”).
The only difference between these methods is the way in which link flows are updated after a new trial solution for
nodal heads has been found. Because Todini’s approach is simpler, it was chosen for use in EPANET.
Todini (2003) describes how the Gradient Method can be extended to simulate pressure driven demands (PDD). The
latest version of EPANET has been updated to include these capabilities. A water distribution pipe network can now
be analyzed two ways, 1) assuming demand, and 2) assuming pressure driven demands. The subsections that follow
provide a technical description for these two demand models.
Fixed Demand Model
Assume we have a pipe network with 𝑁 junction nodes and 𝑁 𝐹 fixed grade nodes (tanks and reservoirs). Let the
flow-headloss relation in a pipe between nodes 𝑖 and 𝑗 be given as:
where 𝐻 = nodal head, ℎ = headloss, 𝑟 = resistance coefficient, 𝑄 = flow rate, 𝑛 = flow exponent, and 𝑚 = minor
loss coefficient. The value of the resistance coefficient will depend on which friction headloss formula is being used
(see below). For pumps, the headloss (negative of the head gain) can be represented by a power law of the form
2
ℎ𝑖𝑗 = −𝜔 2 (ℎ0 − 𝑟(𝑄𝑖𝑗 /𝜔) )
where ℎ0 is the shutoff head for the pump, 𝜔 is a relative speed setting, and 𝑟 and 𝑛 are the pump curve coefficients.
The second set of equations that must be satisfied is flow continuity around all nodes:
∑︁
𝑄𝑖𝑗 − 𝐷𝑖 = 0
𝑗 (13.2)
for i = 1 , ...N
where 𝐷𝑖 is the flow demand at node 𝑖 and by convention, flow into a node is positive. For a set of known heads at
the fixed grade nodes, we seek a solution for all heads 𝐻𝑖 and flows 𝑄𝑖𝑗 that satisfy Eqs. (13.1) and (13.2).
108
EPANET USERS MANUAL, Release 2.2
The Gradient solution method begins with an initial estimate of flows in each pipe that may not necessarily satisfy
flow continuity. At each iteration of the method, new nodal heads are found by solving the matrix equation:
𝐴𝐻 = 𝐹 (13.3)
where 𝐴 = an (𝑁 𝑥𝑁 ) Jacobian matrix, 𝐻 = an (𝑁 𝑥1) vector of unknown nodal heads, and 𝐹 = an (𝑁 𝑥1) vector of
right hand side terms.
The diagonal elements of the Jacobian matrix are:
∑︁ 1
𝐴𝑖𝑗 =
𝑗
𝑔𝑖𝑗
where 𝑔𝑖𝑗 is the derivative of the headloss in the link between nodes 𝑖 and 𝑗 with respect to flow. For pipes, when
resistance coefficient is not a function of flow rate,
𝑛−1
𝑔𝑖𝑗 = 𝑛𝑟|𝑄𝑖𝑗 | + 2𝑚|𝑄𝑖𝑗 |
when resistance coefficient is a function of flow rate, specifically as in Darcy-Weisbach head loss equation and when
flow is turbulent,
𝑛−1 𝜕𝑟
𝑔𝑖𝑗 = 𝑛𝑟|𝑄𝑖𝑗 | + |𝑄𝑖𝑗 |𝑛 + 2𝑚|𝑄𝑖𝑗 |
𝜕𝑄𝑖𝑗
Zero flows can cause numerical instability in the GGA solver (Gorev et al., 2013; Elhay and Simpson, 2011). When
flow approaches zero, a linear relationship is assumed between head loss and flow to prevent 𝑔𝑖𝑗 from reaching zero.
The value of 𝑔𝑖𝑗 is capped at a specific value when the flow is smaller than what is defined by the specific 𝑔.
while for pumps
Each right hand side term consists of the net flow imbalance at a node plus a flow correction factor:
∑︁ (︂ 𝑦𝑖𝑗
)︂ ∑︁ 𝐻𝑓
𝐹𝑖 = 𝑄𝑖𝑗 + − 𝐷𝑖 + (13.4)
𝑗
𝑔𝑖𝑗 𝑔𝑖𝑗
𝑓
where the last term applies to any links connecting node 𝑖 to a fixed grade node 𝑓 and the flow correction factor 𝑦𝑖𝑗
is:
𝑛 2
𝑦𝑖𝑗 = (𝑟|𝑄𝑖𝑗 | + 𝑚|𝑄𝑖𝑗 | )𝑠𝑔𝑛(𝑄𝑖𝑗 )
for pumps, where 𝑠𝑔𝑛(𝑥) is 1 if 𝑥 > 0 and −1 otherwise (𝑄𝑖𝑗 is always positive for pumps).
After new heads are computed by solving Eq. (13.3), new flows are found from:
1
𝑄𝑖𝑗 = 𝑄𝑖𝑗 − (𝑦𝑖𝑗 − 𝐻𝑖 − 𝐻𝑗 ) (13.5)
𝑔𝑖𝑗
The flow update formula always results in flow continuity around each node after the first iteration.
109
EPANET USERS MANUAL, Release 2.2
Iterations continue until some suitable convergence criterion based on residual errors associated with (13.1) and
(13.2) is met. If convergence does not occur then Eqs. (13.3) and (13.5) are solved again.
EPANET uses several different hydraulic convergence criteria. Versions 2.0 and earlier based accuracy on the abso-
lute flow changes relative to the total flow in all links. Gorev et al. (2013), however, observed that this criterion did
not guarantee convergence towards the exact solution and proposed two new ones based on max head error and max
flow change. These two criteria have been added to EPANET v2.2 as options that provide more rigorous control over
hydraulic convergence.
Pressure Driven Demand Model
Now consider the case where the demand at a node 𝑖, 𝑑𝑖 , depends on the pressure head 𝑝𝑖 available at the node (where
pressure head is hydraulic head ℎ𝑖 minus elevation 𝐸𝑖 ). There are several different forms of pressure dependency
that have been proposed. Here we use Wagner’s equation (Wagner et al., 1988):
⎧
⎨ 𝐷𝑖 (︁
⎪ )︁𝑒 𝑝𝑖 ≥ 𝑃𝑓
𝑝𝑖 −𝑃0
𝑑𝑖 = 𝐷𝑖 𝑃𝑓 −𝑃0 𝑃0 < 𝑝𝑖 < 𝑃𝑓 (13.6)
⎪
0 𝑝𝑖 ≤ 𝑃0
⎩
𝐷𝑖 is the full normal demand at node 𝑖 when the pressure 𝑝𝑖 equals or exceeds 𝑃𝑓 , 𝑃0 is the pressure below which
the demand is 0, and 𝑒 is an exponent usually set equal to 0.5 (to mimic flow through an orifice).
Eq. (13.6) can be inverted to express head loss through a virtual link as a function of the demand flowing out of node
𝑖 to a virtual reservoir with fixed pressure head 𝑃0 + 𝐸𝑖 :
where 𝐸𝑖 is the node’s elevation and 𝑅𝑑𝑖 = (𝑃𝑓 − 𝑃0 )/𝐷𝑖𝑒 is the link’s resistance coefficient. This expression can
be folded into the GGA matrix equations, where the pressure driven demands 𝑑𝑖 are treated as the unknown flows in
the virtual links that honor constraints in Eq. (13.6).
The head loss ℎ𝑑 and its gradient 𝑔𝑑 through the virtual link can be evaluated as follows (with node subscripts
suppressed for clarity):
1. If the current demand flow 𝑑 is greater than the full Demand 𝐷:
ℎ𝑑 = 𝑅𝑑 𝐷𝑒 + 𝑅HIGH (𝑑 − 𝐷)
𝑔𝑑 = 𝑅HIGH
and a one-sided barrier function ℎ𝑏 (𝑑) and its derivative 𝑔𝑏 (𝑑) is added onto ℎ𝑑 and 𝑔𝑑 , respectively, to prevent
𝑑 from going negative.
The aforementioned barrier function has the form:
(︁ √︀ )︁
ℎ𝑏 = 𝑎2 + 𝜖2 /2
𝑎−
(︁ √︀ )︁
𝑔𝑏 = (𝑅HIGH /2) 1 − 𝑎/ 𝑎2 + 𝜖2
110
EPANET USERS MANUAL, Release 2.2
𝐹𝑖 = 𝐹𝑖 + 𝐷𝑖 − 𝑑𝑖 + (ℎ𝑑𝑖 + 𝐸𝑖 + 𝑃0 ) /𝑔𝑑𝑖
Note that 𝐷𝑖 is added to 𝐹𝑖 to cancel out having subtracted it from the original 𝐹𝑖 value appearing in Eq. (13.4).
After a new set of nodal heads is found, the demands at node 𝑖 are updated using Eq. (13.5) which takes the form:
𝑑𝑖 = 𝑑𝑖 − (ℎ𝑑𝑖 − ℎ𝑖 + 𝐸𝑖 + 𝑃0 )/𝑔𝑑𝑖
Cubic Interpolation From Moody Diagram for 2, 000 < 𝑅𝑒 < 4, 000 (Dunlop, 1991):
111
EPANET USERS MANUAL, Release 2.2
𝑋1 = 7𝐹 𝐴 − 𝐹 𝐵
𝑋2 = 0.128 − 17𝐹 𝐴 + 2.5𝐹 𝐵
𝑋3 = −0.128 + 13𝐹 𝐴 − 2𝐹 𝐵
𝑋4 = 𝑅(0.032 − 3𝐹 𝐴 + 0.5𝐹 𝐵)
−2
𝐹 𝐴 = (𝑌 3)
0.00514215
𝐹 𝐵 = 𝐹 𝐴(2 − )
(𝑌 2)(𝑌 3)
𝜖 5.74
𝑌2= +
3.7𝑑 𝑅𝑒0.9
(︂ )︂
𝜖 5.74
𝑌 3 = −0.86859 ln +
3.7𝑑 40000.9
where 𝜖 = pipe roughness and 𝑑 = pipe diameter.
Based on friction factor equations described above and Darcy-Weisbach equation in Table 3.1, resistance coef-
ficient is not a function of flow and linear relationship exists between head loss and flow when Re > 2000. If Re
> 2000, resistance coefficient depends on pipe flow and the sensitivity of resistance coefficient to flow needs to
be computed in order to calculate 𝑔𝑖𝑗 for the pipe.
4. The minor loss coefficient based on velocity head (𝐾) is converted to one based on flow (𝑚) with the following
relation:
0.02517𝐾
𝑚=
𝑑4
5. Emitters at junctions are modeled as a fictitious pipe between the junction and a fictitious reservoir. The pipe’s
headloss parameters are 𝑛 = (1/𝛾), 𝑟 = (1/𝐶)𝑛 , and 𝑚 = 0 where 𝐶 is the emitter’s discharge coefficient and
𝛾 is its pressure exponent. The head at the fictitious reservoir is the elevation of the junction. The computed
flow through the fictitious pipe becomes the flow associated with the emitter.
6. Open valves are assigned an 𝑟- value by assuming the open valve acts as a smooth pipe (𝑓 = 0.02) whose
length is twice the valve diameter. Closed links are assumed to obey a linear headloss relation with a large
resistance factor, i.e., ℎ = 108 𝑄, so that 𝑝 = 10−8 and 𝑦 = 𝑄. For links where (𝑟 + 𝑚)𝑄 < 10−7 , 𝑝 = 107
and 𝑦 = 𝑄/𝑛.
7. Status checks on pumps, check valves (CVs), flow control valves, and pipes connected to full/empty tanks
are made after every other iteration, up until the 10th iteration. After this, status checks are made only after
convergence is achieved. Status checks on pressure control valves (PRVs and PSVs) are made after each
iteration.
8. During status checks, pumps are closed if the head gain is greater than the shutoff head (to prevent reverse flow).
Similarly, check valves are closed if the headloss through them is negative (see below). When these conditions
are not present, the link is re-opened. A similar status check is made for links connected to empty/full tanks.
Such links are closed if the difference in head across the link would cause an empty tank to drain or a full tank
to fill. They are re- opened at the next status check if such conditions no longer hold.
9. Simply checking if ℎ < 0 to determine if a check valve should be closed or open was found to cause cycling
between these two states in some networks due to limits on numerical precision. The following procedure was
devised to provide a more robust test of the status of a check valve (CV):
if |h| > Htol then
if h < -Htol then status = CLOSED
if Q < -Qtol then status = CLOSED
else status = OPEN
else
if *Q* < -Qtol then status = CLOSED
else status = unchanged
112
EPANET USERS MANUAL, Release 2.2
if Hi > Hj + Htol
and Hj < Hset - Htol then new status = ACTIVE
else new status = CLOSED
where Q is the current flow through the valve, Hi is its upstream head, Hj is its downstream head, Hset
is its pressure setting converted to head, Hml is the minor loss when the valve is open (= mQ2 ), and
Htol and Qtol are the same values used for check valves in item 9 above. A similar set of tests is used
for PSVs, except that when testing against Hset, the i and j subscripts are switched as are the > and <
operators.
14. Flow through an active PRV is maintained to force continuity at its downstream node while flow through a PSV
does the same at its upstream node. For an active PRV from node i to j:
1
=0
𝑔𝑖𝑗
𝐹𝑗 = 𝐹𝑗 + 108 𝐻𝑠𝑒𝑡
113
EPANET USERS MANUAL, Release 2.2
16. After initial convergence is achieved (flow convergence plus no change in status for PRVs and PSVs), another
status check on pumps, CVs, FCVs, and links to tanks is made. Also, the status of links controlled by pressure
switches (e.g., a pump controlled by the pressure at a junction node) is checked. If any status change occurs,
the iterations must continue for at least two more iterations (i.e., a convergence check is skipped on the very
next iteration). Otherwise, a final solution has been obtained.
17. For extended period simulation (EPS), the following procedure is implemented:
a. After a solution is found for the current time period, the time step for the next solution is the minimum of:
• The time until a new demand period begins
• The shortest time for a tank to fill or drain,
• The shortest time until a tank level reaches a point that triggers a change in status for some link
(e.g., opens or closes a pump) as stipulated in a simple control
• The next time until a simple timer control on a link kicks in
• The next time at which a rule-based control causes a status change somewhere in the network
In computing the times based on tank levels, the latter are assumed to change in a linear fashion based
on the current flow solution. The activation time of rule-based controls is computed as follows:
• Starting at the current time, rules are evaluated at a rule time step. Its default value is 1/10 of the
normal hydraulic time step (e.g., if hydraulics are updated every hour, then rules are evaluated
every 6 minutes).
• Over this rule time step, clock time is updated, as are the water levels in storage tanks (based on
the last set of pipe flows computed).
• If a rule’s conditions are satisfied, then its actions are added to a list. If an action conflicts with
one for the same link already on the list then the action from the rule with the higher priority stays
on the list and the other is removed. If the priorities are the same then the original action stays on
the list.
• After all rules are evaluated, if the list is not empty then the new actions are taken. If this causes
the status of one or more links to change then a new hydraulic solution is computed and the
process begins anew.
• If no status changes were called for, the action list is cleared and the next rule time step is taken
unless the normal hydraulic time step has elapsed.
b. Time is advanced by the computed time step, new demands are found, tank levels are adjusted based on
the current flow solution, and link control rules are checked to determine which links change status.
c. A new set of iterations with Eqs. (13.3) and (13.5) are begun at the current set of flows.
The governing equations for EPANET’s water quality solver are based on the principles of conservation of mass
coupled with reaction kinetics. The following phenomena are represented (Rossman et al., 1993; Rossman and
Boulos, 1996):
Advective Transport in Pipes
A dissolved substance will travel down the length of a pipe with the same average velocity as the carrier fluid while
at the same time reacting (either growing or decaying) at some given rate. Longitudinal dispersion is usually not
an important transport mechanism under most operating conditions. This means there is no intermixing of mass
114
EPANET USERS MANUAL, Release 2.2
between adjacent parcels of water traveling down a pipe. Advective transport within a pipe is represented with the
following equation:
𝜕𝐶𝑖 𝜕𝐶𝑖
= −𝑢𝑖 + 𝑟(𝐶𝑖 ) (13.8)
𝜕𝑡 𝜕𝑥
where 𝐶𝑖 = concentration (mass/volume) in pipe 𝑖 as a function of distance 𝑥 and time 𝑡, 𝑢𝑖 = flow velocity
(length/time) in pipe 𝑖, and 𝑟 = rate of reaction (mass/volume/time) as a function of concentration.
Mixing at Pipe Junctions
At junctions receiving inflow from two or more pipes, the mixing of fluid is taken to be complete and instanta-
neous. Thus the concentration of a substance in water leaving the junction is simply the flow-weighted sum of the
concentrations from the inflowing pipes. For a specific node 𝑘 one can write:
∑︀
𝑗∈𝐼𝑘 𝑄𝑗 𝐶𝑗|𝑥=𝐿𝑗 + 𝑄𝑘,𝑒𝑥𝑡 𝐶𝑘,𝑒𝑥𝑡
𝐶𝑖|𝑥=0 = ∑︀ (13.9)
𝑗∈𝐼𝑘 𝑄𝑗 + 𝑄𝑘,𝑒𝑥𝑡
where 𝑖 = link with flow leaving node 𝑘, 𝐼𝑘 = set of links with flow into 𝑘, 𝐿𝑗 = length of link 𝑗, 𝑄𝑗 = flow
(volume/time) in link 𝑗, 𝑄𝑘,𝑒𝑥𝑡 = external source flow entering the network at node 𝑘, and 𝐶𝑘,𝑒𝑥𝑡 = concentration
of the external flow entering at node 𝑘. The notation 𝐶𝑖|𝑥=0 represents the concentration at the start of link 𝑖, while
𝐶𝑖|𝑥=𝐿 is the concentration at the end of the link.
Mixing in Storage Facilities
It is convenient to assume that the contents of storage facilities (tanks and reservoirs) are completely mixed. This is a
reasonable assumption for many tanks operating under fill-and-draw conditions providing that sufficient momentum
flux is imparted to the inflow (Rossman and Grayman, 1999). Under completely mixed conditions the concentration
throughout the tank is a blend of the current contents and that of any entering water. At the same time, the internal
concentration could be changing due to reactions. The following equation expresses these phenomena:
𝜕(𝑉𝑠 𝐶𝑠 ) ∑︁ ∑︁
= 𝑄𝑖 𝐶𝑖|𝑥=𝐿𝑖 − 𝑄𝑗 𝐶𝑠 + 𝑟(𝐶𝑠 ) (13.10)
𝜕𝑡
𝑖∈𝐼𝑠 𝑗∈𝑂𝑠
where 𝑉𝑠 = volume in storage at time 𝑡, 𝐶𝑠 = concentration within the storage facility, 𝐼𝑠 = set of links providing
flow into the facility, and 𝑂𝑠 = set of links withdrawing flow from the facility.
Bulk Flow Reactions
While a substance moves down a pipe or resides in storage it can undergo reaction with constituents in the water
column. The rate of reaction can generally be described as a power function of concentration:
𝑟 = 𝑘𝐶 𝑛
where 𝑘 = a reaction constant and 𝑛 = the reaction order. When a limiting concentration exists on the ultimate growth
or loss of a substance then the rate expression becomes
𝑅 = 𝐾𝑏 (𝐶 − 𝐶𝐿 )𝐶 𝑛−1
for n > 0 , Kb < 0
where 𝐶𝐿 = the limiting concentration.
Some examples of different reaction rate expressions are:
• Simple First-Order Decay (𝐶𝐿 = 0, 𝐾𝑏 < 0, 𝑛 = 1):
115
EPANET USERS MANUAL, Release 2.2
𝑅 = 𝐾 𝑏𝐶
The decay of many substances, such as chlorine, can be modeled adequately as a simple first-order
reaction.
• First-Order Saturation Growth (𝐶𝐿 > 0, 𝐾𝑏 > 0, 𝑛 = 1):
𝑅 = 𝐾𝑏 (𝐶𝐿 − 𝐶)
This model can be applied to the growth of disinfection by-products, such as trihalomethanes, where
the ultimate formation of by-product (𝐶𝐿 ) is limited by the amount of reactive precursor present.
• Two-Component, Second Order Decay (𝐶𝐿 ̸= 0, 𝐾𝑏 < 0, 𝑛 = 2):
𝑅 = 𝐾𝑏 𝐶(𝐶𝐿 − 𝐶)
This model assumes that substance A reacts with substance B in some unknown ratio to produce
a product P. The rate of disappearance of A is proportional to the product of A and B remaining.
𝐶𝐿 can be either positive or negative, depending on whether either component A or B is in excess,
respectively. Clark (1998) has had success in applying this model to chlorine decay data that did not
conform to the simple first-order model.
• Michaelis-Menton Decay Kinetics (𝐶𝐿 > 0, 𝐾𝑏 < 0, 𝑛 < 0):
𝐾𝑏 𝐶
𝑅=
𝐶𝐿 − 𝐶
As a special case, when a negative reaction order n is specified, EPANET will utilize the Michaelis-
Menton rate equation, shown above for a decay reaction. (For growth reactions the denominator
becomes 𝐶𝐿 + 𝐶.) This rate equation is often used to describe enzyme-catalyzed reactions and mi-
crobial growth. It produces first- order behavior at low concentrations and zero-order behavior at
higher concentrations. Note that for decay reactions, 𝐶𝐿 must be set higher than the initial concentra-
tion present.
Koechling (1998) has applied Michaelis-Menton kinetics to model chlorine decay in a number of
different waters and found that both 𝐾𝑏 and 𝐶𝐿 could be related to the water’s organic content and its
ultraviolet absorbance as follows:
(100 𝑈 𝑉 𝐴)
𝐾𝑏 = −0.32 𝑈 𝑉 𝐴1.365
𝐷𝑂𝐶
𝐶𝐿 = 4.98 𝑈 𝑉 𝐴 − 1.91 𝐷𝑂𝐶
where 𝑈 𝑉 𝐴 = ultraviolet absorbance at 254 nm (1/cm) and 𝐷𝑂𝐶 = dissolved organic carbon con-
centration (mg/L).
Note: These expressions apply only for values of 𝐾𝑏 and 𝐶𝐿 used with Michaelis-Menton kinetics.
• Zero-Order growth (𝐶𝐿 = 0, 𝐾𝑏 = 1, 𝑛 = 0)
𝑅 = 1.0
116
EPANET USERS MANUAL, Release 2.2
This special case can be used to model water age, where with each unit of time the “concentration”
(i.e., age) increases by one unit.
The relationship between the bulk rate constant seen at one temperature (T1) to that at another tem-
perature (T2) is often expressed using a van’t Hoff - Arrehnius equation of the form:
where 𝜃 is a constant. In one investigation for chlorine, 𝜃 was estimated to be 1.1 when 𝑇 1 was 20
deg. C (Koechling, 1998).
Pipe Wall Reactions
While flowing through pipes, dissolved substances can be transported to the pipe wall and react with material such
as corrosion products or biofilm that are on or close to the wall. The amount of wall area available for reaction and
the rate of mass transfer between the bulk fluid and the wall will also influence the overall rate of this reaction. The
surface area per unit volume, which for a pipe equals 2 divided by the radius, determines the former factor. The
latter factor can be represented by a mass transfer coefficient whose value depends on the molecular diffusivity of
the reactive species and on the Reynolds number of the flow (Rossman et. al, 1994). For first- order kinetics, the rate
of a pipe wall reaction can be expressed as:
2𝑘𝑤 𝑘𝑓 𝐶
𝑟=
𝑅(𝑘𝑤 + 𝑘𝑓 )
where 𝑘𝑤 = wall reaction rate constant (length/time), 𝑘𝑓 = mass transfer coefficient (length/time), and 𝑅 = pipe
radius. For zero-order kinetics the reaction rate cannot be any higher than the rate of mass transfer, so
𝑟 = min(𝑘𝑤 , 𝑘𝑓 𝐶)(2/𝑅)
0.0668(𝑑/𝐿)𝑅𝑒 𝑆𝑐
𝑆ℎ = 3.65 + 2/3
1 + 0.04[(𝑑/𝐿)𝑅𝑒 𝑆𝑐]
in which 𝑅𝑒 = Reynolds number and 𝑆𝑐 = Schmidt number (kinematic viscosity of water divided by the diffusivity
of the chemical) (Edwards et.al, 1976). For turbulent flow the empirical correlation of Notter and Sleicher (1971)
can be used:
𝑆ℎ = 0.0149𝑅𝑒0.88 𝑆𝑐1/3
System of Equations
When applied to a network as a whole, Eqs. (13.8) - (13.10) represent a coupled set of differential/algebraic equations
with time-varying coefficients that must be solved for 𝐶𝑖 in each pipe 𝑖 and 𝐶𝑠 in each storage facility 𝑠. This solution
is subject to the following set of externally imposed conditions:
• Initial conditions that specify 𝐶𝑖 for all 𝑥 in each pipe 𝑖 and 𝐶𝑠 in each storage facility 𝑠 at time 0
• Boundary conditions that specify values for 𝐶𝑘 , 𝑒𝑥𝑡 and 𝑄𝑘,𝑒𝑥𝑡 for all time 𝑡 at each node 𝑘 which has external
mass inputs
117
EPANET USERS MANUAL, Release 2.2
• Hydraulic conditions which specify the volume 𝑉𝑠 in each storage facility 𝑠 and the flow 𝑄𝑖 in each link 𝑖 at
all times 𝑡
Lagrangian Transport Algorithm
EPANET’s water quality simulator uses a Lagrangian time-based approach to track the fate of discrete parcels of
water as they move along pipes and mix together at junctions between fixed-length time steps (Liou and Kroon,
1987). These water quality time steps are typically much shorter than the hydraulic time step (e.g., minutes rather
than hours) to accommodate the short times of travel that can occur within pipes. As time progresses, the size of
the most upstream segment in a pipe may increase as water enters the pipe while an equal loss in size of the most
downstream segment occurs as water leaves the link; therefore, the total volume of all the segments within a pipe
does not change and the size of the segments between these leading and trailing segments remains unchanged (see
Fig. 13.1).
118
EPANET USERS MANUAL, Release 2.2
To cut down on the number of segments, new ones are only created if the new node quality differs by a user-specified
tolerance from that of the last segment in the outflow link. If the difference in quality is below the tolerance, then the
size of the current last segment in the link is simply increased by the volume flowing into the link over the time step
and the segment quality is a volume-weighted average of the node and segment quality.
This process is then repeated for the next water-quality time step. At the start of the next hydraulic time step any
link experiencing a flow reversal has the order of its segments reversed and if any flow reversal occurs the network’s
nodes are re-sorted topologically, from upstream to downstream. Sorting the nodes topologically allows the method
to conserve mass and reduce the potential mass balance error experienced with EPANET 2.0 (Davis et al., 2018) even
when very short pipes or zero-length pumps and valves are encountered. Initially each pipe in the network consists
of a single segment whose quality equals the initial quality assigned to the upstream node.
119
REFERENCES
Bhave, P. R. 1991. Analysis of Flow in Water Distribution Networks. Technomic Publishing. Lancaster, PA.
Clark, R. M. 1998. “Chlorine demand and Trihalomethane formation kinetics: a second-order model”, Jour. Env. Eng., Vol. 124,
No. 1, pp. 16-24.
Davis, M. J., Janke, R., and Taxon, T. N. 2018. “Mass imbalances in EPANET water-quality simulations”, Drinking Water
Engineering and Science, Vol. 11, pp. 25-47.
Dunlop, E. J. 1991. WADI Users Manual. Local Government Computer Services Board, Dublin, Ireland.
Hamam, Y. M., and Brameller, A. 1971. “Hybrid method for the solution of piping networks”, Proc. IEE, Vol. 113, No. 11, pp.
1607-1612.
Gorev, N. B., Kodzhespirov, I. F., Kovalenko, Y., Prokhorov, E., and Trapaga, G. 2013. “Method to Cope with Zero Flows in
Newton Solvers for Water Distribution Systems”, Journal of Hydraulic Engineering, 139(4), 456-459.
Koechling, M. T. 1998. Assessment and Modeling of Chlorine Reactions with Natural Organic Matter: Impact of Source Water
Quality and Reaction Conditions, Ph.D. Thesis, Department of Civil and Environmental Engineering, University of Cincinnati,
Cincinnati, Ohio.
Liou, C. P. and Kroon, J. R. 1987. “Modeling the propagation of waterborne substances in distribution networks”, J. AWWA,
79(11), 54-58.
Liu, J. W-H. 1985.”Modification of the minimum-degree algorithm by multiple elimination”. ACM Transactions on Mathematical
Software, 11(2), 141-153
Notter, R. H. and Sleicher, C. A. 1971. “The eddy diffusivity in the turbulent boundary layer near a wall”, Chem. Eng. Sci., Vol.
26, pp. 161-171.
Osiadacz, A. J. 1987. Simulation and Analysis of Gas Networks. E. & F.N. Spon, London.
Rossman, L. A., Boulos, P. F., and Altman, T. (1993). “Discrete volume-element method for network water-quality models”, J.
Water Resour. Plng. and Mgmt, Vol. 119, No. 5, 505-517.
Rossman, L. A., Clark, R. M., and Grayman, W. M. (1994). “Modeling chlorine residuals in drinking-water distribution systems”,
Jour. Env. Eng., Vol. 120, No. 4, 803-820.
Rossman, L. A. and Boulos, P. F. (1996). “Numerical methods for modeling water quality in distribution systems: A comparison”,
J. Water Resour. Plng. and Mgmt, Vol. 122, No. 2, 137-146.
Rossman, L. A. and Grayman, W. M. 1999. “Scale-model studies of mixing in drinking water storage tanks”, Jour. Env. Eng.,
Vol. 125, No. 8, pp. 755-761.
Salgado, R., Todini, E., & O’Connell, P. E. 1988. “Extending the gradient method to include pressure regulating valves in pipe
networks”. Proc. Inter. Symposium on Computer Modeling of Water Distribution Systems, University of Kentucky, May 12-13.
Todini, E. & Pilati, S. 1987. “A gradient method for the analysis of pipe networks”. International Conference on Computer
Applications for Water Supply and Distribution, Leicester Polytechnic, UK, September 8-10.
120
EPANET USERS MANUAL, Release 2.2
Todini, E. 2003. “A more realistic approach to the extended period simulation of water distribution networks”. Advances in Water
Supply Management: Proc. CCWI ‘03 Conference, London, Sept. 15-17.
Wagner, J. M., Shamir, U., and Marks, D. H. 1988. “Water distribution reliability: Simulation methods.” Jour. Water Resour.
Plan. Manage., Vol. 114, No. 3, 253-275.
121
APPENDIX
UNITS OF MEASUREMENT
Table A.1 list EPANET parameters and their associated US and SI units.
Note: US Customary units apply when CFS, GPM, AFD, or MGD is chosen as flow units. SI Metric units apply when flow units
are expressed using either liters or cubic meters.
122
APPENDIX
ERROR MESSAGES
123
EPANET USERS MANUAL, Release 2.2
124
APPENDIX
EPANET can also be run as a console application from the command line within a DOS window. In this case network
input data are placed into a text file and results are written to a text file. The command line for running EPANET in
this fashion is:
Here inpfile is the name of the input file, rptfile is the name of the output report file, and outfile is the name of an
optional binary output file that stores results in a special binary format. If the latter file is not needed then just the
input and report file names should be supplied. As written, the above command assumes that you are working in
the directory in which EPANET was installed or that this directory has been added to the system PATH variable.
Otherwise full pathnames for the executable runepanet.exe and the files on the command line must be used. The
error messages for command line EPANET are the same as those for Windows EPANET and are listed in Appendix
Error Messages.
The input file for command line EPANET has the same format as the text file that Windows EPANET generates from
its File >> Export >> Network command. It is organized in sections, where each section begins with a keyword
enclosed in brackets. The various keywords are listed below in Table C.1.
The order of sections is not important. However, whenever a node or link is referred to in a section it must have
already been defined in the [JUNCTIONS], [RESERVOIRS], [TANKS], [PIPES], [PUMPS], or [VALVES] sections.
Therefore, it is recommended that these sections be placed first, right after the [TITLE] section. The network map
and tags sections are not used by command line EPANET and can be eliminated from the file.
125
EPANET USERS MANUAL, Release 2.2
Each section can contain one or more lines of data. Blank lines can appear anywhere in the file and the semicolon
(;) can be used to indicate that what follows on the line is a comment, not data. A maximum of 255 characters can
appear on a line. The ID labels used to identify nodes, links, curves and patterns can be any combination of up to 31
characters and numbers.
Listing C.1 displays the input file that represents the tutorial network discussed in Chapter Quick Start Tutorial.
[JUNCTIONS]
;ID Elev Demand
;------------------
2 0 0
3 710 650
4 700 150
5 695 200
6 700 150
[RESERVOIRS]
;ID Head
;---------
1 700
[TANKS]
;ID Elev InitLvl MinLvl MaxLvl Diam Volume
;-----------------------------------------------
7 850 5 0 15 70 0
[PIPES]
;ID Node1 Node2 Length Diam Roughness
;-----------------------------------------
1 2 3 3000 12 100
2 3 6 5000 12 100
3 3 4 5000 8 100
4 4 5 5000 8 100
5 5 6 5000 8 100
6 6 7 7000 10 100
[PUMPS]
;ID Node1 Node2 Parameters
;---------------------------------
7 1 2 HEAD 1
[PATTERNS]
;ID Multipliers
;-----------------------
1 0.5 1.3 1 1.2
[CURVES]
;ID X-Value Y-Value
;--------------------
1 1000 200
[QUALITY]
;Node InitQual
(continues on next page)
126
EPANET USERS MANUAL, Release 2.2
[REACTIONS]
Global Bulk -1
Global Wall 0
[TIMES]
Duration 24:00
Hydraulic Timestep 1:00
Quality Timestep 0:05
Pattern Timestep 6:00
[REPORT]
Page 55
Energy Yes
Nodes All
Links All
[OPTIONS]
Units GPM
Headloss H-W
Pattern 1
Quality Chlorine mg/L
Tolerance 0.01
[END]
On the pages that follow the contents and formats of each keyword section are described in alphabetical order.
127
EPANET USERS MANUAL, Release 2.2
C.2.1 [BACKDROP]
Purpose:
Identifies a backdrop image and dimensions for the network map.
Format:
Definitions:
DIMENSIONS Provides the X and Y coordinates of the lower-left and upper-right corners of the map’s bounding
rectangle. Defaults are the extents of the nodal coordinates supplied in the [COORDINATES] section.
UNITS Specifies the units that the map’s dimensions are given in. Default is NONE.
FILE Is the name of the file that contains the backdrop image.
OFFSET Lists the X and Y distance that the upper-left corner of the backdrop image is offset from the upper-left
corner of the map’s bounding rectangle. Default is zero offset.
Remarks:
a. The [BACKDROP] section is optional and is not used at all when EPANET is run as a console application.
b. Only Windows Enhanced Metafiles and bitmap files can be used as backdrops.
C.2.2 [CONTROLS]
Purpose:
Defines simple controls that modify links based on a single condition.
Format:
One line for each control which can be of the form:
where:
linkID = a link ID label
status = OPEN or CLOSED, a pump speed setting, or a control valve setting
nodeID = a node ID label
value = a pressure for a junction or a water level for a tank
time = a time since the start of the simulation in decimal hours or in hours:minutes format
128
EPANET USERS MANUAL, Release 2.2
[CONTROLS]
;Close Link 12 if the level in Tank 23 exceeds 20 ft.
LINK 12 CLOSED IF NODE 23 ABOVE 20
C.2.3 [COORDINATES]
Purpose:
Assigns map coordinates to network nodes.
Format:
One line for each node containing:
• Node ID label
• X-coordinate
• Y-coordinate
Remarks:
a. Include one line for each node displayed on the map.
b. The coordinates represent the distance from the node to an arbitrary origin at the lower left of the map. Any convenient
units of measure for this distance can be used.
c. There is no requirement that all nodes be included in the map, and their locations need not be to actual scale.
d. A [COORDINATES] section is optional and is not used at all when EPANET is run as a console application.
Example:
129
EPANET USERS MANUAL, Release 2.2
[COORDINATES]
;Node X-Coord. Y-Coord
;-------------------------------
1 10023 128
2 10056 95
C.2.4 [CURVES]
Purpose:
Defines data curves and their X,Y points.
Format:
One line for each X,Y point on each curve containing:
• Curve ID label
• X value
• Y value
Remarks:
a. Curves can be used to represent the following relations:
Head v. Flow for pumps
Efficiency v. Flow for pumps
Volume v. Depth for tanks
Headloss v. Flow for General Purpose Valves
b. The points of a curve must be entered in order of increasing X-values (lower to higher).
c. If the input file will be used with the Windows version of EPANET, then adding a comment which contains the curve type
and description, separated by a colon, directly above the first entry for a curve will ensure that these items appear correctly
in EPANET’s Curve Editor. Curve types include PUMP, EFFICIENCY, VOLUME, and HEADLOSS. See the examples
below.
Example:
[CURVES]
;ID Flow Head
;PUMP: Curve for Pump 1 C1 0 200
C1 1000 100
C1 3000 0
130
EPANET USERS MANUAL, Release 2.2
C.2.5 [DEMANDS]
Purpose:
Supplement to [JUNCTIONS] section for defining multiple water demands at junction nodes.
Format:
One line for each category of demand at a junction containing:
• Junction ID label
• Base demand (flow units)
• Demand pattern ID (optional)
• Name of demand category preceded by a semicolon (optional)
Remarks:
a. Only use for junctions whose demands need to be changed or supplemented from entries in [JUNCTIONS] section.
b. Data in this section replaces any demand entered in [JUNCTIONS] section for the same junction.
c. Unlimited number of demand categories can be entered per junction.
d. If no demand pattern is supplied then the junction demand follows the Default Demand Pattern specified in the [OPTIONS]
section or Pattern 1 if no default pattern is specified. If the default pattern (or Pattern 1) does not exist, then the demand
remains constant.
Example:
[DEMANDS]
;ID Demand Pattern Category
;---------------------------------
J1 100 101 ;Domestic
J1 25 102 ;School
J256 50 101 ;Domestic
C.2.6 [EMITTERS]
Purpose:
Defines junctions modeled as emitters (sprinklers or orifices).
Format:
One line for each emitter containing:
• Junction ID label
• Flow coefficient, flow units at 1 psi (1 meter) pressure drop
Remarks:
a. Emitters are used to model flow through sprinkler heads or pipe leaks.
b. Flow out of the emitter equals the product of the flow coefficient and the junction pressure raised to a power.
c. The power can be specified using the EMITTER EXPONENT option in the [OPTIONS] section. The default power is 0.5,
which normally applies to sprinklers and nozzles.
131
EPANET USERS MANUAL, Release 2.2
d. Actual demand reported in the program’s results includes both the normal demand at the junction plus flow through the
emitter.
e. An [EMITTERS] section is optional.
C.2.7 [ENERGY]
Purpose:
Defines parameters used to compute pumping energy and cost.
Format:
Remarks:
a. Lines beginning with the keyword GLOBAL are used to set global default values of energy price, price pattern, and
pumping efficiency for all pumps.
b. Lines beginning with the keyword PUMP are used to override global defaults for specific pumps.
c. Parameters are defined as follows:
d. The default global pump efficiency is 75% and the default global energy price is 0.
e. All entries in this section are optional. Items offset by slashes (/) indicate allowable choices.
Example:
[ENERGY]
GLOBAL PRICE 0.05 ;Sets global energy price
GLOBAL PATTERN PAT1 ;and time-of-day pattern
PUMP 23 PRICE 0.10 ;Overrides price for Pump 23
PUMP 23 EFFIC E23 ;Assigns effic. curve to Pump 23
C.2.8 [JUNCTIONS]
Purpose:
Defines junction nodes contained in the network.
Format:
One line for each junction containing:
132
EPANET USERS MANUAL, Release 2.2
• ID label
• Elevation, ft (m)
• Base demand flow (flow units) (optional)
• Demand pattern ID (optional)
Remarks:
a. A [JUNCTIONS] section with at least one junction is required.
b. If no demand pattern is supplied then the junction demand follows the Default Demand Pattern specified in the [OPTIONS]
section or Pattern 1 if no default pattern is specified. If the default pattern (or Pattern 1) does not exist, then the demand
remains constant.
c. Demands can also be entered in the [DEMANDS] section and include multiple demand categories per junction.
Example:
[JUNCTIONS]
;ID Elev. Demand Pattern
;------------------------------
J1 100 50 Pat1
J2 120 10 ;Uses default demand pattern
J3 115 ;No demand at this junction
C.2.9 [LABELS]
Purpose:
Assigns coordinates to map labels.
Format:
One line for each label containing:
• X-coordinate
• Y-coordinate
• Text of label in double quotes
• ID label of an anchor node (optional)
Remarks:
a. Include one line for each label on the map.
b. The coordinates refer to the upper left corner of the label and are with respect to an arbitrary origin at the lower left of the
map.
c. The optional anchor node anchors the label to the node when the map is re-scaled during zoom-in operations.
d. The [LABELS] section is optional and is not used at all when EPANET is run as a console application.
Example:
[LABELS]
;X-Coord. Y-Coord. Label Anchor
;-----------------------------------------------
1230 3459 “Pump 1”
34.57 12.75 “North Tank” T22
133
EPANET USERS MANUAL, Release 2.2
C.2.10 [MIXING]
Purpose:
Identifies the model that governs mixing within storage tanks.
Format:
One line per tank containing:
• Tank ID label
• Mixing model (MIXED, 2COMP, FIFO, or LIFO)
• Compartment volume (fraction)
Remarks:
a. Mixing models include:
b. The compartment volume parameter only applies to the two-compartment model and represents the fraction of
the total tank volume devoted to the inlet/outlet compartment.
c. The [MIXING] section is optional. Tanks not described in this section are assumed to be completely mixed.
Example:
[MIXING]
;Tank Model
;-----------------------
T12 LIFO
T23 2COMP 0.2
C.2.11 [OPTIONS]
Purpose:
Defines various simulation options.
Formats:
134
EPANET USERS MANUAL, Release 2.2
UNITS CFS/GPM/MGD/IMGD/AFD/
LPS/LPM/MLD/CMH/CMD
HEADLOSS H-W/D-W/C-M
HYDRAULICS USE/SAVE filename
QUALITY NONE/CHEMICAL/AGE/TRACE id
VISCOSITY value
DIFFUSIVITY value
SPECIFIC GRAVITY value
TRIALS value
ACCURACY value
HEADERROR value
FLOWCHANGE value
UNBALANCED STOP/CONTINUE/CONTINUE n
PATTERN id
DEMAND MODEL DDA/PDA
MINIMUM PRESSURE value
REQUIRED PRESSURE value
PRESSURE EXPONENT value
DEMAND MULTIPLIER value
EMITTER EXPONENT value
TOLERANCE value
MAP filename
Definitions:
UNITS Sets the units in which flow rates are expressed where:
For CFS, GPM, MGD, IMGD, and AFD other input quantities are expressed in US Customary Units. If flow
units are in liters or cubic meters then Metric Units must be used for all other input quantities as well. (See
Appendix A. Units of Measurement). The default flow units are GPM.
HEADLOSS Selects a formula to use for computing head loss for flow through a pipe. The choices are the Hazen-
Williams (H-W), Darcy-Weisbach (D-W), or Chezy-Manning (C-M) formulas. The default is H-W.
The HYDRAULICS option allows you to either SAVE the current hydraulics solution to a file or USE a pre-
viously saved hydraulics solution. This is useful when studying factors that only affect water quality behavior.
QUALITY Selects the type of water quality analysis to perform. The choices are NONE, CHEMICAL, AGE, and
TRACE. In place of CHEMICAL the actual name of the chemical can be used followed by its concentration
135
EPANET USERS MANUAL, Release 2.2
units (e.g., CHLORINE mg/L). If TRACE is selected it must be followed by the ID label of the node being
traced. The default selection is NONE (no water quality analysis).
VISCOSITY Is the kinematic viscosity of the fluid being modeled relative to that of water at 20 deg. C (1.0
centistoke). The default value is 1.0.
DIFFUSIVITY Is the molecular diffusivity of the chemical being analyzed relative to that of chlorine in water.
The default value is 1.0. Diffusivity is only used when mass transfer limitations are considered in pipe wall
reactions. A value of 0 will cause EPANET to ignore mass transfer limitations.
SPECIFIC GRAVITY Is the ratio of the density of the fluid being modeled to that of water at 4 deg. C (unitless).
TRIALS Are the maximum number of trials used to solve network hydraulics at each hydraulic time step of a
simulation. The default is 40.
ACCURACY Prescribes the convergence criterion that determines when a hydraulic solution has been reached. The
trials end when the sum of all flow changes from the previous solution divided by the total flow in all links is
less than this number. The default is 0.001.
HEADERROR Augments ACCURACY option. Sets the maximum head loss error that any network link can have
for hydraulic convergence to occur. A link’s head loss error is the difference between the head loss found as a
function of computed flow in the link (such as by the Hazen-Williams equation for a pipe) and the difference in
computed heads for the link’s end nodes. The units of this parameter are feet (US) or meters (SI). The default
value of 0 indicates that no head error limit applies.
FLOWCHANGE Augments the ACCURACY option. Sets the largest change in flow that any network element
(link, emitter, or pressure driven demand) can have for hydraulic convergence to occur. It is specified in
whatever flow units the project is using. The default value of 0 indicates that no flow change limit applies.
UNBALANCED Determines what happens if a hydraulic solution cannot be reached within the prescribed number
of TRIALS at some hydraulic time step into the simulation. “STOP” will halt the entire analysis at that point.
“CONTINUE” will continue the analysis with a warning message issued. “CONTINUE n” will continue the
search for a solution for another “n” trials with the status of all links held fixed at their current settings. The
simulation will be continued at this point with a message issued about whether convergence was achieved or
not. The default choice is “STOP”.
PATTERN Provides the ID label of a default demand pattern to be applied to all junctions where no demand pattern
was specified. If no such pattern exists in the [PATTERNS] section then by default the pattern consists of a
single multiplier equal to 1.0. If this option is not used, then the global default demand pattern has a label of
“1”.
DEMAND MULTIPLIER Is used to adjust the values of baseline demands for all junctions and all demand cate-
gories. For example, a value of 2 doubles all baseline demands, while a value of 0.5 would halve them. The
default value is 1.0.
DEMAND MODEL Determines nodal demand model – Demand Driven Analysis (DDA) or Pressure Driven Anal-
ysis (PDA). DDA assumes a nodal demand at a given point in time is a fixed value 𝐷. This sometimes results
in hydraulic solutions with negative pressures (a physical impossibility). PDA assumes the demand delivered,
𝑑, is a function of nodal pressure, 𝑝, as follows:
[︂ ]︂𝑃 𝑒𝑥𝑝
𝑝 − 𝑃𝑚𝑖𝑛
𝑑=𝐷
𝑃𝑟𝑒𝑞 − 𝑃𝑚𝑖𝑛
where 𝐷 is the full demand required, 𝑃 𝑚𝑖𝑛 is the pressure below which demand is zero, 𝑃 𝑟𝑒𝑞 is the pressure
required to deliver the full required demand and 𝑃 𝑒𝑥𝑝 is an exponent. When 𝑝 < 𝑃 𝑚𝑖𝑛 demand is 0 and when
𝑝 > 𝑃 𝑟𝑒𝑞 demand equals 𝐷. The default value is DDA.
MINIMUM PRESSURE Value for 𝑃 𝑚𝑖𝑛. Default value is 0.0.
REQUIRED PRESSURE Value for 𝑃 𝑟𝑒𝑞. Default value is 0.0.
136
EPANET USERS MANUAL, Release 2.2
C.2.12 [PATTERNS]
Purpose:
Defines time patterns.
Format:
One or more lines for each pattern containing:
• Pattern ID label
• One or more multipliers
Remarks:
Multipliers define how some base quantity (e.g., demand) is adjusted for each time period.
a. All patterns share the same time period interval as defined in the [TIMES] section.
b. Each pattern can have a different number of time periods.
c. When the simulation time exceeds the pattern length the pattern wraps around to its first period.
d. Use as many lines as it takes to include all multipliers for each pattern.
Example:
[PATTERNS]
;Pattern P1
P1 1.1 1.4 0.9 0.7
P1 0.6 0.5 0.8 1.0
;Pattern P2
P2 1 1 1 1
P2 0 0 1
137
EPANET USERS MANUAL, Release 2.2
C.2.13 [PIPES]
Purpose:
Defines all pipe links contained in the network.
Format:
One line for each pipe containing:
• ID label of pipe
• ID of start node
• ID of end node
• Length, ft (m)
• Diameter, inches (mm)
• Roughness coefficient
• Minor loss coefficient
• Status (OPEN, CLOSED, or CV)
Remarks:
a. Roughness coefficient is unitless for the Hazen-Williams and Chezy-Manning head loss formulas and has units of millifeet
(mm) for the Darcy-Weisbach formula. Choice of head loss formula is supplied in the [OPTIONS] section.
b. Setting status to CV means that the pipe contains a check valve restricting flow to one direction.
c. If minor loss coefficient is 0 and pipe is OPEN then these two items can be dropped form the input line.
Example:
[PIPES]
;ID Node1 Node2 Length Diam. Roughness Mloss Status
;-------------------------------------------------------------
P1 J1 J2 1200 12 120 0.2 OPEN
P2 J3 J2 600 6 110 0 CV
P3 J1 J10 1000 12 120
C.2.14 [PUMPS]
Purpose:
Defines all pump links contained in the network.
Format:
One line for each pump containing:
• ID label of pump
• ID of start node
• ID of end node
• Keyword and Value (can be repeated)
Remarks:
138
EPANET USERS MANUAL, Release 2.2
[PUMPS]
;ID Node1 Node2 Properties
;---------------------------------------------
Pump1 N12 N32 HEAD Curve1
Pump2 N121 N55 HEAD Curve1 SPEED 1.2
Pump3 N22 N23 POWER 100
C.2.15 [QUALITY]
Purpose:
Defines initial water quality at nodes.
Format:
One line per node containing:
• Node ID label
• Initial quality
Remarks:
a. Quality is assumed to be zero for nodes not listed.
b. Quality represents concentration for chemicals, hours for water age, or percent for source tracing.
c. The [QUALITY] section is optional.
C.2.16 [REACTIONS]
Purpose:
Defines parameters related to chemical reactions occurring in the network.
Format:
Definitions:
139
EPANET USERS MANUAL, Release 2.2
ORDER Is used to set the order of reactions occurring in the bulk fluid, at the pipe wall, or in tanks, respectively.
Values for wall reactions must be either 0 or 1. If not supplied the default reaction order is 1.0.
GLOBAL Is used to set a global value for all bulk reaction coefficients (pipes and tanks) or for all pipe wall
coefficients. The default value is zero.
BULK, WALL, and TANK Are used to override the global reaction coefficients for specific pipes and tanks.
LIMITING POTENTIAL Specifies that reaction rates are proportional to the difference between the current con-
centration and some limiting potential value.
ROUGHNESS CORRELATION Will make all default pipe wall reaction coefficients be related to pipe roughness
in the following manner:
C.2.17 [REPORT]
Purpose:
Describes the contents of the output report produced from a simulation.
Format:
PAGESIZE value
FILE filename
STATUS YES/NO/FULL
SUMMARY YES/NO
ENERGY YES/NO
NODES NONE/ALL/ node1 node2 . . .
LINKS NONE/ALL/ link1 link2 . . .
parameter YES/NO
parameter BELOW/ABOVE/PRECISION value
140
EPANET USERS MANUAL, Release 2.2
Definitions:
PAGESIZE Sets the number of lines written per page of the output report. The default is 0, meaning that no line
limit per page is in effect.
FILE Supplies the name of a file to which the output report will be written (ignored by the Windows version of
EPANET).
STATUS Determines whether a hydraulic status report should be generated. If YES is selected the report will
identify all network components that change status during each time step of the simulation. If FULL is selected,
then the status report will also include information from each trial of each hydraulic analysis. This level of detail
is only useful for de-bugging networks that become hydraulically unbalanced. The default is NO.
SUMMARY Determines whether a summary table of number of network components and key analysis options is
generated. The default is YES.
ENERGY Determines if a table reporting average energy usage and cost for each pump is provided. The default is
NO.
NODES Identifies which nodes will be reported on. You can either list individual node ID labels or use the keywords
NONE or ALL. Additional NODES lines can be used to continue the list. The default is NONE.
LINKS Identifies which links will be reported on. You can either list individual link ID labels or use the keywords
NONE or ALL. Additional LINKS lines can be used to continue the list. The default is NONE.
The “parameter” reporting option is used to identify which quantities are reported on, how many decimal places are
displayed, and what kind of filtering should be used to limit output reporting. Node parameters that can be reported
on include:
• Elevation
• Demand
• Head
• Pressure
• Quality.
Link parameters include:
• Length
• Diameter
• Flow
• Velocity
• Headloss
• Position (same as status – open, active, closed)
• Setting (Roughness for pipes, speed for pumps, pressure/flow setting for valves)
• Reaction (reaction rate)
• F-Factor (friction factor).
The default quantities reported are Demand, Head, Pressure, and Quality for nodes and Flow, Velocity, and Head-
loss for links. The default precision is two decimal places.
Remarks:
a. All options assume their default values if not explicitly specified in this section.
b. Items offset by slashes (/) indicate allowable choices.
141
EPANET USERS MANUAL, Release 2.2
c. The default is to not report on any nodes or links, so a NODES or LINKS option must be supplied if you wish to report
results for these items.
d. For the Windows version of EPANET, the only [REPORT] option recognized is STATUS. All others are ignored.
Example:
The following example reports on nodes N1, N2, N3, and N17 and all links with velocity above 3.0. The standard
node parameters (Demand, Head, Pressure, and Quality) are reported on while only Flow, Velocity, and F-Factor
(friction factor) are displayed for links.
[REPORT]
NODES N1 N2 N3 N17
LINKS ALL
FLOW YES
VELOCITY PRECISION 4
F-FACTOR PRECISION 4
VELOCITY ABOVE 3.0
C.2.18 [RESERVOIRS]
Purpose:
Defines all reservoir nodes contained in the network.
Format:
One line for each reservoir containing:
• ID label
• Head, ft (m)
• Head pattern ID (optional)
Remarks:
a. Head is the hydraulic head (elevation + pressure head) of water in the reservoir.
b. A head pattern can be used to make the reservoir head vary with time.
c. At least one reservoir or tank must be contained in the network.
Example:
[RESERVOIRS]
;ID Head Pattern
;---------------------
R1 512 ;Head stays constant
R2 120 Pat1 ;Head varies with time
C.2.19 [RULES]
Purpose:
Defines rule-based controls that modify links based on a combination of conditions.
Format:
142
EPANET USERS MANUAL, Release 2.2
RULE ruleID
IF condition_1
AND condition_2
OR condition_3
AND condition_4
etc.
THEN action_1
AND action_2
etc.
ELSE action_3
AND action_4
etc.
PRIORITY value
where:
ruleID = an ID label assigned to the rule
conditon_n = a condition clause
action_n = an action clause
Priority = a priority value (e.g., a number from 1 to 5)
Condition Clause Format:
A condition clause in a Rule-Based Control takes the form of:
where:
object = a category of network object
id = the object’s ID label
attribute = an attribute or property of the object
relation = a relational operator
value = an attribute value
Some example conditional clauses are:
143
EPANET USERS MANUAL, Release 2.2
• DEMAND
• HEAD
• PRESSURE
The following attributes can be used with Tanks:
• LEVEL
• FILLTIME (hours needed to fill a tank)
• DRAINTIME (hours needed to empty a tank)
These attributes can be used with Link-Type objects:
• FLOW
• STATUS (OPEN, CLOSED, or ACTIVE)
• SETTING (pump speed or valve setting)
The SYSTEM object can use the following attributes:
• DEMAND (total system demand)
• TIME (hours from the start of the simulation expressed either as a decimal number or in hours:minutes format)
• CLOCKTIME (24-hour clock time with AM or PM appended)
Relation operators consist of the following:
= IS
<> NOT
< BELOW
> ABOVE
<= >=
where:
object = LINK, PIPE, PUMP, or VALVE keyword
id = the object’s ID label
value = a status condition (OPEN or CLOSED), pump speed setting, or valve
setting
Some example action clauses are:
Remarks:
a. Only the RULE, IF and THEN portions of a rule are required; the other portions are optional.
b. When mixing AND and OR clauses, the OR operator has higher precedence than AND, i.e.,
144
EPANET USERS MANUAL, Release 2.2
IF A or B and C
is equivalent to
IF (A or B) and C.
c. The PRIORITY value is used to determine which rule applies when two or more rules require that conflicting actions be
taken on a link. A rule without a priority value always has a lower priority than one with a value. For two rules with the
same priority value, the rule that appears first is given the higher priority.
Example:
[RULES]
RULE 1
IF TANK 1 LEVEL ABOVE 19.1
THEN PUMP 335 STATUS IS CLOSED
AND PIPE 330 STATUS IS OPEN
RULE 2
IF SYSTEM CLOCKTIME >= 8 AM
AND SYSTEM CLOCKTIME < 6 PM
AND TANK 1 LEVEL BELOW 12
THEN PUMP 335 STATUS IS OPEN
RULE 3
IF SYSTEM CLOCKTIME >= 6 PM
OR SYSTEM CLOCKTIME < 8 AM
AND TANK 1 LEVEL BELOW 14
THEN PUMP 335 STATUS IS OPEN
C.2.20 [SOURCES]
Purpose:
Defines locations of water quality sources.
Format:
One line for each water quality source containing:
• Node ID label
• Source type (CONCEN, MASS, FLOWPACED, or SETPOINT)
• Baseline source strength
• Time pattern ID (optional)
Remarks:
145
EPANET USERS MANUAL, Release 2.2
a. For MASS type sources, strength is measured in mass flow per minute. All other types measure source strength in concen-
tration units.
b. Source strength can be made to vary over time by specifying a time pattern.
c. A CONCEN source:
- Represents a booster source, where the substance is injected directly into the network irregardless of what the demand at
the node is
- Affects water leaving the node to the rest of the network in the following way:
- A MASS booster adds a fixed mass flow to that resulting from inflow to the node
- A FLOWPACED booster adds a fixed concentration to the resultant inflow concentration at the node
- A SETPOINT booster fixes the concentration of any flow leaving the node (as long as the concentration
resulting from the inflows is below the setpoint)
- The reported concentration at a junction or reservoir booster source is the concentration that results after the boosting is
applied; the reported concentration for a tank with a booster source is the internal concentration of the tank
- Is best used to model direct injection of a tracer or disinfectant into the network or to model a contaminant intrusion.
e. A [SOURCES] section is not needed for simulating water age or source tracing.
Example:
[SOURCES]
;Node Type Strength Pattern
;--------------------------------
N1 CONCEN 1.2 Pat1 ;Concentration varies with time
N44 MASS 12 ;Constant mass injection
C.2.21 [STATUS]
Purpose:
Defines initial status of selected links at the start of a simulation.
146
EPANET USERS MANUAL, Release 2.2
Format:
One line per link being controlled containing:
• Link ID label
• Status or setting
Remarks:
a. Links not listed in this section have a default status of OPEN (for pipes and pumps) or ACTIVE (for valves).
b. The status value can be OPEN or CLOSED. For control valves (e.g., PRVs, FCVs, etc.) this means that the valve is either
fully opened or closed, not active at its control setting.
c. The setting value can be a speed setting for pumps or valve setting for valves.
d. The initial status of pipes can also be set in the [PIPES] section.
e. Check valves cannot have their status be preset.
f. Use [CONTROLS] or [RULES] to change status or setting at some future point in the simulation.
g. If a CLOSED or OPEN control valve is to become ACTIVE again, then its pressure or flow setting must be specified in
the control or rule that re-activates it.
Example:
[STATUS]
; Link Status/Setting
;----------------------
L22 CLOSED ;Link L22 is closed
P14 1.5 ;Speed for pump P14
PRV1 OPEN ;PRV1 forced open
;(overrides normal operation)
C.2.22 [TAGS]
Purpose:
Associates category labels (tags) with specific nodes and links.
Format:
One line for each node and link with a tag containing
• the keyword NODE or LINK
• the node or link ID label
• the text of the tag label (with no spaces)
Remarks:
a. Tags can be useful for assigning nodes to different pressure zones or for classifying pipes by material or age.
b. If a node or link’s tag is not identified in this section then it is assumed to be blank.
c. The [TAGS] section is optional and has no effect on the hydraulic or water quality calculations.
Example:
147
EPANET USERS MANUAL, Release 2.2
[TAGS]
;Object ID Tag
;------------------------------
NODE 1001 Zone_A
NODE 1002 Zone_A
NODE 45 Zone_B
LINK 201 UNCI-1960
LINK 202 PVC-1985
C.2.23 [TANKS]
Purpose:
Defines all tank nodes contained in the network.
Format:
One line for each tank containing:
• ID label
• Bottom elevation, ft (m)
• Initial water level, ft (m)
• Minimum water level, ft (m)
• Maximum water level, ft (m)
• Nominal diameter, ft (m)
• Minimum volume, cubic ft (cubic meters)
• Volume curve ID (optional)
Remarks:
a. Water surface elevation equals bottom elevation plus water level.
b. Non-cylindrical tanks can be modeled by specifying a curve of volume versus water depth in the [CURVES] section.
c. If a volume curve is supplied the diameter value can be any non-zero number
d. Minimum volume (tank volume at minimum water level) can be zero for a cylindrical tank or if a volume curve is supplied.
e. A network must contain at least one tank or reservoir.
Example:
[TANKS]
;ID Elev. InitLvl MinLvl MaxLvl Diam MinVol VolCurve
;-----------------------------------------------------------
;Cylindrical tank
T1 100 15 5 25 120 0
;Non-cylindrical tank with arbitrary diameter
T2 100 15 5 25 1 0 VC1
148
EPANET USERS MANUAL, Release 2.2
C.2.24 [TIMES]
Purpose:
Defines various time step parameters used in the simulation.
Format:
Definitions:
DURATION Is the duration of the simulation. Use 0 to run a single period snapshot analysis. The default is 0.
HYDRAULIC TIMESTEP Determines how often a new hydraulic state of the network is computed. If greater
than either the PATTERN or REPORT time step it will be automatically reduced. The default is 1 hour.
QUALITY TIMESTEP Is the time step used to track changes in water quality throughout the network. The default
is 1/10 of the hydraulic time step.
RULE TIMESTEP Is the time step used to check for changes in system status due to activation of rule-based
controls between hydraulic time steps. The default is 1/10 of the hydraulic time step.
PATTERN TIMESTEP Is the interval between time periods in all time patterns. The default is 1 hour.
PATTERN START Is the time offset at which all patterns will start. For example, a value of 6 hours would start
the simulation with each pattern in the time period that corresponds to hour 6. The default is 0.
REPORT TIMESTEP Sets the time interval between which output results are reported. The default is 1 hour.
REPORT START Is the length of time into the simulation at which output results begin to be reported. The default
is 0.
START CLOCKTIME Is the time of day (e.g., 3:00 PM) at which the simulation begins. The default is 12:00 AM
midnight.
STATISTIC Determines what kind of statistical post-processing should be done on the time series of simulation
results generated. AVERAGED reports a set of time-averaged results, MINIMUM reports only the minimum
values, MAXIMUM the maximum values, and RANGE reports the difference between the minimum and
maximum values. NONE reports the full time series for all quantities for all nodes and links and is the default.
Remarks:
a. Units can be SECONDS (SEC), MINUTES (MIN), HOURS, or DAYS. The default is hours.
b. If units are not supplied, then time values can be entered as decimal hours or in hours:minutes notation.
c. All entries in the [TIMES] section are optional. Items offset by slashes (/) indicate allowable choices.
Example:
149
EPANET USERS MANUAL, Release 2.2
[TIMES]
DURATION 240 HOURS
QUALITY TIMESTEP 3 MIN
REPORT START 120
STATISTIC AVERAGED
START CLOCKTIME 6:00 AM
C.2.25 [TITLE]
Purpose:
Attaches a descriptive title to the network being analyzed.
Format:
Any number of lines of text.
Remarks:
The [TITLE] section is optional.
C.2.26 [VALVES]
Purpose:
Defines all control valve links contained in the network.
Format:
One line for each valve containing:
• ID label of valve
• ID of start node
• ID of end node
• Diameter, inches (mm)
• Valve type
• Valve setting
• Minor loss coefficient
Remarks:
a. Valve types and settings include:
Valve Type Setting PRV (pressure reducing valve) Pressure, psi (m)
PSV (pressure sustaining valve) Pressure, psi (m)
PBV (pressure breaker valve) Pressure, psi (m)
FCV (flow control valve) Flow (flow units)
TCV (throttle control valve) Loss Coefficient
GPV (general purpose valve) ID of head loss curve
150
EPANET USERS MANUAL, Release 2.2
b. Shutoff valves and check valves are considered to be part of a pipe, not a separate control valve component (see
[PIPES])
C.2.27 [VERTICES]
Purpose:
Assigns interior vertex points to network links.
Format:
One line for each point in each link containing such points that includes:
• Link ID label
• X-coordinate
• Y-coordinate
Remarks:
a. Vertex points allow links to be drawn as polylines instead of simple straight-lines between their end nodes.
b. The coordinates refer to the same coordinate system used for node and label coordinates.
c. A [VERTICES] section is optional and is not used at all when EPANET is run as a console application.
Example:
[VERTICES]
;Link X-Coord. Y-Coord
;-------------------------------
1 10023 128
2 10056 95
Statements supplied to the [REPORT] section of the input file control the contents of the report file
generated from a command-line run of EPANET. A portion of the report generated from the input file of
Listing C.1 is shown in Listing C.2. In general a report can contain the following sections:
• Status Section
• Energy Section
• Nodes Section
• Links Section
******************************************************************
* E P A N E T *
* Hydraulic and Water Quality *
* Analysis for Pipe Networks *
(continues on next page)
151
EPANET USERS MANUAL, Release 2.2
EPANET TUTORIAL
Energy Usage:
----------------------------------------------------------------
Usage Avg. Kw-hr Avg. Peak Cost
Pump Factor Effic. /Mgal Kw Kw /day
----------------------------------------------------------------
7 100.00 75.00 745.97 51.35 51.59 0.00
----------------------------------------------------------------
Demand Charge: 0.00
Total Cost: 0.00
152
EPANET USERS MANUAL, Release 2.2
The Status Section of the output report lists the initial status of all reservoirs, tanks, pumps, valves, and closed pipes
as well as any changes in the status of these components as they occur over time in an extended period simulation.
The status of reservoirs and tanks indicates whether they are filling or emptying. The status of links indicates whether
they are open or closed and includes the relative speed setting for pumps and the pressure/flow setting for control
valves. To include a Status Section in the report use the command STATUS YES in the [REPORT] section of the
input file.
Using STATUS FULL will also produce a full listing of the convergence results for all iterations of each hydraulic
analysis made during a simulation. This listing will also show which components are changing status during the
iterations. This level of detail is only useful when one is trying to debug a run that fails to converge because a
component’s status is cycling.
The Energy Section of the output report lists overall energy consumption and cost for each pump in the network.
The items listed for each pump include:
• Percent Utilization (percent of the time that the pump is on-line)
• Average Efficiency
• Kilowatt-hours consumed per million gallons (or cubic meters) pumped
• Average Kilowatts consumed
• Peak Kilowatts used
153
EPANET USERS MANUAL, Release 2.2
The Nodes Section of the output report lists simulation results for those nodes and parameters identified in the
[REPORT] section of the input file. Results are listed for each reporting time step of an extended period simulation.
The reporting time step is specified in the [TIMES] section of the input file. Results at intermediate times when
certain hydraulic events occur, such as pumps turning on or off or tanks closing because they become empty or full,
are not reported.
To have nodal results reported the [REPORT] section of the input file must contain the keyword NODES followed
by a listing of the ID labels of the nodes to be included in the report. There can be several such NODES lines in the
file. To report results for all nodes use the command NODES ALL.
The default set of reported quantities for nodes includes Demand, Head, Pressure, and Water Quality. You can specify
how many decimal places to use when listing results for a parameter by using commands such as PRESSURE
PRECISION 3 in the input file (i.e., use 3 decimal places when reporting results for pressure). The default precision
is 2 decimal places for all quantities. You can filter the report to list only the occurrences of values below or above a
certain value by adding statements of the form PRESSURE BELOW 20 to the input file.
The Links Section of the output report lists simulation results for those links and parameters identified in the [RE-
PORT] section of the input file. The reporting times follow the same convention as was described for nodes in the
previous section.
As with nodes, to have any results for links reported you must include the keyword LINKS followed by a list of link
ID labels in the [REPORT] section of the input file. Use the command LINKS ALL to report results for all links.
The default parameters reported on for links includes Flow, Velocity, and Headloss. Diameter, Length, Water Quality,
Status, Setting, Reaction Rate, and Friction Factor can be added to these by using commands such as DIAMETER
YES or DIAMETER PRECISION 0. The same conventions used with node parameters for specifying reporting
precision and filters also applies to links.
If a third file name is supplied to the command line that runs EPANET then the results for all parameters for all
nodes and links for all reporting time periods will be saved to this file in a special binary format. This file can be
used for special post- processing purposes. Data written to the file are 4-byte integers, 4-byte floats, or fixed-size
strings whose size is a multiple of 4 bytes. This allows the file to be divided conveniently into 4-byte records. The
file consists of four sections listed in Table C.2.
154
EPANET USERS MANUAL, Release 2.2
where
Nnodes = number of nodes (junctions + reservoirs + tanks) Nlinks = number of links (pipes + pumps +
valves) Ntanks = number of tanks and reservoirs
Npumps = number of pumps
Nperiods = number of reporting periods
and all of these counts are themselves written to the file’s Prolog or Epilog sections.
The prolog section of the binary output file contains the following data listed in Table C.3.
155
EPANET USERS MANUAL, Release 2.2
There is a one-to-one correspondence between the order in which the ID labels for nodes and links are written to
the file and the index numbers of these components. Also, reservoirs are distinguished from tanks by having their
cross-sectional area set to zero.
The energy use section of the binary output file immediately follows the prolog section. It contains the data listed in
Table C.4.
156
EPANET USERS MANUAL, Release 2.2
Table C.4: EPANET Binary Output File Energy Use Section Data
ITEM TYPE NUMBER of BYTES
Repeated for each pump:
Float 4
• Pump Index in List of Links
Float 4
• Pump Utilization (%)
Float 4
• Average Efficiency (%)
Float 4
• Average Kwatts
Float 4
• Peak Kwatts
Float 4
• Average Cost Per Day
The statistics reported in this section refer to the period of time between the start of the output reporting period and
the end of the simulation.
The extended period section of the binary output file contains simulation results for each reporting period
of an analysis (the reporting start time and time step are written to the output file’s prolog section and the
number of steps is written to the epilog section). For each reporting period Table C.5 lists the values that
are written to the file.
157
EPANET USERS MANUAL, Release 2.2
Table C.5: EPANET Binary Output File Extended Period Section Data
ITEM TYPE SIZE in BYTES
Demand at Each Node Float 4*Nnodes
Hydraulic Head at Each Node Float 4*Nnodes
Pressure at Each Node Float 4*Nnodes
Water Quality at Each Node Float 4*Nnodes
Flow in Each Link (negative for re- Float 4*Nlinks
verse flow)
Velocity in Each Link Float 4*Nlinks
Headloss per 1000 Units of Length Float 4*Nlinks
for Each Link (Negative of head
gain for pumps and total head loss
for valves)
Average Water Quality in Each Float 4*Nlinks
Link
Status Code for Each Link Float 4*Nlinks
• 0 = closed (max head ex-
ceeded)
• 1 = temporarily closed
• 2 = closed
• 3 = open
• 4 = active (partially open)
• 5 = open (max flow ex-
ceeded)
• 6 = open (flow setting not
met)
• 7 = open (press setting not
met)
The epilogue section of the binary output file contains the following data listed in Table C.6.
158
EPANET USERS MANUAL, Release 2.2
The mass units of the reaction rates both here and in the Extended Period output depend on the concentration units
assigned to the chemical being modeled. The reaction rates listed in this section refer to the average of the rates seen
in all pipes (or all tanks) over the entire reporting period of the simulation.
159