QEPANET-Introduction0 92 PDF
QEPANET-Introduction0 92 PDF
QEPANET-Introduction0 92 PDF
v 0.92
1. Contents
This document describes the main features, usage scenarios and graphical user interface of the
QEPANET plugin for QGIS.
2. Introduction
EPANET is a well known and widely used tool for hydraulic modelling of water distribution
networks. QGIS is a widely used desktop GIS software. Both softwares are free and open-source.
Since a water distribution network has an intrinsic spatial component, coupling EPANET with QGIS
provides an integrated modelling environment offering on the one side the solid EPANET
simulation engine, and on the other the rich spatial tools of QGIS. The QEPANET plugin for QGIS
is an attempt to reach this aim (fig. 1).
There are other plugins serving the same purpose, but none of them provides a set of dedicated
tools to create and edit the network, relying instead on the standard QGIS editing tools. This
design choice renders those plugins easier to approach, since the tools to be used are already
known to the average QGIS user, but it forgets explicitly account for the topological aspects of the
network. QEPANET, instead, offers a set of tools that are aware of the EPANET network
specifications and constraints, and so guarantees that the network created will be always
compatible with the modelling engine.
Figure 1. QGIS showing an hydraulic network and the QEPANET panel.
3. Main user requirements
The main user requirements that have led the design of QEPANET are:
● Provide a set of easy to use tools to draw and manage the hydraulic network. The benefit of
this approach (as already outlined) lies mainly in the ability to control the network creation
and editing, and to ensure that the network is always in a consistent state and compatible
with the modelling engine. In addition, it is also easier to handle the attributes of the
network elements, providing default values and errors checks;
● Use the standard EPANET .inp file format to store all the data needed. This approach
streamlines the work of the modeller, as there is only one file to be used both inside QGIS
and as the EPANET input. In addition, QEPANET can open for visualization and editing any
standard EPANET inp file, widening its application to the countless EPANET network
already existing.
4. Main features
QEPANET offers the following features:
● The ability to load and save EPANET .inp files, that are used to store all the network
information.
● A set of tools allowing the creation and deletion of the network elements (junctions,
reservoirs, tanks, pipes, pumps and valves). These tools try to preserve the consistency of
the network. For instance, when a pipe is created, at its two ends two junctions are created
or, when a new pipe touches an existing one along its segment, a new junction is created
on the intersection point.
● For every type of network element, a panel where the properties of the element can be set:
every new element will have these properties as default).
● The option to load a raster DEM in QGIS that will be used to assign the elevations to the
network nodes.
● The option to specify, for every node, an elevation correction value (delta z) to account for
nodes not lying on the ground, but below or above it.
● The option to use the SI or imperial systems of units. All the properties of the network
elements will abide to the system chosen.
● Support to edit all the main EPANET options regarding hydraulics, quality, reactions, times,
energy and report.
● A graphical pattern editor, to create and edit patterns.
● A graphical curve editor, to create and edit volume, pump, efficiency, and headloss curves.
● A utility button to launch the EPANET simulation (uses the standard EPANET libraries).
● A tool to analyse the simulation results, by means of graphs showing the values of the
simulated variables along time and by means of thematic maps showing the state of the
network at a given simulation step.
6. Data structure
QEPANET needs six QGIS layers, one for each of the six network element types: junctions,
reservoirs, tanks, pipes, pumps and valves.
Since the plugin relies only on the EPANET inp file to store data on the file system, the six layers
are “Temporary scratch layers”, created when a new QEPANET project is started or an inp file is
opened.
This part of the .inp file is completely ignored by EPANET when a simulation is run, and it is only
used by the QEPANET plugin to populate some table fields. If this part of the file is not present
(like in inp files not created by QEPANET), QEPANET will set the values of those fields to zero.
If the .inp file with the extra information is opened in a software like EPANET 2.0, an error message
is displayed, but the file remains valid.
Figure 3. Controls to create, open, save and save as the project.
7.2. Network editing tools
QEPANET provides a set of tools to easily create the network elements: junctions, reservoirs,
tanks, pipes, pumps and valves (fig. 4). In addition there is a tool to move the network elements
and a tool to select and delete network elements.
When an element is created, it is assigned the default properties set in the corresponding element
properties panel (see below).
When a node (junction, reservoir or tank) is created, if a DEM has been selected in the “Layers”
panel, it is assigned the elevation of the DEM at its location.
When a link (pipe, pump or valve) is created, and it does not starts (or ends) with a node, a
junction is created at its start (or end) to maintain the network in a consistent state.
Pumps and valves are links, therefore two-dimensional elements, in accordance to the EPANET
network model. Pumps and valves have a standard length of 1 m.
7.3.1. Junctions
The “Junction properties” panel (fig. 5) allows the user to set the default junction properties, that
will be assigned to every newly created junction:
● Demand
● Delta Z
● Pattern (if any)
● Emitter coefficient
7.3.3. Tanks
The “Tanks properties” panel (fig. 7) allows the user to set the default tank properties, that will be
assigned to every newly created tank:
● Delta Z
● Initial level
● Minimum level
● Maximum level
● Diameter
● Volume
● Curve (if any)
7.3.4. Pipes
The “Pipes properties” panel (fig. 8) allows the user to set the default pipe properties, that will be
assigned to every newly created pipe:
● Demand
● Diameter
● Minor loss
● Roughness. Based on the pipe material: for every material a range of viable values is
presented.
● Status.
● Vertex distance: this option is used to create intermediate vertices along each pipe, to
account for the real-world length of pipes. If the value is set to 0, the pipe will not have any
intermediate vertices.
7.3.5. Pumps
The “Pumps properties” panel (fig. 9) allows the user to set the default pump properties, that will be
assigned to every newly created pump:
● Parameter (power or head).
● Head (only active when the head parameter is selected)
● Power (only active when the power parameter is selected)
● Speed
● Speed pattern (if any)
● Initial status (open or closed)
7.4.2. Quality
The “Quality” options panel contains the properties related to water quality (fig. 13).
Figure 13. Quality options panel.
7.4.3. Reactions
The “Reactions” option panel contains the properties related to reactions (fig. 14).
7.4.4. Times
The “Times” options panel contains the properties related to time settings (fig. 15).
Figure 15. Times options panel.
7.4.5. Energy
The “Energy” options panel contains the properties related to energy (fig. 16).
7.4.6. Report
The “Report” panel contains the properties related to reporting (fig. 17)
Figure 17. Report options panel.
The pattern can be drawn by adding rows to the table and setting the desired multiplier values.
Figura 19. Pattern editor.
The curve can be drawn by adding rows to the table and setting the desired values in both
columns. The values units depend on the selected curve type:
● Type “Volume”: height and volume.
● Type “Pump”: flow and head.
● Type “Efficiency”: flow and efficiency.
● Type “Headloss”: flow and head loss.
Figure 20. Curve editor.
8. 2
9. 2
10. 2