WDSv4-Final Copy For WE3-2022
WDSv4-Final Copy For WE3-2022
fm July 6, 2022
Semester 2, 2022
CHAPTER 1 INTRODUCTION
1.1 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Overview of Water Collection and Distribution . . . . . . . . . . . 2
1.3 Design Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3.1 Planning of water distribution systems . . . . . . . . . . . . . . . 2
1.3.2 Supply standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.3 Design requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Computer Analysis of Water Distribution Systems . . . . . . . . . 3
1.5 Steady State Analysis versus Extended Period Simulation . . . 4
1.6 Defining a Water Distribution System . . . . . . . . . . . . . . . . . . . 4
1.7 Trial and Error Design of Water Distribution Systems . . . . . . 6
1.8 Optimization of the Design of Water Distribution Systems . . 7
1.9 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
i
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
ii
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
iii
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
v
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
vi
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
9.7.2 The energy equations for closed simple loops and required
independent paths for the ten pipe network . . . . . . . . . . 232
9.7.3 The energy equations for the Darcy – Weisbach head loss
equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
9.7.4 The energy equations for the Hazen – Williams head loss
equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
9.7.5 The flow or Q – equations for the ten pipe network . . . . 236
9.8 Nodal Head Equations or the H – equations formulation . . . 237
9.8.1 The H – equations formulation for the ten pipe network 237
9.8.2 The head or H – equations for the ten pipe network system .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
9.8.3 The H – equations formulation for Darcy – Weisbach head
loss equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
9.8.4 The H – equations formulation for Hazen – Williams head
loss equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
9.9 Loop Flows or LF – equations . . . . . . . . . . . . . . . . . . . . . . . 240
9.9.1 The loop flows vector . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
9.9.2 The loop flow equations . . . . . . . . . . . . . . . . . . . . . . . . . 241
9.9.3 The initial flows must satisfy continuity . . . . . . . . . . . . 242
9.9.4 Detailed development of the loop flows equations . . . . 242
9.9.5 The loop flow equations for the ten pipe network . . . . . 243
9.10 The Q+H Equations Formulation . . . . . . . . . . . . . . . . . . . . . 245
9.10.1 The pipe head loss equations for the ten – pipe network 245
9.10.2 The continuity equations for the ten – pipe network . . . 246
9.10.3 The Q+H equations for the ten – pipe network . . . . . . . 246
9.10.4 Q+H equations formulation for Darcy – Weisbach head loss
equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
9.10.5 The Q+H equations formulation for Hazen – Williams head
loss equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
9.11 Global Gradient Algorithm Formulation . . . . . . . . . . . . . . . 248
9.11.1 Background to the Global Gradient Algorithm . . . . . . . 248
9.11.2 Specification of parameters and definition of required
matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
9.11.3 The pipe head loss equations in matrix form – the Global
Gradient Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
9.12 Alternative Formulations of the Network Equations . . . . . . 254
9.13 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
vii
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
viii
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
14.2.1 Set of loop flow equations . . . . . . . . . . . . . . . . . . . . . . . 334
14.2.2 The Jacobian matrix for the LF – equations formulation 335
14.2.3 Derivatives of terms incorporating a modulus term . . . . 338
14.2.4 Updating the Darcy – Weisbach friction factors . . . . . . 338
14.3 Convergence Stopping Criteria for the LF – equations
Formulation 338
14.4 Solving the LF – equations for the Ten Pipe Network . . . . . 339
14.4.1 Unknowns and functions for the Newton method . . . . . 339
14.4.2 Solving for the LF – corrections for the ten pipe network . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
14.5 Solving the LF – Equations (Loop Flow) for Two Pipe Network
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
14.5.1 The unknowns and initial guesses . . . . . . . . . . . . . . . . . 343
14.5.2 Two pipe example based on Newton method (LF – equations
formulation) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
14.6 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350
x
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
CHAPTER 18 PUMPS
18.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404
18.2 Useful Definitions for Pumps (alphabetized) . . . . . . . . . . . . 404
18.3 Main Features of a Pump . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
18.3.1 Types of pumps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
18.4 Energy Equation Applied to a Pumping System . . . . . . . . . 405
xi
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
xii
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
CHAPTER 19 VALVES
19.1 Isolating Valves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
19.2 Pressure Reducing Valves (PRV) . . . . . . . . . . . . . . . . . . . . 454
19.2.1 Operating modes of pressure reducing valves (PRVs) . 455
19.2.2 Elements of pressure reducing valves . . . . . . . . . . . . . . 455
19.2.3 Modeling of PRVs in computer hydraulic analysis software
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456
19.2.4 Advantages of the use of PRVs . . . . . . . . . . . . . . . . . . . 466
19.2.5 EPANET approach to modeling of PRVs . . . . . . . . . . . 466
19.3 Flow Control Valves (FCV) . . . . . . . . . . . . . . . . . . . . . . . . . 467
19.4 Control Valves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
19.4.1 Cavitation in control valves . . . . . . . . . . . . . . . . . . . . . . 471
19.5 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472
xiii
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
xvi
Table of Contents - File: WDSv3TOC.fm July 6, 2022 Version 1
xvii
File: Finding-Errors-6jul2022.fm July 6, 2022 Version 1
I (Professor Emeritus Angus Simpson) would encourage you to read the textbook carefully and criti-
cally.
If you find errors - please let Prof. Simpson know by emailining hin on
and then changes can be made for the next year so that the material can be made as error-free as possi-
ble.
The three people who identify the most errors will be eligible for the free lunch. In the event of a tie, the
three winners will be drawn out of a hat.
1. A heading of the subject name and the words “WDS book error found on page xx”.
2. A description of the exact location of error.
3. An adequate description of the error.
ii
Chapter 1 - File: Chap1.fm July 6, 2022 Version 7
CHAPTER 1 INTRODUCTION1
1.1 Scope
Municipal water distribution systems or networks are the focus of this book. Elements of a network
include the collection headworks, water treatment plants (WTPs) or purification works, transmission
works and distribution works. Computer modeling for the simulation of the water networks is one of the
main aspects considered in this book. Many of the same principles also apply to piped transmission sys-
tems and piped irrigation systems. Transmission systems transfer water within the headworks system or
between tanks in the distribution system. The interaction between the transmission system, storage tanks
and the network often needs to be carefully considered. For example, the transmission system usually
delivers water from the headworks system of storages and dams to tanks or service reservoirs. Thus the
sizing of pipelines in the transmission system is a critical factor when evaluating the refilling of the
tanks after a peak day demand or a critical demand period. Tanks must be refilled in preparation, in case,
another high demand period occurs. For the network downstream of the tanks that supplies water to
industry, homes and parks, the sizing of these pipes usually depends on expected conditions during the
peak hour of water demand or during a fire fighting occurrence.
Users of water are varied. In a city, water use is provided for households (for personal use, cooking,
cleaning and garden watering), industrial use, commercial use, government and university building use,
parkland and oval watering and fire fighting. Estimation of demands for water is a critical part of com-
puter modeling of water distribution systems. The accurate estimation of demands is a specialized topic
in itself. A comprehensive analysis of demand estimation including techniques for estimating population
growth are beyond the scope of this book. For the computer analysis of a particular network, the issue of
various types of demand loading cases such as peak hour, fire loadings, and peak day demands are con-
sidered in this book.
Computer modeling or simulation of networks has reached a mature level of practice. There are many
excellent commercial and government computer programs available. The input and output capabilities
of such programs are highly sophisticated. Many water utilities now have geographical information sys-
tems (GIS) that keep a large database of information about their network. Examples of items stored in
the database include
• pipe diameters (both nominal and actual), material and condition of pipes
• coordinates of nodes at the ends of pipes
• elevations of nodes
• valve locations and types
• pump locations and types
• tanks
Many software vendors are now developing links between their hydraulic solver software programs and
various GIS platforms.
1. © Copyright 2022Jul. Prof. Emeritus Angus Ross Simpson, University of Adelaide, Adelaide,
Australia. Part of the book entitled Water Distribution Systems Engineering.
1
Chapter 1 - File: Chap1.fm July 6, 2022 Version 7
The underlying governing equations of pipe flow in water distribution systems are well understood.
Numerous solution techniques have been proposed since the first trial and error techniques of Hardy
Cross at the University of Illinois in 1936 (Cross 1936). Various formulations of the flow and head equa-
tions are possible for a network. These are presented in detail in Chapter 9. Numerical solutions of the
governing equations are discussed in Chapter 10. Other components that may be modeled include
pumps (see Chapter 18) and valves (see Chapter 19).
The first 16 Chapters of this book are concerned with steady state analysis of water distribution systems
including extended period simulation (EPS). Water is assumed to be incompressible for the steady state
analysis of networks. Chapter 20 focuses on optimization of water distribution systems using genetic
algorithms. Chapter 21 introduces water hammer analysis in pipeline systems where the compressibility
of water is taken into account.
• catchments
• rivers
• streams
• creeks
• reservoirs
• dams
The main focus of this book is the water delivery systems downstream of these collection facilities.
There are a number of objectives that a water utility or authority has in providing water to the commu-
nity. These include provision of
Often a water supply system is designed to supply adequate quantities of water on the peak hour of the
year. Thus for regions of hot dry climates, the maximum capacity of a network is only used to its full
potential for less than six weeks a year. For the remainder of the year, the water supply system has con-
siderable excess capacity.
2
Chapter 1 - File: Chap1.fm July 6, 2022 Version 7
• major headworks for upgrading existing water supply systems (these include pumping sta-
tions, major transmission pipelines and balancing storages)
• revisions needed to upgrade existing substandard networks
Often, the annual water consumption is estimated or based upon consumer meter data. Population pro-
jections and land use proposals are used to predict future water demands. Climatic conditions and annual
average rainfall affect these water demand estimates.
• the capability to supply demands (demand sources are residential, industrial or urban park-
land watering)
• the ability to provide a minimum allowable pressure under peak demand conditions (low
pressures cause problems)
• to not exceed maximum pressure constraints (a typical desirable pressure range is 20 to
90 m of head of water)
1.4 Computer Analysis of Water Distribution Systems
Computer hydraulic analysis of networks during the 1990s reached a mature level of practice. Many
sophisticated computer packages are available. The computing power available to the water distribution
design engineer has improved markedly over the last 15 years and will continue to do so. Computer
analysis of looped networks was pioneered in part by Shamir and Howard (1968) and Epp and Fowler
(1970). The research findings presented by these authors represent the beginning of a move from hand
methods (most commonly the Hardy Cross method) to the use of detailed computer analysis including
extended period simulation analysis of networks.
Selecting pipe and component sizes for elements within a network remains to a large extent a process
based on rules of thumb and trial and error based on engineering experience (Walski et al. 1988). The
engineer must input all of the sizes of components into the computer simulation model, run the program,
evaluate the results, make any necessary adjustments to sizes, and then repeat the process.
Many hydraulic simulation computer programs are available. Most packages analyze a user pre –
defined system (i.e. diameters and pump sizes need to be specified). In general, the engineer uses the
computer simulation model to determine the following by trial and error
3
Chapter 1 - File: Chap1.fm July 6, 2022 Version 7
The second form of analysis is extended period simulation or dynamic analysis (this should not be con-
fused with water hammer analysis) of networks. The performance of storages in balancing supply and
distribution is checked by using an extended period simulation. Extended period simulation ensures an
adequate level of service to consumers under varying conditions of demands and reservoir water levels
(Bhave 1988). Adequate flow rates and pressures (residual heads) must be maintained at all times. Anal-
ysis of the network is usually carried out over a period of 24 to 48 hours under varying nodal demands
and reservoir water levels (Bhave 1988).
4
Chapter 1 - File: Chap1.fm July 6, 2022 Version 7
5
Chapter 1 - File: Chap1.fm July 6, 2022 Version 7
Table 1.3 Demands and minimum allowable pressures for nodes in the ten pipe network
Loading case no. 1 Loading case no. 2 Loading case no. 3
Node Demand Minimum Demand Minimum Demand Minimum
no. (L/s) allowable (L/s) allowable (L/s) allowable
pressure pressure pressure
(m) (m) (m)
2 13 28.0 13 14.0 13 14.0
3 13 18.0 13 14.0 13 14.0
4 0 18.0 0 14.0 0 14.0
6 19 35.0 82 14.0 19 14.0
7 19 35.0 9 10.5 19 14.0
8 19 35.0 19 14.0 19 14.0
9 19 35.0 13 14.0 51 14.0
The following rules of thumb have traditionally been used for designing networks (Walski et al. 1988)
6
Chapter 1 - File: Chap1.fm July 6, 2022 Version 7
• enough pumping capacity to provide peak day flow with one pump out of service
• pressures roughly 410 to 550 kPa (42 to 56 m or 60 to 80 psi) under normal conditions
• pressure at least 140 kPa (14 m or 20 psi) under emergency conditions
These rules of thumb are guidelines only. In some systems, the actual velocities may exceed the values
given above. These values should not be interpreted as being values that should never be exceeded but
rather values that are aimed for.
In general, the engineer must use trial and error with computer simulation analysis to arrive at a combi-
nation of pipes and elements such that all the specified design criteria (e.g. minimum allowable pressure
at nodes, maximum velocities in pipelines) are met for the lowest possible cost.
Traditional optimization methods that have been applied to network optimization in the past include
• linear programming
• nonlinear programming (GINO, MINOS computer packages)
• enumeration of a severely pruned search space (WADISO)
• dynamic programming
Since 1990, a new optimization technique for the design of networks based on genetic algorithm optimi-
zation has been developed (Murphy and Simpson 1992, Simpson et al. 1994, Dandy et al. 1996).
Genetic algorithm optimization utilizes all of the power available in hydraulic simulation models and
offers the promise of significant capital and cost savings. The use of optimization will probably change
over the next 20 years as the pressure to squeeze more effective use from scarce resources available for
water supply infrastructure increases. Optimization of even relatively simple systems often lead to dra-
matic savings. Chapter 20 discusses genetic algorithm optimization in detail.
1.9 References
Bhave, P. R. (1988). “Extended period simulation of water systems - direct solution.” Journal of Envi-
ronmental Engineering, 114 (5), October, 1146-1159.
Brebbia, C. A. and A. J. Ferrante (1983). Computational Hydraulics, Pipe Networks, Chapter 4. Compu-
tational hydraulics: 59-121.
Cross, H. (1936). Analysis of flow in networks of conduits or conductors. Bulletin No. 286, University of
Illinois Engineering Experimental Station, Urbana, Illinois.
Dandy, G.C., Simpson, A.R. and Murphy, L.J. (1996). “An improved genetic algorithm for pipe network
optimisation.” Water Resources Research, 32 (2), Feb., 449-458.
Epp, R. and A. G. Fowler (1970). “Efficient code for steady-state flows in networks.” Journal of the
Hydraulics Division, Proceedings of the ASCE January, Vol. 96, No. HY1: 43-56.
Murphy, L.J. and Simpson, A.R. (1992). Pipe optimisation using genetic algorithms, Research Report
No. R93, Department of Civil Engineering, The University of Adelaide, June, 53pp.
Schaake, J. C., and Lai, D. (1969). “Linear programming and dynamic programming applications to
water distribution network design.” MIT Hydrodynamics Laboratory Report No. 116, July.
Shamir, U. and D. D. Howard (1968). “Water distribution systems analysis.” Journal of the Hydraulics
Division, Proceedings of the ASCE, Vol. 94, No. HY1, January, 219-235.
7
Chapter 1 - File: Chap1.fm July 6, 2022 Version 7
Simpson, A.R., Dandy, G.C. and Murphy, L.J. (1994). “Genetic algorithms compared to other tech-
niques for pipe optimization”, Journal of Water Resources Planning and Management, Vol. 120, No. 4,
July-August, 423-443.
Walski, T. M., Gessler, J., and Siostrom, J. W. (1988). “Selecting optimal pipe sizes for water distribu-
tion systems.” Journal of the American Water Works Association, February, 35-39.
8
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
The objective of providing a water distribution system is to transport water from sources to consumers.
Ordinary water is not a simple substance but rather it is a mixture of isotopes and possibly several poly-
mers (Skeat and Dangerfield 1969). This Chapter deals with the important properties of water that are
required for the analysis of pipeline flow. The definition of a fluid is given and its relation to stress, and
in particular, shear stress. Prior to describing properties of water, it is necessary to discuss units and
measurement systems. Various units of measurement have been used in the past. The most common sys-
tems of measurement are SI units and US customary units (or Imperial units). Both of these systems are
described in this Chapter. In addition, both systems are used throughout the book.
There are only a few properties of water that are of any practical importance in pipe flow analysis. The
important properties of water described in this Chapter include viscosity, density, specific weight, spe-
cific gravity, pressure and compressibility of water. The properties generally depend on temperature and
pressure. Usually, the range of temperature and pressure variation of concern is quite small. When water
properties are given it is usual to specify these for pure, air – free water at atmospheric pressure. Fresh
water normally contains impurities and dissolved gases. Their presence modifies the properties only
slightly. It is assumed that the effect on the properties of water due to these impurities is negligible.
The effect of gravity on water results in a pressure variation within the fluid. This concept is extremely
important. The concept of pressure variation within a fluid and measurement of pressure is also intro-
duced in this Chapter. Absolute pressure and gage pressure are defined. Manometers for determination
of pressure in pipe flow systems are also considered.
FN
= -------
- (2.1)
A
where
9
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
F
= ------T- (2.2)
A
where
The major difference between a fluid and a solid occurs when a fluid is subjected to an infinitesimally
small shear stress. A solid does not move when subjected to a small shear stress while a fluid does begin
to move.
10
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
pressure increase with depth in the liquid shown in Figure 2.3 is due to gravity. The pressure at a point is
supporting the weight of fluid above it to the surface. A detailed description of the pressure variation
with depth is given in Section 2.10. We will see that the pressure increases linearly with vertical depth
below the water surface. In Figure 2.3 the amount of increase at the bottom of the tank is:
p = gh (2.3)
where
• p = change in pressure for an increase in depth of h below the water surface (Pa or psi)
• = density of the fluid (kg/m3 or slugs/ft3)
• g = gravitational acceleration (m/s2 or ft/s2)
• h = vertical depth below the water surface (m or ft)
The pressure on the water surface is defined as a force per unit area as
FN
p = -------
- (2.4)
A
DEFINITION OF PRESSURE
where
*
Figure 2.3 A fluid subject to a compressive stress (atmospheric pressure of p atm
in absolute units is acting on the surface)
11
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
Some typical units of derived quantities that are important in hydraulics of water distribution networks
are given in Appendix B. Note that where a unit is named after someone (for example, Sir Isaac Newton
for force) — the abbreviation is capitalized (that is, N), whereas when written in full — lower case letters
are used (that is, newton).
It is very important to clearly distinguish between mass and force in both sets of units. The following
sections deal with this difference.
F = ma (2.5)
where
In the SI units system, mass is commonly used rather than force when defining the property of the object
on earth (in contrast to usage of weight in US customary units as discussed below). To convert a force or
weight W involving gravity to a mass m it is necessary to divide by the gravitational acceleration g as
12
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
W
m = ------ (2.6)
g
where
Thus if a 1 kg mass is falling freely, accelerated by gravity, the force W or F acting on the object is
In the US customary system of units, mass (in slugs) is rarely used while reference to the force in lbf is
commonly used when referring to objects subject to the action of gravity on earth.
Thus if a 1 lbf weight is falling freely, accelerated by gravity, the mass m of the object must be
W 1
m = ------ = ---------- slugs
g 32.2
where
1 lb m = 32.2 slugs
13
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
14
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
Table 2.6 Common abbreviations and other defined units in the SI units system
Prefix Value Abbreviation Common examples of usage
micro – 10 – 6 m (micrometer)
milli – 10 – 3 m mm (millimeter)
centi – 10 – 2 c cm (centimeter)
hecto – 102 h hectare (ha) (a measure of area = 10,000 m2 or 100 m by 100 m)
kilo – 103 k km, kg, kPa (kilometer, kilogram, kilopascal)
mega – 106 M ML, MPa (megaliter, megapascal)
giga – 109 G GL (gigaliter)
The conversion of units between the SI units system and the US customary units system, or within each
system, often leads to confusion and needs to be carried out carefully. Table 2.7 shows some examples
of conversions. Detailed lists of conversions are given in Appendix B (Table B.1). Some examples of
abbreviations are given in Table 2.8. Additional abbreviations are given in Table B.2 in Appendix B.
We want a quantity with units of N/m2. It is very important to take a methodical approach to units conversion otherwise
it is easy to make errors. The following procedure is recommended for all units conversions. Using the conversions in
Table B.1 from Appendix B it follows that
2 2 2
lb- 4.44822 N- -----------------
12 in - --------------------------------
1 ft
30 psi = 30 ------ -------------------------
in
2 1 lb 1 ft
2
0.3048 m
2 2
On the right hand side, the second term specifies the number of newtons (4.44822 in the numerator) per pound (1 in the
denominator) – thus the pound (lbf) in the numerator of the first term on the right hand side cancels with the pound
(lbf) in the second term in the denominator. The third term on the right hand side converts square inches to square feet
and finally the fourth term on the right hand side converts square feet to square meters. Once the units on the right hand
side are cancelled out then the remaining units are N/m2 or pascal.
It is always best to write out the conversion in the form shown above. This prevents errors from being made in units
conversion.
Simplifying leads to
30 4.44822 144 N
30 psi = --------------------------------------------- -------- = 206843 Pa
2 2
0.3048 m
An alternative method for conversion, again using the conversions in Table B.1, is
3 2
lb 6.89476 10 N/m
- -----------------------------------------------
30 psi = 30 ------
2 2
in 1 lb/in
or
3 2
30 psi = 30 6.89476 10 N/m = 206 843 Pa = 206.8 kPa
___________________________________________________________________________________
15
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
2.3 Viscosity
2.3.1 Definition of absolute viscosity
Viscosity is that property of a fluid that offers resistance to shear forces that develop in the fluid. Con-
sider two closely spaced plates to examine the viscosity of a fluid as shown in Figure 2.4.
16
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
A liquid is placed between the plates separated by a distance t. Assume the plates are very large and of
area A, such that the edge effects are neglected. Assume the lower plate is fixed and that the upper plate
has a force of F applied. When the force F causes the upper plate to move, no matter how small the mag-
nitude of F, the substance between the two plates is concluded to be a fluid. At the boundary of the upper
moving plate, the fluid and boundary must have the same velocity. This is the no slip condition. Experi-
ments show that the magnitude of the force F to move the upper plate in Figure 2.4 depends on the fol-
lowing quantities
FA
FU
F 1---
t
AU
F --------- (2.7)
t
AU
F = --------- (2.8)
t
where
• proportionality factor called the absolute viscosity or viscosity of the fluid (Pa – s or
slugs/s – ft)
Expressing Equation 2.8 in terms of shear stress ( ) gives
F U
= ---- = ---- (2.9)
A t
where
17
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
In addition, the ratio U/t is may also be written as an angular velocity, du/dy as shown in Figure 2.5.
Note that in Figure 2.4 and Figure 2.5 the velocity distribution is exactly linear.
du
= ------ (2.10)
dy
where
du
• the ratio ------ is the rate of angular deformation
dy
For a stationary fluid, the value of du/dy is zero as the velocity u is zero in the fluid. Consequently the
shear stress is zero in the stationary fluid. Thus in Equation 2.10 it follows that
du
= ------ = 0 = 0
dy
To contrast to the behavior of water, consider the shear stress if a vacuum replaced the water. A vacuum
between the plates would have an absolute viscosity of zero (, thus the top plate would be acceler-
ated continuously when a force F is applied to the upper plate. It follows that the shear stress in a vac-
uum is also zero as follows
du du
= ------ = 0 ------ = 0
dy dy
= ------
du
------
dy
FA
= ------------ (2.11)
Uy
18
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
2
N/m - = N–s
= ------------------- --------- (2.12)
m/s /m m
2
F = ma
m kg–m
F = N = m a = kg ------- = -------------- (2.13)
2 2
s s
Now as an alternative form the units of absolute viscosity from Equation 2.11 and Equation 2.13
become
kg–m
-------------- m
2
2
FA s kg
= ------------ = ------------------------------- = ----------
Uy m/s /m m–s
kg- = ------
M-
= ---------
m–s LT
where
–3
For crude oil the absolute viscosity is = 8 10 N – s/m2.
=
--- (2.14)
where
19
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
2 2
kg/(m–s) m L
= -------- = ---------------------- = ------- = ------
kg/m
3 s T
Values of absolute and kinematic viscosities for water are given in Table 2.3.
A full list of kinematic viscosities for water at various temperatures is given in Appendix A. The Inter-
national Standard - IEC (1999) gives the following formula for the kinematic viscosity of water at a Cel-
sius temperature T as:
VD
Re = -------- (2.15)
where
V D m/s m
Re = ------------------ = ----------------------- = 1
m /s
2
and therefore the Reynolds number is a dimensionless quantity. If the Reynolds number is small
(< 2300) then in pipe flow — the flow type is laminar and the viscous effects (the term) dominate the
inertial effects (the VD term).
2.4 Density
Density is the mass per unit volume in the limit as the size of the volume approaches an infinitely small
size . Thus
m
= lim -------- (2.16)
V V
where
20
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
A change in pressure changes the volume occupied by a substance. As a result, density of a liquid varies
slightly with pressure. Thus density increases as pressure increases and density decreases as pressure
decreases. The effect of pressure on density of solids and liquids is very small and the effect is usually
ignored.
1
v s = --- (2.17)
3 3
m ft
v s = ------- or ---------- (2.18)
kg slug
21
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
R
R = ----- (2.20)
M
where
8314.472
R = ---------------------- = 286.71 (2.21)
29
pv s = MRT (2.22)
where
The gas constant is obtained from the molecular weight of a gas. Thus in SI units (Streeter et al. 1998)
8312 m–N
R = ------------ --------------- (2.23)
M kg–K
22
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
where
709- -------------------
R = 49 ft–lb - = 1545 ft–lb-
----------------- ------------ -------------- (2.24)
M slug–R M lb m R
where
Two examples involving the perfect gas law are now given below.
Example 2.2 For air at standard conditions (standard temperature and pressure = STP) compute its density in SI
units.
The density is computed using the perfect or ideal gas law Equation 2.22 using values from Table 2.9 (T = 4°C,
p = 101, 325 Pa absolute) as
pv s = RT
Thus in SI units and using the gas constant from Table 2.10 gives
p - = ------------------------------------
1- = ------- 101325 - = 1.275 kg/m 3
= ---
vs RT 287 4 + 273
Example 2.3 For air at standard conditions compute its density in US customary units.
The density is computed using the perfect or ideal gas law Equation 2.22 and values from Table 2.9 (T = 39.2°F,
p = 14.7 psi = 2116.8 lbf/ft2 absolute) as
pv s = RT
Thus in US customary units and using the gas constant from Table 2.10 gives
1 p 2116.8 3
= ---- = -------- = ------------------------------------------------ = 0.002473 slug/ft
vs RT 1715 39.2 + 460
or
1 p - = ---------------------------------------------
2116.8 3
= ---
- = ------- - = 0.07956 lb m /ft
vs RT 53.3 39.2 + 460
___________________________________________________________________________________
23
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
= g (2.25)
where
Typical units of specific weight are N/m3 or lbf/ft3. Specific weight is temperature and pressure depen-
dent (as for density).
3 2 kg
= g = kg/m m/s = ------------
2 2
m s
kg–m
F = -------------- = N
2
s
N- = N/m 3
= ------
3
m
3 2 slug
= g = slugs/ft ft/s = -----------
2 2
ft s
ft = slug–ft
F = lb = m a = slug ---- ---------------- (2.26)
2 2
s s
It follows that the units of specific weight in US customary units from Equation 2.26 are
2
F slug–ft s lb
= ------ = ------------------------- = ------
3 3 3
L ft ft
Common values of the specific weight of water are given in Table 2.3.
Other values of specific weight for water are given in Appendix A. Specific weight or unit weight is
important in stratified flow.
24
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
S = ----- (2.27)
w
where
The specific gravity of a gas is usually defined by comparing with the specific gravity of air at a tem-
perature of 20°C and a pressure of 101.325 kPa absolute. The density of air under these conditions is
1.205 kg/m3 or 0.07637 lbm/ft3, where 32.174 lbm = 1 slug.
pv s = RT (2.28)
1 p 101325 3
= ---- = -------- = ---------------------------------------- = 1.205 kg/m
vs RT 287 20 + 273
3
= g = 1.205 9.81 = 11.821 N/m
1 p 2116.8 3
= ---- = -------- = ----------------------------------------- = 0.07637 lb m /ft
vs RT 53.3 60 + 460
3
= g = 0.07637 32.2 = 2.459 lb/ft
25
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
p v p v
or in gage units (assuming the local barometric pressure is equal to standard atmospheric pressure)
26
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
Often there is a misconception with regard to the compressibility of a number of common materials. It is
clear that gases, such as air, are compressible. When the question as to whether or not steel and water are
compressible is considered, it sometimes leads to confusion. A common misconception is that steel and
water are incompressible. This is not correct. All gases, liquids and solids change volume with every
change in compressive state. Thus both water and steel are compressible, although to different degrees.
Despite the occurrence of the compressibility of water as the pressure changes, incompressibility (or a
constant fluid density) is often assumed in order to simplify the solution of hydraulics problems.
Liquid compressibility is expressed by the bulk modulus of elasticity K. For liquids, the bulk modulus
of elasticity K is defined based on Figure 2.7 as
stress p
K = ---------------------------------------- = ---------------------------- (2.29)
volumetric strain – V M V M
where
27
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
For solids, the modulus of elasticity is defined as the coefficient of elasticity of stretching. For a
stretched wire, Young's modulus of elasticity is the ratio of the stretching force per unit cross – sectional
area to the elongation per unit length. Young’s modulus of elasticity E is also related to stress and strain
as follows
stress
E = ------------- = --- = -------------- (2.30)
strain L L
where
28
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
Consider what happens to the pressure when you dive into water and go deeper and deeper. The pressure
increases linearly with an increase in depth. There is a direct relationship between the pressure in N/m2
(or lbf/ft3) at any point in the water and the height of water in meters or feet above that point. The pres-
sure is expressed in meters or feet of water and is called head (see Section 2.10.1 and specifically
Equation 2.39). Consider the coordinate directions defined in Figure 2.8.
p = 0 (2.31)
x h, z fixed
and
p = 0 (2.32)
z h, x fixed
Thus in Figure 2.9 it follows for A and B on a horizontal plane at the same depth below the horizontal
water surface that
p A = pB (2.33)
29
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
In contrast, there is a linear variation in pressure with depth in the h – direction downwards from the sur-
face of the liquid as follows
p = = g (2.34)
h x, z fixed
where
p
• = change in fluid pressure with depth
h
• = specific weight of the fluid (N/m3 or lbf/ft2)
• = density of the fluid (kg/m3 or slugs/ft3)
• g = gravitational acceleration (m/s2 or ft/s2)
The linear variation of pressure with depth is shown in Figure 2.10.
Since p is a function of h only, the partial derivative in Equation 2.34 is replaced by a total derivative as
dp
= (2.35)
dh
For a homogeneous and incompressible fluid, the specific weight of the liquid is constant, thus integra-
tion of Equation 2.35 leads to
dp = dh
dp = dh = dh
and thus
p = h + c (2.36)
The pressure at the surface of the liquid is zero in gage units (that is: p = 0 at h = 0 in Figure 2.10) — see
Section 2.11. Substituting these values into Equation 2.36 results in
c = 0 (2.37)
30
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
p = h (2.38)
where
Example 2.4 Compute the pressure 2 m beneath a static water surface as shown in Figure 2.10.
Assume the water temperature is 20°C. The specific weight is 9,789 N/m3. Using Equation 2.38 gives the pressure at a
depth of 2 meters is
___________________________________________________________________________________
p
--- = h (2.39)
where
This is equivalent to the pressure (force per unit area) at the base of a column of water
of 3 m in height.
The pressure in a liquid column does not depend on the shape of the container. As long as the height of
the water stays the same, changing the shape of the container does not change the pressure at the bottom
of the container. Pressures are also identical for the same depth in any of the containers. Figure 2.11
shows that the pressure is identical at points A, B, C, D and E.
31
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
Thus the pressure head depends only on the height of the column of fluid and not on the size of the base
of the column. The weight of the fluid column above it causes pressure.
Consider the following example that illustrates the concept of the relationship between the height of a
fluid column and the pressure at the base of the fluid column.
Example 2.5 Consider a rectangular column, 3 m high and 0.5 m by 0.5 m square filled with water as shown in
Figure 2.12. What is the pressure head at the base? Assume the water temperature is 20°C.
where
2
F 0.5 3 9789
p = ---- = ----------------------------------------
A 0.5
2
32
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
2
p = h = 3 9789 = 29 367 N/m
p 3 9789
pressure head = --- = -------------------- = 3 m of water
9789
___________________________________________________________________________________
Example 2.6 What is the pressure at the base of a water column of 14 ft in height?
Assume the specific weight of water is 62.4 lbf/ft3 then the conversion becomes
2
62.4 lb lb 1 ft
p g = 14 ft = 14 ft ----------------- = 14 62.4 ------- ------------------ = 6.06 psi
3 2 2
1 ft ft 144 in
___________________________________________________________________________________
Absolute pressure is measured above a zero specified by a perfect vacuum (absolute zero). The relation-
ship between gage and absolute pressure is demonstrated in Figure 2.13. Thus the relationship between
absolute pressure and gage pressure is as follows
p a = p g + p b (2.40)
where
• p a = absolute pressure (N/m2 or Pa); the subscript “a” refers to absolute units; the asterisk
or * as a superscript on the p refers to a pressure in absolute units
• p g = gage pressure (N/m2 or Pa); the subscript “g” refers to gage units; an unsuperscripted
p refers to a pressure in gage units (except in the perfect gas law of Equation 2.22)
• p b = barometric pressure (N/m2 or Pa) in absolute units; the subscript “b” refers to baro-
metric pressure of the atmosphere
The relationship between absolute and gage pressure is illustrated in Figure 2.13 and further described
in Table 2.16.
33
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
Figure 2.13 Relationship between absolute, gage, barometric and local atmospheric pressure
34
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
In Figure 2.15 the water column in the vertical open manometer rises to the level of the hydraulic grade-
line. Thus the level in the manometer is a measure of pressure head (h1) with respect to the centerline of
the pipe. Thus the pressure at the point A in the pipeline is
p A = h 1 (2.41)
Figure 2.15 An open piezometer tells you the pressure in the pipeline
35
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
• moving horizontally in the same fluid, the pressure remains the same
• moving vertically downwards in the same fluid a vertical distance h1, the pressure increases
by an amount
fluid h 1
• moving vertically upwards in the same fluid by a vertical distance h2, the pressure
decreases by
fluid h 2
36
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
where
• h1 and h2 = vertical heights of the fluids being traversed in the manometer (m or ft)
• fluid = specific weight of the particular fluid in the manometer that is being traversed (N/
1. Start at one end of the system and assign a pressure. For example, the pressure pA in
Figure 2.17 is unknown.
2. In Figure 2.17 move along the manometer from the centerline of the pipe at A to location R
at the water/mercury interface. A vertical fall (that is, moving downwards through the same
fluid) to the next meniscus (that is, the mercury meniscus in Figure 2.17 at R) increases the
pressure. Thus add to the value pA, the change of pressure to the next meniscus. In this case
the pressure at the next meniscus at R is
p A + w h1
p A + w h1
In contrast, moving directly from point A to point C' — the pressure cannot be the same
because there are two different fluids connecting the points via the manometer.
4. Continue working your way through to the other end of the manometer at point B.
5. In Figure 2.17 there will be a decrease in pressure moving upwards in the mercury from
point S to point B. A vertical rise (that is, moving upwards through the same fluid) to the
next meniscus decreases the pressure. Thus the pressure at B is
p A + w h 1 – Hg h 1 + h 2
6. Equate this final expression for pressure to the pressure at this point. For example, pB = 0 in
Figure 2.17.
2.12.6 Solving for the unknown pressure in the pipeline using a manometer
The equation is developed based on the principles of variation of pressure for a manometer as listed
above for the manometer in Figure 2.17 as
p A + w h 1 – Hg h 1 – Hg h 2 = p B (2.42)
where
Using the relationship between specific weight of a fluid and its specific gravity
Hg = S Hg w
37
Chapter 2 - File: Chap2.fm July 6, 2022 Version 6
where
p A + w h 1 – S Hg h 1 + h 2 = p B (2.43)
or
p A = p B – w h 1 – S Hg h 1 + h 2 (2.44)
But at the open surface at the top of the piezometer tube, pB = 0 and thus
p A = w S Hg h 1 + h 2 – h 1 (2.45)
Thus the application of manometer principles have led to a way of measuring the pressure in the pipeline
based on the deflection of the mercury column in the manometer.
2.13 References
Skeat, W.O. and Dangerfield, B. J. ed. (1969). Manual of British water engineering practice. (4th ed.).
Cambridge: Published for the Institution of Water Engineers by Heffer.
Streeter, V.L., Wylie, E.B. and Bedford, K. (1998). Fluid mechanics. 9th Edition. McGraw – Hill.
38
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
There are a number of objectives in the analysis of a pipe network or a water distribution system. Some
examples include
There are three fundamental conservation laws of physics that are essential to the analysis of fluid flow
in pipelines. The three equations include
As a summary the following tools are used to analyze pipe flow in this Chapter
1. © Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, The University of Adelaide, Adelaide,
Australia. Part of the book entitled Water Distribution Systems Engineering.
39
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
For steady flow at a given point (that is, x = constant) the velocity does not vary with time as given by
V
= 0 (3.1)
t
or
V
= 0 (3.2)
t x = constant
For example, a velocity of 3 m/s (or say 10 ft/s) at a single point or cross – section in the pipeline in
Figure 3.1 at x = 35 m (or say 100 ft) along the pipe remains the same for an indefinite amount of time
and is thus defined as steady flow. In contrast, unsteady flow does vary with time.
V
0 (3.3)
t
V
= 0 (3.4)
x
or
V = 0 (3.5)
x t = constant
An example of uniform flow is shown in Figure 3.2. Liquid being pumped into a straight constant diam-
eter pipe is described as uniform flow because the velocity vector is the same at all points along the pipe
– same magnitude and same direction).
40
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
In contrast, for non – uniform flow the velocity varies with distance along the pipeline.
V
0 (3.6)
x
Liquid flowing through a reducing section such as a Venturi flow meter as shown in Figure 3.3 is non –
uniform flow. The velocity vector changes in both magnitude (an increase in V as the cross – section
reduces) and direction.
du
= ------ (3.7)
dy
where
du
= + ------ (3.8)
dy
41
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
where
du
• ------ = gradient of the longitudinal velocity (u) perpendicular (y) to the flow direction
dy
Turbulent flow in pipes is the most common flow regime in water engineering. Laminar flow rarely
occurs. However, it is important to fully understand the differences between laminar and turbulent flow.
Osborne Reynolds, in his famous fluid flow experiments in Manchester, England (1880s) showed that
laminar flow was streamlined. Experiments by Reynolds showed the nature of the flow depended on a
dimensionless coefficient, that has come to be known as the Reynolds number. The Reynolds number
was defined in Chapter 2 (Equation 2.15). A detailed discussion of the Reynolds number is given later in
this Chapter (Section 3.2).
• for Re > 2300, laminar conditions broke down and the flow was unstable
• for Re > 2800, the flow was stable but turbulent (rather than laminar)
3.1.4 An ideal fluid versus a real fluid
An ideal fluid is assumed to have no viscosity (thus both kinematic viscosity = 0 and absolute viscos-
ity = 0) and therefore the fluid flow has no shear stresses. In addition, an ideal fluid is also assumed to
be incompressible.
For a real fluid the effects of shear stresses in the fluid are considered. Fluid friction forces caused by
viscosity result from shear stresses that exist between individual streamlines, where they are flowing at
different velocities. These are called boundary layer effects.
For example in one – dimensional flow only the velocity u in the x – direction is considered to be a func-
tion of time
u = u(x, t)
v = constant
42
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
w = constant
The average velocity V as shown on the right – hand side of Figure 3.4 is used to designate the one –
dimensional flow velocity.
For two – dimensional flow, all particles are assumed to flow in parallel planes along identical paths in
each of these planes. Thus
x – direction: u = u(x, y, t)
y – direction: v = v(x, y, t)
z – direction: w = constant
x – direction: u = u(x, y, z, t)
y – direction: v = v(x, y, z, t)
z – direction: w = w(x, y, z, t)
F = ma (3.9)
where
• gravity – Fg
• pressure – Fp
• elasticity – Fe
• surface tension – Fst
• shear force (viscous force) – Fsf
The sum of the forces on the left – hand side of Equation 3.9 is balanced by the inertial force where the
F g + F p + F e + F st + F sf = ma (3.11)
The division of each term in this equation by one of the forces makes the equation dimensionless and
provides dimensionless parameters. For example, divide each term in Equation 3.11 by the viscous force
of Fsf as follows
43
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
F g F p F e F st F sf ma
------ + -------- + -------- + -------- + -------- = ------ (3.12)
F sf F sf F sf F sf F sf F sf
or
F g F p F e F st ma
------ + -------- + -------- + -------- + 1 = -------- = fn Re (3.13)
F sf F sf F sf F sf F sf
where the Reynolds number Re in pipe flow on the right – hand side of Equation 3.13 is defined by
Equation 2.15.
The relative size of each dimensionless parameter relative to unity indicates its importance in
Equation 3.13. Many different dimensionless parameters may result. Consider pipe flow where the vis-
cosity is the most significant force.
3V 2 L
ma = L ---- = L --- V = L V
2 2
(3.14)
T T
where
du V 2
F sf = A = A = ---- L = V L (3.15)
d y L
where
du
• the ratio ------ is the rate of angular deformation
dy
• V = represents the velocity of fluid (m/s or ft/s)
• L represents a characteristic length (m or ft)
2
• L represents the area on which the force acts (m2 or ft2)
Thus the ratio of the inertial force given by Equation 3.14 and the viscous force given by Equation 3.15
is
44
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
2 2
Inertia force- = V V L- = V
L - = ----------- L-
-------------------------------- ---------------- ------- (3.16)
Viscous force V L
where
The purpose of the Buckingham theorem is to be able to develop a force equation for a complex flow
situation based on knowledge of the pertinent quantities. The equation should be expressed in terms of
the least number of variables or dimensionless groups of variables possible.
f 1 a 1 a 2 a n = 0
and if those n variables can be expressed in terms of m dimensional units (for exam-
ple, M, L, T for mass, length and time respectively), then the general equation above
can be expressed as (n – m) dimensionless terms as follows
f 2 1 2 n – m = 0
Each such term contains m + 1 variables of which only one need be changed from
term to term.
Generic dimensions for variables are required to apply the Buckingham theorem and some of the
more common units are given in Table 3.1.
An example of the application of the Buckingham theorem to the determination of the relationship
between pipe flow variables is given in the next Chapter in Section 4.3.4. As an introduction to the deri-
vation in Chapter 4, let us briefly introduce the problem here. For flow in a pipe, it is required to deter-
mine a relationship between the boundary shear stress on the inside of the pipe and significant fluid
properties and pipe dimensions. For pipe flow, assume the following variables are important and that the
form of the following relationship is required
F 1 o V D = 0 (3.17)
where
• o = shear stress at the boundary of the inside of the pipe (N/m2 or lb/ft2)
• = density of the fluid (kg/m3 or slugs/ft3)
• = absolute viscosity of the fluid (Pa – s or slugs/s – ft)
45
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
o = F 2 V D (3.18)
The Buckingham theorem is applied to a detailed example in Section 4.3.4. Dimensional analysis
using the Buckingham theorem cannot produce definitive mathematical relationships (that is, the
actual form of F1 or F2 above) between the variables, but it does indicate significant combinations of
variables.
VL o
----------- or Re , ---------
- , and ---- .
V
2 D
o = Re ---- V
2
(3.19)
D
where
• o = shear stress at the boundary of the inside of the pipe (N/m2 or lbf/ft2)
46
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
• the pipe is flowing full, that is, there must not be any free surface in the pipeline
• the flow is assumed to be one – dimensional flow for application of the continuity equation.
As a consequence, the average flow velocity at the section and the center – line pressure is
used
• the flow is treated as incompressible and thus the fluid density is assumed to be a constant
To consider the continuity equation for pipe flow the concepts of a streamline, a streamtube, a control
volume and a control surface must be introduced firstly.
47
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
Figure 3.6 Control volume for the derivation of the continuity equation
dm
= 0 (3.20)
dt
Thus there is conservation of mass for the system and no change in mass within the control volume with
time. The mass conservation equation is written for the control volume as follows
This is the continuity equation for unsteady flow. For steady flow there is no accumulation or degrada-
tion of mass within the control volume with time and thus
Thus
1 V 1 A 1 = 2 V 2 A 2 = constant (3.23)
Now the mean velocity of flow over the entire pipe at a section is used. This is referred to as one –
dimensional flow as was seen in an earlier section (Section 3.1.5), and as shown in Figure 3.8.
48
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
Thus the conservation of mass for steady state flow in a pipeline becomes
1 V 1 A1 = 2 V 2 A2 (3.24)
where
1 = 2 (3.25)
Q = V 1 A1 = V 2 A2 (3.26)
where
Thus if the discharge is given then the velocity of flow can be calculated as:
Q
V = ---- (3.27)
A
49
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
where
Example 3.1 Consider the flow situation in Figure 3.9. The upstream diameter is D1 = 0.2 m with flow velocity of
V1 = 2.0 m/s. The downstream pipe diameter is D2 = 0.06 m.
Figure 3.9 Abrupt pipe contraction for applying the continuity equation
The continuity equation from Equation 3.26 is applied between sections 1 and 2
Q = V 1 A1 = V 2 A2
Rearranging gives
D 1 2
A ------------- D1
2
4 -
V2 = -----1- V 1 = ------------ V 1 = --------
- V 1
A 2
D 2 2
2 D2
------------
4
-
Thus
0.2 2 0.2 2
V 2 = ------------ V 1 = ------------ 2.0 = 22.22 m/s
2
0.06 0.06 2
___________________________________________________________________________________
Answer – (ii) Compute the flow.
The flow is
2
D1 2
0.2 - = 0.0628 m 3 /s = 62.8 L/s
Q = V 1 A 1 = 2.0 ------------
- = 2.0 -----------------
4 4
___________________________________________________________________________________
50
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
;Now as an example, consider a block hitting a wall. It is stopped in a finite time and only a single object
is involved. Applying the impulse – momentum change equation leads to
where
• F = force vector required to stop the block when it hits the wall (N or lbf)
• T = time duration to decelerate the block to a velocity of zero (s)
• m = mass of block (kg or slugs)
• v = velocity vector of block just prior to impact (m/s or ft/s)
In fluid mechanics, the focus is not on a finite mass. Instead there is a continuous stream of fluid. Take
Newton’s second law of motion in Equation 2.5 and rewrite in terms of velocity and time
F = ma (3.29)
v gives
and thus the acceleration a with the ratio ---
T
v = m
F = m --- ---- v (3.30)
T T
v
The --- term is the mass/unit time of fluid flowing. The right – hand side of Equation 3.30 becomes
T
volume
Q = ------------------ (3.32)
time
Now, if a jet of water hits a wall, the action is a continuous stream and it is not completed in a given
period of time, as it is in solid mechanics.
d
F = mv (3.33)
dt
51
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
where
• F = the resultant of all external forces acting on the system, including body forces such as
gravity (N or lbf)
• m = constant mass of the system (kg or slugs)
• v = velocity of the center of mass of the system (m/s or ft/s)
Surface forces include pressure forces and shear forces (due to friction losses).
“the resultant force acting on a control volume is equal to the time rate of increase of linear momentum
within the control volume plus the net efflux of linear momentum from the control volume”
F x = d mV x (3.34)
dt
Consider a flow of fluid during a specified time t . The mass of fluid flowing from section 1 to
section 2 is
m = Qt (3.35)
V
F x = Qt ----------
x
= QV x (3.36)
t
and
Equation 3.37 assumes that there is only one inflow stream into the control volume and only one out-
flow stream from the control volume. Another way of writing Equation 3.37 is
where
52
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
• F x pressure = sum of pressure forces resolved in the x – direction acting on the control
volume (N or lbf)
• F x gravity = sum of gravity forces resolved in the x – direction acting on the control vol-
ume (N or lbf)
• F x shear = sum of shear forces resolved in the x – direction acting on the control volume
(N or lbf)
• R x = reaction on the control volume to keep it in place (N or lbf)
• = density of the fluid (kg/m3 or slugs/ft3)
• V x , V x = average velocities at section 1 and 2 resolved into the x-direction (m/s or ft/s)
1 2
sum of forces = momentum flux leaving the control volume (the QV x term)
2
– momentum flux entering the control volume (the QV x term
1
Similarly for the other coordinate directions the force – momentum flux equation are as follows. In the
y – direction
or
In the z – direction
or
When applying the momentum equation, it is necessary to take account of the following aspects
• the direction for positive forces and positive velocities must be selected in advance
• signs must be observed very carefully
• the term Q is a scalar and it is the entire Q that reaches the body that supplies the force
• the force – momentum flux equation is a vector equation
In the momentum equation, the direction of the mass flow rates (Q)s is not important. The value Q is
essentially a scalar value and represents a rate of mass transfer from one region to another.
3.4.4 Force – momentum flux equation for more than one inflow
Example 3.2 Consider a 600 mm diameter pipe carrying water flowing at 900 L/s that has a 90° bend in the hori-
zontal plane. Assume the loss of head in the bend is negligible and the pressure at the entrance is 300 kPa. Determine
the resultant force R by the water on the bend. Assume the water flowing is at a temperature of 15°C.
The free body diagram in Figure 3.12 indicates the static and dynamic forces acting on the bend. Let the total resultant
force R to hold the bend in place be made up of two components including R x and R y as shown in Figure 3.12.
53
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
2 2
D 0.6 2
A = ---------- = ------------------ = 0.2827 m
4 4
Thus
2
A 1 = A 2 = 0.2827 m
Q 0.9
V = ---- = ---------------- = 3.18 m/s
A 0.2827
Thus
V 1 = 3.18 m/s
and
V 2 = – 3.18 m/s
taking into account the direction of velocities relative to the assumed positive x and y – directions.
Apply the force – momentum flux of Equation 3.37 to the bend in Figure 3.13 in the x – direction as follows
F x = QV x – QV x
2 1
At section 1, the pressure force is only in the x – direction so it follows that p 1 x A 1 = p 1 A 1. The pressure force at section 2 has no
component in the x – direction and is thus zero or p 2 x A 2 = 0. Recall that the bend is in the horizontal plane and hence the gravity
The shear stress is also zero, thus F x shear = 0.0 as it is assumed that there is negligible head loss. Finally at section 1, all of
the velocity is in the x – direction and thus V 1 x = V 1 . In addition there is no velocity component in the x – direction at section 2,
thus V 2 x = 0. Thus substituting these values into Equation 3.43 gives
p 1 A 1 – R x = 0 – QV 1
Thus
R x = p 1 A 1 + QV 1
R x = 300 000 0.2827 + 999.1 0.9 3.18 = 84 810 + 2859 = 87 669 N = 87.7 kN
R x = 87.7 kN
The magnitudes of the velocity and pressure are the same at section 2 and at section 1.
Now apply the force – momentum flux of Equation 3.40 to the bend in Figure 3.13 in the y – direction as follows
54
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
or
At section 1, the pressure force has no component in the y – direction and is thus zero or p 1 y A 1 = 0. The pressure
force at section 2 is only in the y – direction so it follows that p 2 y A 2 = p 2 A 2. Recall that the bend is in the horizontal
plane and hence the gravity force is zero, thus F y gravity = 0. The shear stress is also zero, thus F y shear = 0 as it
is assumed that there is negligible head loss. Finally at section 1, there is no velocity component in the y – direction,
thus V 1 y = 0. In addition, all of the velocity is in the y – direction at section 2 and thus V 2 y = V 2. Thus substituting
these values into Equation 3.44 gives
p 2 A 2 – R y = QV 2 – 0
or
R y = p 2 A 2 – QV 2
R y = 300 000 0.2827 – 999.1 0.9 – 3.18 = 84 810 + 2859 = 87 669 N = 87 669 N = 87.7 kN
R y = 87.7 kN
The resultant force on the bend is obtained from the Pythagoras theorem
2 2 2
R = Rx + R y
2 2 2 2
R = Rx + R y = 87.7 + 87.7 = 124.0 kN
R = 124.0 kN
Thus the resultant force to hold the bend in place is 124 kN.
___________________________________________________________________________________
A more general form of the force – momentum flux equation is needed if there is more than one inflow
to or outflow from the control volume. The more general form of the equation is
NOUT NIN
F x = QV x2 i – QV x1 j (3.45)
i=1 j=1
where
• F x = sum of forces resolved in the x – direction acting on the control volume (N or lbf)
• NOUT = number of outflow streams from the control volume
• QV x , QV x = momentum fluxes resolved in the x-direction at sections j and i respec-
1 2
tively (N or lbf)
• NIN = number of inflow streams into the control volume
3.5 Energy Conservation in Pipe Flow
3.5.1 Assumptions
The following assumptions are made in deriving the energy equation for flow in pipes. These include
55
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
V
= 0
t
• the pipe is flowing full (that is — there is no free surface in the pipeline)
• one – dimensional flow is assumed (constant velocity and pressure across a cross – section)
• the flow is frictionless for the Bernoulli equation (no losses are included)
• the energy equation (that includes losses) is applied along a streamline
• the flow is incompressible (that is — the density is constant or = constant)
• the kinetic energy correction factor is taken as = 1.0 for turbulent flow (a more detailed
discussion of the kinetic energy correction factor is given later on in Section 3.8)
• the velocity head is usually small and thus is often neglected (defined in Section 3.5.2)
3.5.2 Forms of energy
A fluid particle flowing in a pipeline has three forms of energy
• potential energy
• pressure energy
• kinetic energy
The amount of energy possessed by water at any location in a water system may be measured in terms of
head.
• [L] or length
• [F – L/F] — in terms of energy per unit weight where F stands for force
Note that the numerator of energy is the product of a force times a distance, while the denominator of
weight has the units of force. By convention, the force is cancelled in the numerator and denominator
leaving [L] as the units of head.
z (3.46)
ELEVATION HEAD
It is measured as a vertical distance from some horizontal reference line (datum) or bench mark eleva-
tion (such as sea level) to the point of interest in the water system.
Consider an element of weight of fluid of mg as shown in Figure 3.13 (Douglas et al. 1979). The poten-
tial energy is
This may also be interpreted as the work required to lift the weight of mg vertically through a distance of
z. The potential energy per unit weight is
mgz
potential energy per unit weight = ---------- = z (3.47)
mg
56
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
mgz
The units of elevation head based on Equation 3.47 - the ---------- term are
mg
N–m
z = ------------ = m
N
or
ft–lb
z = ----------- = ft
lb
2
V
------ (3.48)
2g
VELOCITY HEAD
The kinetic energy is the second form of energy associated with a flowing fluid and is a result of the
fluid’s velocity. Consider the fluid element of weight mg as shown in Figure 3.13. The kinetic energy is
1--- mV 2
2
2 V
kinetic energy per unit weight = --------------- = ------ (3.49)
mg 2g
1--- mV 2
2
The units of the velocity head based on Equation 3.49 - the --------------- term and are identical to those for
mg
elevation head
2 2
V N–m V ft–lb
------ = ------------ = m or ------ = ----------- = ft (3.50)
2g N 2g lb
57
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
--p- (3.51)
PRESSURE HEAD
It is measured by the vertical distance above the measurement point (usually the centerline of a pipe-
line). Water rises in an open piezometer tube to the level of the pressure head. This level is also called
the hydraulic grade line (defined in Section 3.7).
The pressure energy of the fluid mass is the third form of energy considered. This pressure energy is the
energy of a fluid when flowing under pressure as part of a continuously maintained stream. The pressure
energy is sometimes referred to as potential energy in transit. Fluid flow is now compared to motion that
occurs solid mechanics. As a solid body falls, there is free conversion between potential energy and
kinetic energy. In contrast, in fluid flow in a pipe (of constant diameter) the velocity remains constant.
This is shown by the constant velocity head in Figure 3.14. Thus it is not possible for the potential
energy to be converted into additional kinetic energy as fluid flows along a pipe. Instead, the surplus
energy appears as a pressure increase or decrease (depending on the slope of the pipeline).
Figure 3.14 EGL and HGL for constant velocity head along a pipe
To understand pressure energy, consider a steadily flowing stream of fluid that does work because of its
pressure (see Figure 3.13). The pressure generates a force pA at a section. A volume of liquid V M passes
a section in a set amount of time. Density is defined as the ratio of mass to volume
m
= ---------
VM
weight mg m
V M = ------------------------------------ = ------- = ---- (3.52)
specific weight g
volume V M m
distance = ------------------ = --------
- = -------
area A A
58
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
m- = -------
pm-
work done = force distance = p A ------
A
This term is the flow or displacement energy content of the fluid — that is the energy or work required to
push a mass of fluid across a boundary of a system (Olson and Wright 1990). Thus
pm
--------
p
work done per unit weight = -------- = ------ (3.53)
mg g
or
p
work done per unit weight = ---
pm
--------
Again the units of pressure head based on Equation 3.53 - the -------- term and are consistent with those
mg
for elevation head and velocity head as
p N–m p ft–lb
--- = ------------ = m or --- = ----------- = ft
N lb
• mechanical energy Em is added or subtracted from the flow system by equipment such as
pumps or turbines
• heat energy EH is added or subtracted from the flow system by equipment such as heat
exchangers or energy dissipation (for example, friction loss at pipe walls). These forms of
energy are dealt with later on when the energy equation is considered.
These two forms of energy are neglected in the next section, when the Bernoulli equation is considered.
dp
g dz + ------ + v dv = 0 (3.54)
where
2
p v
gz + --- + ----- = constant (3.55)
2
59
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
The constant of integration varies from one streamline to another but remains constant
• along a streamline
• for steady flow
• for frictionless flow
• for incompressible flow
These four assumptions must be satisfied for Equation 3.55 to apply.
2
p- + -----
v - = constant
z + ----- (3.56)
g 2g
These three forms of energy are referred to as available energy. Now if Equation 3.56 is applied to a
fluid particle at section 1 and a fluid particle at section 2 in a pipeline system such as shown in
Figure 3.15 (assuming no losses along the section of pipeline), the result is
2 2
p V1 p V2
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- (3.57)
2g 2g
where
Figure 3.15 Bernoulli flow in a pipeline (no losses). Note the pipeline could be sloping.
60
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
H1 = H2 (3.58)
where the value H is referred to as the Bernoulli constant (Brater and King 1976) with
2
p V1
H 1 = z 1 + -----1- + --------
- (3.59)
2g
2
p V2
H2 = z 2 + -----2- + --------
- (3.60)
2g
In the following example, the Bernoulli equation is applied for determining the velocity of flow from a
reservoir.
Example 3.3 Calculate the velocity of flow from a very short flow pipe leading from a reservoir. Friction in the pipe
may be ignored. The reservoir has a water surface elevation of 4.0 m above the centerline of the pipe. Assume a kine-
–6
matic viscosity of = 1.004 10 m2/s and a density of 998.2 kg/m3 for water at 20°C.
In the reservoir shown in Figure 3.16, the energy content for a fluid particle is the same everywhere irrespective of the
vertical locationThus the selection of point 1 in the reservoir, from which to commence writing the energy equation
from, is arbitrary. Normally, the Bernoulli equation must be applied along a streamline. This example violates this
assumption, when the reservoir is elected as the starting point.
The sum of elevation head, pressure head and velocity head is a constant for the Bernoulli equation in Equation 3.57.
Apply the Bernoulli equation between a fluid particle on the surface of the reservoir (point 1) and a fluid particle at the
level of the centerline of the pipe but still in the reservoir (point 1")
2 2
p V1 p 1'' V 1''
z 1 + -----1- + --------
- = z 1'' + -------
- + -----------
2g 2g
p p 1''
z 1 + -----1- + 0 = z 1'' + -------
-+0
Thus the sum of the elevation head and the pressure head is a constant in the reservoir
p p 1''
z 1 + -----1- = z 1'' + -------
-
Moving vertically downward from the surface of the reservoir a fluid particle has less potential energy per unit weight
z but correspondingly more pressure head energy per unit weight p/
The Bernoulli equation is now applied between two sections (that is, a fluid particle at 1 at the surface of the reservoir
and a fluid particle at 2 at the centerline of the pipeline just outside the exit of the pipeline)
2 2
p V1 p V2
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- (3.61)
2g 2g
Both the pressure head and velocity head are zero at the surface of the reservoir. If the horizontal datum is taken as the
centerline of the pipe, then the elevation head and pressure head at section 2 are also zero.
61
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
Hence
z 1 = 4.0 m
p
-----1- = 0.0
V 1 = 0.0
z 2 = 0.0
p
-----2- = 0.0
2
V2
4.0 + 0.0 + 0.0 = 0.0 + 0.0 + --------
-
2g
V2 = 2 gH (3.62)
What if 1" was selected in the reservoir at the entrance to the pipeline rather than at the surface of the reservoir for
application of the Bernoulli equation?
Then
z 1'' = 0.0
p 1''
-------
- = 4.0 m
2
p 1'' V 1''
z 1'' + -------
- + ----------- = 0.0 + 4.0 + 0.0 = 4.0 m
2g
___________________________________________________________________________________
Applying the Bernoulli equation (Equation 3.57) between point 1 and point 2 in Figure 3.17 (Streeter et
al. 1998) gives
2 2
p V1 p V2
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- (3.63)
2g 2g
62
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
But z 1 = z 2 = 0 if the reference datum is taken at the centerline of the entrance to the pitot tube and
V 2 = 0 due to stagnation of the flow at the entrance of the pitot tube. The pressure head at section 1
equals the height of water above it
p
-----1- = h 0
The pressure head at the entrance to the pitot tube is the height of the water column in the pitot tube
p
-----2- = h 0 + h
2
V1
- = 0 + h 0 + h + 0
0 + h 0 + --------
2g
Thus the velocity in the flow is equal to the height the fluid rises in the pitot tube above the water surface
level
2
V1
--------- = h
2g
Practically, it is very difficult to read the height h above the free water surface.
For real fluid flow in a closed pipeline, energy is lost overcoming fluid frictional forces in the form of
viscous drag at the boundary and within the fluid flow. This energy loss is dissipated as heat. Friction
losses are distributed uniformly over long reaches of pipes (of the same diameter and material) and are
caused by fluid viscosity and the resulting shear stresses generated in the fluid. Pipeline flow with
boundary losses is analyzed as steady uniform flow. Uniform flow occurs in a pipe of constant diameter.
The shape of the boundary usually has an effect on losses as well. Minor losses result from recirculating
eddies. These are produced by localized geometry effects of fittings such as valves, bends, expansions,
contractions or transitions. Pipe fittings dissipate energy by producing localized large – scale turbulence.
These losses are called minor losses and are analyzed as steady non – uniform flow. Minor losses are dis-
cussed in Chapter 5.
63
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
Figure 3.19 Heat flow from a system and work done on a system
There are a number of different forms of energy in fluid flow, some of which have previously been intro-
duced
• mechanical energy
• potential energy per unit weight of fluid flowing or elevation head z —
Section 3.5.2
2
V
• kinetic energy per unit weight of fluid flowing or velocity head ------ — Section 3.5.2
2g
• thermal energy — these become the losses
• internal energy per unit weight of fluid flowing u — this is the form in which energy
is stored within a substance
• heat transferred from the fluid to the surroundings per unit weight of fluid flowing
qH as shown in Figure 3.19
• work
• shaft work being done on the system per unit weight of fluid flowing wS — either by
the energy transferred to the system from a pump (as shown in Figure 3.20) or
energy extracted from the system by a turbine
• flow or displacement work per unit weight of fluid flowing or the pressure head
p — the energy or work associated with the pressure in the fluid to push a unit
weight of fluid across the boundary of a system — Section 3.5.2.
64
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
The losses and shaft work terms are incorporated into the energy equation as follows
2 2
p V p V
z 1 + -----1- + ------1 + H P = z 2 + -----2- + ------2 + H T + Losses 1-2 (3.64)
2g 2g
2 2
p V p V
z 1 + -----1- + ------1 + H = z 2 + -----2- + ------2 + H T + Losses 1-2 (3.65)
2g P 2g
The full energy equation for full pipe flow including pumps, turbines, friction loss and minor losses
again applied between sections 1 and 2 is
2 2
p1 V 1 p V
- + ------ + H = z 2 + -----2- + ------2 + H T + h f + h L
1 + ----- (3.66)
2g P 2g
where
65
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
Now by substituting for Darcy – Weisbach fluid friction loss (see Chapter 4 – page 76 – Equation 4.3)
and minor losses (see Chapter 5 – page 132 – Equation 5.1) then Equation 3.66 becomes
2 2 2
p1 V 1 p2 V 2 fL V V
1 + -----
- + ------
2g
- + H = z 2 + -----
- + ------
2g
- + H T D 2g + K -----
+ -----
- ------
2g
(3.67)
P
where
The energy equation for no pump ( H P = 0), turbine ( H T = 0) or minor losses ( h L = 0) becomes
2 2
p V p V
z 1 + -----1- + ------1 = z 2 + -----2- + ------2 + h f (3.68)
2g 2g
The variation of energy along a pipeline is shown in Figure 3.21. Because the pipeline cross – section is
converging, the velocity head increases going from section A to section B. The additional velocity head
comes from a decrease in pressure head. The energy grade line (EGL) and hydraulic grade line (HGL)
are shown in Figure 3.21. These are defined in the next two sections.
The different types of energy described above are shown in a converging pipe example in Figure 3.21.
Elevation head, pressure head and velocity head are illustrated at two sections A and B. The following
changes have occurred
2 2
VA VB
• the velocity head ---------
- has increased to ---------
- as the conduit converges
2g 2g
p p
• the pressure head has reduced from ------A- to ------B
The HGL refers to the hydraulic grade line (see Section 3.7) and the EGL refers to the energy grade
line. The fact that the EGL drops between A and B indicates that there has been an energy loss due to
friction resistance of the walls of the pipe on the fluid. More details of head loss in pipes are given in
Chapter 4.
66
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
2
p V
EGL = z + --- + -------- (3.69)
2g
This is assumed to apply to a fluid particle located at the centerline of the pipe. The locus of the sum of
2
p V
the values of z + --- + -------- along the pipeline gives the EGL.
2g
Losses or irreversibilities cause the EGL to drop in the direction of flow (Streeter et al. 1998) along the
pipeline. An example of both the energy grade line and the hydraulic grade line are shown in
Figure 3.22. The elevation head z is measured from the horizontal datum to the centerline of the pipe.
The head loss in the pipe in Section 3.5.12 is h f and is dealt with in detail in Section 3.5.13.
67
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
Figure 3.22 EGL and HGL for flow between two reservoirs - velocity accounted for
The HGL is also referred to as the piezometric head. The piezometric surface is the equivalent height of
water rise that occurs if a piezometer (an open tube) was attached to the side of a pipe. The locus of the
sum of the values of piezometric heads of z + --p- along the pipelines gives the HGL.
For static water systems the HGL is always horizontal and is always the same height as the free water
surface.
Losses or irreversibilities cause the HGL to drop in the direction of flow (Streeter et al. 1998) although
the HGL may actually increase across an expansion if sufficient velocity head is converted to pressure
energy despite the lower energy in the direction of the flow.
Figure 3.18 shows the hydraulic grade line and the energy grade line based on Equation 3.66.
The revised energy equation including kinetic energy correction factors becomes
2 2
p1 V p V
- + 1 --------1 + H = z 2 + -----2- + 2 ------2 + H T + h f + h L
1 + ----- (3.71)
2g P 2g
For the derivation of an expression for consider the fluid mass per unit time passing a cross – section
in Figure 3.23
Consider the kinetic energy per unit time passing the cross – section
68
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
2
u
KE = -----u d A (3.73)
A
2
where
• KE = kinetic energy of the fluid (N-m or lbf-ft)
• = density of the fluid (kg/m3 or slugs/ft3)
• u = velocity in the velocity profile across the pipe (m/s or ft/s)
• A = area of pipe (m2 or ft2)
The true kinetic energy per unit time passing a cross – section based on an average velocity V is defined
as follows
1
KE = --- mV
2
2
where
• KE = kinetic energy of the fluid (N-m or lbf-ft)
• = kinetic energy correction coefficient (dimensionless)
1 2
• --- mV = kinetic energy based on the average velocity (N-m or lbf-ft)
2
But
m· = VA (3.74)
Equating the two expressions (in Equation 3.73 and Equation 3.74) for kinetic energy leads to
2
------- =
VA V
3
--- u d A (3.75)
2 2A
or
3 3
V A = u dA (3.76)
A
Thus for a constant density it follows that the kinetic energy correction factor is
1 - u3 d A
= ---------- (3.77)
3
AV A
or
u- 3 d A
1 ---
= --- (3.78)
A AV
For a number of strips of area of equal width in a velocity profile, the integral is approximated (Olson
and Wright 1990) as
n
1
= ---------- u i
3
(3.79)
3
V n i=1
69
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
where
For turbulent flow the velocity profile is more uniform and thus
The kinetic energy correction factor for turbulent flow is usually neglected and is assumed to be 1.0.
For Prandtl’s one – seventh power law for the velocity distribution in a pipe
y 1 7
u = u max --- (3.82)
R
for the velocity at a distance y from the wall in a pipe of radius R. The value for in this case is 1.058
(Douglas et al. 1979).
Ao
Q = udA (3.83)
0
where
3.9 References
Brater, E. F. & King, H.W. (1976). Handbook of hydraulics for the solution of hydraulic engineering
problems. New York: McGraw-Hill.
Douglas, J.F., Gasiorek, J.M. and Swaffield, J.A. (1979) Engineering fluid mechanics. Pitman, London.
Olson, R. M., and Wright, S. J. (1990). Essentials of engineering fluid mechanics, Harper & Row.
70
Chapter 3 - File: Chap3newB.fm July 6, 2022 Version 6
Skeat, W.O. and Dangerfield, B. J. ed. (1969). Manual of British water engineering practice. (4th ed.).
Cambridge: Published for the Institution of Water Engineers by Heffer.
Streeter, V.L., Wylie, E.B. and Bedford, K. (1998). Fluid mechanics. 9th Edition. McGraw – Hill.
71
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
One of the most important parts of this book is the computation of fluid friction loss in pipes for turbu-
lent flow. This Chapter starts out by discussing features of pipes including pipe materials, wall thickness
of a pipe and the internal roughness of a pipe. Details of flow in pipelines are given, and in particular,
the velocity profiles and computation of friction factors. Two common methods for computing head loss
or pressure drop in water distribution systems are the Darcy – Weisbach head loss equation and the
Hazen – Williams equation. Both methods are described in this Chapter. A derivation of the Darcy –
Weisbach equation is presented based on using the momentum equation and dimensional analysis. The
concept of the viscous sublayer is also described and its importance to each of the flow regimes. A
dimensionless parameter is introduced that distinguishes between the three turbulent regimes. The
Moody diagram for determining the Darcy – Weisbach friction factor (or resitance factor) is discussed in
great detail in relation to the different possible flow regimes. These flow regimes include laminar flow,
smooth pipe turbulent flow, transitional turbulent flow and fully rough turbulent flow. In the opinion of
the author, the preferred method for computing the head loss in pipelines is the Darcy – Weisbach head
loss equation and fluid friction factor or resistance factor f. While information is provided in this Chap-
ter for the Hazen – Williams equation, engineers are cautioned to use the Hazen – Williams head loss
equation only within its range of validity. An assessment of the accuracy of the Hazen – Williams for-
mula over a range of flow conditions is discussed. Formula are derived to convert between the Hazen –
Williams C value and both the Darcy – Weisbach friction factor f and the roughness height . Tables of
roughness height values (for the Darcy – Weisbach head loss equation) for pipes of different materials
and condition are given as well as tables of Hazen – Williams C values for different material and pipe
condition — in Appendix C. The change in roughness height as a pipe ages is also discussed. The Chap-
ter concludes with a brief discussion of the Manning equation that is often used for head loss calculation
in penstocks and tunnels associated with hydroelectric conduits. Localized losses are called minor
losses. Details of these types of losses are presented in Chapter 5.
An example of a commercially available pipe is Unplasticized PVC (uPVC) pipe available from the
Hardie Iplex Company. One product is HARDITUBE AS1477 (Australian Standard AS1477 —
Unplasticized PVC (uPVC) Pipes and Fittings for Pressure Applications) pressure pipe that is available
with either rubber ring or solvent weld joints. Each pipe segment has an effective length of 6 m.
Table 4.1 shows typical properties of Class 9 (0.9 MPa or 90 m head) uPVC pipe that complies with
AS1477.
1. © Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, The University of Adelaide, Adelaide,
Australia. Part of the book entitled Water Distribution Systems Engineering.
72
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Table 4.1 Pipe properties for uPVC HARDITUBE AS1477* pressure pipe
Nominal Mean outside Mean wall Mean inside D/e ratio based
pipe diameter thickness e diameter (ID) D on mean inside
diameter (OD) (mm) diameter
(mm) (mm)
(mm)
80 88.9 3.8 81.3 21.4
100 114.3 4.8 104.7 21.8
150 160.3 6.7 146.9 21.9
200 225.3 8.4 208.5 24.8
225 250.4 9.3 231.8 24.9
250 280.4 10.5 259.4 24.7
300 315.5 11.7 292.1 25.0
375 400.5 14.9 370.7 24.9
*Australian Standard AS1477 — Unplasticized PVC (uPVC) Pipes and Fittings for
Pressure Applications
A thin walled pipe is one where the ratio of the diameter to the wall thickness is greater than 25. This is
defined as
D- 25
--- (4.1)
e
where
73
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
D- 25
---
e
Table 4.1 shows that all of the listed uPVC pipes of different diameters are thick – walled, although the
pipe diameters above 150 mm diameter are very close to being classified as thin – walled.
• laboratory testing to back – calculate roughness height values for the pipe
• by measuring the root mean square of the roughness elements by moving a small probe
across the interior of the pipes surface
The relative roughness is defined as the average roughness height of the inside of the pipe divided by the
internal diameter of the pipe as follows
---- (4.2)
D
RELATIVE ROUGHNESS
where
Today, cast iron pipes are found in many networks. Cast iron is more corrosion resistant than steel but is
more expensive and more rigid. In Australia, cast iron was first used in the 1800s. By 1880 within Syd-
ney, engineers had constructed an extensive system of cast iron pipes. While in 1857, a cast iron main
was first laid from Yan Yean reservoir in Melbourne.
74
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
In the past, manufacturers made cast iron pipes using sand castings. All early pipes were cast horizon-
tally in sand moulds. In 1846, producers began to use an improved technique of vertical casting. How-
ever today, for the production of plain pipe, sand castings are rarely used. In 1914, manufacturers began
producing cast iron pipe using a process of centrifugal casting (Tubemakers Australia 1995). This pro-
cess enabled the production of pipes of long lengths. In 1921, engineers began to produce spun iron
pipes using water cooled steel moulds. In this process, molten metal is poured into a revolving water
cooled steel mould. The metal is held against the sides of the mould by centrifugal force. In Australia,
from 1929 to 1976, manufacturers used this technique to produce cast iron pipe. In 1976, manufacturers
converted to ductile iron pipe. Today, most pipes are centrifugally spun. Predominately, manufacturers
make ductile iron pipe and grey iron pipe. Sand castings are still used for “specials” such as bends,
tapers and flanges (Stephenson 1984).
For pipelines subject to higher pressures, engineers need to select a higher grade of steel. In contrast, for
lower pressures then lower grades of steel are more economical and are also easier to weld. Extra wall
thickness should be provided if resistance to external loads needs to be provided.
If the diameter of a steel pipe is less than 450 mm, it is defined as being a small bore steel pipe. For these
sizes, manufacturers are able to roll the steel without seams. A large bore steel pipe is 450 mm in diam-
eter or greater. Construction workers weld large bore pipes from steel plate. The welds are either hori-
zontal or spiral. Steel pipes are usually more expensive than concrete and plastic pipe for low pressure
applications.
75
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
• plastic pipe is highly resistant to corrosive fluids. As a result, it may be used in difficult
locations including undersea outfalls and gas pipes.
• the internal roughness height of plastic pipe is usually considerably smaller than for other
materials. Thus the inside of the pipe is smoother and there is less head loss for the same
flow.
• plastic pipe is less likely to be subject to encrustation than other pipe materials
• plastic pipe is easier to lay due to the fact that it is lighter than other materials
• other pipes may be lined with plastic pipe during pipe rehabilitation
• ground movement is accommodated more easily by plastic pipe
Disadvantages of plastic pipe include
4.3.1 A summary
The Darcy – Weisbach head loss equation expresses the head loss or drop in energy grade line (EGL) or
hydraulic grade line (HGL) along a pipe. These losses are generated by the shear stresses in the fluid and
the interaction of the boundary layer at the wall of the pipe.
In current practice, engineers commonly use the term friction to refer to loss of energy in pipe flow.
When I studied at Colorado State University in 1980, Professor Maurice Albertson suggested an alterna-
tive term of resistance. He argued strongly that the term fluid resistance should always be used rather
than fluid friction when referring to fluid flow; saying that the term friction should only be applied to
solids sliding against one another. By convention, the term friction is used in this book.
76
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
2
LV
h f = f ---- ------ (4.3)
D 2g
where
An approximation of the schematic of a Moody diagram shown in Figure 4.2 defines the variation of the
fluid friction factor f with Reynolds number Re. There are four distinct regions of different types of flow
regimes including
• laminar flow
• smooth pipe turbulent flow
• transitional turbulent flow
• fully rough turbulent flow (complete turbulence regime)
If the flow pictures are geometrically and dynamically the same in every detail for two different pipe-
lines, then the fluid friction factors are the same. Recall from Equation 2.15 the definition of the Reyn-
olds number.
The fluid friction factor or resistance factor f depends on the flow regime as shown in Table 4.2.
1. Laminar flow region. This region is defined by a straight line on the left – hand side of the Moody dia-
gram in Figure 4.2 running diagonally from the top left corner down towards a Reynolds Re of 2,300.
Computation of the fluid friction factor or resistance factor f is analytic for a circular pipe as shown in
Section 4.4.7 and is given by
64-
f = ------ (4.4)
Re
In the next three regions the flow is turbulent. When the flow changes from laminar to turbulent the flow
may be unstable in the Reynolds number range of 2300 to 2800.
2. Smooth pipe turbulent flow region. This region is actually a single line and represents a lower bound
of the Moody diagram in Figure 4.2 running diagonally in a curve from the middle of the diagram (mov-
ing from top to bottom) about one – third the way in from the left side to the bottom right – hand corner
of the diagram. Sometimes this region is also referred to as hydraulically smooth flow. The analysis for
developing an expression for the fluid friction factor or resistance factor f is almost analytic, however, a
velocity distribution needs to be assumed. An outcome of the analysis is that the fluid friction factor is
only a function of the Reynolds number Re and is independent of the roughness height as follows
77
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
f = Fn Re (4.5)
3. Transitional turbulent flow region. This region is the set of curved lines in the turbulent region to the
left of the diagonal dashed line in the middle of the Moody diagram as indicated in Figure 4.2. In this
region the fluid friction factor depends both on the Reynolds number Re and the relative roughness
D.
f = Fn ---- Re (4.6)
D
For a particular D value, the friction factor f increases as the Reynolds number decreases in the tran-
sitional turbulent flow region as one moves from right to left across the Moody diagram.
4. Fully rough turbulent flow region. This region is to the right – hand side of the dashed line running
approximately diagonally across the Moody diagram (Figure 4.2). In this region the fluid friction factor
only depends on the relative roughness height D . The approximately horizontal lines are a character-
istic of this region on the Moody diagram (Figure 4.2). The fluid friction factor f is independent of
Reynolds number Re. Thus
-
f = Fn --- (4.7)
D
In the fully rough turbulent flow region of the Moody diagram for a pipe of a particular diameter, the
size of the fluid friction factor f increases with an increase in relative roughness D for the pipe.
Typical values of equivalent roughness height are given in Table 4.3 for different pipe materials and
conditions.
78
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Figure 4.2 The Moody diagram — the Darcy – Weisbach f versus Reynolds number
Table 4.3 Pipe roughness heights (Streeter et al. 1998; Jeppson 1976; SAE Manual 1969)
Material
mm) (in.)
Riveted steel 0.9 to 9.0 0.036 to 0.36
Concrete 0.3 to 3.0 0.012 to 0.12
Wood stave 0.18 to 0.9 0.008 to 0.04
Cast iron 0.25 0.010
Galvanized iron 0.15 0.006
Asphalted cast iron 0.12 0.0048
Commercial steel or wrought iron 0.046 0.0018
79
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Table 4.3 Pipe roughness heights (Streeter et al. 1998; Jeppson 1976; SAE Manual 1969)
Drawn tubing 0.0015 0.00006
Smooth tubing 0.0013 0.00005
PVC 0.00021 0.000084
Comprehensive information on pipe interior surface roughnesses are given in Appendix C. Part of
Table C.2 in Appendix C is shown in Table 4.4.
Table 4.4 Examples of values of C in Hazen – Williams formula (based on Skeat and Dangerfield —
Manual of British Water Engineering Practice 1969, p.163 and 164) — entire list is given in
Table C.2
Early experiments (circa 1850) on water flow in long straight cylindrical pipes showed the head loss h f
varied directly with the following quantities
• velocity head
2
V
h f ------- (4.8)
2g
• pipe length
hf L (4.9)
• pipe diameter
1-
h f --- (4.10)
D
A proportionality constant referred to as the Darcy – Weisbach friction factor f was introduced as shown
in Equation 4.3.
80
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Considering the control volume in Figure 4.3 (the dashed rectangular box), the significant forces for a
horizontal pipe are the pressure and shear forces. The gravity force for a horizontal pipe is zero in the x –
direction. The momentum influx and efflux are equal, and thus the right – hand side of Equation 4.11
becomes zero. The force – momentum flux equation becomes
F x = p1 A1 – p2 A2 – 0 P = 0 (4.12)
where
• F x = sum of forces resolved in the x – direction acting on the control volume (N or lbf)
• p1 = pressure at section 1 (N/m2 or lbf/ft2)
• A1 = area of entry to the control volume at section 1 (m2 or ft2)
• p2 = pressure at section 2 (N/m2 or lbf/ft2)
• A2 = area of exit from the control volume at section 2 (m2 or ft2)
• o = shear stress at the boundary (N/m2 or lbf/ft2)
• P = wetted perimeter or the area of the curved cylindrical part of the control volume (m2 or
ft2)
81
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Substituting for both the area and the wetted perimeter in terms of the diameter of the pipe in
Equation 4.12 gives
2 2
D D
p 1 ---------1- – p 2 ---------2- – o DL = 0
4 4
D
o = p 1 – p 2 ---------- (4.13)
4L
Writing the energy equation between sections 1 and 2 in the pipeline in Figure 4.3 gives
2 2
p V p V2
z 1 + -----1- + ------1- = z 2 + -----2- + -------
- + Losses 1-2 (4.14)
2g 2g
Recalling that for fluid friction loss only in the pipe (i.e. no minor losses)
Losses 1-2 = h f
V1 = V2
z1 = z2
p p
-----1- = -----2- + h f (4.15)
Simplifying and solving for the head loss in Equation 4.15 along the pipe gives
p p
h f = -----1- – -----2- (4.16)
Thus combining Equation 4.13 and Equation 4.16 gives an expression for the boundary shear stress
D
o = h f ---------- (4.17)
4L
F 1 o V D L = 0 (4.18)
82
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
where
• o = shear stress at the boundary of the inside of the pipe (N/m2 or lbf/ft2)
• = density of the fluid (kg/m3 or slugs/ft3)
• = absolute viscosity of the fluid (Pa – s or slugs/s – ft)
• V = flow velocity (m/s or ft/s)
• D = pipe diameter (m or ft)
• L = length of pipe (m or ft)
• = roughness height for the inside of the pipe (mm or in.- convert to m or ft for this appli-
cation)
The rearrangement of Equation 4.18 in terms of the shear stress gives
o = F 2 V D L (4.19)
Now the Buckingham theorem is applied with n = 6 and m = 3, and thus n – m = 3. The result is
dimensionless groups 1, 2 and 3. The procedure for applying the Buckingham theorem is to first
select the repeating variables. It is usual to select one variable associated with each of the following to
be repeating variables
• mass or M e.g.
• length or L, e.g. L, D
• time or T, e.g. V, a
For this case, choose the repeating variables to be density of fluid, length of pipe and velocity of flow (,
L and V). The first dimensionless group 1 is obtained by combining the three repeating variables (each
to an unknown exponent) with one of the other variables. For example, for the dynamic or absolute vis-
cosity
a1 b1 c1
1 = V L (4.20)
a1 b1 c1
L M M
1 = --- L ------ ------- (4.21)
T L
3 LT
0 0 0
1 = M L T (4.22)
Equate the exponents of like terms in Equation 4.21 and Equation 4.22 as follows
• for T
– a 1 – 1 = 0 or a 1 = – 1
• for M
c 1 + 1 = 0 or c 1 = – 1
• for L
83
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
a 1 + b 1 – 3c 1 – 1 = 0
or
b 1 = 1 + 3c 1 – a 1 = 1 + 3 – 1 – – 1 = – 1
Thus a 1 = – 1, b 1 = – 1, c 1 = – 1 and substituting into Equation 4.20 gives the first dimensionless
group as
–1 –1 –1 -
1 = V L = ----------
VL
Another dimensionless group is obtained by combining the three repeating variables (again each to an
unknown exponent) with the other as yet unused variable of boundary shear stress o as
a2 b2 c2
2 = V L o (4.23)
a2 b2 c2
L M ML
2 = --- L ------ ------------ (4.24)
T L
3
T L
2 2
and
0 0 0
2 = M L T (4.25)
The units of o (force per unit area) are determined from Newton’s second law of motion as
F = ma
L
ma = M ------
2
T
The units for shear stress are now be determined by dividing the units of force by the area L2 as follows
F ML 1 M
o = --------- = --------- ------ = ----------
2 2 2 2
L T L LT
Now solve for a2, b2, and c2 in Equation 4.24 and Equation 4.25 to make the second dimensionless group
2 dimensionless.
• for T
– a 2 – 2 = 0 or a 1 = – 2
• for M
c 2 + 1 = 0 or c 2 = – 1
84
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
• for L
a 2 + b 2 – 3c 2 – 1 = 0
or
b 2 = 1 + 3c 2 – a 2 = 1 + 3 – 1 – – 2 = 0
–2 0 –1
2 = V L o (4.26)
o
2 = ---------
- (4.27)
2
V
The final dimensionless group 3 is taken as the following ratio (the relative roughness):
3 = ---- (4.28)
D
A dimensionless number may be factored in a number of ways to provide various other dimensionless
numbers that are equally valid. Thus a new dimensionless number may be created as
1
4 = -----
1
Thus
VL
4 = -----------
o
F 3 4 2 3 = F 3 Re ----------
- ---- = 0 (4.29)
V D
2
where the 3 quantities inside the brackets are the dimensionless quantities.
o = Re ---- V
2
(4.30)
D
where
-
- is some function of the Reynolds number Re and the relative roughness ---
• Re ---
D D
85
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Thus is the form of the Moody diagram (Figure 4.2). The fluid friction factor f depends primarily on
the pipe roughness ( D — the relative roughness) and to a lesser degree on
• velocity V
• pipe diameter D
• fluid viscosity
4.3.5 Derivation of the Darcy – Weisbach fluid friction equation
Now, by equating the two above expressions for ofrom Equation 4.17 and Equation 4.30 gives
- = h ---------
D
V Re ---
2
D f 4L- (4.31)
2
L V
h f = 8 Re ---- ------ -------- (4.32)
D D 2g
By tradition, the quantity 8 Re ---- is put equal to a variable f and is denoted as the Darcy – Weisbach
D
friction factor as follows.
f = 8 Re ---- (4.33)
D
The shear stress at the pipe wall as given by Equation 4.30 is expressed as
f 2
o = ---V (4.34)
8
Now replace the length L with the length L in Equation 4.32. Thus combining Equation 4.32 and
Equation 4.33 gives the Darcy – Weisbach head loss equation in Equation 4.3.
To obtain the slope of the EGL or friction slope divide the left – hand side of Equation 4.3 by the length
and thus
h 2
f V = F V D
f = -----f- = ------------- 1 (4.35)
L D2g
2
Thus the EGL slope is related directly as the velocity V , directly as the fluid friction factor f and
inversely as the diameter (1/D).
4A
D e = ------- (4.36)
P
86
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
where
87
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
64 64
f = ------- = -------------- (4.37)
Re VD
--------
For laminar flow the friction factor only depends on flow velocity V, diameter of pipe D and the kine-
matic viscosity of the fluid . The friction factor for laminar flow is independent of the average rough-
ness height of the inside of the pipe A full derivation of Equation 4.37 is given in this section.
A significant advantage in the analysis of laminar flow (in contrast to turbulent flow) is that an analyti-
cal analysis is available. The velocity distribution for laminar pipeline flow is parabolic as shown below
in Figure 4.5.
64- = -----------
64 - = 0.028
f = ------
Re 2300
Consider the laminar friction factor for a Reynolds number of 1000. Thus
64- = -----------
64 - = 0.064
f = ------
Re 1000
V1 = V2 (4.38)
The force – momentum flux equation applied to the control volume in Figure 4.5 gives Equation 4.12.
2 2
D D
p 1 ----------1 – p 2 ----------2 – o DL = 0 (4.39)
4 4
Substituting for the diameter in terms of the radius in Equation 4.39 gives
2 2
p 1 r 1 – p 2 r 2 – o 2rL = 0 (4.40)
where
88
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
• o = shear stress at the boundary of the inside of the pipe (N/m2 or lbf/ft2)
• r = radial direction in pipe towards the edge of the cylindrical control volume in Figure 4.5
as measured from the centerline of the pipe (m or ft)
• L = length of the control volume (m or ft)
Recalling Newton’s law of viscosity from Equation 2.10 as
= du = – dv (4.41)
dy dr
Figure 4.5 Control volume for momentum equation applied to laminar flow
2 dv
p 1 – p 2 r + 2rL = 0 (4.42)
dr
p1 – p2
dv = – -----------------
- rdr
2L
Integrating gives:
p1 – p2
dv = – ----------------------
- rdr
2L
p1 – p2
v = – ----------------------
- r dr
2L
p1 – p2 2
v = – ----------------------
-r + C (4.43)
4L
89
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Thus the velocity distribution for laminar flow in a pipeline is parabolic as shown in Figure 4.6.
Let the velocity at the centerline be = max at r = 0 leading to determination of the integration constant
in Equation 4.43 as
C = v max (4.44)
Thus from Equation 4.43 and Equation 4.44 it follows that the velocity distribution for laminar flow is
p1 – p2 2
v = v max – ----------------------
-r (4.45)
4L
4.4.3 The maximum velocity at the centerline of the pipe for laminar flow
Thus at the pipe wall v = 0 for the no – slip condition and r = Dthus in Equation 4.45 the centerline
(also the maximum) velocity is
p1 – p2 2
v max = ----------------------
-D (4.46)
16L
p1 – p2 D2 2
v = ----------------------
- ------- – r (4.47)
4L 4
D2
Q = 0 2rv dr (4.48)
Thus substituting Equation 4.47 into Equation 4.48 and carrying out the integration gives:
4
p 1 – p 2 D
Q = ---------------------------------
- (horizontal pipe only) (4.49)
128L
90
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
2
v max D
----------------------
Q 8 -
V = ---- = ---------------------- (4.50)
A D
2
----------
4
Thus
v max p1 – p2 2
- = -----------------------
V = ---------- -D (4.51)
2 32L
2 2
p V p V
z 1 + -----1- + ------1- = z 2 + -----2- + ------2- + h f (4.52)
2g 2g
Using z1 = z2 and V1 = V2 it follows that for a horizontal pipeline that the head loss is
p p
h f = -----1- – -----2- (4.53)
Thus from Equation 4.51 and Equation 4.53 eliminating p 1 – p 2 gives a head loss of
32V L
h f = --------------------- (4.54)
2
g D
for a horizontal pipe. Thus the head loss is directly proportional to the magnitude of the average velocity
of V . This is called Poiseuille flow.
2
64 L V
h f = ------------ ------ -------- (4.55)
V D D 2g
Compare Equation 4.55 with the Darcy – Weisbach head loss equation (Equation 4.3, page 77). Thus the
friction factor for laminar flow (see Equation 4.37 for definitions of variables) given as the term in
parentheses in Equation 4.55 is
64- = -------------
64 -
f = ------ (4.56)
Re VD
--------
91
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
V c = F ------- (4.57)
D
V c = F ------- (4.58)
D
From experiments, Reynolds found the function in Equation 4.58 was linear and the constant relating Vc
and ------- was approximately 2000. Later experiments showed the value of the constant to be 2300.
D
Thus
V c = 2300 ------- (4.59)
D
This leads to the critical Reynolds number that separates laminar flow behavior from turbulent flow
defined as
V c D V cD
Re c = --------------
- = ----------
- = 2300 (4.60)
The accuracy of this dividing point between laminar and turbulent flow is now addressed. Below a Re of
approximately 2300 it is impossible to have turbulent flow. The corresponding velocity is called the
lower critical velocity.
For a pipe protected from vibration and with a suitably shaped entrance such that turbulence of the
inflow is extremely low, laminar flow is possible up to a Reynolds number of 50,000. Thus, the upper
critical velocity is not well defined, but in practice when Re > 2800 the flow in a circular pipe is usually
turbulent. Generally, the flow of air and water in conduits is turbulent (however, the Reynolds number
Re should be checked, of course). Oil flow is frequently laminar because of the higher viscosity and
lower density. Usually velocities for water flow in pipelines must be very low for laminar flow. Low
velocities do occur in lubrication systems and dashpots.
In the transition region the velocity profile changes from laminar (parabolic) up to Re = 2300 to turbu-
lent (uniform) for a Reynolds number on the order of a couple of hundred thousand. A turbulent flow
velocity profile is shown in Figure 4.7.
92
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
There are three distinct types of turbulent flow that are considered in this section. These include smooth
pipe turbulent flow, transitional turbulent flow and fully rough turbulent flow. The behavior of the
boundary layer at the wall and the viscous sublayer (that is in the immediate vicinity of the wall) is the
most important determining factor on which type of flow occurs.
The viscous sublayer (or laminar sublayer) is part of the boundary layer that grows in the flow at a solid
boundary. The viscous sublayer is very thin and is close to the boundary as shown in Figure 4.8. The vis-
cous sublayer thickness decreases with an increase in Reynolds number.
The viscous sublayer is important for smooth pipe turbulent flow. In fully rough turbulent flow, the vis-
cous sublayer is non – existent having been broken up by the flow and the roughness elements at the
boundary. When a pipe has a boundary that is hydraulically smooth, the wall roughness projections are
buried in the viscous sublayer and they do not influence the flow. The average roughness height of the
inside of the pipe must be less than approximately 1/3 of the viscous sublayer thickness. If the rough-
ness projections protrude through the viscous sublayer the boundary is hydraulically rough. The average
roughness height of the inside of the pipe needs to be greater than 6 times the viscous sublayer thick-
ness for the flow to be fully rough turbulent flow.
4.6.2 The Swamee and Jain equation for the Darcy – Weisbach friction fac-
tor f
Swamee and Jain (1976) developed an expression for the Darcy – Weisbach friction factor to represent
the Moody diagram (Figure 4.2). The formula predicts f in the smooth pipe turbulent flow region, transi-
tional turbulent flow region and the fully rough turbulent flow region within the bounds on relative
roughness /D and Reynolds number Re as specified below.
0.25
f = ----------------------------------------------------------- (4.61)
5.74- 2
log 10 ------------ + ------------
3.7D 0.9
Re
93
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
The Swamee and Jain equation given by Equation 4.61 is valid the following ranges of the relative
roughness and for the Reynolds number
–6 - 10 – 2
10 ---
D
8
5000 Re 10
The Swamee and Jain equation applies to smooth pipe turbulent flow, transitional turbulent flow and
fully rough turbulent flow.
Equation 4.61 is a representation of the experimental measurement of f. Typical friction factors for pipes
are in the range 0.010 to 0.035.
A more up-to-date estimate by Swamee (1993) of the Darcy-Weisbach friction factor over a broader
8
range of Reynolds number 0 Re 10 covering the following possible flow regimes of laminar, tran-
sition turbulent and fully turbulent flow is given by:
f = F 1 Re (4.63)
In 1911, Blasius found a relationship for the friction factor for smooth pipe turbulent flow
0.316
f = --------------- (4.64)
0.25
Re
The range of validity for Equation 4.64 is quite limited and is only for Reynolds numbers in the range
2800 < Re < 105.
94
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
For a hydraulically smooth pipe, the von Karman fluid resistance formula (Daily and Harleman 1966, p.
271) is
1
---------- = 2.0log 10 Re f – 0.8 (4.65)
f
Smooth pipe turbulent flow type is represented by the lower curved line that extends to the right – hand
side of the Moody diagram (3/4 of diagram) as shown in Figure 4.2. For a particular Reynolds number
the smooth pipe turbulent flow friction factor is the minimum possible value. Equation 4.65 shows that
for smooth pipe turbulent flow the friction factor only depends on the Reynolds number and does not
depend on the average roughness height on the inside of the pipe. For smooth pipe turbulent flow the
roughness projections are completely buried in the viscous sublayer. As a result, the flow is not at all
influenced by the pipe wall. The roughness projections are so small that they do not have any affect on
the flow. The viscous sublayer dominates the losses in smooth pipe turbulent flow.
Prior to considering the requirements for smooth pipe turbulent flow it is necessary to define a quantity
referred to as the shear velocity. The shear or friction velocity u* is defined as the square root of the ratio
of the shear stress at the wall of the pipe to the fluid density
o
u* = ----- (4.66)
where
2
V
o = f -------- (4.67)
8
Thus the shear or friction velocity is expressed from Equation 4.66 and Equation 4.67 as
o
u* = ----- = V ---f (4.68)
8
An important dimensionless number when considering the type of turbulent pipe flow is as follows
u *
- = -------
----------- - (4.69)
u*
where
• = average height of the roughness projections on the inside of the pipe (m or ft)
• = kinematic viscosity of the fluid (m2/s or ft2/s)
• u* = shear or friction velocity (m/s or ft/s)
95
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
The numerator on the left – hand side of Equation 4.69 is the average height of the roughness projections
while the denominator is referred to as a characteristic length or height of the viscous sublayer or
- = --------
-
---- (4.70)
u* o
-----
The dimensionless number on the right – hand side of Equation 4.69 has the form of a Reynolds number.
The size of this dimensionless number indicates the type of turbulent flow regime that exists in the
pipe — either smooth pipe turbulent, transitional turbulent or fully rough turbulent flow. For low values
of the dimensionless expression in Equation 4.69, the flow is smooth pipe turbulent flow and for large
values the flow is fully rough turbulent flow. For moderate values the flow is classified as in the transi-
tional turbulent flow region.
A useful way to consider Equation 4.69 is to interpret it as a length ratio reflecting a measure of the
average roughness height to a characteristic length or height of the viscous sublayer.
For flow to be classified as smooth pipe turbulent flow requires the following expression to be valid
------------ 5 (4.71)
u*
Another way of defining the occurrence of smooth pipe turbulent flow by substituting for the shear
velocity in Equation 4.71 from Equation 4.68 is as follows
V f
------------ = --------------------------- = ----------------- 5 (4.72)
u* f 8
V ---
8
V f- 5
---------------- (4.73)
8
* Note that units of must be in meters (or feet) and not mm.
f
------------- Re 5 (4.74)
D 8
* Note that units of and D must be consistent, both in meters (or feet) or both in mm (or in.).
If the flow is given, then one approach to determining if the flow is in the smooth pipe turbulent flow
region is to
96
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
• read the friction factor from the Moody diagram (Figure 4.2) or compute it from the
Swamee and Jain equation (Equation 4.61)
• compute the expression in Equation 4.73 and determine if it is less than 5 to verify the flow
is in the smooth pipe turbulent flow region
The following example computes the friction factor for smooth pipe turbulent flow.
Example 4.1 (i) Calculate the fluid friction factor f for flow in a new plastic pipe (uPVC) used for a network in a
subdivision development. Assume a flow velocity of V = 1.5 m/s, a pipe internal diameter of D = 142.7 mm
(150 mm nominal diameter, Class 12 — 120 m head, 8.8 mm wall thickness, density of pipe material = 36.9 kg/m3),
an internal average roughness height of the inside of the pipe of = 0.003 mm (Hardie Iplex Pipeline Systems), a
–6
kinematic viscosity of = 1.007 10 m2/s and a density of 998.2 kg/m3 for water at 20°C. (ii) Finally check
if the Swamee and Jain approximation of Equation 4.61 would be valid for this example.
The roughness height for the uPVC is very small and it is likely that the flow is smooth pipe turbulent flow. Make an
assumption of smooth pipe turbulent flow to commence the calculations and then check if the assumption is valid.
0.003 –5
---- = ------------- = 2.1 10
D 142.7
VD 1.5 0.1427
Re = -------- = ---------------------------------- = 212600
1.007 10
–6
The value of the Reynolds number is clearly greater than 2300 and thus the flow is turbulent rather than laminar. The
turbulent flow may be smooth pipe turbulent flow, transitional turbulent flow or fully rough turbulent flow. As the
average roughness height is so small then firstly assume the flow is smooth pipe turbulent flow. Check to verify that
this assumption is valid.
The von Karman expression for the friction factor f for smooth pipe flow from Equation 4.65 requires an iterative
solution to find f
1
---------- = 2.0log 10 Re f – 0.8
f
Thus
1
---------- = 2.0log 10 212600 f – 0.8
f
The iterative solution to the above equation is f = 0.0154.
f = 0.0154 (4.75)
Now check that the flow is actually in the hydraulically smooth zone on the Moody diagram (Figure 4.2). For the flow
to be classified as smooth pipe turbulent flow Equation 4.71 for the length ratio must hold
------------ 5
u*
The shear stress at the boundary (from Equation 4.34) of the inside of the pipe is
2 2
V 1.5 2
o = f -------- = 0.0154 998.2 -------------- = 4.33 N/m
8 8
The shear velocity from Equation 4.68 is
o 4.33
u* = ----- = ------------- = 0.066 m/s
998.2
The characteristic length from Equation 4.70 for the viscous sublayer is
97
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
–6
1.007 10 -4
----- = ---------------- = --------------------------- = 0.15257 10 m = 0.0153 mm
u* o 0.066
The length ratio for the viscous sublayer from Equation 4.72 is
0.003
------------- = ---------------- = 0.196
---- 0.0153
-
u
*
Recall that for hydraulically smooth flow the length ratio in Equation 4.71 needs to be less than 5. For the length ratio
above
------------- = 0.196 5
---- -
u
*
Clearly the flow is smooth pipe turbulent flow with the roughness projections completely buried in the viscous sub-
layer.
Alternatively from Equation 4.73 the condition for smooth pipe turbulent flow is
V f
--------------- 5
8
–3
V f 0.003 10 1.5 0.0154
--------------- = ------------------------------------------------------------------ = 0.196 5
–6
8 8 1.007 10
- = 0.003 –5
--- ------------- = 2.1 10
D 142.7
but the range of validity for the Swamee and Jain equation is:
–6 –2
10 ---- 10
D
Thus the Swamee and Jain equation is valid in this situation. From Equation 4.61 then it follows that:
0.25 0.25
f = ---------------------------------------------------------- = ---------------------------------------------------------------------------------------- = 0.0153
log 10 ----------- - + ------------
5.74 2 5.74 - 2
0.003 - + ---------------------------
log 10 -------------------------
3.7 D 0.9 3.7 142.7 0.9
Re 213200
___________________________________________________________________________________
4.6.4 Transition between smooth pipe turbulent flow and fully rough turbu-
lent flow
Colebrook (1938 –39) and White developed a formula for determining the Darcy – Weisbach fluid fric-
tion factor f for the transitional turbulent region between smooth pipe turbulent flow and fully rough tur-
bulent flow. In this transitional turbulent region, the fluid friction factor f depends on both the Reynolds
number and the relative roughness. Colebrook and White showed that the fluid resistance to flow for
uniform sand grains is different for the equivalent non – uniform roughness, such as in commercial
pipes. The coarser projections disturb the viscous sublayer before the smaller irregularities become
effective.
In 1933, experiments by Nikuradse proved that the fluid friction factor in transitional turbulent flow
depends on relative roughness /D and Reynolds number Re as
98
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
f = F 2 Re ----
D
where
1 2.51
---------- = – 2.0 log 10 ------------ + ----------------- (4.76)
f 3.7D Re f
C = Alog 10 B
C = DlnB
A A
D = -------------- = ---------------- = 0.4343 A (4.77)
ln(10) 2.3026
Thus the Colebrook – White formula of Equation 4.76 is expressed in terms of the natural logarithm for
transitional turbulent flow as
1 - + -----------------
2.51
---------- = – 0.8686 ln ----------- (4.78)
f 3.7D Re f
Note that a coefficient of – 0.86 has been commonly used in the past rather than the slightly larger value
as shown in Equation 4.78.
99
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
The following dimensionless length ratio needs to be satisfied for the flow to be classified as transitional
turbulent
5 ----------
- 70 (4.79)
-----
u
*
or (4.80)
5 ---------------------- 70
----o-
or
f Re
5 --------------------- 70 (4.81)
D 8
Example 4.2 (i) For the following flow situation determine the Darcy – Weisbach friction factor and compute which
region of the Moody diagram the flow is in Figure 4.2. Flow is occurring through a pipe connecting two reservoirs
with an upstream water surface elevation of 50.0 m and a downstream water surface of 44.46 m. Consider a flow
velocity of V = 0.9 m/s, a length of pipe of 2000 m, an internal pipe diameter of D = 300 mm = 0.3 m, an average
–6
roughness height for the inside of the pipe of = 0.25 mm, a kinematic viscosity of = 1.007 10 m2/s and a fluid
density of = 998.2 kg/m3 for water at 20°C. Use the Swamee and Jain (1976) equation to compute the Darcy-Weis-
bach friction factor. (ii) Now use the Swamee (1993) equation of Equation 4.61 to compute the Darcy-Weisbach fric-
tion factor.
It is difficult to know what type of turbulent flow is occurring here. Either the Moody diagram (Figure 4.2) or the Swa-
mee and Jain equation (Equation 4.61) is used to determine the Darcy – Weisbach friction factor as a first approxima-
tion. The length ratio for the viscous sublayer is then be determined to ascertain which flow regime is occurring.
0.25
---- = ---------- = 0.000833
D 300
From the Moody diagram (Figure 4.2) the Darcy – Weisbach f value is 0.020. Alternatively from the Swamee and Jain
equation for the Darcy – Weisbach friction factor (Equation 4.61) may be used
0.25
f = ---------------------------------------------------------
-
5.74 2
log 10 ------------ + ------------
3.7 D 0.9
Re
0.25
f = ----------------------------------------------------------------------------------- = 0.0201
0.25 5.74 2
log 10 --------------------- + ----------------------------
3.7 300 0.9
268100
f = 0.0201 (4.82)
f = 0.0201
100
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
2
= 0.0201 998.2 --------------
f 2 0.9 = 2
o = ---V 2.02 N/m
8 8
The shear velocity from Equation 4.66 is
The characteristic length for the viscous sublayer from Equation 4.70 is
–6
1.007 10 = 0.224 10-4 m = 0.0224 mm
- = ---------------------------
---------- = ----
o u* 0.045
-----
The length ratio for the viscous sublayer from Equation 4.72 is
0.25
------------ = ---------------- = 11.2
u* 0.0224
Recall that for smooth pipe turbulent flow this ratio needs to be less than 5 and for fully rough turbulent flow the ratio
needs to be greater than 70. Thus transitional turbulent flow is in the range from Equation 4.79 of
- 70
5 -----------
u*
Clearly the flow is in the transitional turbulent zone between smooth pipe turbulent flow and fully rough turbulent
flow. Thus our assumption of transitional turbulent flow is valid.
2 2
L- V
------ = 0.0201 2000 0.9
h f = f --- ------------ ------------------ = 5.532 m
D 2g 0.3 2 9.81
z 1 – z 2 = 50 – 44.46 = 5.54 m
(i) Computation of the Darcy – Weisbach friction factor by Swamee (1993) for comparison
64 8 - + ------------
5.74 – 2500 6 – 16 0.125
f = ------
- + 9.5 ln ----------- ------------
3.7 D 0.9 Re
Re Re
Thus
___________________________________________________________________________________
In 1932 and 1933, Nikuradse under the direction of Prandtl and von Karman carried out a series of now
famous artificially roughened pipe experiments. Uniform sized sand grains were glued to the inside of
pipes. Many different pipe flow velocities were tested. A plot of the fluid friction coefficient or Darcy –
Weisbach fluid resistance factor was plotted against Reynolds number for various values of relative
101
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
roughness. The relative roughness was defined as the average diameter k of sand grains divided by the
pipe radius ro. The Nikuradse roughness height k value is not the same as the average roughness height
of the inside of the pipe as defined by more recent writers. Commercially available pipes have non –
uniform roughness. The average roughness height of the inside of the pipe for commercially available
pipes is sometimes referred to as the rugosity.
.For fully rough turbulent flow in pipes, the height of the protrusions need to be at least six times
greater than the thickness of the viscous sublayer. A depiction of the height of the roughness projections
relative to the viscous sublayer height for fully rough turbulent flow is shown in Figure 4.10.
In fully rough turbulent flow in a pipe, the irregularities or roughness projections on the inside of the
pipe break up the viscous sublayer such that fully rough turbulent flow is developed. In the fully rough
turbulent flow zone, the fluid friction factor does not depend on the Reynolds number. The functional
form of the relationship is
-
f = F 3 ---
D
The value of f is effectively a constant value in this zone and only depends on the relative roughness
height /D. For a hydraulically rough pipe the Prandtl – Nikuradse fluid resistance coefficient formula is
1 D
---------- = 2.0log 10 ---- + 1.14 (4.83)
f
Thus if the pipe diameter and roughness height are given, the Darcy – Weisbach friction factor for fully
rough turbulent flow can be computed by rearranging Equation 4.83 as follows.
2
1
f = ----------------------------------------------------- (4.84)
2.0log --- D
10 - + 1.14
The transition to fully rough turbulent flow in a pipe occurs when the following dimensionless number
exceeds the value of 70 to 80.
---------------------- 70 (4.85)
----o-
102
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
or
- 70
----------- (4.86)
u*
* Note that units of must be in meters (or feet) and not mm (or in.).
Recalling that the shear stress at the wall of the pipe is given by Equation 4.34 as
f 2
o = ---V
8
o f
u* = ----- = V --- (4.87)
8
Re
V = --------------- (4.88)
D
Substituting into for the shear velocity from Equation 4.87 and velocity in terms of Reynolds number
from Equation 4.88 from gives the length ratio for the viscous sublayer as
Re f
---------- = ---------------------------- = --------------------------------------- = -------------------------------------------- = -------------------- (4.89)
u* D 8 Re f
---------------
Re - ---f D 8
V ---f
8 D 8
Re f
---------------------- 70 (4.90)
D 8
Now in terms of the Reynolds number from Equation 4.90 it follows that
70D 8
Re -------------------- (4.91)
f
Re 200D
------------- (4.92)
f
Thus if the Reynolds number Re exceeds the value on the right – hand side of Equation 4.92 the flow is
fully rough turbulent flow. This is the equation of the dashed line on the Moody diagram of Figure 4.2
(Zipparro and Hansen 1993) that separates the transitional turbulent zone from the fully rough turbulent
flow zone. The following example computes the friction factor for a fully rough turbulent flow regime.
103
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Example 4.3 Consider the flow in a large head works transmission pipeline with a flow velocity of V = 3.0 m/s, a
length of 2000 m, an internal diameter of D = 2 m = 2000 mm, an average roughness height for the inside of the pipe
of = 1 mm (steel), a kinematic viscosity = 1.007 x 10-6 m2/s and a density of = 998.2 kg/m3 for water at 20°C.
Flow is occurring through the pipe that connects two reservoirs with an upstream water surface elevation of 50.0 m
and a downstream water surface of 42.34 m.
The roughness height on the inside of the pipe is relatively large. Assume the flow in the pipe is fully rough turbulent
and then check if this assumption is valid.
1
---- = -----------
- = 0.0005
D 2000
VD 3.0 2.0 6
Re = -------- = --------------------------- = 5.976 x 10
v 1.007 10
–6
Using the fluid friction factor f for fully rough turbulent flow from Equation 4.84 (Prandtl – Nikuradse formula) gives
2 2
1 1 1 2
f = ------------------------------------------------------- = ------------------------------------------------------------ = ------------- = 0.0167
D 7.742
2.0log --- 2.0log 2000
10 - + 1.14 10 ------------ + 1.14
1
Now check that the flow is actually in the fully rough turbulent flow zone on the Moody diagram (Figure 4.2). For the
flow to be classified as fully rough turbulent flow the following needs to hold (from Equation 4.86)
------------ = ------------------------ 70
u*
----o-
2
f 2 3.0 2
o = ---V = 0.0167 998.2 -------------- = 18.8 N/m
8 8
The shear velocity from Equation 4.66 is
o 18.8
u* = ----- = ------------- = 0.137 m/s
998.2
The characteristic length for the viscous sublayer from Equation 4.70 is
–6
1.007 10 –6 –3
----------- = ----- = --------------------------- = 7.33 10 m = 7.33 10 mm
o u* 0.137
-----
The length ratio for the viscous sublayer from Equation 4.89 is
1
------------- = ------------------------ = 136
---- 7.33 10
–3
-
u
*
Recall that for a fully turbulent flow the length ratio needs to be greater than 70. For the length ratio above
------------- = 136 70
---- -
u
*
Clearly the flow is fully turbulent. Thus our assumption of fully rough turbulent flow is valid.
______________________________________________________________________________________________
104
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
2 2
D 2.0 2
A = ---------- = ------------------ = 3.142 m
4 4
3
Q = VA = 3.0 3.142 = 9.426 m /s
2 2
LV 2000 3.0
h f = f ---- -------- = 0.0167 ------------ ------------------ = 7.661 m
D 2g 2.0 2 9.81
z 1 – z 2 = 50 – 42.34 = 7.66 m
___________________________________________________________________________________
• type of lining
• age of the pipe
• slime growths
• growths on the inside of the pipe as described below
Conditions that may adversely affect the pipe include (ASCE 1975)
Colebrook and White (1937) developed a formula for the growth of roughness particles on the wall of
coated pipes. The effective height of roughness particles after T years is given by
= o + T (4.93)
where
105
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Skeat and Dangerfield (1969) reported that over 100 British studies (Lamont 1952; 1954; 1955) and
other records of cast iron and other pipes confirmed that the uniform growth relationship of Colebrook
and White was valid. The same principle also seems to apply to the growth of slime in spun – lined
pipes.
Skeat and Dangerfield (1969) reported on the growth rate of particles on the inside of coated cast iron
pipes. The growth rate depends on the Langlier Saturation Index of the water (Langlier 1936). A defini-
tive formula for the Langlier Saturation Index of the water is still not available. It is a function of pH,
calcium content and alkalinity of the water. In addition to the influence of the chemical characteristics of
the water, iron bacteria also plays a role in the development of turberculation on coated cast iron pipe.
Skeat and Dangerfield (1969) suggested that it is possible to determine the approximate upper and lower
limits for the growth rate with British waters and to associate particular types of water with particular
growth rates. British waters are classified into four types based on the degree of corrosive attack of
water. This also determines the growth rate. The classification includes slight, moderate, appreciable
and severe degree of corrosive attack of water.
The range of growth rates for slime formation is similar to that of cast iron pipes (Skeat and Dangerfield
1969). In some cases the thickness of the slime film is so great that the consequent reduction in the inter-
nal diameter of the pipe must be taken into account. In general, slime does not damage pipe walls. The
removal of slime from the interior of the pipe restores the capacity of the pipe to its original value.
106
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
is used outside its data ranges is significant.” Additionally Christensen (2000) stated that “a range does
exist where this formula (the Hazen-Williams) may be applied, but most practical pipe flows are outside
that range that will be defined by the analysis. Most hydraulic engineers are applying the Hazen-Wil-
liams formula in pipe flow ranges where it is not valid at all.” Christensen (2000) concluded “that usage
of the Hazen-Williams formula should be strongly discouraged.” He computed that for the Hazen-Williams
equation to be valid that the minimum pipe size needs to be at least 1.441 meters for a Darcy-Weisbach rough-
ness height of = 1 mm.
The Hazen – Williams C value is assumed to depend only on the pipe material and the condition of
inside of the conduit (the Reynolds number dependence is ignored) whereas the Darcy – Weisbach fluid
friction factor f depends on conduit material and condition (reflected through the roughness height),
velocity, internal pipe diameter and kinematic viscosity of the flowing fluid. Temperature variations for
the fluid and the consequent effect on fluid viscosity and density are ignored in the Hazen – Williams
head loss equation. The Hazen – Williams equation is only applicable at high Reynolds numbers (fairly
highly turbulent flow). The Hazen – Williams equation is valid for pipes greater than 50 mm and veloci-
ties less than 3 m/s. The Hazen – Williams equation is well suited to hand computations because C is not
dependent on the Reynolds number Re of the flow. With the availability of computers the justification
for the use of Hazen – Williams formula no longer exists. The Darcy – Weisbach head loss equation has
a better theoretical basis than the Hazen – Williams head loss equation. The Darcy – Weisbach formula
better accounts for the variation of losses with changes in flow velocity and also variations in viscosity
of the fluid.
The Hazen – Williams equation will only properly model new pipes that operate in the hydraulically
smooth turbulent flow range (Christensen et al. 2000). There is always the possibility the formula is
applied outside its range of validity.
Since most pipeline flows occur in the transitional turbulent region (between smooth pipe turbulent flow
and fully rough turbulent flow) the Hazen – Williams equation is not the best available option. For best
engineering practice, it is recommended that the Darcy – Weisbach fluid friction loss equation and the
Colebrook – White formula or the Swamee and Jain formula for fluid friction factor (Equation 4.61) be
used for calculating pipe fluid friction loss (Wunderlich and Giles 1986). With the knowledge that many
water utilities will continue to use the Hazen – Williams formula, a detailed description is included
below. A detailed examination of the range of errors that occur when the Hazen – Williams equation is
used rather than the Darcy – Weisbach fluid friction equation is given in Section 4.7.7.
In US customary units the Hazen – Williams equation from Brater and King (1976, p. 6 – 17)
0.63 0.54
V = 1.318C R Sf (4.94)
where
0.63 0.54
V *3.28 = 1.318C R*3.28 Sf (4.95)
Thus the coefficient on the right – hand side of Equation 4.95 for the SI units equation becomes
107
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
0.63
1.318 3.28 1.318 - = 0.84926
coefficient = ------------------------------------- = ------------------ (4.96)
3.28 3.28
0.37
0.63 0.54
V = 0.84926C R Sf (4.97)
where
h
S f = -----f- (4.98)
L
FRICTION SLOPE
where
2
D
----------
A 4 D-
R = --- = ---------------- = --- (4.99)
P D 4
where
108
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
D 0.63 h f 0.54
= 0.84926C ----
0.63 0.54
V = 0.84926C R Sf ------- (4.100)
4 L
0.63 0.54
0.54 4 VL
hf = -------------------------------------
0.63
0.84926C D
1-
---------
2.8200V L 0.54 0.54
h f = --------------------------------- (4.101)
C D 0.63
Care now needs to be taken with the exponents to ensure enough significant figures are carried so that
results obtained from the US customary units and SI units version of the Hazen – Williams equation are
consistent.
1
---------- = 1.851852 1.852 (4.102)
0.54
0.63
---------- = 1.16666 1.167 (4.103)
0.54
Substituting the exponents defined in Equation 4.102 and Equation 4.103 into Equation 4.101 gives
1.852 L 1.852
h f = 2.8200 ------------------------------- V
1.852 1.167
C D
1.852
LV
h f = 6.8214 ------------------------------- (4.104)
1.852 1.167
C D
HEAD LOSS FOR HAZEN – WILLIAMS HEAD LOSS EQUATION (SI UNITS)
Example 4.4 Consider a pipe of diameter D = 300 mm where the friction slope Sf = 2 m of head loss per 1000 m
length and the Hazen – Williams coefficient is C = 120. Compute the velocity of flow in the pipe.
Use the Hazen – Williams equation (in SI units) to compute the velocity.
109
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
2
S f = ------------ = 0.002
1000
D 0.3
R = ---- = ------- = 0.075 m
4 4
The velocity from the Hazen – Williams equation in SI units of Equation 4.97 is
V = 0.6951 m/s
1.852 1.852
LV 1000 0.6951
h f = 6.8214 ----------------------------- = 6.8214 -------------------------------------------------
1.852 1.167 1.852 1.167
C D 120 0.3
h f = 1.9996 m 2.0 m
___________________________________________________________________________________
Now express the Hazen – Williams head loss equation in terms of flow from Equation 4.104. The result
is
1.852 1.852
LQ LQ
h f = 6.8214 ---------------------------------------------
- = 6.8214 ----------------------------------------------------------
-
1.852 1.167 1.852 2 1.852
C D A 1.852 1.167 D
C D ----------
4
1.852 1.852
6.8214 4 LQ
h f = ----------------------------------- -----------------------------------------------
1.852 1.852 1.167 3.704
C D D
L 1.852
h f = 10.670 ------------------------------- Q (4.105)
1.852 4.871
C D
HEAD LOSS FOR HAZEN – WILLIAMS HEAD LOSS EQUATION (SI UNITS)
Example 4.5 For the pipe described in Example 4.4 (diameter D = 300 mm where the friction slope Sf = 2 m of head
loss per 1000 m length and the Hazen – Williams coefficient is C = 120) compute the flow in the pipe.
V = 0.6951 m/s
The flow is
2 2
Q = VA = 0.6951 0.3 - = 0.04913 m 3 /s
D - = 0.6951 ------------
---------
4 4
L 1.852 L 1.852
h f = 10.670 -----------------------------Q - 0.04914
= 10.670 -------------------------------------
1.852 4.871 1.852 4.871
C D 120 0.3
h f = 1.9996 m 2.0 m
110
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
___________________________________________________________________________________
4.7.2 The Hazen – Williams head loss equation for US customary units
Substituting for the hydraulic radius and the friction slope from Equation 4.98 and Equation 4.99 into
Equation 4.94 gives
h------f-
0.63 0.54
D
= 1.318C ----
0.63 0.54
V = 1.318C R Sf
4 L
0.63 0.54
0.54 4 VL
hf = -------------------------------
0.63
1.318CD
1
----------
1.8171V L 0.54 0.54
hf = --------------------------------- (4.106)
C D 0.63
Using exponents defined by Equation 4.102 and Equation 4.103 in Equation 4.106 gives
1.852
1.852 LV
h f = 1.8171 ------------------------------
-
1.852 1.167
C D
1.852
LV
h f = 3.0226 ------------------------------- (4.107)
1.852 1.167
C D
1.852
6.0452g L V
h f = -------------------- --------------- --------------- (4.108)
1.852 1.167 2g
C D
1.852 1.852
LQ LQ
h f = 3.0226 ---------------------------------------------- = 3.0226 -----------------------------------------------------------
1.852 1.167 1.852 2 1.852
C D A 1.852 1.167 D
C D ----------
4
Thus
1.852 1.852
3.0226 4 LQ
h f = ----------------------------------- -----------------------------------------------
1.852 1.852 1.167 3.704
C D D
111
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
L 1.852
h f = 4.7279 ------------------------------
-Q (4.109)
1.852 4.871
C D
The following example computes the velocity and flow in a pipe based on the Hazen – Williams equa-
tion in US customary units.
Example 4.6 Consider a pipe of diameter D = 0.984 ft (exactly same sized diameter of 300 mm as for Example 4.4)
where the friction slope Sf = 2 ft of head loss per 1000 ft length and the Hazen – Williams coefficient is C = 120.
(i) Compute the velocity of flow and the flow in the pipe.
(ii) Verify the head loss.
Use the Hazen – Williams equation (in US customary units) to compute the velocity.
2
S f = ------------ = 0.002
1000
D- = 0.984
R = --- ------------- = 0.246 ft
4 4
The velocity from the Hazen – Williams equation in US customary units of Equation 4.94 is
V = 2.280 fps (identical to the velocity of 0.6951 m/s obtained in Example 4.4)
___________________________________________________________________________________
(ii) Verification of head loss.
1.852 1.852
LV 1000 0.6591
h f = 3.0226 ----------------------------- = 3.0226 -------------------------------------------------
1.852 1.167 1.852 1.167
C D 120 0.3
h f = 1.9990 ft 2.0 ft
The flow is
2 2
D 0.984
Q = VA = 2.280 ---------- = 2.280 ------------------- = 1.734 cfs
4 4
L 1.852 L 1.852
h f = 4.7279 -----------------------------Q = 4.7279 ------------------------------------------- 1.734
1.852 4.871 1.852 4.871
C D 120 0.984
h f = 1.9990 ft 2.0 ft
___________________________________________________________________________________
112
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
4.7.3 The equivalent pipe diameter for two pipes in parallel for Hazen –
Williams
In Chapter 7, an expression (Equation 7.49) is derived for the equivalent uniform main of diameter DE
with a selected Hazen – Williams coefficient CE to replace two pipes in parallel of diameters D1 and D2,
lengths L1 and L2 and Hazen – Williams C coefficients of C1 and C2. It is assumed that the lengths of all
three pipes are identical such that
L E = L1 = L2 (4.110)
The Hazen – Williams formula is not suitable for values of coefficient C appreciably below 100. Correc-
tions to Hazen – Williams C are necessary if the velocity of flow in the pipeline varies appreciably from
0.9 m/s. For each halving of the velocity below 0.9 m/s the Hazen – Williams C value should be
increased by 5%. For losses above 0.9 m/s with each doubling of the flow velocity the size Hazen –
Williams C value should be reduced by 5%. Corrections for other C value levels are shown in Table 4.7.
These corrections are in effect attempting to take into account the Reynolds number effect. Computer
simulation models of networks usually only allow for a fixed value of Hazen – Williams coefficient for
each pipe. Thus it is not possible in commercially available computer simulation models to easily allow
for the adjustment of the C value based on flow conditions in the pipe. These arguments all point to rea-
sons why it is preferable to use the Darcy – Weisbach head loss equation rather than the Hazen –
Williams head loss equation. This is especially important in the pipe roughness calibration process. It is
desirable to have as accurate as possible the modeling of the flow and pressure conditions in the net-
work. The example shown in Section 4.7.7 compares results from using the Darcy – Weisbach equation
versus using the Hazen – Williams equation and clearly shows that significant errors may occur.
113
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
1.852
2gL V
h f = 6.8214 ------------------------------- ---------------
1.852 1.167 2g
C D
1.852
13.643g L V
h f = -------------------- --------------- --------------- (4.112)
1.852 1.167 2g
C D
The differences between the exponents in the head loss equations for Darcy – Weisbach and Hazen –
Williams resistance equations of Equation 4.3 and Equation 4.112 are shown in Table 4.8.
Table 4.8 Differences between Darcy – Weisbach and Hazen – Williams equations
Feature Darcy – Weisbach Hazen – Williams
Velocity V exponent n=2 n = 1.852
Diameter D exponent 5.0 4.871
Inverse loss coefficient relation f 1
---------------
1.852
C
A comparison of the Hazen – Williams equation for head loss and the Darcy – Weisbach equation of
Equation 4.3 shows that the variation of Hazen – Williams coefficient C is inversely related to the
Darcy – Weisbach friction factor f as follows
13.643g 0.148
------------------------------- = V f (4.113)
0.167 1.852
D C
Thus the Darcy – Weisbach fluid friction factor (for SI units) in terms of the Hazen – Williams coeffi-
cient
13.643g
f = ------------------------------------------------ (4.114)
0.167 1.852 0.148
D C V
and the Hazen – Williams coefficient (SI units) in terms of the Darcy – Weisbach friction factor is
expressed as
114
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
1
-------------
13.643g 1.852 13.643g 0.54
C = --------------------------------------- = --------------------------------------- (4.115)
D 0.167 V 0.148 f D 0.167 V 0.148 f
The following example computes the flow and head loss for flow in a pipe based on the Hazen –
Williams equation.
Example 4.7 Consider a flow in a pipe of diameter D = 250 mm, length L = 1000 m and roughness height
= 0.25 mm (a concrete pipe as per Appendix C). Assume the velocity of flow is V = 0.75 m/s and the kinematic
–6
viscosity of water is = 1.140 10 m2/s at a temperature of 15 degrees Celsius.
VD 0.75 0.25 5
Re = -------- = --------------------------- = 1.646 10
v 1.140 10
–6
Compute the Darcy – Weisbach friction factor from the Swamee and Jain equation (Equation 4.61)
0.25 0.25
f = ----------------------------------------------------------- = ------------------------------------------------------------------------------------------- = 0.0215
5.74 2 0.25 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ------------------------------------
3.7 D 0.9
3.7 250 0.9
Re 1.646 10
5
___________________________________________________________________________________
(ii) Computation of the equivalent Hazen – Williams value.
2 2
LV 1000 0.75
h f = f ---- --------- = 0.0215 ------------ ------------------ = 2.461 m
D 2g 0.25 2 9.81
Second, for the Hazen – Williams head loss from Equation 4.115
2 2
D - = 0.75 0.25
Q = VA = 0.75 --------- ------------------ = 0.03682 m /s
3
4 4
h f = 2.461 m
Thus the head loss values as computed from both methods are very similar (that is – within 2 mm).
Example 4.8 Consider the flow conditions in the Example 4.7 and now compute the equivalent Hazen – Williams C
value when the velocity of flow varies. Consider the following velocities of 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75 and
2.0 m/s.
The following spreadsheet shows the computation of the equivalent Hazen – Williams C values. Clearly the C value
varies by almost 10%.
115
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Table 4.9 highlights the inconsistency in using a constant Hazen – Williams C value and supports the use
of the more theoretically based Darcy – Weisbach head loss equation.
6.0452g 0.148
------------------------------- = V f (4.116)
0.167 1.852
D C
Thus in terms of the Darcy – Weisbach fluid friction factor (US customary units)
6.0452g
f = ----------------------------------------------- (4.117)
0.167 1.852 0.148
D C V
and in terms of the Hazen – Williams coefficient (US customary units) it follows that
1 -
------------
6.0452g
C = -------------------------------------- 1.852 = --------------------------------------
6.0452g - 0.54
(4.118)
0.167 0.148 0.167 0.148
D V f D V f
116
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Example 4.9 Consider the modeling of flow between two reservoirs with different elevation differences as shown in
Figure 4.11. The internal diameter D of the pipe connecting the two reservoirs is assumed to be 300 mm, 1000 m
long with a roughness height of = 0.0015 mm (smooth pipe). Consider the first line in Table 4.10 for a head differ-
ence between the reservoirs of 1.0 m. Minor losses are ignored. Assume the kinematic viscosity of water is
–6
1.140 10 m2/s for water at 15°C. Verify the flow and velocity computations in Table 4.10.
The reservoir difference is 1.0 m. Ignoring minor losses then the application of the energy equation results in the fluid
friction loss being equal to
h f = z 1 – z 2 = 1.0
- 0.0015 -5
--- = ---------------- = 0.5 10
D 300
The flow is computed from the Swamee and Jain (1976) explicit expression for flow in a smooth pipe turbulent flow
regime based on the Darcy – Weisbach equation as derived in Chapter 6 as Equation 6.9 is
5 3
gh f D 2 gh f D
- 2.0log 10 --------------------
Q = ------------------------ – 0.8 (4.119)
2
8L L
3
Q = 0.04236 m /s
2 2
A =
---------- = 0.3 -
D 2
----------------- = 0.07069 m
4 4
The velocity is
V = Q
---- = 0.04235
------------------- = 0.5993 m/s
A 0.07069
Table 4.10 Comparison of Darcy – Weisbach and Hazen – Williams flows for a smooth pipe
*A negative value indicates that the Hazen – Williams equation is underestimating the flow.
117
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
VD 0.5991 0.3
Re = -------- = ----------------------------- = 157800
1.140 10
–6
The fluid friction factor f using the von Karman expression for the smooth pipe turbulent flow friction factor from
Equation 4.65 is
1
-------- = 2.0log 10 Re f – 0.8
f
Using the Goal Seek function in Microsoft Excel to solve for the friction factor gives
f = 0.0164
Table 4.11 Comparison of Darcy – Weisbach and Hazen – Williams head losses for a smooth pipe
The fluid friction factor f using the Swamee and Jain (1976) expression (Equation 4.61) for comparison is
0.25 0.25
f = ---------------------------------------------------------- = ------------------------------------------------------------------------------------------- = 0.0163
5.74 2 0.0015 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ----------------------------------- -
3.7 D 0.9
Re 3.7 300 1.578 105 0.9
Now checking the head loss using the von Karman smooth pipe turbulent flow friction factor
2 2
fL V 0.0163 1000 0.5991
h f = ------ ------ = --------------------------------- ----------------------- = 1.0004 m 1.0 m
D 2g 0.3 2 9.81
This agrees with the original assumed difference between the reservoir water surface elevations. It also agrees with
Column (5) of Table 4.11
For the Hazen – Williams formula determine the hydraulic radius and friction slope
A = 0.3
R = --- ------- = 0.075 m
P 4
h 1.0
S f = -----f- = ------------ = 0.001
L 1000
The equivalent Hazen – Williams C coefficient value for the above Darcy – Weisbach fluid friction factor is obtained
from Equation 4.115 as
1 1
------------- -------------
13.643 g 1 1.852 13.643 9.81 1 1.852
C = -------------------- -------------------- = -------------------------------- -------------------------------------------------- = 150.4
0.167 0.148 0.167 0.148
D V f 0.3 0.5991 0.0163
This agrees with Column (6) of Table 4.11.
Now solving for the velocity based on the Hazen – Williams value of 151.92 (and not the equivalent C value of 150.4
from the equation above) at a velocity of approximately 0.9 m/s (corresponds to a 2 m head difference in Table 4.10)
3
Q = VA = 0.6053 0.07069 = 0.04278 m /s = 42.78 L/s
118
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Q HW – Q DW 42.78 – 42.36
- = --------------------------------- 100 = 1.00 %
% error = ------------------------------
Q DW 42.36
This agrees with Column (7) of Table 4.10. Thus the Hazen – Williams formula overestimates the flow by about 1% for
this example.
___________________________________________________________________________________
Table 4.10 shows that for smooth pipes the Hazen – Williams formula is fairly accurate, only differing
from the Darcy – Weisbach computed flow by an underestimation of up to 2.6%.
Example 4.10 Consider the modeling of flow between two reservoirs with different elevation differences as shown
in Figure 4.11. The internal diameter D of the pipe connecting the two reservoirs is assumed to be 300 mm, 1000 m
long with a roughness height of = 0.25 mm (transitional turbulent pipe flow). Consider the last line of computed
results in Table 4.12 for a head difference between the reservoirs of 25.0 m. Minor losses are ignored. Assume the
–6
kinematic viscosity of water is 1.140 10 m2/s for water at 15°C. Verify the flow and velocity computations in
Table 4.12.
The reservoir difference is 25.0 m. Ignoring minor losses then the application of the energy equation results in the fluid
friction loss being equal to
h f = z 1 – z 2 = 25.0m
- 0.25 –4
--- = ---------- = 8.333 10
D 300
The flow is computed from the Swamee and Jain (1976) explicit expression for flow for flow in a transitional turbulent
regime based on the Darcy – Weisbach equation as derived in Chapter 6 as Equation 6.16 is
gh f D
5
1.7748
Q = – 0.9646 ------------------ln ------------ + ----------------------
L 3.7 D 3
gh f D
------------------
L
5 –6
9.81 25.0 0.3 0.25 1.7748 1.140 10
Q = – 0.9646 ---------------------------------------------- ln --------------------- + --------------------------------------------------
1000 3.7 300 3
9.81 25.0 0.3
----------------------------------------------
1000
-4
Q = – 0.9646 0.02441 ln 0.0002252 + 0.24885632 10
3
Q = 0.1953 m /s
This agrees with the last value in Column (2) of Table 4.12.
119
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Table 4.12 Comparison of Darcy – Weisbach and Hazen – Williams flows for a transitional turbulent pipe flow
*
A negative value indicates that the Hazen – Williams equations is underestimating the flow.
2 2
D 0.3 2
A = ---------- = ------------------ = 0.07069 m
4 4
The velocity is
Q 0.1953
V = ---- = ------------------- = 2.763 m/s
A 0.07069
2.763 0.3
Re = VD
-------- = --------------------------- = 726470
1.140 10
–6
The fluid friction factor f using the Colebrook – White expression for the transitional turbulent zone pipe friction fac-
tor from Equation 4.76 is
- + -----------------
1 - = – 2.0 log ----------- 2.51 -
-------- 10
f 3.7 D Re f
Using the Goal Seek function in Microsoft Excel to solve for the friction factor gives
f = 0.0193
Table 4.13 Comparison of Darcy – Weisbach and Hazen – Williams head losses for a transitional turbulent pipe flow
The fluid friction factor f using the Swamee and Jain (1976) expression (Equation 4.61) for comparison is
120
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
0.25 0.25
f = ---------------------------------------------------------- = ------------------------------------------------------------------------------------ = 0.0194
5.74 2 0.25 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + -----------------------------
3.7 D 0.9 3.7 300 0.9
Re 726470
Now checking the head loss using the von Karman smooth pipe turbulent flow friction factor
2 2
fL- V = 0.0193 1000 2.763 =
h f = ----- -------- --------------------------------- -------------------- 25.03 m 25.0 m
D 2g 0.3 2 9.81
This agrees with the original assumed difference between the reservoir water surface elevations. It also agrees with
Column (5) of Table 4.13
For the Hazen – Williams formula determine the hydraulic radius and friction slope
A = 0.3
R = --- ------- = 0.075 m
P 4
h 25.0- = 0.025
S f = -----f- = -----------
L 1000
The equivalent Hazen – Williams C coefficient value for the above Darcy – Weisbach fluid friction factor is obtained
from Equation 4.115 as
1 - 1 -
------------ ------------
13.643 g 1 1.852 13.643 9.81 1 1.852
C = -------------------- ---------------------- = -------------------------------- -------------------------------------------------- = 121.91
0.167 0.148 0.167 0.148
D V f 0.3 2.763 0.0193
This agrees with Column (6) of Table 4.12.
Now solving for the velocity based on the Hazen – Williams value of 130 at a velocity of approximately 0.9 m/s (corre-
sponds to a 3 m head difference in Table 4.12)
3
Q = VA = 2.946 0.07069 = 0.2083 m /s = 208.3 L/s
208.3 – 195.3
% error = ------------------------------ 100 = 6.66 %
195.3
This agrees with Column (7) of Table 4.12.
___________________________________________________________________________________
Thus Table 4.12 shows that for transitional turbulent pipe flow the Hazen – Williams formula is increas-
ingly inaccurate, differing from the Darcy – Weisbach computed flow by an overestimation of up to
6.6%.
Example 4.11 Consider the modeling of flow between two reservoirs with different elevation differences as shown
in Figure 4.11. The internal diameter D of the pipe connecting the two reservoirs is assumed to be 300 mm, 1000 m
long with a roughness height of = 5 mm (fully rough turbulent flow). Consider the first line in Table 4.14 for a
head difference between the reservoirs of 6.0 m. Minor losses are ignored. Assume the kinematic viscosity of water
–6
is 1.140 10 m2/s for water at 15°C. Verify the flow and velocity computations in Table 4.14.
The reservoir difference is 6.0 m. Ignoring minor losses then the application of the energy equation results in the fluid
friction loss being equal to
h f = z 1 – z 2 = 6.0
121
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
5
---- = --------- = 0.01667
D 300
The flow is computed from the Swamee and Jain (1976) explicit expression for flow in the fully rough turbulent flow
regime based on the Darcy – Weisbach equation as derived in Chapter 6 as Equation 6.23 is
2
D
gh f D 2.0 log 10 ---- + 1.14
2 5
Q = ---------------------------------------------------------------------------------------
8L
2
9.81 6.0 0.3 2.0 log 10 300 --------- + 1.14
2 5
5
Q = ---------------------------------------------------------------------------------------------------------------------
8 1000
3
Q = 0.06239 m /s
Table 4.14 Comparison of Darcy – Weisbach and Hazen – Williams flows for fully rough turbulent flow in a pipe
*A negative value indicates that the Hazen – Williams equations is underestimating the flow.
2 2
D 0.3 2
A = ---------- = ------------------ = 0.07069 m
4 4
The velocity is
Q 0.06239
V = ---- = ------------------- = 0.8826 m/s
A 0.07069
0.8826 0.3
Re = VD
-------- = ----------------------------- = 232060
1.140 10
–6
The fluid friction factor f using the Colebrook – White expression for the transitional turbulent zone pipe friction fac-
tor from Equation 4.83 is
1 - = 2.0log ---
D
------- 10 - + 1.14
f
1
f = ------------------------------------------------------------ = 0.0453
D 2
2.0 log 10 ---- + 1.14
122
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
The fluid friction factor f using the Swamee and Jain (1976) expression (Equation 4.61) for comparison is
0.25 0.25
f = ---------------------------------------------------------- = ----------------------------------------------------------------------------------- = 0.0457
5.74 2 5 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ----------------------------
3.7 D 0.9 3.7 300 0.9
Re 232060
Now checking the head loss using the von Karman smooth pipe turbulent flow friction factor
2 2
fL V 0.0453 1000 0.8826
h f = ------ -------- = --------------------------------- ----------------------- = 5.995 m 6.0 m
D 2g 0.3 2 9.81
This agrees with the original assumed difference between the reservoir water surface elevations. It also agrees with
Column (6) of Table 4.15
Table 4.15 Comparison of Darcy – Weisbach and Hazen – Williams head losses for fully rough
turbulent flow in a pipe
For the Hazen – Williams formula determine the hydraulic radius and friction slope
A 0.3
R = --- = ------- = 0.075 m
P 4
h 6.0
S f = -----f- = ------------ = 0.006
L 1000
The equivalent Hazen – Williams C coefficient value for the above Darcy – Weisbach fluid friction factor is obtained
from Equation 4.115 as
1 - 1 -
------------ ------------
1 - 1.852 = 13.643 9.81 - ---------------------------------------------------- 1.852
C = 13.643
-------------------g- --------------------- 1 -
------------------------------- = 84.24
0.167 0.148 0.167 0.148
D V f 0.3 0.8826 0.0453
This agrees with Column (5) of Table 4.15.
Now solving for the velocity based on the Hazen – Williams value of 84.18 at a velocity of approximately 0.9 m/s (cor-
responds to a 6 m head difference in Table 4.16)
3
Q = VA = 0.8828 0.07069 = 0.06241 m /s = 62.41 L/s
62.41 – 62.38
% error = ------------------------------ 100 = 0.05 %
62.38
This agrees with Column (7) of Table 4.14.
___________________________________________________________________________________
123
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Table 4.14 shows that for transitional turbulent pipe flow the Hazen – Williams formula is increasingly
inaccurate, differing from the Darcy – Weisbach computed flow by an overestimation of up to 5.9%.
Thus it is observed in Table 4.14 that the error in the flow from the Hazen – Williams formula ranges
from an underestimation of the flow below a velocity of 0.9 m/s (up to 6.9% error) and an overestima-
tion above a velocity of 0.9 m/s by up to 5.9%. Finally, it is useful to observe the difference in flow esti-
mates from the different formulas for smooth pipe turbulent flow, transitional turbulent flow and fully
rough turbulent flow as shown in Table 4.16.
Table 4.16 Comparison of Darcy – Weisbach computed flows for different flow regimes
For a direct comparison to the Darcy – Weisbach flows in Table 4.16 the corresponding flows as com-
puted from the Hazen – Williams formula are shown in Table 4.17
Table 4.17 Comparison of Hazen – Williams flows for different flow regimes
Table 4.18 Comparison of Darcy – Weisbach friction factors for different flow regimes
124
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Finally, the actual variation of Hazen – Williams coefficients corresponding to the friction factors in
Table 4.18 are shown in Table 4.19. Note that a constant Hazen – Williams C value is assumed in com-
puter simulation models. This leads to errors in comparison to the use of the Darcy – Weisbach formula.
Table 4.19 Comparison of actual Hazen – Williams coefficients for different flow regimes
xxxx SPELLING ERROR NEEDS CHANGING IN EXCEL FILE AND RECOPIED IN
n–
H i – H k = h f = r jQ j Q j (4.121)
j
where
• rj = resistance for pipe j that depends on the form of the head loss equation that is used
• Qj = flow assumed to be positive from node i to node k (m3/s or ft3/s)
• n = exponent that depends on the form of the head loss equation
125
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
The absolute sign in Equation 4.121 assures head loss occurs in the direction of flow and avoids raising
a negative exponent when the flow direction is negative (Bhave 1988). Various head loss equations may
be used for pipe flow. The Darcy – Weisbach and Hazen – Williams head – loss relations have already
been considered. It has also been noted earlier that Darcy – Weisbach head loss equation is recom-
mended for use (rather than the Hazen – Williams head loss equation) as it has a more sound theoretical
basis and better accounts for variation of losses with changes in flow velocity and also variations in vis-
cosity of the fluid.
4.8.1 The resistance term for the Darcy – Weisbach head loss equation
Expressing the Darcy – Weisbach equation of Equation 4.3 with n = 2 in terms of flow yields
fL 2
h f = ------------------ Q (4.122)
2
2gD A
Thus in terms of the general head loss expression of Equation 4.121, the resistance term or “r” value for
the Darcy – Weisbach head loss equation becomes
fL
r f = ------------------ (4.123)
2
2gD A
or
fL 16 fL 8 fL
r f = ------------------------------ = -------------------- = ----------------- (4.124)
2 2 2 5 2 5
D 2 g D gD
2gD ----------
4
or
8 fL
r f = ----------------- (4.125)
2 5
gD
Thus Equation 4.122 for the Darcy – Weisbach head loss equation becomes
126
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
h f = r jQ j Q j (4.126)
j
4.8.2 The resistance term for the Hazen – Williams head loss equation
Equation 4.104 for the Hazen – Williams equation formulation is expressed in terms of flow (SI units
using g = 9.81 m/s2) as
L 1.852
h f = 10.670 ------------------------------
-Q (4.127)
1.852 4.871
C D
Thus in terms of the general head loss equation Equation 4.121 then for SI units the resistance term for
the Hazen – Williams equation is
L
r HW = 10.670 ------------------------------
- (4.128)
1.852 4.871
C D
n = 1.852 (4.129)
L 1.852
h f = 4.7279 ------------------------------
-Q (4.130)
1.852 4.871
C D
such that the resistance term for the Hazen – Williams equation in US Customary units is
L
r HW = 4.7279 ------------------------------- (4.131)
1.852 4.871
C D
Thus Equation 4.121 for the Hazen – Williams head loss equation becomes for pipe j
0.852
h f = rH W Q j Q j (4.132)
j
Thus rearranging with the negative root being selected rather than the positive root
- + ------------
5.74- = – 0.25
log 10 ----------- ----------
3.7D 0.9 f
Re
– 0.25
----------
5.74-
= 3.7D 10
f
– ------------
0.9
Re
127
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Now by substituting in the first expression for f in terms of C from Equation 4.114 gives the required
expression
– 0.25 D
0.167
C
1.852
V
0.148
------------------------------------------------------------
13.643 g 5.74-
= 3.7D 10 – ------------ (4.133)
Re 0.9
Example 4.12 Now consider an example where V = 1.0 m/s, D = 300 mm and C = 130. Compute the pipe roughness
height and Darcy – Weisbach friction factor corresponding to the Hazen – Williams C value. Assume the water is at
–6
20°C. The kinematic viscosity of water is 1.007 10 m2/s.
0.25 0.3
0.167
130
1.852
1.0
0.148
– ---------------------------------------------------------------------------
13.643 9.81 5.74
= 3.7 0.3 10 – ----------------------- = 0.000242 m =0.242 mm
297900 0.9
The Darcy – Weisbach friction factor f from the Swamee and Jain equation (Equation 4.61)
0.25 0.25
f = ---------------------------------------------------------- = ----------------------------------------------------------------------------------- = 0.0199
log 10 ------------ + ------------ 5.74 2
0.242 5.74 - 2
log 10 --------------------- + ---------------------------
3.7 D 0.9 3.7 300 0.9
Re 297900
Example 4.13 Consider a water pipeline with an internal diameter D = 1000 mm, and velocity of V = 1.0 m/s.
–6
Assume a water temperature of 15°C and a corresponding kinematic viscosity of 1.140 10 m2/s. Table 4.20
shows the correspondence between Hazen – Williams C and Darcy – Weisbach fluid friction factor f (and the associ-
ated average roughness height value ) for an aged pipe (C = 70), a moderately aged pipe (C = 100) and a new pipe
(C = 140). Confirm the first row of Table 4.20 corresponding to C = 70.
1.0 1.0
Re = VD
-------- = --------------------------- = 876400
1.140 10
–6
From Equation 4.114 solving for the Darcy – Weisbach friction factor f gives
13.643 g
f = ---------------------------------------------
-
0.167 1.852 0.148
D C V
13.643 9.81
f = -------------------------------------------------------------- = 0.052
0.167 1.852 0.148
1.0 70 1.0
For a Darcy – Weisbach fluid friction factor of 0.052 and a Reynolds number of 876,400 the corresponding value of
relative roughness from either the Moody diagram (Figure 4.2)or the Swamee and Jain equation (Equation 4.61) is
---- = 0.021
D
One observes that for a halving of the Hazen – Williams coefficient C from 140 to 70 the equivalent roughness height
128
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
___________________________________________________________________________________
1.0 2 3 1 2
V = ------- R S f (4.134)
n
where
D
R = ---- (4.135)
4
1.0 D 2 3 1 2
V = ------- ---- Sf (4.136)
n 4
1.49 2 3 1 2
V = ---------- R S f (4.137)
n
where
129
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
• n = Manning n coefficient
• R = hydraulic radius (ft only)
• Sf = friction slope (dimensionless)
Again substituting for the hydraulic radius from Equation 4.135 into Equation 4.136 gives
D- 2 3 S 1 2
V = 1.49
---------- --- (4.138)
n 4 f
This equation is only applicable when the Reynolds number is high. Some typical values of the Manning
n coefficient for various materials are shown in Table 4.21.
The relationship between Manning's n and the Darcy – Weisbach friction factor f in SI units is
4.11 References
ASCE (1975). Pipeline design for hydrocarbon gases and liquids. Report of the Task Committee on
Engineering Practice in the Design of Pipelines, Committee on Pipeline Planning, Pipeline Division,
American Society of Civil Engineers, New York, 1-79.
Bhave, P. R. (1988). “Extended period simulation of water systems - direct solution." Journal of Envi-
ronmental Engineering, Vol.114, No.5, October, 1146-1159.
Brater, E. F. & King, H.W. (1976). Handbook of hydraulics for the solution of hydraulic engineering
problems. New York: McGraw-Hill.
Carpenter, R. (2010). “Gray iron and ductile iron pipe-some historical benchmarks impacting condition
assessment.” World Environmental and Water Resources Congress, ASCE, May 16-20, Rhode Island.
Christensen, B. (2000). Discussion of “Limitations and proper use of the Hazen-Williams equation.” by
C.P. Liou 124(9), Journal of Hydraulic Engineering, 126(10), 1510-1512.
Colebrook C. F. and White C. M. (1937). “Experiments with fluid friction in roughened pipes.” Pro-
ceedings Royal Society, London A, 161.
Jeppson, R. W. (1976). Analysis of flow in pipe networks, Ann Arbor Science, Ann Arbor, Michigan.
Kamand, F. Z. (1988). “Hydraulic friction factors for pipe flow.” Journal of Irrigation and Drainage
Engineering, 114(2), 311-323.
Langelier, W. (1936). “Analytical control of anti-corrosion water treatment.” Journal of American Water
Works Association, 28, 1500.
Liou, C.P. (1998). “Limitations and proper use of the Hazen-Williams equation.” Journal of Hydraulics
Engineering, 124(9), 951-954.
130
Chapter 4 - File: Chap4newCombined.fm July 6, 2022 Version 6
Skeat, W.O. and Dangerfield, B. J. ed. (1969). Manual of British water engineering practice. (4th ed.).
Cambridge: Published for the Institution of Water Engineers by Heffer.
Stephenson, D. (1984). Pipeflow analysis. Developments in Water Science, No., Elsevier, Amsterdam,
84.
Streeter, V.L., Wylie, E.B. and Bedford, K. (1998). Fluid mechanics. 9th Edition. McGraw – Hill.
Swamee, P. K. and Jain, A.K. (1976). “Explicit equations for pipe-flow problems.” Journal of the
Hydraulics Division, 102(5), 657-664.
Tubemakers Australia (1995). Design Manual: Ductile Iron Pipeline Systems, Tubemakers Australia
Limited, Water, Oil & Gas Industries Group.
Wunderlich, W. O., and Giles, J. E. (1986). Review of pipe network analysis. Tennessee Valley Author-
ity, Office of Natural Resources and Economic Development, Division of Air & Water Resources, Engi-
neering Laboratory, September, Report # WR28-2-900-0, 1-98.
Zipparro, V. J., and H. Hansen, H. (1993). Davis' handbook of applied hydraulics, 4th ed., McGraw-Hill,
New York.
131
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
5.1 Introduction
In Chapter 4, it was seen that viscosity caused a velocity gradient at fluid boundaries that gave rise to
friction drag and pressure loss. Any change in flow velocity profile causes a loss of energy and result in
a corresponding pressure loss. In addition, any change in direction of flow, cross – sectional area, or
shape causes a drop in energy grade line. Minor losses (also referred to as form losses) are a localized
loss produced by a geometry or shape configuration change. Minor losses are additional to the frictional
loss in a pipeline system. Causes of minor losses include valves (either fully open or in a semi – open
position), branches or bifurcations, T – junctions, changes in pipe sizes, entrances, exits, flow meters,
orifice plates, bends, expansions, contractions, transitions (e.g. a change from a rectangular section to a
circular section or vice versa), slots and partial obstructions.
A minor loss coefficient K is introduced to enable the computation of the localized head loss due to the
fitting. K coefficients usually assume the flow is fully rough turbulent flow.
The head loss associated with non – uniform flow conditions is generally expressed as
2
V
h L = K ------ (5.1)
2g
Note the similarity of Equation 5.1 to the Darcy – Weisbach head loss equation of Equation 4.3.
In long, straight pipes of constant diameter the flow is uniform. In practice, many conditions may cause
non – uniform flow to occur. An abrupt change in magnitude and direction of the velocity characterizes
the occurrence of non – uniform flow. The losses are concentrated and are sometimes called minor
losses. Sometimes, the 'minor' losses may exceed the straight pipe head loss in a particular piping sys-
tem. A typical example occurs in a water treatment plant, where the straight sections of pipe are short
but there are numerous minor loss components in the system.
Deceleration of flow produces large scale turbulence and large head loss, for example, an abrupt expan-
sion. Acceleration of the flow results in relatively very little head loss, for example, a gradual contrac-
tion. Both a sudden expansion and a sudden contraction are shown in Figure 5.1.
132
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
Generally the values of K in Equation 5.1 must be determined experimentally. However, the case of a
pipeline expansion and at the exit from a pipeline to a reservoir is an exception where an analytical solu-
tion for K is possible.
The section at which the velocity head is taken must always be specified when computing the head loss
due to the minor loss fitting based on Equation 5.1. The head loss across a valve is shown in Figure 5.2.
Note how the HGL drops across the valve — it is a concentrated loss.
F 1 p V D = 0 (5.2)
where
n = 5, m = 3, n – m = 2
Thus two dimensionless parameters result and the following function holds
133
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
F 2 1 2 = 0 (5.3)
The repeating variables are usually selected to be associated with the following
• D = a length variable
• = a variable associated with mass
• V = a kinematic variable associated rate of change with time
For this example, use D, , and V as repeating variables. Solving for the first term
a1 b1 c1
1 = D V p (5.4)
0 0 0
1 = M L T
p
1 = ---------- (5.5)
2
V
a2 b2 c2
2 = D V (5.6)
Thus
2 = ------------ (5.7)
VD
Thus substituting into Equation 5.3 with the values of dimensionless terms
F 2 1 2 = 0
gives
p
F 2 ---------- ------------ = 0 (5.8)
2 VD
V
or
p
F 3 ---------- Re = 0 (5.9)
2
V
where
134
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
Thus the pressure drop across a minor loss fitting is a function of Reynolds number, the density of fluid
flowing and of the velocity of flow
2
p = F 4 Re V (5.10)
p
h L = -------
assuming the velocity head is the same both upstream and downstream of the fitting and from
Equation 5.10 it follows that
2
p V
------- = F 4 Re ----------
g
or
2
p V
------- = 2F 4 Re ------ (5.11)
2g
2
V
h L = F 5 Re ------ (5.12)
2g
Replace the function of Reynolds number F5(Re) with the variable K. It should be kept in mind that K
depends on the Reynolds number. Thus
2
hL = K V
-------- (5.13)
2g
From the force – momentum flux equation from Equation 3.37 applied along the center – line of the
pipes and the expansion
F x = Q V x2 – V x1 (5.14)
Thus
where shear forces are ignored. In addition, for a horizontal sudden expansion gravitational effects are
zero. Note that A 2 , the area of section 2, is applied with the pressure at section 1. Thus
p 1 A 2 – p 2 A 2 = V x A 2 V x – V x A 1 V (5.16)
2 2 1 x
135
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
2 2
p2 – p1 V 1 A1 V 2
-----------------
- = --------
- ------ – --------- (5.17)
g A2 g
where the x – subscript has been dropped from the velocity terms.
2 2
p V p V
z 1 + -----1- + ------1 = z 2 + -----2- + ------2 + h f + h L (5.18)
2g 2g
where
z1 = z2
Because the section between 1 and 2 is short, the friction loss is assumed to be zero
h f = 0.0
2 2
p2 – p1 V1 V2
-----------------
- = --------
- – --------- – h L (5.19)
2g 2g
Equating both of the equations in Equation 5.17 and Equation 5.19 above gives
2 2 2 2
V 1 A1 V 2 V1 V2
--------- ------ – --------- = --------
- – --------- – h L (5.20)
g A2 g 2g 2g
136
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
2 2 2
V 1 V 2 2V 2 1 A 1 2V 2
hL = --------
- – --------- – ------------ ------ + ------------ (5.21)
2g 2g 2g A 2 2g
V 1 A1 = Q
Thus
2 2 2
V 1 V 2 2V 1 Q 2V 2
hL = --------
- – --------- – ---------- ------ + ------------ (5.22)
2g 2g 2g A 2 2g
Q
V 2 = ------
A2
2 2
V 2 2V 1 V 2 V 1
h L = --------
- – ----------------- + --------- (5.23)
2g 2g 2g
Thus
2
V 2 – V 1
h L = --------------------------
- (5.24)
2g
Now using the continuity equation applied between section 1 and section 2 in Figure 5.3 gives
V 1 A1 = V 2 A2
A
V 2 = V 1 -----1-
A2
2 2
V 2 – V 1 A 2V 1
- = 1 – -----1- --------
h L = -------------------------- - (5.25)
2g A 2 2g
2 2
V1 A 2V 1
- = 1 – -----1- --------
h L = K -------- - (5.26)
2g A 2 2g
137
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
A 2
K = 1 – -----1- (5.27)
A 2
Note the loss coefficient is based on the velocity head in the upstream pipe with the smaller diameter
(i.e. the faster velocity).
Example 5.1 For an abrupt expansion of D1 = 500 mm and D2 = 1000 mm for a flow rate of 392.7 L/s.
Answer – (i) Computation of the head loss coefficient for an abrupt expansion.
2
D 0.5
2
2
A 1 = ---------1- = ------------------ = 0.19635 m
4 4
Q 0.3927
V 1 = ------ = ------------------- = 2.0 m/s
A1 0.19635
2
D 1.0
2
2
A 2 = ---------2- = ------------------ = 0.7854 m
4 4
Q 0.3927
V 2 = ------ = ---------------- = 0.5 m/s
A2 0.7854
2 2
A 2 D 500 2 2 1 2
K = 1 – -----1- = 1 – ------1- = 1 – ------------ = 1 – --- = 0.5625
A2 2 1000 4
D 2
___________________________________________________________________________________
Answer – (ii) Computation of the abrupt expansion head loss.
The head loss is based on the faster upstream velocity from Equation 5.26 as
2 2 2
V1 A 2V 1 2.0
- = 1 – -----1- --------
h L = K -------- - = 0.5625 ------------------ = 0.115 m
2g A2 2 g 2 9.81
___________________________________________________________________________________
D
------1- 0
D2
Thus for the sudden expansion in the previous section in Equation 5.27 it follows that
138
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
A
-----1- 0
A2
and
A 2
K = 1 – -----1- = 1.0
A 2
2
V1
h L = 1.0 --------
- (5.28)
2g
From an analytical analysis the head loss for the contraction is shown to be
2
A 2V o
h L = 1 – -----o- --------
- (5.29)
A 2g2
Now apply the continuity equation between the vena contracta at section 0 and section 2 downstream of
the contraction in Figure 5.4.
Thus
V o Ao = V 2 A2 (5.30)
Now define the contraction coefficient Cc as the ratio of the area of the narrow part of the flow at the
vena contracta to the area of flow in the pipe downstream of the contraction as
A
C c = -----o- (5.31)
A2
139
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
Experimental values of the contraction coefficient Cc for different area ratios are given in Table 5.1.
A Cc
------2
A1
0.1 0.624
0.2 0.632
0.3 0.643
0.4 0.659
0.5 0.681
0.6 0.712
0.7 0.755
0.8 0.813
0.9 0.892
1.0 1.0
Ao = C c A2 (5.32)
V o C c A2 = V 2 A2
or
V oCc = V 2
V
V o = ------2 (5.33)
Cc
Combining Equation 5.29, Equation 5.31 and Equation 5.33 above leads to a head loss given by
2 2 2 2
A 2V o 2 V 2 1 1 – C 2V 2 1 2 V 2
hL = 1 – -----o- -------- - ------ = --------------c- --------
- = 1 – C c -------- - = ------ – 1 --------
-
A 2 2g C 2 2g C 2g C 2g
c c
c
2 2
V2 1 2 V 2
- = ------ – 1 --------
2g
h L = K -------- - (5.34)
2g C
c
Note the velocity head is based on the downstream pipe velocity (i.e. the faster velocity). This contrasts
to the expression for the abrupt expansion that is based on the upstream pipe velocity (however, the
faster velocity was used in that case as well).
140
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
1 2
K = ------ – 1 (5.35)
C
c
The contraction coefficient Cc and thus the K value for a contraction is a function of Reynolds number
Example 5.2 For an abrupt contraction of D1 = 1000 mm and D2 = 500 mm for a flow rate of 392.7 L/s.
2
D 2
1.0 - = 0.7854 m 2
A 1 = ---------1- = -----------------
4 4
Q- = 0.3927
V 1 = ----- ---------------- = 0.5 m/s
A1 0.7854
2
D 2
0.5 - = 0.19635 m 2
A 2 = ---------2- = -----------------
4 4
Q 0.3927
V 2 = ------ = ------------------- = 2.0 m/s
A2 0.19635
A 2
500
-----2- = -------------- = 0.25
A1 1000
2
C c = 0.637
The abrupt contraction head loss coefficient from Equation 5.35 gives
1
K = -----
2 1 - – 1 2 = 1.57 – 1 2 = 0.325
- – 1 = ------------
C 0.637
c
This compares to a value of K = 0.5625 for the abrupt expansion as computed in Example 5.1. Thus for the same area
ratio the head loss coefficient for an abrupt expansion is greater than that for an abrupt contraction.
___________________________________________________________________________________
(ii) Computation of the head loss for an abrupt contraction.
The abrupt contraction head loss from Equation 5.34 (based on the faster downstream velocity) is
2 2
V2 1 2V 2 2.0
2
- = ------ – 1 --------
2 g
h L = K -------- - = 0.325 ------------------ = 0.066 m
2g C 2 9.81
c
This compares to a value of h L = 0.115 m for the abrupt expansion as computed in Example 5.1.
___________________________________________________________________________________
141
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
Example 5.3 Compute the head loss coefficient for the entrance to a pipe from a reservoir.
Answer – Computation of head loss coefficient for an abrupt contraction into a pipe from a reservoir.
The abrupt contraction head loss coefficient from Equation 5.35 gives
1 2 1 2
K = ------ – 1 = ------- – 1 = 1.67 – 1 = 0.45
2
C 0.6
c
___________________________________________________________________________________
Thus as an approximation the energy loss due to the entrance to a pipe is given by
2 2
V2 V2
hL = K --------
- = 0.5 --------
- (5.36)
2g 2g
The loss coefficient is taken as K = 1.0 for a re – entrant pipe with thin walls such that
2
V
h L = 1.0 ------ (5.37)
2g
142
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
Head loss coefficients were determined experimentally as K = 0.01 to 0.05 while the head loss is in the
range shown below.
2 2
V V
h L = 0.01 ------ to 0.05 ------ (5.38)
2g 2g
For a carefully formed contraction the loss of energy is in most practical case is negligible. Thus
K = 0.0 (5.39)
The amount of loss clearly depends on the angle of the gradual contraction. Table 5.2 gives the approach
to computing the loss coefficient as the angle increases.
2 2
V 2 – V 1 A 2V 1
- = 1 – -----1- --------
h L = -------------------------- - (5.40)
2g A 2 2g
143
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
5.7 Bends
Head losses in pipe bends are caused by the combined effect of separation, wall friction and twin – eddy
secondary flow. The change in flow direction due to the bend results in an increase in pressure around
the outside of the bend and a decrease in pressure around the inside of the bend.
At higher velocities separation occurs at the inner boundary. This pressure difference may be utilized for
flow measurement. The centrifugal acceleration causes a secondary circulation at the bend. For large
radius bends both wall friction and secondary flow are significant. For small radius bends both separa-
tion and secondary flow are significant. Coefficients for bends are experimental and often conflicting. A
researcher called Ito carried out some experimental work in the 1960s. Details of bend loss coefficients
for various types of bends is given in Table 5.4.
144
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
5.8 Valves
Discrete or localized head losses occur at fittings such as valves, elbows, T – junctions, flow meters etc.
Normally the loss values K are provided by the manufacturer. Many different types of valves are manu-
factured. A summary of sizes of various types of valves are given in Table 5.3. Loss coefficients for
valves are given at the end of Table 5.4.
Table 5.4 Pipeline minor loss coefficients (based on Skeat and Dangerfield 1969, p. 165
and ASCE 1975, p.21)
Type of Fitting K L/D
approx.
(f = 0.023)
Entry Losses
Sharp – edged entrance 0.5 22
Re – entrant entrance 0.8 35
145
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
Table 5.4 Pipeline minor loss coefficients (based on Skeat and Dangerfield 1969, p. 165
and ASCE 1975, p.21)
Slightly – rounded entrance 0.25 11
Bellmouthed or well – rounded entrance 0.05 2
Footvalve and strainer 2.5 109
Intermediate Losses
Elbows
45o standard 0.5 21
45o 0.4 17
90o 1.0 43
Close Radius Bends (R/D = 1 approximately)
22.5o 0.15 7
45o 0.3 13
90o 0.75 33
Long Radius Bends (R/D = 2 to 7)
22.5o 0.1 4
45o 0.2 9
90o 0.4 17
Sweeps (R/D = 8 to 50)
22.5o 0.05 2
45o 0.1 4
90o 0.2 9
Miter Elbows
22.5o – 2 piece 0.15 7
90 o – 2 piece 1.25 54
90 o – 3 piece 0.50 21
90 o – 4 piece 0.30 13
Tees
Flow in line 0.35 15
146
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
Table 5.4 Pipeline minor loss coefficients (based on Skeat and Dangerfield 1969, p. 165
and ASCE 1975, p.21)
Line to branch or branch to line:
– sharp – edged 1.2 to 1.8 52 to 78
– radiused 0.8 35
Angle Branches
Flow in line 0.35 15
Line to branch or branch to line:
– 30o angle 0.40 17
147
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
Table 5.4 Pipeline minor loss coefficients (based on Skeat and Dangerfield 1969, p. 165
and ASCE 1975, p.21)
Globe valve (fully open) 10.0 435
Right angle valve (fully open) 5.0 217
Reflux valve or swing check valve or 0.6 to 2.5 26 to 110
non – return valve
Angle valve 2.5 110
Butterfly valve 0.3 13
Exit losses
Sudden expansion or enlargement 1.0 44
Bellmouthed outlet 0.2 9
* Figures for expansions or enlargements, contractions and B.S. Tapers apply to velocity head for smaller diameter.
Equate the friction loss equation of Equation 4.3 to the head loss given by Equation 5.1 as
2
LV
h f = f ---- ------
D 2g
L V2 V
2
f -----e -------- = K --------
D 2g 2g
D
L e = K ---- (5.41)
f
Typically an assumed value of f must be used. Usually f = 0.020 is a good first estimate. This should be
checked and another iteration performed if the actual value of friction factor or resitance factor in the
pipe is very different from the assumed value.
L
---- 150 (5.42)
D
where
148
Chapter 5 - File: Chap5new.fm July 6, 2022 Version 6
Therefore minor losses may be ignored for all practical purposes at least as a first approximation pro-
vided the pipeline is long.
5.12 References
ASCE (1975). Pipeline design for hydrocarbon gases and liquids. Report of the Task Committee on
Engineering Practice in the Design of Pipelines, Committee on Pipeline Planning, Pipeline Division,
American Society of Civil Engineers, New York, 1-79.
Skeat, W.O. and Dangerfield, B. J. ed. (1969). Manual of British water engineering practice. (4th ed.).
Cambridge, Published for the Institution of Water Engineers by Heffer.
149
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
This Chapter deals with pipe problems in terms of simple single pipelines. Simple pipe problems
involve the analysis or design of a single pipeline with one diameter. It is assumed that one of three val-
ues is unknown for the pipe either
• head loss h f occurring along the pipe connecting two reservoirs (or z 1 – z 2 where z 1 and
z 2 are the elevations of the upstream and downstream reservoirs respectively)
• discharge Q (or flow) in the pipe
• diameter D of the pipe
The continuity and energy equations (with a pipe friction loss method) are used to solve simple pipe
problems. Steady flow is assumed such that Q in = Q out
where
Pipe friction is often the dominant loss considered. Both minor losses due to fittings and the velocity
head are usually ignored. This Chapter does consider problems that both ignore and consider minor
losses.
There are six variables associated with solving simple pipe problems including
Usually the pipe length, roughness height and kinematic viscosity (L and are given for a simple
pipe problem.
The first two of the simple pipe problems mentioned above are referred to as analysis problems where
an existing or assumed pipeline of known diameter is being considered and the unknown to be solved
for is either h f or Q. In the unknown head loss h f problem the solution is determined explicitly. The
Reynolds number and the relative roughness are determined and in turn the Darcy – Weisbach friction
factor or resistance factor are determined directly. For the computation of the discharge Q in a single
1. © Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, The University of Adelaide, Ade-
laide, Australia. Part of the book entitled Water Distribution Systems Engineering.
150
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
pipeline there are two approaches — an explicit approach based on an assumed turbulent flow regime
type and a trial and error approach for the case where minor losses are considered. Analytic or explicit
expressions are derived in this Chapter for three cases of different types of turbulent flow regime includ-
ing
Solve for the head loss h f as shown in Figure 6.1 This is an analysis problem and is straight forward
where the head loss h f (or difference between the two reservoirs) are solved for directly. Because the
solution technique is explicit, it is possible to easily incorporate minor losses in the computation.
Figure 6.1 Solving for head loss (assuming minor losses are negligible)
Use the continuity equation, the energy equation and the Darcy – Weisbach head loss equation to solve
for the unknown head loss. An assumption of steady state flow is made such that
Q in = Q out
2 2 2
p V p V LV
z 1 + -----1- + ------1 = z 2 + -----2- + ------2 + f ---- ------ + h L (6.1)
2g 2g D 2g
At the surfaces of the reservoirs, the velocities are V1 = V2 = 0, and the pressures at the
water surfaces are p1 = p2 = 0.0 and thus it follows that
2
LV
z 1 = z 2 + f ---- -------- + h L (6.2)
D 2g
151
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
3. Compute the Reynolds number. Recall the Reynolds number from Equation 2.15 for the
known or specified discharge is defined as
VD QD 4Q
Re = -------- = --------------------- = ----------- (6.3)
2 D
D
----------
4
In this case, the Reynolds number is computed immediately from the known Q,Dand .
4. Compute the friction factor or resistance factor. Once the Reynolds number is known, then
along with the relative roughness ---- the Moody diagram (Figure 4.2) or the Swamee and
D
Jain equation (Equation 4.61) are used to compute the Darcy – Weisbach friction factor f.
Q
V = ----
A
6. Compute the unknown head loss: the unknown elevation difference between the reservoirs
from Equation 6.2 is
2
LV
z 1 – z 2 = f ---- -------- + h L (6.4)
D 2g
If minor losses for an entrance and an exit loss are included it follows that
V V 2 2
h L = K entr -----
2g
- + K exit ------
2g
• how high one reservoir needs to be above another in order to deliver a particular flow
• how big a pump needs to be
Example 6.1 For discharge between two reservoirs of Q = 125 L/s of water at 15C through commercial steel pipe
300 m in length and 300 mm diameter. Include minor losses. Assume a sharp edged inlet. (i) Calculate the head loss.
Write the energy equation between a fluid particle on the surface of the two reservoirs as shown in Figure 6.1
2 2 2
p V p V LV
z 1 + -----1- + ------1 = z 2 + -----2- + ------1 + f ---- ------ + h L
2g 2g D2g
2
fL- ------
V + h
D 2g L
z 1 = z 2 + -----
2 2
A = D- =
--------- 0.3 - = 0.07069 m 2
-----------------
4 4
152
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
Q 0.125
V = ---- = ------------------- = 1.77 m/s
A 0.07069
–6
At 15C the kinematic viscosity of water is = 1.140 10 m2/s, thus the Reynolds number for the flow is
VD 1.77 0.3 5
Re = -------- = --------------------------- = 464960 = 4.65 x 10
1.140 10
–6
- = 0.046
--- ------------- = 0.00015
D 300
From the Moody diagram (Figure 4.2) f = 0.015 for the values of Re and /D.
For comparison, the Darcy – Weisbach friction factor or resistance factor from the Swamee and Jain equation
(Equation 4.61) is
0.25 0.25
f = ---------------------------------------------------------
- = ------------------------------------------------------------------------------------------
- = 0.0152
5.74 2 0.046 5.74 2
log 10 ------------ + ------------ log --------------------- + -----------------------------------
-
3.7 D 0.9 10
Re 3.7 300 4.65 x 10 5 0.9
2 2
LV 0.015 300 1.77
h f = f ---- ------ = --------------------------- ------------------ = 2.40 m
D2g 0.3 2 9.81
Thus the resultant pipe friction loss is
h f = 2.40 m
Minor losses for the entrance to pipe and the exit from the pipe are computed from
V- 2 + K -----
V2
hL = K entr -----
2g exit -
2g
1.77 2
hL = 0.5 + 1.0 ------------------ = 0.24 m
2 9.81
Thus the total losses between the two reservoirs (that is also equal to the difference in elevation between the reservoirs)
is
___________________________________________________________________________________
Figure 6.2 Solving for the unknown discharge (assuming minor losses are negligible)
153
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
In the unknown discharge problem for a simple pipe, assume the following are given including h f , L, D,
and .
Again, as for the unknown head loss simple pipe problem, the unknown discharge problem is an analy-
sis problem because the diameter of the pipe is known. Two approaches to the unknown discharge prob-
lem are presented in the following sections. In the first, one of the three turbulent flow regime types
(smooth pipe turbulent, transitional turbulent or fully rough turbulent) is assumed and then an explicit
formula for the discharge is used. Each of the appropriate formulas is derived in this Chapter. A check
then needs to be made as to whether the assumption about the turbulent flow regime was correct. It is
recommended to assume the flow is transitional turbulent flow initially. In the second approach, a trial
and error approach is used if minor losses are included. The Reynolds number cannot be computed
directly. Thus both Q and the Darcy – Weisbach f are unknown. It is necessary to iterate between Q and f
until there is negligible change.
Explicit expressions are derived for the discharge for each of the three turbulent flow regimes — smooth
pipe turbulent flow, transitional turbulent flow and fully rough turbulent flow.
Take the Darcy – Weisbach head loss expression given by Equation 4.3 and rearrange in terms of dis-
charge Q as follows
2 2 2
L Q L Q 16 f LQ 8 f LQ
f = f ---- ------------- = f ---- -------------------------- = ------------------------- = --------- ------------
D 2g A 2 D D
2 2
D 2g D
2 4
gD
2 5
2g ----------
4
2 5
gh f D
f = ------------------------ (6.5)
2
8LQ
5
gh f D
f = -------------------------
- (6.6)
8LQ
1 8LQ
---------- = -------------------------- (6.7)
f gh f D
5
Taking the von Karman expression for smooth pipe turbulent flow friction factor from Equation 4.65
1
---------- = 2.0log 10 Re f – 0.8
f
154
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
1 QD
---------- = 2.0log 10 ------------------- f – 0.8 (6.8)
f D 2
----------
4
Substituting Equation 6.6 and Equation 6.7 into Equation 6.8 to remove the Darcy – Weisbach fluid fric-
tion factor gives
5
8LQ QD gh f D
-------------------------- = 2.0log 10 ------------------- -------------------------- – 0.8
gh f D
5 D 2 8LQ
----------
4
and solving for Q yields an expression for discharge in a pipe when conditions are smooth pipe turbulent
flow as
5 5
gh f D 4 gh f D
- 2.0log 10 ------- ---------------------
Q = ------------------------- - – 0.8
8L D 8L
Simplifying gives
gh f D 16gh D 5
5
- 2.0log 10 ----------------------------
Q = ------------------------- f – 0.8
8L
8L D
2 2
and thus the expression for the unknown discharge in a pipe that has a smooth pipe turbulent flow
regime is
5 3
gh f D 2gh f D
Q = -----------------
- 2.0log 10 --------------------
- – 0.8 (6.9)
8L 2
L
Upon using Equation 6.9, be very careful to make sure that you square the kinematic viscosity value
when carrying out the computations.
Recall from Chapter 4 (Equation 4.71), that the Equation 6.9 is valid for
V f
----------------- 5 (6.10)
8
* Note that units of must be in meters (or feet) and not mm.
155
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
f
------------- Re 5 (6.11)
D 8
* Note that units of and D must be consistent, either both in meters (or feet) or both in mm (or in.).
To apply the explicit solution procedure for Q (where the flow is assumed to be smooth pipe turbulent
flow) the following steps apply
------------ 5 (6.12)
u*
or
V f
--------------- 5 (6.13)
8
5. Recompute discharge if necessary. If the dimensionless number in Equation 6.12 is not less
than 5 then recompute the discharge by using the explicit expression for the appropriate tur-
bulent flow regime.
Example 6.2 For a reservoir – pipe – reservoir system shown in Figure 6.3 with D = 300 mm, L = 500 m, z1 = 50 m,
–6
z2 = 45 m and v = 1.007 10 m2/s (water at 20C ). Assume = 0.003 mm for uPVC pipe. Ignore minor
losses. Based on the value of the roughness height for the pipe assume the type of turbulent flow to be smooth pipe
turbulent.
Answer – (i) Computation of the discharge between the two reservoirs – smooth turbulent pipe flow.
2 2 2
p V1 p V2 LV
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- + f ---- ------
2g 2g D2g
At the surfaces of the reservoirs the velocity is zero or V = 0 and the pressure p = 0 hence it follows that
2
L- ------
V
z 1 + 0 + 0 = z 2 + 0 + 0 + f ---
D2g
Thus it follows that
2
LV
f ---- ------ = z 1 – z 2 = 50 – 45 = 5 m;
D2g
Thus the head loss is
156
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
hf = 5 m
2 2
A =
---------- = 0.3 - = 0.07069 m 2
D
-----------------
4 4
5 3
gh f D 2 gh f D 9.81 5.0 0.3 - 2.0log ------------------------------------------------
5
2 9.81 5.0 0.3
3
- 2.0log 10 --------------------
Q = ------------------------- - – 0.8 = --------------------------------------------- 10 - – 0.8
2 2
8L L 8 500 1.007 10–6 500
A spreadsheet given in Figure 6.3 is presented to implement the solution of this problem. From the spreadsheet, the dis-
charge in the pipeline is
3
Q = 0.153 m s
___________________________________________________________________________________
Answer – (ii) Computation of the Darcy – Weisbach friction factor or resistance factor using the Swamee and
Jain formula (Equation 4.61).
The velocity is
2.164 0.30
Re = VD
-------- = ----------------------------
- = 644569
1.007 10
–6
An estimate of the friction factor using the Swamee and Jain formula (Equation 4.61) is
0.25 0.25
f = ---------------------------------------------------------- = ------------------------------------------------------------------------------------------- = 0.0127
5.74 2 0.003 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ----------------------------------- -
3.7 D 0.9
Re 3.7 300 6.45 x 10 5 0.9
___________________________________________________________________________________
Answer – (iii) Confirmation of the friction factor for smooth pipe turbulent flow from the von Karman for-
mula.
1
-------- = 2.0log 10 Re f – 0.8 (6.14)
f
The use of Goal Seek in Microsoft Excel to solve Equation 6.14 for the Darcy – Weisbach friction factor is shown in
Figure 6.4. To initiate the Goal Seek function set up the spreadsheet shown in Figure 6.4 and then complete the follow-
ing steps
1. Put a guess of the friction factor or resistance factor in cell E9 (for example, 0.02)
2. Go to “Tools” on the Microsoft Excel toolbar and select “Goal Seek ...”
3. Set up the three values in the Goal Seek box shown in Figure 6.4.
4. Click on the OK box
5. Cell E9 changes to 0.01257 representing the solution to friction factor in the von Karman equation in cell E11
(Equation 6.14). Note that the values E9 and E11 change in the Goal Seek box in Figure 6.4 depending on the
actual reference of the cells in the spreadsheet.
Using Goal Seek in Microsoft Excel to solve for f in Equation 6.14 gives
f = 0.0126
157
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
Figure 6.3 Spreadsheet for computation of smooth pipe turbulent flow (unknown Q) by explicit formula
Figure 6.4 Spreadsheet for using Goal Seek in Microsoft Excel to compute smooth pipe friction factor
This confirms the value of the Darcy – Weisbach equation from the Swamee and Jain equation (Equation 4.61). The
computations shown in the spreadsheet in Figure 6.3 have been verified by checking the equality in Equation 6.14.
___________________________________________________________________________________
Answer – (iv) Checking that the flow regime is in fact smooth turbulent pipe flow.
0.003
------------- 2.164 0.0126
V f 1000
--------------- = ------------------------------------------------------ = 0.26 5
–6
8 1.007 10 8
158
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
___________________________________________________________________________________
Recalling that rearranging the Darcy – Weisbach head loss equation in terms of discharge from
Equation 6.6 leads to
1 8LQ
---------- = -------------------------- (6.15)
f gh f D
5
Combining Equation 4.76 and Equation 6.15 to eliminate the friction factor f leads to
Re = VD
-------- = QD QD 4Q-
--------- = ------------------- = ----------
A D
2 D
----------
4
Combining the two equations above, simplifying and solving for the discharge gives
gh D
5
– 2.0 2.51 8
f
- log ------------ + ------------------ ----------------------
Q = -------------- -----------------
8 L 10 3.7D 4 3
gh f D
------------------
L
gh f D
5
1.7748
Q = – 2.221 ------------------ log ------------ + ---------------------- (6.16)
L 10 3.7D 3
gh f D
------------------
L
Now using Equation 4.77 to convert Equation 6.16 to a natural logarithm form gives
159
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
gh f D
5
1.7748
Q = – 0.4343*2.221 ------------------ ln ------------ + ----------------------
L 3.7D 3
gh f D
------------------
L
or
gh f D
5
1.7748-
Q = – 0.9646 ------------------ ln ------------ + --------------------- (6.17)
L 3.7D 3
gh f D
-
-----------------
L
Recall from Chapter 4 (Equation 4.81), that the Equation 6.17 is valid for
5 --------------------
f Re- 70 (6.18)
D 8
* Note that units of and D must be consistent, either both in meters (or feet) or both in mm (or in.).
Note the coefficient in Equation 6.17 of – 0.9646 differs from those given by Streeter et al. (1998) of a
value of – 0.955 based on the work by Swamee and Jain (1976) due to the difference in the coefficient
of the Colebrook – White formula.
To apply the explicit solution procedure for Q (where the flow is assumed to be transitional turbulent)
the following steps apply
- 70
5 ----------- (6.19)
u*
or
V f
5 --------------- 70 (6.20)
8
160
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
Example 6.3 For a reservoir – pipe – reservoir system as shown in Figure 6.3 with a roughness height of
–6
= 0.25 mm. Other pertinent quantities are D = 300 mm, L = 500 m, z1 = 50 m, z2 = 45 m, v = 1.007 10 m2/s.
Based on the value of the roughness height for the pipe assume the type of turbulent flow to be transitional turbulent.
Answer – (i) Computation of the discharge between the two reservoirs – transitional turbulent flow.
2 2 2
p V1 p V2 LV
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- + f ---- ------
2g 2g D2g
At the surface of the reservoir the velocity is zero or V = 0 and the pressure p = 0 hence it follows that
2
L- V
z 1 + 0 + 0 = z 2 + 0 + 0 + f --- ------
D2g
Thus it follows that
2
L- V
f --- ------ = z 1 – z 2 = 50 – 45 = 5 m
D2g
Thus the head loss is
hf = 5 m
gh f D
5
1.7748
Q = – 0.9646 ------------------ ln ------------ + ----------------------
L 3.7 D 3
gh f D
------------------
L
Thus
5 –6
5.0 0.3 -ln --------------------- 1.7748 1.007 10
Q = – 0.9646 9.81 0.25 + -------------------------------------------------
-------------------------------------
500 3.7 300 3
9.81 5.0 0.3 -
-------------------------------------
500
3
Q = 0.123 m /s
___________________________________________________________________________________
Answer – (ii) Compute the Darcy – Weisbach friction factor or resistance factorvusing the Swamee and Jain
formula (Equation 4.61).
2 2
A = D- =
--------- 0.3 - = 0.07069 m 2
-----------------
4 4
The velocity is
161
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
VD 1.740 0.30
Re = -------- = ----------------------------- = 519,191
1.007 10
–6
Figure 6.5 Spreadsheet for computation of transitional turbulent flow (unknown Q) by explicit formula
An estimate of the friction factor using the Swamee and Jain formula (Equation 4.61) is
0.25 0.25
f = ---------------------------------------------------------- = ------------------------------------------------------------------------------------------- = 0.0196
5.74 2 0.25 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ----------------------------------- -
3.7 D 0.9
Re 3.7 300 5.18 x 10 5 0.9
___________________________________________________________________________________
Answer – (iii) Computation of the transitional turbulent Darcy – Weisbach friction factor or rsistance factor using
the Colebrook – White formula
1 2.51
-------- = – 2.0 log 10 ------------ + ---------------
f 3.7 D Re f
Using Goal Seek in Microsoft Excel as shown in Figure 6.6 to solve for f in Equation gives
f = 0.0195
Figure 6.6 Spreadsheet for using Goal Seek in Microsoft Excel to compute transitional turbulent friction factor
Thus the value from the Swamee and Jain equation (Equation 4.61) is confirmed by the spreadsheet. The computations
162
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
shown in the spreadsheet in Figure 6.5 have been verified by checking the equality of Equation 6.21.
___________________________________________________________________________________
Answer – (iv) Checking that the flow regime is in fact transitional turbulent pipe flow.
Now check if the discharge is in the transitional turbulent flow regime by computing
___________________________________________________________________________________
6.2.3 Explicit expression for Q assuming fully rough turbulent pipe flow
An explicit expression for the discharge is computed in this section assuming the flow is in the fully
rough turbulent regime. The equation is derived by commencing with Equation 4.83 for the Prandtl –
Nikuradse fluid friction coefficient formula for the friction factor or resistance factor of
1 - = 2.0log ---
D
--------- 10 - + 1.14
f
1
f = -------------------------------------------------------------- (6.21)
2
D
2.0 log 10 ---- + 1.14
Take the Darcy – Weisbach head loss expression given by Equation 4.3 and rearrange in terms of dis-
charge Q to obtain
2 2 2
L Q L Q 16 fLQ 8 f LQ
f = f ---- ------------- = f ---- -------------------------- = ------------------------- = --------- -----------
D 2g A 2 D D
2 2
D 2g D
2 4 2
g D
5
2g ----------
4
2 5
gh f D
Q = ------------------------ (6.22)
8Lf
2
D- + 1.14
gh f D 2.0 log 10 ---
2 5
Q = --------------------------------------------------------------------------------------- (6.23)
8L
Recall from Chapter 4 (Equation 4.92), that the Equation 6.23 is valid for
163
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
Re 200D
------------- (6.24)
f
* Note that units of and D must be consistent, either both in meters (or feet) or both in mm (or in.).
To apply the explicit solution procedure for Q (where the flow is assumed to be fully rough turbulent)
the following steps apply
------------ 70 (6.25)
u*
or
V f
--------------- 70 (6.26)
8
Answer – (i) Computation of the discharge between the two reservoirs – fully rough turbulent flow.
2 2 2
p V1 p V2 LV
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- + f ---- ------
2g 2g D2g
At the surfaces of the reservoirs the velocity is zero or V = 0 and the pressure p = 0 hence it follows that
2
L- ------
V
z 1 + 0 + 0 = z 2 + 0 + 0 + f ---
D2g
Thus it follows that
2
L- V
f --- ------ = z 1 – z 2 = 50 – 45.0 = 5.0 m
D2g
Thus the head loss is
h f = 5.0 m
The fully rough turbulent flow is computed from the analytic expression for the discharge of Equation 6.23 as
164
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
2
D
gh f D 2.0 log 10 ---- + 1.14
2 5
Q = ---------------------------------------------------------------------------------------
8L
2
300
9.81 5.0 0.3 2.0 log 10 --------- + 1.14
2 5
1
Q = ---------------------------------------------------------------------------------------------------------------------
8 500
3
Q = 0.1045 m /s
___________________________________________________________________________________
Answer – (ii) Computation of the Darcy – Weisbach friction factor or resistance factor using the Swamee and
Jain formula (Equation 4.61).
2 2
D 0.3 2
A = ---------- = ------------------ = 0.07069 m
4 4
Q 0.1045
V = ---- = ------------------- = 1.478 m/s
A 0.07069
VD 1.478 0.30
Re = -------- = ----------------------------- = 440475
1.007 10
–6
An estimate of the friction factor using the Swamee and Jain formula (Equation 4.61) is
0.25 0.25
f = ---------------------------------------------------------- = ------------------------------------------------------------------------------------------- = 0.0273
5.74 2 1.0 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ------------------------------------
3.7 D 0.9
Re 3.7 300 4.40 x 10 5 0.9
165
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
Figure 6.7 Spreadsheet for computation of fully rough turbulent flow (unknown Q) by explicit formula
___________________________________________________________________________________
Answer – (iii) Confirmation of the friction factor or resistance factor for fully rough turbulent flow in a pipe
from the Prandtl – Nikuradse formula.
The fully rough turbulent friction factor f is given by Equation 6.21 (Prandtl – Nikuradse formula) as
1 1
f = -------------------------------------------------------------
- = ------------------------------------------------------------------
- = 0.0269
2 2
D 300
2.0 log 10 ---- + 1.14 2.0 log 10 --------- + 1.14
1.0
___________________________________________________________________________________
Answer – (iv) Checking that the flow regime is in fact fully rough turbulent pipe flow.
Now check if the discharge is in the fully rough turbulent flow regime by computing
1.0
------------ 1.478 0.0269
V f 1000
--------------- = ---------------------------------------------------- = 85.1 70
–6
8 1.007 10 8
___________________________________________________________________________________
166
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
The procedure below may also be applied to the unknown discharge problem while ignoring minor
losses. The method then is an alternative to using the explicit equations derived in the previous sections,
however, this approach is less attractive than the explicit formula approach.
Consider a simple pipeline system between two reservoirs that has three minor losses. Write the energy
equation for the system from a point on reservoir 1 to a point on reservoir 2.
2 2 2
p V p V L- V
z 1 + -----1- + ------1 = z 2 + -----2- + ------2 + f --- ------ + h L
2g 2g D 2g
At the surfaces of the reservoirs V1 = V2 = 0.0, and p1 = p2 = 0.0 and thus for say three minor losses in
the single pipeline
2
fL V
z 1 = z 2 + ------ + K 1 + K 2 + K 3 ------
D 2g
Thus
2
fL V
z 1 – z 2 = ------ + K 1 + K 2 + K 3 ------
D 2g
2
fL- + K + K + K -------------------------
Q
z 1 – z 2 = ----- -
D 1 2 3 2 2
D
2g ----------
4
2
8 fL Q
z 1 – z 2 = --------- ------ + K 1 + K 2 + K 3 -------
2 D 4
g D
2 4
g z 1 – z 2 D
Q = -------------------------------------------------------
- (6.27)
fL
8 ------ + K 1 + K 2 + K 3
D
The Reynolds number is also unknown during the iterative process. Write the Reynolds number from
Equation 2.15 in terms of discharge.
VD QD 4Q
Re = -------- = ------------------- = ----------- (6.28)
2 D
D
----------
4
167
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
The steps for applying the trial and error approach for determining an unknown discharge in a simple
pipeline while including minor losses are as follows. A trial and error method is used to iterate between
f and Q and the procedure is
1 D
---------- = 2.0log 10 ---- + 1.14
f
1
f = -------------------------------------------------------------- (6.29)
2
D
2.0 log 10 ---- + 1.14
3. Compute the discharge from Equation 6.27 for the current value of the Darcy – Weisbach
friction factor f.
2 4
g z 1 – z 2 D
Q = -------------------------------------------------------
- (6.30)
fL
8 ------ + K 1 + K 2 + K 3
D
4Q
Re = ----------- (6.31)
D
5. Recompute friction factor. Recompute a revised estimate of the friction factor f ' from the
Swamee and Jain equation (Equation 4.61) or the Moody diagram (Figure 4.2) based on the
improved estimate of Reynolds number and the known value of relative roughness /D.
6. Continue the iterative procedure until convergence. Repeat the procedure (steps 3 to 5)
until there is no appreciable change in Q and f. At this point there should be convergence to
a satisfactory tolerance between f and f’.
It does not take many iterations to converge on an adequate solution. The friction factor f
should only be found to an accuracy of 2 or 3 significant figures (e.g. 0.018 or 0.0183).
Example 6.5 For a reservoir – pipe – reservoir system as shown in Figure 6.9 for pipe with a roughness height of
= 0.25 mm. Other pertinent quantities are D = 300 mm, L = 500 m, z1 = 50 m, z2 = 45 m and
–6
v = 1.007 10 m2/s (water at 20C ).
(i) Compute the discharge taking into account minor losses in the system.
Answer – (i) Computation of discharge between the two reservoirs – minor losses accounted for.
Write the energy equation between the two reservoirs including minor losses
2 2 2
p V1 p V2 fL V
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- + ------ ------ + h L
2g 2g D 2g
168
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
But at the surfaces of the reservoirs p1 = 0.0, V1 = 0.0, p2 = 0.0, V2 = 0.0, and z1 – z2 = 5.0 m and thus it follows that
2 2 2
fL V V V
5.0 = ------ ------ + K entrance ------ + K exit ------
D 2g 2g 2g
Only two minor losses are considered here. It is assumed that the entrance to the pipe is sharp edged ( K entrance = 0.5 )
and at the exit a full velocity head is lost ( K exit = 1.0 ). Thus
2
V fL
5.0 = ------ ------ + 0.5 + 1.0 (6.32)
2g D
2 2 2 2
= Q 16Q - = 16Q ------------- = 1.6211Q
2
V ------ = ------------ ----------------------- (6.33)
2 2 4 2 4 4
A D D D
2
1.6211Q 1 fL
5.0 = ----------------------- ------ ------ + 1.5
D
4 2g D
Substituting for the length and diameter of the pipe and gravitational acceleration gives
2
1.6211Q 1 500
5.0 = ----------------------- ------------------ f --------- + 1.5
0.3 2 9.81 0.3
4
2
5.0 = 10.201Q 1666.7 f + 1.5
5.0 2
-------------------------------------------------------- = Q
10.201 1666.7 f + 1.5
2 0.4901
Q = ---------------------------------------
1666.7 f + 1.5
0.4901
Q= --------------------------------------- (6.34)
1666.7 f + 1.5
Iteration No. 1
Estimate the friction factor or resistance factor for the pipe from Equation 6.29 based on the assumption of fully tur-
bulent flow from the Prandtl – Nikuradse formula gives
1 1
f = -------------------------------------------------------------- = -------------------------------------------------------------------- = 0.0188
2 2
D 300
2.0 log 10 ---- + 1.14 2.0 log 10 ---------- + 1.14
0.25
This is equivalent to the value of friction factor for the flat portion of the Moody diagram (Figure 4.2) for the corre-
sponding relative roughness value.
169
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
0.4901 3
Q= --------------------------------------------------------
- = 0.122 m /s
1666.7 0.0188 + 1.5
2 2
A = D- = 0.3 - = 0.07069 m 2
--------- -----------------
4 4
-------- = ------------------------------
1.726 0.3
Re = VD - = 514201
1.007 10
–6
From the Swamee and Jain equation for the Darcy – Weisbach friction factor from Equation 4.61 it follows that
The next estimate of the discharge for the revised estimate of the friction factor is given from Equation 6.34 as
0.4901 3
Q= --------------------------------------------------------- = 0.1198 m /s
1666.7 0.0196 + 1.5
Q 0.1198
V = ---- = ------------------- = 1.695 m/s
A 0.07069
VD 1.695 0.3
Re = -------- = ------------------------------- = 504965
1.007 10
–6
From the Swamee and Jain equation for the Darcy – Weisbach friction factor from Equation 4.61 is
Thus the friction factor has changed negligibly. Thus the discharge in the pipe taking into account minor losses is
3
Q = 0.120 m /s
This compares with Q = 0.123 m3/s from Example 6.3 where the minor losses were ignored. The difference is negligi-
ble and illustrates the reason that minor losses can usually be neglected.
___________________________________________________________________________________
–6
The kinematic viscosity is v = 1.007 10 m2/s (water at20°C). Discharges and friction factors or
resistance factors are compared in Table 6.1.
Table 6.1 Comparison of discharges (minor losses are neglected unless otherwise noted)
Roughness height Turbulent flow regime Example f Computed
discharge
(mm) (m3/s)
170
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
Table 6.1 Comparison of discharges (minor losses are neglected unless otherwise noted)
0.003 Smooth pipe turbulent Example 6.2 0.0126 0.153
0.25 Transitional turbulent Example 6.3 0.05 0.123
1.0 Fully rough turbulent Example 6.4 0.0269 0.105
0.25 Transitional turbulent Example 6.5 0.06 0.120
plus minor losses
Example 6.6 Determine which pipe carries more discharge in Figure 6.9. Assume that the pipes are or have
Write the energy equation between reservoir 1 and reservoir 2 for pipe [1]
2 2 2
p V p V L 1 V 1
z 1 + -----1- + ------1 = z 2 + -----2- + ------1 + f 1 ---------
- ------------ + h L
2g 2g D 1 2 g
Now, at the surfaces of the reservoirs p 1 = 0.0, V 1 = 0.0, p 2 = 0.0, V 2 = 0.0and thus it follows that
2 2
L 1 V 1 V 1
- ------------ + K i ------------
z 1 – z 2 = f 1 ---------
D 1 2 g i 2g
A unique combination of pipe velocity V[1] and friction factor f[1] satisfy Equation and applies equally to pipes 1, 2
and 3 so that it follows that all pipes have exactly the same discharge.
Q1 = Q2 = Q3
Thus it is concluded that the elevation of the pipe has no bearing on the discharge through each of the three pipes. The
discharge only depends on the elevation difference between the reservoirs and the pipe friction and minor losses.
___________________________________________________________________________________
171
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
Two approaches to the unknown pipe diameter problem are presented in the following sections. In the
first, an explicit formula for the pipe diameter is used. This method is applicable when the minor losses
are negligible. In the second approach, a trial and error approach is used that is applied when minor
losses are included in the analysis. Neither the Reynolds number nor the relative roughness may be com-
puted directly, as the diameter is unknown. Thus both D and the Darcy – Weisbach f are unknown. In the
trial and error approach it is necessary to iterate between D and f until there is negligible change.
For the system in Figure 6.10 write the energy equation between point 1 at the upper reservoir and point
2 on the lower reservoir assuming the minor losses are negligible. From Equation 6.2 it follows that
2
f LV
z 1 = z 2 + ------ ------
D 2g
2
fL Q
z 1 – z 2 = ------ --------------------------
D D
2 2
2g ----------
4
Thus the friction loss is equal to the elevation difference between the two reservoirs
z1 – z2 = h f
2
8 - ------
f L ------
Q-
h f = --------
2 D 4
g D
2
g- h = ------
--------- f L-
2 f 5
8Q D
2
g-h
f - = -------------
------ (6.35)
5 2 f
D 8LQ
The terms on the right – hand side of Equation 6.35 are known while the terms on the left – hand side of
Equation 6.35 are unknown. The diameter could be solved from Equation 6.35 by trial and error or by an
explicit formula as given in the next section.
172
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
For smooth pipe turbulent flow the diameter (Swamee and Jain 1976; Streeter and Wylie 1983) is given
by
Note that in Equation 6.36, the units of meters and seconds must be used for all variables. Assume
smooth pipe turbulent flow.
Example 6.7 For the single pipe in a reservoir – pipe – reservoir system as shown in Figure 6.10 for a pipe with a
roughness height of = 0.003 mm. Other pertinent quantities are Q = 153 L/s, L = 500 m, z1 = 50 m, z2 = 45 m
–6
and v = 1.007 10 m2/s (water at 20C ). Assume smooth pipe turbulent flow is occurring.
Compute the diameter required to carry the specified flow, ignoring minor losses in the system.
Answer – Computation of the diameter of a pipe between the two reservoirs – smooth pipe turbulent flow.
2 2 2
p V1 p V2 LV
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- + f ---- ------
2g 2g D2g
At the surface of the reservoir the velocity is zero or V = 0 and p = 0 hence it follows that
2
L- V
z 1 + 0 + 0 = z 2 + 0 + 0 + f --- ------
D 2g
Thus the head loss is
2
LV
h f = f ---- ------ = z 1 – z 2 = 50 – 45 = 5 m
D2g
3
Q = 0.153 m /s
The diameter is computed from Equation 6.36 for smooth pipe turbulent flow as follows
The result is close (a slight overestimate) to the value used in Example 6.3 of 300 mm diameter pipe that computed the
discharge of 153 L/s using the explicit formula for discharge based on the smooth pipe turbulent flow formula of von
Karman for the Darcy – Weisbach friction factor.
___________________________________________________________________________________
173
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
2 4.75 0.04
1.25 LQ 9.4 L - 5.2
D = 0.66 ---------- + Q ---------- (6.37)
gh f gh
f
Note that in Equation 6.37, the units of meters and seconds must be used for all variables (i.e. in
meters and not mm, L in meters, Q in m3/s, g in m/s2, h f in meters, in m2/s).
Example 6.8 For the single pipe for a reservoir – pipe – reservoir system as shown in Figure 6.10 for pipe with a
roughness height of = 0.25 mm. Other pertinent quantities are Q = 123 L/s, L = 500 m, z1 = 50 m, z2 = 45 m and
–6
v = 1.007 10 m2/s (water at 20C ). Assume transitional turbulent flow. Compute the diameter for the specified
flow ignoring minor losses in the system
Answer – Computation of the diameter of a pipe between the two reservoirs – transitional turbulent flow.
2 2 2
p V1 p V2 L- V
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- + f --- ------
2g 2g D2g
At the surface of the reservoir the velocity is zero or V = 0 and the pressure p = 0 hence it follows that
2
LV
z 1 + 0 + 0 = z 2 + 0 + 0 + f ---- ------
D2g
Thus the head loss is
2
LV
h f = f ---- ------ = z 1 – z 2 = 50 – 45 = 5 m
D2g
Assume the flow is transitional turbulent.
The diameter is computed from Equation 6.37 for transitional turbulent flow is as follows
4.75 0.04
1.25 LQ
2
9.4 L 5.2
D = 0.66 ---------- + Q -----------
gh f gh
f
Note that the roughness height = 0.25 mm has been converted from mm to meters. The result agrees with
Example 6.3 that computed the discharge of 123 L/s for a 300 mm diameter pipe using the explicit formula for dis-
charge based on the transitional turbulent flow formula of Colebrook – White for the Darcy – Weisbach friction factor
or resistance factor.
___________________________________________________________________________________
174
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
2 4.75 0.04
1.25 LQ
D = 0.66 ---------- (6.38)
gh f
Note that in Equation 6.38, that in the units of meters and seconds must be used for all variables (i.e.
in meters and not mm, L in meters, Q in m3/s, g in m/s2 and h f in meters).
Example 6.9 For the single pipe in a reservoir – pipe – reservoir system as shown in Figure 6.10 with a pipe of
roughness height of = 1 mm. Other pertinent quantities are Q = 105 L/s, L = 500 m, z1 = 50 m and z2 = 45 m
(water at 20C ). Assume fully rough turbulent flow.
Compute the diameter for the specified flow, ignoring minor losses in the system.
Answer – Computation of the diameter of a pipe between the two reservoirs – fully rough turbulent flow.
2 2 2
p V1 p V2 L- V
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- + f --- ------
2g 2g D2g
At the surface of the reservoir the velocity is zero or V = 0 and the pressure p = 0 hence it follows that
2
LV
z 1 + 0 + 0 = z 2 + 0 + 0 + f ---- ------
D2g
Thus the head loss is
2
LV
h f = f ---- ------ = z 1 – z 2 = 50 – 45 = 5 m
D2g
Assume the flow is fully rough turbulent.
The diameter is computed from Equation 6.37 for fully rough turbulent flow as follows
4.75 0.04
1.25 LQ
2
D = 0.66 ----------
gh f
2 4.75 0.04
1 1.25 500 0.105
D = 0.66 ------------ ------------------------------ = 0.308 m
1000 9.81 5.0
Note that the roughness height has been converted from mm to m. The result is similar (a slight overestimate) of the
value used in Example 6.3 of 300 mm diameter pipe that computed the discharge as 105 L/s using the explicit formula
for discharge based on the fully rough turbulent flow formula of Prandtl – Nikuradse for the Darcy – Weisbach friction
factor.
___________________________________________________________________________________
For the system in Figure 6.10 write the energy equation between point 1 at the upper reservoir and point
2 on the lower reservoir as shown in Equation 6.1.
175
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
Figure 6.11 Computation of unknown diameter taking into account minor losses
At the surfaces of the reservoirs V1 = V2 = 0, and p1 = p2 = 0.0 and thus for say three minor losses
2
fL V
z 1 = z 2 + ------ + K 1 + K 2 + K 3 ------
D 2g
2
fL Q
z 1 – z 2 = ------ + K 1 + K 2 + K 3 --------------------------
D 2 2
2g D ----------
4
2
8 fL + Q
z 1 – z 2 = --------
- ------ K 1 + K 2 + K 3 -------
2 D 4
g D
2
g 1 fL
---------- z 1 – z 2 = ------- ------ + K 1 + K 2 + K 3
4
D D
2
8Q
2
1 fL g
------- ------ + K 1 + K 2 + K 3 = ---------- z 1 – z 2 (6.39)
4 D 2
D 8Q
2
1 fL g
------- ------ + K = ---------- z 1 – z 2 (6.40)
4 D 2
D 8Q
Consider the Reynolds number. Eliminate the velocity V using the continuity equation of
Q = VA
VD QD 4Q
Re = -------- = ------------------- = ----------- (6.41)
D
2 D
----------
4
176
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
There is only one unknown, the diameter D, in the right – hand side of the Reynolds number equation. In
addition the relative roughness D is also unknown. Thus determination of the Darcy – Weisbach fric-
tion factor or resistance factor in Equation 6.39 is not straightforward.
The procedure for solving for the diameter by trial and error is as follows
Q = VA
2
A = D Q -
---------- = ----------------------
4 V assumed
Thus solving for the diameter based on an assumed velocity of flow gives
D = 4Q -
-------------------------- (6.42)
V assumed
As an alternative the explicit formula developed in the previous section (Equation 6.37) is
used as an estimate, by taking say 85% of h f to take into account the effect of the minor
losses. A flow regime of transitional turbulent flow is assumed.
3. Compute the Reynolds number. Based on the current estimate of the pipe diameter D solve
for the Reynolds number from Equation 6.41.
4Q
Re = ----------- (6.43)
D
---- (6.44)
D
5. Compute the friction factor. Either use the Moody diagram (Figure 4.2) to determine the
Darcy – Weisbach friction factor or solve for the friction factor from the Swamee and Jain
equation (Equation 4.61).
6. Compute the unknown diameter. Solve by trial and error (or the Goal Seek function in
Microsoft Excel) for the diameter D from Equation 6.40. All terms on the right – hand side
are known.
2
1 fL g
------- ------ + K = ---------- z 1 – z 2 (6.45)
4 D 2
D 8Q
7. Continue the iterative procedure until convergence. Repeat steps 3 to 6. When the value of
f does not change in the first two significant figures, all equations are satisfied and the prob-
lem for the unknown diameter is solved.
6.4.5 Computing the diameter directly when minor losses are included
Alternatively the unknown diameter D is determined directly. Recall the Swamee and Jain equation
from Equation 4.61 with the Reynolds number substituted as
177
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
0.25
f = --------------------------------------------------------------------- (6.46)
2
5.74
log 10 ------------ + -----------------------
3.7D 4Q 0.9
-----------
D
NML 2
1 0.25 L g
------- --------------------------------------------------------------------- ---- + K = ---------- z 1 – z 2 (6.47)
D
4 2D k = 1 8Q
2
5.74
log 10 ------------ + ---------------------- -
3.7D 4Q 0.9
----------
-
D
where NML = number of minor losses in the system. Equation 6.47 can be solved using Goal Seek in
Microsoft Excel.
Example 6.10 Consider a commercial steel pipe needed to convey 200 L/s water at 20C a distance of 5 km with a
head drop of 3.77 m. The pipeline connects two reservoirs, has a re – entrant entrance (K = 0.8), a submerged outlet,
four standard elbows (K = 0.9), and a globe valve (K = 10). Include minor losses in the computation.
What is the diameter of the pipe required to covey the specified flow.
Answer – Computation of the diameter of a pipe between the two reservoirs – considering minor losses.
For commercial steel pipe use a roughness height = 0.046 mm.
2 2
p V p V LV
2
z 1 + -----1 + ------1 = z 2 + -----2 + ------2 + f ---- ------ + h L
2g 2g D2g
But at the surfaces of the reservoirs p1 = 0.0, V1 = 0.0, p2 = 0.0, V2 = 0.0, and z1 – z2 = 3.77 m and thus it follows that
2 2
LV V
3.77 = f ---- ------ + ------ K entr + K exit + 4 K elbow + K valve (6.48)
D2g 2g
2
1 fL g
------- ------ + K = ---------- z 1 – z 2
4
D D
2
8Q
Thus
2
1 f 5000 9.81
------- --------------------- + 15.4 = --------------------- 3.77 = 1140.7
4 D 2
D 8 0.2
1 5000 f
------- ---------------- + 15.4 = 1140.7 (6.49)
4 D
D
Iteration no. 1
Estimate the diameter of the pipe from Equation 6.42 based on a velocity of 0.6 m/s as
178
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
4Q- = 4 0.2 - =
D = ------- --------------- 0.4244 = 0.651 m
V 0.6
2 2
A = D- = 0.651 - = 0.3329 m 2
--------- -----------------------
4 4
0.601 0.651 =
Re = VD
5
-------- = ------------------------------------
- 388500 = 3.89 10
1.007 10
–6
From the Swamee and Jain equation for the Darcy – Weisbach friction factor or resistance factor from Equation 4.61 is
0.25 0.25
f = ---------------------------------------------------------- = ----------------------------------------------------------------------------------- = 0.0146
5.74 2 0.046 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ----------------------------
3.7 D 0.9 3.7 651 0.9
Re 388500
1 5000 f
------- ---------------- + 15.4 = 1140.7
4 D
D
1 5000 0.0146
------- --------------------------------- + 15.4 = 1140.7
4 D
D
Using Goal Seek in Microsoft Excel to solve the above equation results in D = 0.591 m as shown in Figure 6.12. The
steps for using Goal Seek are given in Example 6.2.
Figure 6.12 Spreadsheet for computation of diameter of a pipe by Goal Seek for a fixed friction factor value — iteration 1
2 2
A = D- = 0.591 - = 0.2743 m 2
--------- -----------------------
4 4
Q 0.2
V = ---- = ---------------- = 0.729 m/s
A 0.2743
The Reynolds number from Equation 6.43 is
VD 0.729 0.591 5
Re = -------- = ------------------------------------- = 427800 = 4.28 10
1.007 10
–6
From the Swamee and Jain equation for the Darcy – Weisbach friction factor from Equation 4.61 it follows that:
0.25 0.25
f = ---------------------------------------------------------- = ----------------------------------------------------------------------------------- = 0.0145
5.74 2 0.046 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ----------------------------
3.7 D 0.9 3.7 591 0.9
Re 427800
Note the friction factor has only changed very slightly — thus no further iterations are necessary. The final estimate of
179
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
Figure 6.13 Spreadsheet for computation of diameter of a pipe by Goal Seek for a fixed friction factor value — iteration 2
As an alternative to the step – by – step iterative solution procedure as described above it is possible to solve directly for
D as shown in Equation 6.47
1- ------------------------------------------------------------
1.325 L- + K = ---------
2
g- z – z
------
4
- ---
2 D 2 1 2
D 8Q
5.74
ln ------------ + ---------------------- -
3.7 D ---------- 4Q 0.9
-
D
1- -----------------------------------------------------------------------------------------------------------
1.325
------ - 5000
------------ + 15.4 = 1140.7 (6.50)
D
4 2 D
0.046 5.74
ln ----------------------------- + ----------------------------------------------------
3.7 D 1000 4 0.2 0.9
-----------------------------------------
–6
D 1.007 10
Equation 6.50 may be solved directly for D using Goal Seek in Microsoft Excel as shown in Figure 6.14. The steps for
using Goal Seek are given in Example 6.2.
180
Chapter 6 - File: Chap6new_b.fm July 6, 2022 Version 6
Figure 6.14 Spreadsheet for direct computation of diameter of a pipe by Goal Seek
___________________________________________________________________________________
6.5 References
Streeter, V.L. and Wylie, E.B. (1983). Fluid mechanics. 1st SI Edition. McGraw – Hill.
Streeter, V.L., Wylie, E.B. and Bedford, K. (1998). Fluid mechanics. 9th Edition. McGraw–Hill.
Swamee, P. K., and Jain, A.K. (1976). “Explicit equations for pipe-flow problems.” Journal of the
Hydraulics Division, 102(5), 657-664.
181
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
This Chapter introduces the concepts of flow in simple pipe systems. The topics covered here mainly
deal with the analysis of pipes in series and pipes in parallel. The concept of an equivalent uniform main
(EUM) is introduced. An EUM may be used to replace pipes in series or in parallel such that the equiva-
lent single pipe has the same flow characteristics for analysis of steady flow situations. An EUM is use-
ful in computer modeling when a parallel pipe is added into an existing system, for example. Many
numerical examples are given in this Chapter using the formulas developed. Both the Darcy – Weisbach
head loss equation and the Hazen – Williams equation formulations are considered in the derivations. In
addition a three reservoir problem is also analyzed in this Chapter.
Now consider exactly two pipes in series as shown in Figure 7.1. Multiple series pipes will be consid-
ered in Section 7.2.2.
1. © Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, The University of Adelaide, Ade-
laide, Australia. Part of the book entitled Water Distribution Systems Engineering.
182
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
In Figure 7.1, the diameter of the upstream pipe is larger and thus by continuity, the velocity will be
slower in the upstream pipe compared to the downstream pipe. In turn, the losses per unit length in the
upstream pipe will be smaller and hence both the EGL and HGL for the upstream pipe have a smaller
slope (losses are proportional to the square of the velocity for the Darcy – Weisbach formula and
inversely proportional to the diameter). The vertical separation between the HGL and the EGL (the
velocity head) is smaller in the upstream pipe because the velocity is lower.
The basic equations for the series system in Figure 7.1 for the flow and head loss are
Q1 = Q2 (7.1)
Now, the series pipeline system in Figure 7.1 is replaced by an “equivalent uniform main” (EUM). Let
the EUM be of diameter DE, length LE and flow velocity VE such that the flow QE in the EUM is
2
D
QE = V E AE = V E ----------E- (7.3)
4
The flow or discharge must be the same in both of the series pipes (see Equation 7.1) and also in the
EUM and thus
2 2 2
D D D
Q 1 = V 1 ----------1 = Q 2 = V 2 ----------2 = Q E = V E ----------E- (7.4)
4 4 4
Hence solving for both V1 and V2 in terms of VE from Equation 7.4 gives
2
DE
V 1 = -------V (7.5)
2 E
D1
and
2
DE
V2 = -------V (7.6)
2 E
D2
The total head loss along the series pipeline made up of two pipes is the same as the head loss in the
EUM. From Equation 7.2, it follows that
hf = hf + hf (7.7)
E 1 2
2
L V L V
fE = f 1 ------1- ------1- + f 2 ------2- -----2 (7.8)
D 1 2g D 2 2g
and thus
2 2
LE V E L V L V
f E ------- ------- = f 1 ------1- ------1- + f 2 ------2- ---- (7.9)
D E 2g D 1 2g D2 2
183
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
Substituting for the velocities on the right – hand side of Equation 7.9 from Equation 7.5 and
Equation 7.6 gives
2 2
LE V E L D E 4 V E L D E 4 V
f E ------- ------- = f 1 ------1- ------- ------- + f 2 ------2- ------- ---- (7.10)
D E 2g
D 1 D 1 2g D2 D2 2
Canceling out the velocity head VE2/2g in all terms in Equation 7.10 and rearranging gives
LE L L
- = f 1 ------1- + f 2 -----2
f E --------- (7.11)
5 5
DE D1 D
Thus the equivalent diameter DE is found for a chosen length of pipe LE (usually taken as the sum of the
two series pipeline lengths L1 + L2) and a chosen friction factor or resistance factor f E as
5 f E LE
D E = ---------------------------------- (7.12)
L L
f 1 ------1- + f 2 ------2-
5 5
D1 D2
or
f E LE 0.2
--------------------------------
DE = f 1 L 1 f 2 L 2 (7.13)
------------- + -------------
D5 D2
5
1
Note that the chosen friction factor f E for the EUM is arbitrary but is usually selected based on the
likely friction factors in the two series pipelines.
Alternatively to Equation 7.13, the equivalent length of pipe LE (usually not equal to L1 + L2) of a cho-
sen diameter DE and a chosen friction factor f E is found from rearrangement of Equation 7.11 as
5
D E L1 L2
L E = ------- f 1 ------5- + f 2 ------5- (7.14)
f E D D 2
1
The length of the EUM varies with flow because in actual fact the friction factor or resistance factor
depends on Reynolds number. Examples demonstrating both the computation of (1) the diameter of the
EUM and (2) the length of the EUM of a specified diameter are now given.
184
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
Example 7.1 Consider two pipes in series – one with length 500 m, diameter 500 mm and roughness height
0.25 mm (pipe 1), the other with length 700 m, diameter 300 mm, roughness height 0.10 mm (pipe 2).
(i) Calculate the diameter of an EUM for a 1200 m long pipe. Select a suitable friction factor or resistance factor for
the EUM.
(ii) Compute the head loss in each system for a flow of 200 L/s.
Answer – (i) Computation of the diameter of an equivalent uniform main – pipes in series/Darcy – Weisbach.
Assume a velocity of 1.5 m/s – now compute the friction factor in each pipe. Assume a kinematic viscosity of
–6 2
1.140 10 m /s corresponding to a water temperature of 15 degrees Celsius.
The Reynolds numbers for pipe 1 and pipe 2 for the assumed velocity of 1.5 m/s are:
V 2 D2 1.5 0.3
Re 2 = -------------- = --------------------------- = 395000
1.140 10
–6
The corresponding Darcy – Weisbach friction factors using the Swamee and Jain equation (Equation 4.61) are
0.25 0.25
f 1 = ------------------------------------------------------------- = ----------------------------------------------------------------------------------- = 0.0176
5.74
2 0.25 5.74 2
log 10 -------------- + ------------ log 10 --------------------- + ----------------------------
3.7 D 3.7 500 0.9
1 Re 1
0.9 658000
0.25 0.25
f 2 = ------------------------------------------------------------
- = ----------------------------------------------------------------------------------
- = 0.0169
5.74
2 0.10
--------------------- 5.74 2
log 10 -------------- + ------------ log 10 + ----------------------------
3.7 300 395000 0.9
3.7 D 2 Re 20.9
Choose the EUM friction factor f E as 0.0170 and the EUM length L E as 1200 m (L1 + L2).
Note that the EUM diameter lies between the diameters of pipe 1 and pipe 2 of 500 mm and 300 mm respectively.
___________________________________________________________________________________
Answer – (ii) The head loss for 200 L/s in the series system will depend on the velocity.
2
D 0.5
2
2
A 1 = ---------1- = ------------------ = 0.1964 m
4 4
2
D 0.3
2
2
A 2 = ---------2- = ------------------ = 0.07069 m
4 4
2
D 2
A E = ----------E- = 0.331 - = 0.08595 m 2
-----------------------
4 4
Q- = ---------------
0.2 - = 1.018 m/s
V 1 = -----
A1 0.1964
Q- = ------------------
V 2 = ----- 0.2 - = 2.829 m/s
A2 0.07069
185
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
Q 0.2
V E = ------- = ------------------- = 2.327 m/s
AE 0.08595
2 2 2 2
L V L V 500 1.018 700 2.829
h f = f 1 ------1- ------1- + f 2 ------2- ------2- = 0.0176 --------- -------------------- + 0.0169 --------- --------------------
D1 2 g D2 2 g 0.5 2 9.81 0.3 2 9.81
It is clear that the majority of the head loss is occurring in pipe 2 of diameter 300 mm.
2 2
L V 1200 2.327
hf = f E ------E- ------E- = 0.0170 ------------- -------------------- = 17.02 m
E DE 2 g 0.331 2 9.81
Thus the head loss is the same through the series system and the EUM, as expected.
Example 7.2 Consider two pipes in series – one with length 500 m, diameter 500 mm and roughness height 0.25
mm (pipe 1), the other with length 700 m, diameter 300 mm, roughness height 0.10 mm (pipe 2).
(i) Calculate the length of an EUM for a specified diameter of 400 mm.
(ii) Check the head loss for a flow of 200 L/s.
Answer – (i) Computation of the length of an equivalent uniform main – pipes in series/Darcy – Weisbach.
Use the friction factors or resistance factors computed in Example 7.1 where f 1 = 0.0176 and f 2 = 0.0169.
The EUM length of pipe from Equation 7.14 for a diameter DE of 400 mm and a friction factor fE of 0.0170 is
5
D L L 5
L E = ------E- f 1 ------1- + f 2 ------2- = --------------
0.4 0.0176 --------------
500 + 0.0169 --------------
700 = 3102 m
f E D 5 5
0.017 5 5
1 D2 0.5 0.3
___________________________________________________________________________________
Answer – (ii) Checking the head loss for the EUM at a flow of 200 L/s.
Note that the head loss for the series system from Example 7.1 is 17.02 m.
2
D 0.4
2
2
A E = ----------E- = ------------------ = 0.1257 m
4 4
Q- = ---------------
0.2 - = 1.592 m/s
V E = ------
AE 0.1257
The head loss for the EUM of diameter 400 mm and length of 3102 m is
2 2
L V 3102 1.592
h f = f E ------E- ------E- = 0.0170 ------------ -------------------- = 17.02 m
DE 2 g 0.4 2 9.81
___________________________________________________________________________________
Q 1 = Q 2 = = Q NP = Q E (7.15)
The total head loss along the series pipeline made up of two pipes is
186
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
fE = hf + hf + + hf (7.16)
1 2 N
Using a similar procedure as that for two pipes in series as outlined in Section 7.2.1, the equivalent
diameter DE is found for a given length of pipe LE (usually taken as L E = L 1 + L 1 + + L NP ) and a
chosen friction factor or resistance factor f E as
f E LE 0.
------------------------------------------------------------------------
-
DE = f 1 L1 f 2 L2 f NP L NP (7.17)
------------- + ------------- + + -------------------- -
D5 D
5
D
5
1 2 NP
5
D E L1 L2 L NP
E = ------- f 1 ------5- + f 2 ------5- + + f NP ----------
- (7.18)
f E D D D
5
1 2 NP
7.2.3 Two Hazen – Williams pipes in series (for both SI units and US cus-
tomary units)
The total head loss for the EUM and along the series pipeline of pipes 1 and 2 using Equation 7.7 and
the Hazen – Williams equation for head loss in SI units from Equation 4.104 is
LE L1 1.852 6.8214 L 2
= 6.8214 = 6.8214
1.852 1.852
hf ---------------- --------------
-V ---------------- --------------
-V + ---------------- --------------- V 2 (7.19)
E 1.852 1.167 E 1.852 1.167 1 1.852 1.167
CE DE C1 D1 C2 D2
In Equation 7.19, the SI units form of the Hazen – Williams equation has been used. The constant of
6.8214 actually cancels out in all terms so it would not have mattered if the US customary units form of
the equation had been used instead — the result would have been identical.
3.704
1.852 DE 1.852
V1 = --------------
-V (7.20)
3.704 E
D1
and
3.704
1.852 DE 1.852
V2 = --------------
-V (7.21)
3.704 E
D2
Substituting Equation 7.20 and Equation 7.21 and cancelling out common terms in Equation 7.19 gives
187
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
Note that the coefficient of 6.8214 associated with the SI units version of the Hazen – Williams has can-
celled out throughout the equation. As a result, the following now applies to both sets of units — both SI
units and US customary units.
LE L1 L2
------------------------------
- = ------------------------------
- + ------------------------------
-
1.852 4.871 4.871 1.852 4.871 1.852
C E DE D1 C 1 D2 C 2
Inverting gives
1.852 4.871
C E DE 1
------------------------------- = --------------------------------------------------------------------- (7.22)
LE L1 L2
------------------------------- + ------------------------------ -
4.871 1.852 4.871 1.852
D1 C 1 D2 C 2
Thus solving for the equivalent diameter DE of a pipe of specified length LE (logically taken as L1 + L2)
gives
4.871 LE 1
DE = --------------
- ---------------------------------------------------------------------
CE
1.852 L 1 L2
------------------------------
- + ------------------------------ -
4.871 1.852 4.871 1.852
D1 C 1 D2 C 2
or
1
------------
-
L 4.871
1
DE = --------------
E
- --------------------------------------------------------------------- (7.23)
1.852 L L2
CE 1
------------------------------
- + ------------------------------ -
4.871 1.852
D1 C 1
4.871 1.852
D2 C 2
Alternatively, the length LE of an equivalent uniform main of specified diameter DE from rearrangement
of Equation 7.22 is
1.852 4.871 L1 L2
LE = C E DE ------------------------------
- + ------------------------------
- (7.24)
4.871 1.852 4.871 1.852
D1 C 1 D2 C 2
188
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
Example 7.3 Consider two pipes in series – one with length 500 m, diameter 500 mm and Hazen – Williams C of
131, the other with length 700 m, diameter 300 mm and Hazen – Williams C of 133. The values of C1 and C2 have
been computed to correspond to the friction factors or resistance factors in Example 7.1 based on Equation 4.115 in
Chapter 4.
Answer – (i) Computation of the diameter of an equivalent uniform main – pipes in series/Hazen – Williams.
Select the Hazen – Williams C value of 132 for the EUM and the EUM length as 1200 m (L1 + L2).
1
------------
-
L 4.871
E 1
DE = -------------- ------------------------------------------------------------------
1.852 L1 L2
CE ----------------------------- + -----------------------------
4.871 1.852
D1 C 1
4.871 1.852
D2 C 2
1
------------
4.871
-
1200 1
DE = ----------------------- -
- ---------------------------------------------------------------------------------------------------- = 332 mm
500
132 1.852 ---------------------------------------------- 700
- + -----------------------------------------------
4.871 1.852 4.871 1.852
0.5 131 0.3 133
Note that in comparison the EUM in Example 7.1 for the Darcy – Weisbach equation gave a diameter of 331 mm.
_________________________________________________________________________________
Answer – (ii) Confirm the head loss in the EUM.
2
A 1 = 0.1964 m
2
A 2 = 0.07069 m
2
D 0.332
2
2
A E = ----------E- = ------------------------ = 0.08657 m
4 4
The corresponding velocities are (repeated from Example 7.1 for completeness)
Q- = ---------------
V 1 = ----- 0.2 - = 1.018 m/s
A1 0.1964
Q- = ------------------
0.2 - = 2.829 m/s
V 2 = -----
A2 0.07069
Q- = ------------------
0.2 - = 2.310 m/s
V E = ------
AE 0.08657
189
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
LE
= 6.8214
1.852 6.8214 - ---------------------------
1200 - 2.310 1.852 = 16.52 m
hf ---------------- --------------V = -----------------------
E 1.852 1.167 E 1.852 1.167
CE DE 132 0.332
Thus the head loss is the same through the series system and the EUM, as expected. Note though that the head loss is
less than that calculated by the Darcy – Weisbach equation of 17.02 m as computed in Example 7.1.
___________________________________________________________________________________
7.2.4 Multiple Hazen – Williams pipes in series (for both SI units and US
customary units)
The equations for the two pipe case in Section 7.2.3 can be generalized to NP pipes in series to give the
equivalent diameter DE for a given length of pipe LE (usually taken as L E = L 1 + L 2 + + L NP ) and a
chosen equivalent Hazen – Williams coefficient of C E as
------------
1
-
4.871
LE
DE = -------------------------------------------------------------------------------------------------------------------------------------------
- (7.25)
1.852 L1 L2 L NP
CE ------------------------------- + ------------------------------ - + + ------------------------------ -
4.871 1.852 4.871 1.852 4.871 1.852
D1 C 1 D2 C 2 D NP C NP
Alternatively, the length LE of an equivalent uniform main of specified diameter DE from rearrangement
of Equation 7.25 is
1.852 4.871 L1 L2 L NP
LE = C E DE ------------------------------ - + + ------------------------------
- + ------------------------------ - (7.26)
4.871 1.852 4.871 1.852 4.871 1.852
D1 C 1 D2 C 2 D NP C NP
7.3.1 Darcy – Weisbach head loss equation for two pipes in parallel
Consider two pipes in parallel with diameters D1 and D2; lengths L1 and L2; and roughness heights 1 and
2.
190
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
Let the “equivalent uniform main” EUM be of diameter DE, length LE and flow velocity VE such that
2
D
Q E = V E A E = V E ----------E- = Q 3 = Q 4 (7.27)
4
The head loss between nodes A and B in Figure 7.2 must be the same for each pipe in parallel and for
the equivalent uniform main thus
hf = hf = hf (7.28)
1 2 E
2 2
L V L V LE V
= f 1 ------1- ------1- = h f = f 2 ------2- ------2- = h f = f E ------- -- (7.29)
1 D 1 2g 2 D 2 2g E DE 2
D1 f E L E
V 1 = V E ------------
- ------------- (7.30)
f 1 L1 D E
and
D2 f E L E
V 2 = V E ------------
- ------------- (7.31)
f 2 L2 D E
The total flow in the EUM must be the sum of the individual flows in the two parallel pipes
Q E = Q1 + Q2 (7.32)
Now
2 2 2
D D D
V E ----------E- = V 1 ----------1 + V 2 ----------2 (7.33)
4 4 4
Cancelling the 4 in allterms and substituting Equation 7.30 and Equation 7.31 into Equation 7.33
leads to
2 2 2
V E D E = V 1 D1 + V 2 D2 (7.34)
2 2 D1 f E L E 2 D2 f E L
E DE = V E D 1 ------------
f 1 L1 D E
- -------------- + V E D 2 ------------
f 2 L2 D E
- ---------
5 5
2 DE D1 D2
DE -------------
- = ------------
- + -----------
f E LE f 1 L1 f 2L
and finally
191
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
5 5 5
DE D1 D2
-------------
- = - + -----------
------------ (7.35)
f E LE f 1 L1 f 2L
5 5
5 D1 D2
D E = f E L E ------------
- + ------------
- (7.36)
f 1 L1 f 2 L2
or
5 5
0.2 0.2 D1 D2
DE = f E LE ------------- + ------------- (7.37)
f 1 L1 f 2 L2
EQUIVALENT DIAMETER FOR TWO PARALLEL PIPES (DARCY –
WEISBACH)
Alternatively, the equivalent length LE of a pipe of diameter DE is found from Equation 7.36 as
5
DE
L E = -------------------------------------------------------- (7.38)
5 5
D1 D2
f E ------------- + -------------
f 1 L1 f 2 L2
Example 7.4 Consider two pipes in parallel – one with length 500 m, diameter 500 mm and roughness height
0.25 mm, the other with length 500 m, diameter 300 mm, roughness height 0.10 mm.
(i) Calculate the diameter of an EUM for a 500 m long pipe. Select a suitable friction factor or resistance factor for
the EUM.
(ii) Confirm the head loss for the EUM.
Answer – (i) Computation of the diameter of an equivalent uniform main – pipes in parallel/Darcy – Weisbach.
Assume a velocity of 1.5 m/s in pipe 1 – now compute the friction factor in each pipe. Assume a kinematic viscosity
–6 2
of 1.140 10 m /s .
VD 1.5 0.5
Re 1 = -------- = --------------------------- = 658000
1.140 10
–6
VD 1.5 0.3
Re 2 = -------- = --------------------------- = 395000
1.140 10
–6
The Darcy – Weisbach friction factors using the Swamee and Jain equation (Equation 4.61) are
0.25 0.25
f 1 = ---------------------------------------------------------
- = ----------------------------------------------------------------------------------
- = 0.0176
5.74 2 0.25 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ----------------------------
3.7 D 0.9 3.7 500 0.9
Re 658000
0.25 0.25
f 2 = ---------------------------------------------------------
- = ----------------------------------------------------------------------------------
- = 0.0169
5.74 2 0.10 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ----------------------------
3.7 D 0.9 3.7 300 395000 0.9
Re
192
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
2
D 2
0.5 - = 0.1964 m 2
A 1 = ---------1- = -----------------
4 4
3
Q 1 = V 1 A 1 = 1.5 0.1964 = 0.2946 m /s
2 2
L V 500 1.5
h f = f 1 ------1- ------1- = 0.0176 --------- ------------------ = 2.018 m
D1 2 g 0.5 2 9.81
The velocity for pipe 2 to give exactly the same head loss as pipe 1 is
2
D 2
0.3 - = 0.07069 m 2
A 2 = ---------2- = -----------------
4 4
3
Q 2 = V 2 A 2 = 1.186 0.07069 = 0.0838 m /s
3
Q E = Q 1 + Q 2 = 0.2946 + 0.0838 = 0.3784 m /s
Select the EUM friction factor as 0.0170 and the EUM length as 500 m ( L E = L 1 = L 2 ). Thus
f E = 0.0170
and
L E = 500 m
The EUM diameter for the two pipes in parallel from Equation 7.37 is
5 5 0.4 0.
0.2
5 5
0.2 0.2 D1 D2 0.2 0.5 0.3
D E = f E L E ------------ + ------------ = 0.0170 500 ------------------------------ + ------------------------------
f 1 L1 f 2 L2 0.0176 500 0.0169 500
D E = 549 mm
___________________________________________________________________________________
Answer – (ii) Confirmation of the head loss in the EUM.
Check the head loss for the EUM at a flow of 378.4 L/s (the combined flow for both pipes 1 and 2) as computed in part
(i).
First compute the area and velocity for the EUM of diameter 549 mm.
2
D 0.549
2
2
A E = ----------E- = ------------------------ = 0.2367 m
4 4
Q 0.3784
V E = ------E- = ---------------- = 1.598 m/s
AE 0.2367
The head loss for the EUM of diameter 549 mm and length of 500 m is
2 2
L V 500 1.598
h f = f E ------E- ------E- = 0.0170 ------------- -------------------- = 2.015 m
DE 2 g 0.549 2 9.81
This value agrees with the result of the head loss in pipe 1 of 2.018 m as computed in part (i).
193
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
___________________________________________________________________________________
7.3.2 Darcy – Weisbach head loss equation for multiple pipes in parallel
Consider multiple pipes (up to NP) in parallel. The head loss between nodes A and B in Figure 7.2 must
be the same for each pipe in parallel and for the equivalent uniform main thus
f1 = hf = = hf = hf (7.39)
2 NP
The total flow in the EUM must be the sum of the individual flows in the multiple parallel pipes
Q E = Q 1 + Q 2 + + Q NP (7.40)
5 5 5
5 D1 D2 D NP
E = f E L E ------------- + ------------- + + --------------------- (7.41)
f 1 L1 f 2 L2 f NP L NP
or
5 5 5
0.2 0.2 D1 D2 D NP
E = f E L E ------------ - + + --------------------
- + ------------ - (7.42)
f 1 L1 f 2 L2 f NP L NP
EQUIVALENT DIAMETER FOR MULTIPLE PARALLEL PIPES (DARCY –
WEISBACH)
Alternatively, the equivalent length LE of a pipe of diameter DE is found by rearranging Equation 7.42 as
5
DE
E = ---------------------------------------------------------------------------------------------------- (7.43)
5 5 5
D1 D2 D NP
f E ------------- + ------------- + + ---------------------
f 1 L1 f 2 L2 f NP L NP
7.3.3 Hazen – Williams head loss equation for pipes in parallel (for both SI
units and US customary units)
The head loss along each parallel pipe must be the same.
hf = hf = hf (7.44)
E 1 2
194
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
Again in Equation 7.45, the SI units form of the Hazen – Williams equation has been used. As discussed
earlier for the case of pipes in series, the constant of 6.8214 actually cancels out in all terms so it would
not have mattered if the US customary units form of the equation had been used instead — the result
would have been identical.
LE
1 - -------------- 1.852 L1
1 - -------------- 1.852 L2
1 - -------------- 1.852
-------------- -V E = -------------- -V 1 = -------------- -V (7.46)
1.852 1.167 1.852 1.167 1.852 1.167 2
C E DE C1 D1 C2 D2
1.852 1.167
1.852 C 1 D1 LE 1.852
V1 = ------------------------------
- ------------------------------
-V
L1 1.852 1.167 E
C E D E
or
1 -
1.852 1.167 ------------
C 1 D1 1.852
LE 1.852
V1 = ------------------------------ -V E
- ------------------------------ (7.47)
L1 1.852 1.167
C E DE
and
1 -
1.852 1.167 ------------
C 2 D2 1.852
LE 1.852
V2 = ------------------------------ -V E
- ------------------------------ (7.48)
L2 1.852 1.167
C E DE
Substituting Equation 7.47 and Equation 7.48 into Equation 7.34 gives
1 1
1.852 1.167 ------------- 1.852 1.167 -------------
C 1 D1 LE 1.852 C 2 D2 LE 1.852
2 2 2
V E D E = D 1 V E ------------------------------- ------------------------------
- + D 2 V E ------------------------------- ------------------------------
-
L 1 C
1.852
D
1.167 L 2 C
1.852
D
1.167
E E E E
Solving for the diameter DE for a specified length LE (usually taken as equal to L1 or L2) gives
1
0.54 2.63 2.63 ---------
2.63
-
L E C 1 D1 C 2 D2
DE = ------------ -------------------- + -------------------- (7.50)
C E L 0.54 L2
0.54
1
195
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
0.54
---------- = 0.20532 0.2053
2.63
1
---------- = 0.38023 0.3802
2.63
Now if all pipe lengths are the same, that is, L1 = L2 = LE then
Alternatively, the equivalent length LE of EUM of diameter DE for parallel pipes from Equation 7.49 is
given by
1.852 4.871
C E DE
L E = ---------------------------------------------------------------
- (7.53)
2.63 2.63 1.852
C 1 D1 C 2 D2
-------------------- + --------------------
0.54 0.54
L1 L2
or
1.852
2.63
C E DE
LE = ----------------------------------------------- (7.54)
2.63 2.63
C 1 D1 C 2 D2
-------------------- + ------------------- -
0.54 0.54
L1 L2
Example 7.5 Two pipes are connected in parallel between two reservoirs A and B. The pipes have the following
characteristics — L1 = 2500 m, D1 = 1.2 m (diameter of old cast – iron pipe), C1 = 100; L2 = 2500 m, D2 = 1.0 m,
C2 = 90. For a difference in water surface elevations between the reservoirs of 3.6 m determine the total flow of
water at 20C. Base your computations on an EUM of length 2500 m with a C value of 100. Ignore minor losses.
Answer – Computation of the flow in parallel pipes between two reservoirs using an equivalent uniform main.
196
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
2 2
p V p V
z A + ------A + ------A- = z B + -----B- + ------B- + h f
2g 2g
z A = zB + h f
Thus
h f = 3.6 m
1.852
LV
h f = 6.8214 ----------------------------- (7.55)
1.852 1.167
C D
Compute diameter of the EUM for L E = 2500 m , and C E = 100 from Equation 7.51 as
Thus
0.2053 0.3802
90 1.0
2.63 2.63
2500 100 1.2
D E = ------------------------ ----------------------------- + --------------------------
0.3802 0.54 0.54
100 2500 2500
D E = 1.418 m
1 - 1 -
------------ ------------
1.852 1.167
h f C E D E 1.852 3.6 100
1.852 1.167
1.418 - 1.852 = 1.291 m/s
VE = -----------------------------------
- = -----------------------------------------------------------------
6.8214 L E 6.8214 2500
The area is
2 2
D 1.418 2
A = ---------- = ------------------------ = 1.579 m
4 4
The flow is
3
Q = VA = 1.291 1.579 = 2.04 m /s
___________________________________________________________________________________
7.3.4 Hazen – Williams head loss equation for multiple pipes in parallel (for
both SI units and US customary units)
The head loss along each of the NP parallel pipes must be the same.
fE = hf = hf = = hf (7.56)
1 2 N
Recalling that for a parallel pipe system, the total flow must be the sum of the individual flows
Q E = Q 1 + Q 2 + + Q NP (7.57)
197
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
Solving for the diameter of the EUM, DE for a specified length LE based on a similar procedure as shown
in Section 7.3.3 gives
Now if all pipe lengths are the same, that is, L 1 = L 2 = = L NP = L E then
Alternatively, the length LE of EUM of diameter DE for parallel pipes from Equation 7.59 is given by
1.852
2.63
C E DE
LE = ------------------------------------------------------------------------------------------- (7.60)
2.63 2.63 2.63
C 1 D1 C 2 D2 C NP D NP
-------------------- + -------------------- + + ------------------------
0.54 0.54 0.54
L1 L2 L NP
s
7.4 Three Interconnected Reservoirs
In the reservoir flow situation shown in Figure 7.3, the flow through each pipe is to be calculated when
the reservoir levels are given.
z A = E L A , z B = E L B and z C = E L C
198
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
The Darcy – Weisbach friction loss equation for each of the three pipes must be satisfied. The continuity
equation must also be satisfied at the junction of the three pipes.
Question – What are the two different flow situations that could exist?
Answer – Flow could be either into reservoir B or out of reservoir B depending on the level of the HGL at the node J.
Question – What would the HGL look like for the two different cases?
Answer – In the case of flow into reservoir B, the HGL at junction J must be above the level of reservoir B. For flow
out of reservoir B, the HGL at junction J must be below the level of reservoir B.
Introduce a sign convention such that flow out of a junction is positive and flow into a junction is nega-
tive. Thus in applying the continuity equation to Figure 7.3 then Q1 is negative and Q3 is positive. Q2
may be either positive or negative. The continuity equation at the junction J for the case where flow Q2
is assumed to be into reservoir B and thus positive is
–Q1 + Q2 + Q3 = 0 (7.61)
For the second case (corresponding to the flow directions as shown in Figure 7.3) the continuity equa-
tion at junction J where flow Q2 is assumed to be from reservoir B towards the junction and thus nega-
tive is
–Q1 – Q2 + Q3 = 0 (7.62)
3. Compute the flows Q1, Q2 and Q3 from the known head loss (ignore velocity heads and
minor losses as a first approximation) as calculated from the reservoir elevations and the
guessed level of the HGL at J from step 2. Write the energy equation for a fluid particle on
the surface of reservoir A and a fluid particle at the centerline of pipe 1 just upstream of the
junction J
2 2
pA V A p V f 1 L1 V
- + ------- = z J + -----J- + ------1- + ------------
A + ------ - ----- (7.63)
2g 2g D 1 2g
zA = E LA
The velocity and pressure at the surface of the reservoir are both zero and thus V A = 0 and
pA = 0 .
The hydraulic grade line at J is
p
z J + -----J- = HGL J
199
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
2
V1
------- 0
2g
2
z A – HGL J 2g A 1 D 1
Q1 = -----------------------------------------------------
- (7.65)
f 1 L1
Similarly, assuming flow from reservoir B to the junction J and solving for Q2 and Q3
2
z B – HGL J 2g A 2 D 2
Q2 = ------------------------------------------------------ (7.66)
f 2 L2
This flow need not be computed when the elevation of the HGL at J is taken to be equal to
the elevation of the water surface for the reservoir at B. That is Q 2 = 0 . Finally the flow
from the junction to reservoir C is given by
2
HGL J – z C 2g A 3 D 3
Q3 = -----------------------------------------------------
- (7.67)
f 3 L3
4. Substitute the values obtained for Q1, Q2 and Q3 above into the continuity equation
(Equation 7.2) to obtain the continuity imbalance at junction J
Q = – Q 1 – Q 2 + Q 3 (7.68)
200
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
7. Use a linear interpolation between points AA and BB through the Q = 0 line (the vertical
axis in Figure 7.4 to point CC) or a linear extrapolation to the Q = 0 line to determine the
next estimate of HGL at J.
8. Repeat steps 3 to 7 as necessary until an insignificant change in HGL at J results.
Example 7.6 Three reservoirs A, B and C have the following elevations in Figure 7.3 — zA = 30.0 m, zB = 27.0 m
and zC = 17.0 m. The pipes have the following characteristics — pipe 1: L1 = 1000 m, D1 = 200 mm, 1 = 1.0 mm;
pipe 2: L2 = 300 m, D2 = 200 mm, 2 = 1.0 mm, and pipe 3: L3 = 600 m, D3 = 300 mm, 3 = 3.0 mm. Determine the
flows in each pipe.
Computing friction factors in each pipe assuming fully rough turbulent flow using Equation 4.84 (Prandtl – Nikuradse
formula) gives
2 2
1 1
f1 = f2 = ------------------------------------------------------- = --------------------------------------------------------- = 0.0303
2.0log ------ D 1 2.0log 200
10 - + 1.14 10 --------- + 1.14
1 1
2 2
1 1
f3 = ------------------------------------------------------- = --------------------------------------------------------- = 0.0379
2.0log ------ D 3 2.0log 300
10 - + 1.14 10 --------- + 1.14
3 3
Table 7.1 Pipe data for the three – reservoir network (completely turbulent flow assumed)
Node Elevation
(m)
A 30.0
B 27.0
C 17.0
2
D 0.2
2
2
A 1 = A 2 = ---------1- = ------------------ = 0.0314 m
4 4
2
D 0.3
2
2
A 3 = ---------2- = ------------------ = 0.07069 m
4 4
201
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
Assume the hydraulic grade line at node J is at 27 m (equal to the elevation of reservoir B such that the flow
Q 2 = 0.0 ). The flows (from Equation 7.65 and Equation 7.67) in the pipes are
2
z A – HG L J 2 g A 1 D 1 2
30 – 27 2 9.81 0.0314 0.2 - = 0.0196 m 3 /s
Q1 = -----------------------------------------------------
- = ------------------------------------------------------------------------------
f 1 L1 0.0303 1000
and
2
HG L J – z C 2 g A 3 D 3 2
---------------------------------------------------------------------------------
27 – 17 2 9.81 0.07069 0.3 - = 0.114 m 3 /s
Q3 = ------------------------------------------------------ =
f 3 L3 0.0379 600
3
Q = – Q 1 – Q 2 + Q 3 = – 0.0196 – 0.0 + 0.114 = 0.0944 m /s
Note that the flow in pipe 3 out of junction J is much greater than the flow in pipe 1 into the junction. Thus Q is pos-
itive and this suggests that the hydraulic grade line at node J needs to be lowered to increase Q 1 and decrease Q 3 . Try
a hydraulic grade line at node J of 20 m.
2
z A – HG L J 2 g A 1 D 1 2
30 – 20 2 9.81 0.0314 0.2 - = 0.0357 m 3 /s
Q1 = -----------------------------------------------------
- = ------------------------------------------------------------------------------
f 1 L1 0.0303 1000
2
z B – HG L J 2 g A 2 D 2 2
27 – 20 2 9.81 0.0314 0.2 - = 0.0545 m 3 /s
Q2 = ------------------------------------------------------ = ------------------------------------------------------------------------------
f 2 L2 0.0303 300
and
2
HG L J – z C 2 g A 3 D 3 20 – 17 2 9.81 0.07069 0.3
2
3
Q3 = -----------------------------------------------------
- = ---------------------------------------------------------------------------------- = 0.0623 m /s
f 3 L3 0.0379 600
3
Q = – Q 1 – Q 2 + Q 3 = – 0.0357 – 0.0545 + 0.0623 = – 0.0279 m /s
Note that the flow in pipe 3 out of junction J is now less than the sum of the flows in pipes 1 and 2 into the junction.
Thus Q is negative and this suggests that the hydraulic grade line at node J needs to be increased to decrease Q 1 and
Q 2 and to increase Q 3 .
Interpolating using a straight line between the two previous guesses as shown in the Figure 7.5 provides the next guess
of the hydraulic grade line of 21.7 m.
2
z A – HG L J 2 g A 1 D 1 2
30 – 21.7 2 9.81 0.0314 0.2 - = 0.0326 m 3 /s
Q1 = -----------------------------------------------------
- = ----------------------------------------------------------------------------------
f 1 L1 0.0303 1000
and
2
z B – HG L J 2 g A 2 D 2 27 – 21.7 2 9.81 0.0314 0.2
2
3
Q2 = ------------------------------------------------------ = ----------------------------------------------------------------------------------- = 0.0475 m /s
f 2 L2 0.0303 300
and
2
HG L J – z C 2 g A 3 D 3 21.7 – 17 2 9.81 0.07069 0.3
2
3
Q3 = -----------------------------------------------------
- = -------------------------------------------------------------------------------------- = 0.0780 m /s
f 3 L3 0.0379 600
202
Chapter 7 - File: Chap7new.fm July 6, 2022 Version 6
3
Q = – Q 1 – Q 2 + Q 3 = – 0.0326 – 0.0475 + 0.0780 = – 0.0021 m /s
The hydraulic grade line at node J needs to be just a little higher. Try a hydraulic grade line at node J of 21.8 m.
2
z A – HG L J 2 g A 1 D 1 2
30 – 21.8 2 9.81 0.0314 0.2 - = 0.0324 m 3 /s
Q1 = -----------------------------------------------------
- = ----------------------------------------------------------------------------------
f 1 L1 0.0303 1000
and
2
z B – HG L J 2 g A 2 D 2 27 – 21.8 2 9.81 0.0314 0.2
2
3
Q2 = ------------------------------------------------------ = ----------------------------------------------------------------------------------- = 0.0470 m /s
f 2 L2 0.0303 300
and
2
HG L J – z C 2 g A 3 D 3 21.8 – 17 2 9.81 0.07069 0.3
2
3
Q3 = -----------------------------------------------------
- = -------------------------------------------------------------------------------------- = 0.0788 m /s
f 3 L3 0.0379 600
3
Q = – Q 1 – Q 2 + Q 3 = – 0.0324 – 0.0470 + 0.0788 = – 0.0006 m /s
This value is sufficiently small (< 1 L/s) and thus the HGL is 21.8 m for this three – reservoir problem.
A summary table of the unknowns that have been found is given below.
Table 7.3 Pipe flows solution for the three – reservoir network
Table 7.4 Node junction HGL solution for the three – reservoir network
A 30.0
B 27.0
C 17.0
___________________________________________________________________________________
203
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
Complex water distribution systems are characterized by numerous pipes being connected. Usually
there are several circuits or loops as well as multiple reservoirs. There may be many entry and with-
drawal points. An example of a complex pipe network is a network for a small town or new subdivision.
Another example of a network is an off – farm irrigation delivery system. Flows in a network may be
computed if the length, diameter, pipe roughness and external flows leaving and entering the network
are known. Because the simultaneous set of governing equations are nonlinear (some may be linear
equations), an iterative or trial and error solution technique is required to solve for the flows and heads
in the network. There are different ways to formulate the governing equations in terms of the unknown
variables. The different formulations are explored in Chapter 9. In this Chapter, the Hardy Cross itera-
tive technique of the governing equations is considered (Cross 1936). It is a successive relaxation tech-
nique. Other more modern iterative techniques suited to computer simulation such as the Newton –
Raphson technique are considered in Chapter 10. Today, most networks are solved using commercial or
Government computer programs.
The Hardy Cross method is a hand iterative solution technique that was commonly used up to the 1970s
prior to the availability of computer programs. The Hardy Cross technique was developed in 1936 at the
University of Illinois. Although it is not used today in iterative computer algorithms, it is useful to
become familiar with the application of the Hardy Cross technique to understand the iterative nature of
the solution technique. Details of the various ways of formulation of the pipe network equations are
given in Chapter 9. Numerical methods for the iterative solution of these equations are given in
Chapter 10 to Chapter 16. Nielsen (1989) described the original Hardy Cross method as corresponding
to only solving the system of equations by one sweep of point relaxation, combined with successive
updating of the coefficient matrix.
• if the assumed flow direction for the pipe is in the clockwise direction around the loop the
flow is initially treated as positive
• if the assumed flow direction for the pipe is in the anti – clockwise direction around the loop
the flow is initially treated as a negative
As a result of the above sign convention assumed for the flows the following occurs
1. © Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, The University of Adelaide, Ade-
laide, Australia. Part of the book entitled Water Distribution Systems Engineering.
204
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
• the total flow entering a junction must be equal to the total flow leaving the junction (conti-
nuity)
• the algebraic sum of the head losses around each circuit or loop must be zero. Or expressed
in another way the pressure drop between two points in the network must be the same irre-
spective of the path taken
• the head loss equation must be satisfied for each pipe
fL 2 2
h f = ------------------ Q = r f Q
2
2Dg A
2
hf = rf Q (8.1)
where
fL fL 8 fL 0.8106 fL
r f = ------------------ = ------------------------------ = --------------------- = ----------------------- (8.2)
2 2 2 2 5 5
2Dg A D g D gD
2Dg ----------
4
such that
205
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
0.8106 fL
r f = ----------------------- (8.3)
5
gD
This factor is computed for each pipe. The Darcy – Weisbach friction factor or resistance factor f is
determined from the Moody diagram (Figure 4.2) or the Swamee and Jain equation (Equation 4.61).
Thus
13.643g L 1.852
h f = ---------------------- ---------------------------------------------
-Q (8.5)
1.852 2 1.852
2gC 1.167 D
D ----------
4
1.852
h f = r HW Q (8.6)
where
1.852
13.643 4 L L
r HW = -------------------------------------- --------------- = 10.670 ------------------------------- (8.7)
1.852 1.852 D 4.871 C
1.852 4.871
D
2 C
and finally
10.670L -
r HW = ------------------------------ (8.8)
1.852 4.871
C D
From above and as shown in Chapter 4 (Equation 4.105), the Hazen – Williams equation in SI units is
L 1.852 1.852
h f = 10.670 ------------------------------- Q = r HW Q (8.9)
1.852 4.871
C D
n n–1
h f = rQ = rQ Q (8.10)
To determine the loop flow correction term in the Hardy Cross method assume that
206
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
0
• Qj is the assumed initial flow for a particular pipe j that satisfies continuity at each junc-
tion.
k
• Qj is the updated flow in pipe j at iteration k after the application of the loop flow correc-
tion term. Note that this is quite different from the loop flows formulation discussed in
init
Section 9.7 where the initially selected flows Q j remain the same for all iterations.
*
• Q j is the correct flow that is required to be found for pipe j such that the head loss equa-
*
tions are satisfied for each loop and path. These Q j values are unknown at this stage.
• LF s is the loop flow correction term for loop s or a required independent path s. Adjust-
k
ment of all of the flows in the pipes in the loop by this term brings the flow Q j closer to
the correct flow Q *j .
n n–1
h f = r Q *j = rQ *j Q *j (8.11)
Consider the case where only one more step is required to alter the current estimates of flows to be the
k *
correct flows. Thus to move the current flow Q j at iteration k to the correct flow Q j , the loop flow
correction term LF s is applied to every pipe in a particular loop or required independent path s that
satisfies
* k
Q j = Q j + LF s (8.12)
* n k n
h f = r Q j = r Q j + LF s (8.13)
By the binomial expansion applied to the term in brackets in Equation 8.13 then
k n n k n – 1 nn – 1 k n – 2 2
h f = r Q j + ----- Q j LF s + -------------------- Q j LF s +
1! 2!
n n – 1 2.1 k 0 n
+ ---------------------------------- Q j LF s
n!
or
k n k n – 1 nn – 1 k n – 2 2 k 0 n
h f = r Q j + nQ j LF s + -------------------- Q j LF s + + Q j LF s
2!
k 2
If LF s is small compared with Q j then all terms LF s and higher order are negligible.
k n k n – 1 k + 1
h f = rQ j + nQ j LF s (8.14)
207
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
k + 1
Note that the iteration count of (k+1) has been added to the term LF s . Now for a circuit or loop
with NPLs pipes the head loss around the circuit should be zero
NP L s
hf j = 0 (8.15)
j=1
where NPLs = number of pipes in the loop s under consideration. For a path between two reservoirs the
right – hand side of Equation 8.15 should be replaced by the difference in reservoir elevations
E L m – E L q where ELm = HGL or water surface elevation at the reservoir m and E L q = HGL or water
surface elevation at the reservoir q (m or ft).
NP L s
* n
r jQ j = 0 (8.16)
j=1
To ensure that the losses are in the same direction as the flow direction let
* n * * n–1
Q j = Q j Q j (8.17)
NP L s
* * n–1
r jQ j Q j = 0 (8.18)
j=1
* k k + 1
Q j = Q j + LF s
NP L s
k k + 1 k k + 1 n–1
r j Q j + LF s Q j + LF s = 0 (8.19)
j=1
Recall that LFs is the correction term for the s – th loop or path. Using the binomial expansion and
dropping the second order and higher order terms in LFs gives
NP L s
k k n n–1 k + 1
r jQ j + nQ j LF s = 0 (8.20)
j=1
Thus again introducing the absolute value to ensure head losses are in the direction of flow gives
NP L s NP L s n–1
k k n–1 k k + 1
r jQ j Q j + nr j Q j LF s = 0 (8.21)
j=1 j=1
208
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
Solving for the correction of flows for a loop LFs in each pipe gives
NP L s
k k n–1
– r jQ j Q j
k + 1 j=1
LF s = ------------------------------------------------------- (8.22)
NP L s n–1
k
nr j Q j
j=1
k + 1
The correction term LF s is added to each flow in the loop or circuit s.
1. Identify all the loops in the network and number each loop. There is one loop in Figure 8.2.
2. Put a clockwise circular arrow in each loop with a numbered LFs where s = loop or circuit
number (e.g. LF1, LF2,......, LFNL up to the total number of loops NL). Only one loop
flow correction of LF1 applies to Figure 8.2.
3. Mark each junction as nodes A, B, C,......... etc.
5
4. Compute the resistance term r – values (for example r f = 0.8106 fL g D ) for the
pipes in Figure 8.2 as shown in Table 8.2.
.
Table 8.2 Data for the one – loop network
Pipe Length (m) Diameter (mm) f rj
(mm)
AB 800 745 0.25 0.0133 3.840
BC 800 507 0.25 0.0133 26.30
CD 800 457 0.25 0.0121 40.19
DE 800 398 0.25 0.0148 97.86
AE 800 211 0.25 0.0155 2452
5. Assume a distribution of flow in each pipe of the network that satisfies continuity at every
junction or node. Do not assume any pipes have zero flow initially. Flows in pipes in the
same direction as the assumed LFs direction (often clockwise) are assumed to be positive
for the computations below. Flows in pipes opposite to the assumed LFs direction are
assigned to be negative flows for the computations below.
209
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
The magnitudes of the flows at nodes can be based approximately on the size of the resist-
ance terms in each pipe that is connected to the junction under consideration. From
Equation 8.1 solve for the discharge as
hf
Q = ------ (8.24)
rf
Thus if the friction head loss was the same in two pipes leading away from a junction then
the flow in a pipe would be larger in the pipe for a smaller r f value and conversely smaller
in the pipe with the larger r f value.
Note that for junction A in Figure 8.2 the inflow is 300 L/s. The r f value for pipe AB is
small with a value of 5.10 (from Table 8.2) and for pipe AE is much larger with a value of
2452. Thus it may be expected that the flow in pipe AB will be substantially larger than in
pipe AE. An initial flow of 280 L/s has been assumed for pipe AB and an assumed flow of
20 L/s has been assumed for pipe AE. Continuity is satisfied at junction A as required.
Computation of flows in the other pipes is now an easier task. Consider junction B. The
flow in AB has already been set to 280 L/s and the outflow demand is 85 L/s thus for conti-
nuity to be satisfied at junction B the flow in pipe BC must be 195 L/s.
All of the assumed flows for the one loop network are shown in Figure 8.2.
6. Set up a table as shown in Table 8.3 for a loop with 5 pipes to analyze each closed loop
semi – independently. For each pipe in the loop compute the head loss (column 4 of
Table 8.3)
k k n – 1
h f = r jQ j Q j where k = 0
j
7. For each loop, the sum of the net head loss around the loop or for the path is
NP L s NP L s
k k n–1
hf =
j
r jQ j Q j (8.25)
j=1 j=1
k
around the loop. For each pipe Q j is positive for an assumed clockwise flow in a loop.
Thus the head loss around loop 1 for the assumed flows shown in column 4 of Table 8.3 is
7.158 m.
210
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
Example 8.1 Consider the network shown in Figure 8.3 with demands at the three nodes shown and inflows from
two reservoir nodes. Determine the loop flow corrections for the first iteration of the Hardy Cross method.
NP L s NP L s n–1
0 0 n – 1 0
r jQ j Q j = 7.158 nr j Q j = 231.124
j=1 j=1
___________________________________________________________________________________
k n – 1
nr j Q j (8.26)
NP L s n–1
k
nr j Q j (8.27)
j=1
211
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
NP L s
k k n–1
– r jQ j Q j
k + 1 j=1
LF s = ------------------------------------------------------- (8.28)
NP L s n–1
k
nr j Q j
j=1
For the example in Table 8.3 the value of the loop flow correction for the first iteration is
given by
5 2–1
0 0
– r jQ j Q j
1 j=1 7.158 = – 0.03097 = – 0.031 m 3 /s = – 31 L/s
LF 1 = ------------------------------------------------------ = – ------------------
-
5 2–1 231.124
0
2r j Q j
j=1
Thus
1
LF 1 = – 31 L/s (8.29)
k + 1 k + 1
11. Apply the loop flow correction LF s to all the pipe flows by adding the LF s
to flows used to determine items 7 to 10 above as shown in Table 8.4. Both positive and
negative flows are adjusted.
Table 8.4 Corrected flows for a Hardy Cross iteration (Darcy – Weisbach equation, n = 2)
12. For a pipe that is common in another loop, corrections from both loops are made. The cor-
rections to pipes in the first loop are made first before doing calculations for the next loop.
13. Indicate the corrected flows on the network diagram.
14. Check continuity at each junction to determine if any errors have been made.
15. Repeat steps 6 to 13 until either
• the head loss for a loop is balanced within desired limits or
• the loop flow corrections are made as small as desirable
A detailed example of the application of the Hardy Cross method follows (based on the example 12.10
from Streeter et al. (1998).
212
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
Example 8.2 For the network shown in Figure 8.3 compute the flows in each of the pipes by the Hardy Cross
method.
Answer – Compute the flows in each of the pipes by the Hardy Cross method.
Assume the Darcy – Weisbach friction factor or resistance factor is used such that n = 2. The head loss relationship for
each pipe is given by Equation 8.10 and Table 8.1 as
2 2–1
hf = rf Q = rf Q Q = rf Q Q
The data for the network is given in Table 8.5 with the rf value being computed from Equation 4.123 as given by
fL
r f = ------------------
2
2 gD A
* Sign of flow depends on assumed loop flow directions as shown in Figure 8.4.
A Microsoft Excel spreadsheet has been created below to show the solution iteration by iteration.
The set of initially assumed flows for the network are shown in Figure 8.4. These initial estimates must satisfy continu-
k + 1
ity of flow at each node. There are two loops. The loop flow correction values for each the two loops of LF 1
k + 1
and LF 2 are designated by clockwise arrows in Figure 8.4. When dealing with each loop in turn flows in
Figure 8.4 are designated as positive if the flow is clockwise in the loop and negative if it is anti – clockwise or counter
213
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
clockwise in the loop. For example in loop 1, the flow in pipe BC is taken as negative 30 L/s.
Figure 8.4 Assumed initial flows in network that satisfy continuity at all nodes
Table 8.6 Two loop network – Hardy Cross iteration – Iteration 1 for Loop 1
NP L s NP L s n–1
0 0 n – 1 0
r jQ j Q j = 0.028575 nr j Q j = 1.3500
j=1 j=1
3
0 0 2 – 1
– r jQ j Q j
- = – 0.028575
1 j=1 3 1
LF 1 = ---------------------------------------------------
3
---------------------- = – 0.02117 m /s = – 21.2 L/s or LF 1 = – 21.2 L/s
0
2–1 1.3500
j j 2r Q
j=1
Table 8.7 Corrected flows for a Hardy Cross iteration – Iteration 1 for Loop 1
214
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
Table 8.8 Two loop network – Hardy Cross iteration – Iteration 2 for Loop 2
NP L s NP L s n–1
1 1 n – 1 1
r jQ j Q j = – 0.00278 nr j Q j = 0.253
j=1 j=1
* Note the sign of the flow in pipe AC in now NEGATIVE for this iteration in Loop 2
3
1 1 2 – 1
– r jQ j Q j
2 j=1 – 0.00278 3 2
LF 2 = ---------------------------------------------------
3
- = – ---------------------- = 0.01099 m /s = 11.0 L/s or LF 2 = 11.0 L/s
1
2–1 0.253
2r j Q j
j=1
Table 8.9 Corrected flows for a Hardy Cross – Iteration 2 for Loop 2
215
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
* Note the sign of the flow in pipe AC in now NEGATIVE for this iteration in Loop 2
Table 8.10 Two loop network – Hardy Cross iteration – Iteration 3 for Loop 1
NP L s NP L s n–1
2 2 n – 1 2
r jQ j Q j = 0.001237 nr j Q j = 1.114
j=1 j=1
* Note the sign of the flow in pipe AC in now POSITIVE for this iteration in Loop 1
3
2 2 2 – 1
– r jQ j Q j
- = – 0.001237
3 j=1 3 3
LF 1 = ---------------------------------------------------
3
---------------------- = – 0.00111 m /s = – 1.11 L/s or LF 1 = – 1.11 L/s
2
2–1 1.114
2r j Q j
j=1
Table 8.11 Corrected flows for a Hardy Cross – Iteration 3 for Loop 1
216
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
Table 8.12 Two loop network – Hardy Cross iteration – Iteration 4 for Loop 2
NP L s NP L s n–1
3 3 n – 1 3
r jQ j Q j = – 0.000475 nr j Q j = 0.1578
j=1 j=1
* Note the sign of the flow in pipe AC in now NEGATIVE for this iteration in Loop 2
3
3 3 2 – 1
– r jQ j Q j
4 0.000475 = 0.0030 m 3 /s = 3.0 L/s or LF 4 = – 3.0 L/s
- = – –------------------------
j=1
LF 2 = ---------------------------------------------------
3
- 2
2–1 0.1578
3
2r j Q j
j=1
Table 8.13 Corrected flows for a Hardy Cross – Iteration 4 for Loop 2
Table 8.14 Two loop network – Hardy Cross iteration – Iteration 5 for Loop 1
3 3 n–1
4 4 n – 1 4
r jQ j Q j = – 0.000008 nr j Q j = 1.1035
j=1 j=1
* Note the sign of the flow in pipe AC in now NEGATIVE for this iteration in Loop 2
217
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
3
4 4 2 – 1
– r jQ j Q j
5 j=1 – 0.000008 -5 3 5
LF 1 - = – ------------------------- = 0.72496602 10 m /s = 0.007 L/s or LF 1 = – 0.007 L/s
= ---------------------------------------------------
3
4
2–1 1.1035
2r j Q j
j=1
Table 8.15 Corrected flows for a Hardy Cross – Iteration 5 for Loop 1
Note that the sign of the flow in pipe AC has switched from positive to negative.
Table 8.16 Two loop network – Hardy Cross iteration – Iteration 6 for Loop 2
NP L s NP L s n–1
5 5 n – 1 5
r jQ j Q j = – 0.000026 nr j Q j = 0.1578
j=1 j=1
* Note the sign of the flow in pipe AC in now NEGATIVE for this iteration in Loop 2
3
5 5 2 – 1
– r jQ j Q j
6 0.000026- = 0.0001713 m 3 /s = 1.71 L/s or LF 6 = – 1.71 L/s
- = – –------------------------
j=1
LF 2 = ---------------------------------------------------
3 2
2–1 0.1499
5
2r j Q j
j=1
Table 8.17 Corrected flows for a Hardy Cross – Iteration 4 for Loop 2
218
Chapter 8 - File: Chap8new.fm July 6, 2022 Version 7
8.7 References
Cross, H. (1936). Analysis of flow in networks of conduits or conductors. Bulletin No. 286, University of
Illinois Engineering Experimental Station, Urbana, Illinois.
Jeppson, R. W. (1976). Analysis of flow in pipe networks, Ann Arbor Science, Ann Arbor, Michigan
Nielsen, H. B. (1989). “Methods for analyzing pipe networks.” Journal of Hydraulic Engineering,
Vol.115, No.2, February, 139-157.
Streeter, V.L., Wylie, E.B. and Bedford, K. (1998). Fluid mechanics. 9th Edition. McGraw– Hill.
219
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Pipes, pumps, tanks and valves are connected in a water distribution system, often in a complex manner.
A network for a small town or new subdivision is an example. Several loops or circuits are usually pres-
ent in the network. There are usually entry points to the network (for example – tanks, storages and res-
ervoirs) and also many withdrawal points (for example – homes, industries, parks and gardens,
commercial buildings, etc.).
Nodes are defined as the end points of links (pipes, pumps or valves) and are identified as either junction
nodes or fixed head nodes (for example – reservoirs). Flow may enter or leave the network at junction
nodes. Simple loops within a network include all closed pipe circuits that have no additional closed pipe
circuits in them (Wood and Rayes 1981).
There are three types of governing equations for flow and head (HGL or pressure) in a network of pipes.
These include
• flow equations or Q – equations formulation in terms of unknown flows (Qs) in each link
(see Section 9.7)
• head equations or H – equations formulation in terms of unknown heads or HGLs (Hs) at
each node (see Section 9.8)
• loop flow equations formulation or LF – equations in terms of unknown loop flows (LFs)
(see Section 9.9)
• flow and head equations or Q+H equations formulation in terms of unknown flows and
unknown heads (see Section 9.10)
• Global Gradient Algorithm formulation in terms of unknown flows and unknown heads
(Todini and Pilati 1988) (see Section 9.11)
For networks that contain loops, the number of unknown loop flows (LFs) are always less than or equal
to the number of unknown heads (Hs) that in turn are always less than the number of unknown link
flows (Qs). A smaller set of equations may be more concise but the solution may take more iterations
and/or time and thus be less desirable.
Assumptions in the analysis of steady state flow in networks are usually made including
• minor losses (e.g. entrance, exit losses, losses at junctions) are assumed to be small and are
neglected (care needs to be taken in complex systems where they may be important)
1. © Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, The University of Adelaide, Ade-
laide, Australia. Part of the book entitled Water Distribution Systems Engineering.
220
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Figure 9.1 A ten pipe network with demands (where DM i = demand at node i
and E L m = elevation of reservoir m; these are assumed to be known)
T
q = Q 1 Q 2 Q NP (9.1)
where
For the ten pipe network in Figure 9.2 the flows are shown. The vector of unknown flows for the 10 pipe
network is given as Equation 9.2.
221
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Figure 9.2 A ten pipe network showing the primary unknown Qs and Hs (note that demands are
also shown but these are assumed to be known)
Q1
Q2
Q3
Q4
T Q5
q = Q 1 Q 2 Q 10 = (9.2)
Q6
Q7
Q8
Q9
Q 10
T
h = H 1 H 2 H NJ (9.3)
where
222
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
H2
H3
H4
T
h = H 2 H 3 H 9 = H (9.4)
6
H7
H8
H9
Note that in the vector in Equation 9.4, H 1 and H 5 do not appear because they are known reservoir or
fixed head elevations and are referred to by EL 1 and EL 5 .
T
p = p 1 p 2 p NJ (9.5)
where
p
--- = h – z for each node i = 1,...., NJ (9.6)
where
T
d m = DM 1 DM 2 DM NJ (9.7)
In addition, define the vector of known demands for the ten pipe network in Figure 9.1 (at each of the
nodes where the nodal head is unknown) as
DM 2
DM 3
DM 4
T
m = DM 2 DM 3 DM 4 DM 6 DM 7 DM 8 DM 9 = DM (9.8)
6
DM 7
DM 8
DM 9
223
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
“A set of nodes together with a set of arcs that link the nodes.”
“A graph whose arcs carry flows that may (in the case of a directed network) or may
not (in the case of an undirected network) have a defined direction along arcs.”
General network theory deals with problems such as assigning flows to arcs and to paths within a net-
work so as to optimize an objective (for example, maximum throughput or minimum flow path length).
A water distribution system is an example of a potentiated network. A potentiated network is defined by
Templeman and Yates (1984) as
“A network that, in addition to arc flows, has nodal potentials that are functionally
related to the arcs and their flows.”
The existence of the nodal potentials and the functional dependence upon arc flows delineates potenti-
ated networks as a special subset of general networks. Graph theoretic models depend on direct utiliza-
tion of continuity equations (Kesavan and Chandrashekar 1972). The general network – theoretic
principles are not applicable to potentiated networks such as water distribution systems (Templeman and
Yates 1984). Specialized solution techniques are required.
NP = NJ + NL + NF – NC (9.9)
where
Usually NC = 1 for a network but if a link closes in a network that results in separated parts it is possible
to have NC > 1.
A network is subjected to various external actions applied at nodes only (Templeman and Yates 1984).
The external actions are either demands or outflow of volumetric flow or inflows. A sign convention is
adopted where outflows from nodes are assumed to be positive. Nodal potentials are defined for each
network node and for a network are the heads or hydraulic grade line (HGL) elevations at the nodes
(both junction and fixed head nodes).
224
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
For networks containing two or more reservoirs (or other form of fixed head source), it is necessary to
consider NF – NC required independent paths between nodes of fixed head in the analysis of a net-
work. A path is defined as a non – intersecting series of links between any two fixed head nodes (e.g.
reservoirs) that does not contain a closed simple loop. Consider an example network that is fully con-
nected such that NC = 1. For two reservoirs ( NF = 2 ) there is only one path between the two reser-
voirs (thus NF – NC = 2 – 1 = 1 ). For three reservoirs ( NF = 3 ) and consequentially three possible
paths between the reservoirs, however, there are two independent paths required
( NF – NC = 3 – 1 = 2 ) although there are a total of 3 possible paths. It does not matter which paths
between the reservoirs are selected in the three reservoir case, as one path between two of the reservoirs
is redundant and is not required.
It generally holds that there are more links NP than nodes NJ (as indicated by Equation 9.9) such that
NP NJ
In addition there are usually more links NP or nodes NJ than closed simple loops NL plus required inde-
pendent paths NF – NC such that
NP NL + NF – NC
For networks with at least one closed simple loop number of nodes (NJ) exceeds the number of closed
simple loops plus required independent paths
NJ NL + NF – NC
• the NP link flows (pipes, pumps or valves) Q1, Q2,...., QNP where the flow in link j is desig-
nated as Qj
• the NJ heads or HGLs H1, H2,...., HNJ where the head at node it is designated as Hi
Note that the term link refers to either a pipe, a pump or a valve. For the network in Figure 9.2 the net-
work characteristics are shown in Table 9.1.
From inspection of the network in Figure 9.2, it follows that the number of links is
NP = 10
The right – hand side of Equation 9.9 based on the values in Table 9.1 becomes
NJ + NL + NF – NC = 7 + 2 + 2 – 1 = 10
Thus the equality of Equation 9.9 is verified for the network shown in Figure 9.2.The values for the
characteristics of the ten pipe network as defined above are given in Table 9.1.
NP = NJ + NF – NC (9.10)
225
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Thus a treed and connected network has one less link than the number of total nodes. This is the least
number of arcs that can adequately carry the externally applied nodal actions (Templeman and Yates
1984). A network that satisfies Equation 9.10 is not necessarily a connected network. Thus
Equation 9.10 is not a sufficient condition to result in a treed network.
Table 9.1 Network characteristics for the ten pipe network
Quantity Symbol Value
Number of links (pipes in this case) NP 10
Number of nodes* NJ 7
Number of closed simple loops NL 2
Number of fixed head nodes NF 2
Number of separate disconnected subnetworks (or components) NC 1
Number of required independent paths NF – NC = NPL 1
Number of total loops and required paths NTL = NL + NPL 3
For a treed network, the number of unknown flows equals the number of continuity equations. This lin-
ear system may be solved directly for the unknown Qs without iteration. Link flow rates can thus be
determined solely from the set of continuity equations. The nonlinearity of the energy equations presents
no special difficulties in calculations for a treed network as the flows are easily determined. Substituting
the flows into the head loss expressions for each link yields all the other unknown quantities (HGLs and
pressures).
• The unknown head node incidence matrix = A 1 (the size of the matrix is NP x NJ or the
number of links (NP rows) by number of nodes (NJ columns)). Details are given in
Table 9.2. (This is matrix A12 in Todini and Pilati (1988).)
• The fixed head node incidence matrix = A 2 (the size of matrix is NP x NF or the number of
links by number of fixed head nodes – usually reservoirs or tanks). Details are given in
Section 9.3.2. (This is matrix A10 in Todini and Pilati (1988).)
9.3.1 The unknown head node incidence matrix A 1
The unknown head node incidence matrix A 1 stores information about the connectivity of the nodes
and the links in the network. Elements in the unknown head node incidence matrix A 1 are defined
according to Table 9.2, that considers link (in row j of the matrix) and a node (in column i of the matrix).
It is assumed that each link has a designated flow direction. Elements in the unknown head node inci-
dence matrix A 1 are assigned as:
226
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
a ji 0 If the link (in row j of the A 1 matrix) is not connected to the node (in
column i of the A 1 matrix)
a ji 1 If the link (in row j of the A 1 matrix) leaves the node in the designated
flow direction (in column i of A 1 matrix)
Note that the unknown head node incidence matrix is not a square matrix.
The full A 1 matrix for the ten pipe network in Figure 9.2 is given below in Equation 9.11. In Table 9.3
the opposite sign convention to that used by Todini and Pilati (1988) is used in order to be consistent
with the sign convention used in the other equation formulations presented earlier in the Chapter.
Node = 02 03 04 06 07 08 09
–1 0 0 0 0 0 0 pipe 1
1 –1 0 0 0 0 0 pipe 2
0 1 –1 0 0 0 0 pipe 3
0 0 –1 0 0 0 0 pipe 4
A1 = 1 0 0 –1 0 0 0 pipe 5 (9.11)
0 1 0 0 –1 0 0 pipe 6
0 0 1 0 0 –1 0 pipe 7
0 0 0 1 –1 0 0 pipe 8
0 0 0 0 1 –1 0 pipe 9
0 0 0 0 0 1 –1 pipe 10
In a row in Equation 9.11 corresponding to a particular link, if there are two non – zero elements (for
example, row 2) one must have a negative value and the other must have a positive value. Also for this
case, the two end nodes are non – reservoir nodes. In contrast, if a row corresponding to a particular link
only has one non – zero entry (for example, row 1 and row 4) then the link is connected to a reservoir or
fixed head node at one end.
227
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
T
The transpose of A 1 or A 1 for the ten pipe network from Equation 9.11 is
Pipe= 01 02 03 04 05 06 07 08 09 10
–1 1 0 0 1 0 0 0 0 0 node 2
0 –1 1 0 0 1 0 0 0 0 node 3
0 0 –1 –1 0 0 1 0 0 0 node 4
T
A1 = 0 0 0 0 –1 0 0 1 0 0 node 6 (9.12)
0 0 0 0 0 –1 0 –1 1 0 node 7
0 0 0 0 0 0 –1 0 –1 1 node 8
0 0 0 0 0 0 0 0 0 –1 node 9
Now consider a detailed example for node 2 in Figure 9.2. The values of the first column (for node 2) of
the unknown head node incidence matrix A 1 are shown in Table 9.3. Node 2 has links 1, 2 and 5 con-
nected to it.
Table 9.3 Unknown head node incidence A1 entries for node 2 (column 1) of the ten pipe network
Element Value Explanation
a j1 –1 Link 1 (row 1 or j of matrix A 1 ) enters node 2 in the designated flow direc-
tion (column 1 or i of matrix A 1 – the negative signs denotes flow entering
the node)
a j1 0 Links 3, 4, 6, 7, 8, 9 and 10 (row j values of matrix A 1 ) are not connected to
node 2 (column 1 or i of matrix A 1 )
The fixed head node incidence matrix A 2 stores information about the connectivity of the fixed head
nodes (often reservoirs) and the links in the network. The dimensions of the fixed head node incidence
matrix A 2 are NP x NF (number of links – NP rows by number of reservoirs or fixed head nodes – NF
columns). Elements in the fixed head node incidence matrix A 2 are defined according to Table 9.4, that
considers a fixed head node (in column f of the matrix) and a link (in row j of the matrix).
a jf 0 If the link (in row j of matrix A 2 ) is not connected to the fixed head
node (in column f of matrix A 2 )
228
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
a jf 1 If the link (in row j of matrix A 2 ) leaves the fixed head node in the
designated flow direction (in column f of matrix A 2 )
The fixed head loop incidence matrix A 2 for the ten pipe network in Figure 9.3 is defined in
Equation 9.13 based on Table 9.4. Note that the fixed head node incidence matrix is not a square matrix.
Reservoir = 01 05
pipe 1
1 0
pipe 2
0 0
pipe 3
0 0
pipe 4
0 1
pipe 5
A2 = 0 0
pipe 5 (9.13)
0 0
pipe 6
0 0
pipe 7
0 0
pipe 8
0 0
pipe 9
0 0
pipe 10
There are two fixed head nodes (1 and 5) in the two columns in Equation 9.13. Each row refers to pipe 1,
2, etc. up to 10. In a row corresponding to a particular pipe if there is a non – zero entry of 1 then the pipe
is connected to a reservoir.
Consider the elements in the fixed head incidence matrix for reservoir 1. The values of the first column
of the fixed head node incidence matrix are shown in Table 9.5.
Table 9.5 Fixed head node incidence A 2 entries for reservoir 1 (column 1) of the ten pipe network
where
• Flow In = total flow in all the links leading towards the junction (m3/s or ft3/s)
229
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
• Flow Out = total flow in all the links leading away from the junction (m3/s or ft3/s)
• Demand = demand at the node (m3/s or ft3/s)
9.4.1 The continuity equation at a node
A general expression for the continuity of flow at node i with a demand designated as DMi (also referred
to as an offtake, delivery or outflow from a network) is given by Equation 9.15 as
NP
a ji Q j + DM i = 0 for nodes i = 1,2,..., NJ (9.15)
j=1
where
• NP = number of links
• a ji = element of the A 1 unknown head node incidence matrix (see Equation 9.12 with val-
ues zero, – 1 or +1), thus only Qj values for pipes connected to the node are included.
• Qj = flow in link j (m3/s or ft3/s)
• DMi = demand at the node i (m3/s or ft3/s)
• NJ = total number of nodes or junctions (excluding fixed head nodes such as reservoirs)
The sign convention adopted is such that a flow away from the node is considered to be positive. Thus
the demand DMi at a node is also positive in sign.
The total inflow to the system must be equal to the total outflow. As a result there must be a linear
dependence between the NJ + NF equations written for all nodes (including fixed head nodes). Thus
only NJ + NF – NC of the continuity equations are required and a total of NC of the continuity equa-
tions are superfluous where NC = number of separate disconnected networks. Usually NC = 1 as men-
tioned earlier.
9.4.2 The continuity equations in matrix form for the ten pipe network
The continuity equations for the ten pipe network in Figure 9.2 based on Equation 9.15 are given in
Table 9.6.
Table 9.6 The seven continuity equations for the ten pipe network
Node Continuity equation Node
2 – Q 1 + Q 2 + Q 5 + DM 2 = 0 7 – Q 6 – Q 8 + Q 9 + DM 7 = 0
3 – Q 2 + Q 3 + Q 6 + DM 3 = 0 8 – Q 7 – Q 9 + Q 10 + DM 8 = 0
4 – Q 3 – Q 4 + Q 7 + DM 4 = 0 9 – Q 10 + DM 9 = 0
6 – Q 5 + Q 8 + DM 6 = 0
Putting the continuity equations in Table 9.6 into matrix form using the transpose of the unknown head
node incidence matrix A 1 (Equation 9.12, page 228), the vector of unknown flows q (Equation 9.2,
page 222) and the vector of known nodal demands d m leads to
230
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Q1
Q2
DM 2
–1 1 0 0 1 0 0 0 0 0 Q3
DM 3
0 –1 1 0 0 1 0 0 0 0 Q4
0 0 –1 –1 0 0 1 0 0 0 DM 4
Q5
0 0 0 0 –1 0 0 1 0 0 + DM = 0 (9.16)
6
Q6
0 0 0 0 0 –1 0 –1 1 0 DM 7
0 0 0 0 0 0 –1 0 –1 1 Q7
DM 8
0 0 0 0 0 0 0 0 0 –1 Q8
DM 9
Q9
Q 10
or
T
A1 q + dm = 0 (9.17)
Note that each row of Equation 9.16 represents the continuity equation for each node where the head is
unknown.
n–1
h f = r jQ j Q j for j = 1,......,NP (9.18)
j
n–1
H i – H k = r jQ j Q j for j = 1,......,NP (9.19)
where
• rj = resistance term for the pipe j depending on the head loss relationship assumed for the
pipe (for example, Darcy – Weisbach or Hazen – Williams: see Section 4.8 for formulas)
• Qj = flow in the pipe (m3/s or ft3/s)
• n = exponent of the flow in the head loss equation (Darcy – Weisbach n = 2 or Hazen –
Williams equation n = 1.852)
• Hi = nodal head or HGL at one end of the pipe at node i (m or ft)
• Hk = nodal head or HGL at the other end of the pipe at node k (m or ft)
• NP = number of pipes
Usually the values of head at nodes and flows in pipes or links (Hi, Hk and Qj) are all unknown. Recall
that the absolute sign in both Equation 9.18 and Equation 9.19 ensures that the head loss occurs in the
direction of the flow and avoids raising a negative number to an exponent when the flow direction is
negative (Bhave 1988). To obtain a unique solution one of the heads at a node somewhere in the network
must be known.
231
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
For the Darcy – Weisbach head loss equation with n = 2 then Equation 9.19 becomes
2–1
H i – H k = r jQ j Q j = r jQ j Q j for j = 1,......,NP (9.20)
For the Hazen – Williams head loss equation with n = 1.852 then Equation 9.19 becomes
1.852 – 1 0.852
H i – H k = r jQ j Q j = r jQ j Q j for j = 1,......,NP (9.21)
• Q – equations formulation or flow equations in which the NP link flows (including flows in
pipes, pumps or valves) are treated as unknowns (see Section 9.7). A set of continuity equa-
tions at nodes are written for the network. In addition, energy losses in closed simple loops
and required independent paths are expressed in terms of flows (Ormsbee and Wood 1986).
Once the flow in each link has been determined, the heads or HGLs and thus the pressures
at each node may be calculated. (see Section 9.7)
• H – equations formulation or head equations in which the NJ heads are treated as unknowns
(see Section 9.8). The flow resistance equations for each link are formulated in terms of
heads rather than flows. The flows (Qs) in the continuity equations are substituted for in
terms of the nodal heads (Hs) (Ormsbee and Wood 1986). The resultant set of equations is
smaller in number than for the Q – equations, however, all equations are nonlinear (Jeppson
1976). Shamir and Howard (1968) proposed the simultaneous node method for solving NJ
nodal head equations. Once the heads have been computed the flow rates may be deter-
mined. (see Section 9.8)
• LF – equations formulation or the loop flow equations in which NL + NF – NC loop
flows and required independent path flows (LFs) are treated simultaneously as unknowns
(where NL = number of closed simple loops, NF = number of fixed head nodes and
NC = number of disconnected separate networks) (see Section 9.9). Epp and Fowler (1970)
proposed a simultaneous loop (path) computer solution technique to solve the loop flow
and required independent path equations. The loop flows are computed for each of the NL
closed simple loops and each of the NF – NC required independent paths between fixed
head nodes (see Section 9.8). A set of flows must be initially assumed in the network that
must satisfy continuity at each node. This method is similar to the hand – computation
Hardy Cross solution technique (see Chapter 8 & Cross 1936) developed in the 1930s
except here all loop flows are solved for simultaneously. In contrast, only one loop flow
correction is computed at a time in the Hardy Cross method.
• Q+H equations formulation or flow and head equations formulation in which both the
flows and heads are solved for simultaneously (see Section 9.10)
• Global Gradient Algorithm formulation (Todini and Pilati 1988) in which both the heads
and flows are solved for simultaneously in a sequential iterative process based on a smart
partitioning of the problem using a block matrix from of the continuity and the head loss
equations (see Section 9.11).
232
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
For the example network in Figure 9.2 the number of simultaneous equations in each of the formulations
is given in Table 9.7.
Table 9.7 Numbers of equations for various formulations for the ten pipe network
* In each iteration, the NJ heads are solved for first and then the NP flows are solved for separately in a sequential process.
where for Figure 9.3 and Table 9.7 the variables are defined in Section 9.2.2, page 224.
The equations for the ten pipe network shown in Figure 9.2 are presented in this section. The combina-
tion of the continuity equations (Table 9.8), the energy equations for the closed simple loops and the
energy equations for the required independent paths (Table 9.11) gives 10 equations in 10 unknowns.
There is no direct solution of this set of nonlinear equations.
The unknown flows Qjs are labeled on Figure 9.3. The direction of flow in each pipe has been selected
based on an expected flow pattern in the network. The direction may have been selected incorrectly in
some pipes but this does not matter. In the final solution, if a pipe flow turns out to be negative, then that
flow was assumed to be in the wrong direction initially.
To implement this formulation the loops need to be defined via the loop matrix (Todini and Pilati 1988).
This may be provided through input data or can be obtained by partitioning the node matrix A 1 (see
Section 9.11.2). Details are given in Todini and Pilati (1988). In addition, required independent paths
between nodes of fixed head also have to be defined.
Table 9.8 The continuity equations for the ten pipe network
Node Function Continuity equation Node Function Continuity equation
2 f 1 q – Q 1 + Q 2 + Q 5 + DM 2 = 0 7 f 5q – Q 6 – Q 8 + Q 9 + DM 7 = 0
3 f 2q – Q 2 + Q 3 + Q 6 + DM 3 = 0 8 f 6q – Q 7 – Q 9 + Q 10 + DM 8 = 0
4 f 3q – Q 3 – Q 4 + Q 7 + DM 4 = 0 9 f 7q – Q 10 + DM 9 = 0
6 f 4q – Q 5 + Q 8 + DM 6 = 0
233
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Figure 9.3 Unknown Q – equations formulation for a ten pipe network (note demands are also
shown but these are assumed to be known)
In these 7 continuity equations there are 10 unknown Qjs. These 7 equations are independent because
two external flows from each of the reservoirs are unknown. Another three equations based on energy
equations are needed in order to provide a complete set of equations that could then be solved for the 10
unknown Qjs. These are presented below.
9.7.2 The energy equations for closed simple loops and required indepen-
dent paths for the ten pipe network
Energy equations around closed simple loops (also referred to as non – overlapping or natural loops)
(Jeppson 1976) or between fixed head nodes along required independent paths in a network are nonlin-
ear. Upon traversing a closed simple loop the sum of pipe head losses around the loop must be zero. This
is expressed as
Figure 9.4 shows the head losses in each pipe that coincide with the directions of the flows assumed in
Figure 9.3.
234
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Figure 9.4 Head losses in each of the pipes for the ten pipe network corresponding to the assumed
sign convention adopted for the Qs shown in Figure 9.3 (note demands are also shown but these
are assumed to be known)
The head loss equations for each of the pipes in a closed simple loop are now expressed in terms of
unknown flows in the pipes by using Equation 9.18 as:
n–1
r jQ j Q j = 0 s = 1,2,..., NL (9.23)
j Ls
where
For the Darcy – Weisbach head loss equation with n = 2 then Equation 9.23 for a closed simple loop
becomes
2–1
r jQ j Q j = 0 (9.24)
j Ls
or
r jQ j Q j = 0 (9.25)
j Ls
For the Hazen – Williams head loss equation with n = 1.852 then Equation 9.23 for a closed simple
loop becomes
235
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
1.852 – 1
r jQ j Q j = 0 (9.26)
j Ls
or
0.852
r jQ j Q j = 0 (9.27)
j Ls
The energy equations for each of the closed simple loops in the example network in Figure 9.4 are now
given in Table 9.9 in terms of head losses in each pipe. Each loop should be traversed in the same direc-
tion as the loop flow direction (usually clockwise – by convention rather than necessity).
Table 9.9 The energy equations for closed simple loops in terms of head losses for the ten pipe
network
Loop Energy equation Loop Energy equation
number number
1 f2 + hf – hf – hf = 0 2 f3 + hf – hf – hf = 0
6 8 5 7 9 6
Note that for the set of indices of pipes in this first closed simple loop, Ls = {2, 6, 8, 5}.
If the assumed flow in a pipe is in a clockwise direction around the loop then the head loss in that pipe is
assumed to be positive (i.e. the HGL decreases as the pipe is traversed from one end of the pipe to the
other). If the flow in the pipe is in an anticlockwise (counter clockwise) direction around the loop then
the head loss in that pipe is assumed to be negative (i.e. the HGL increases as the pipe is traversed from
one end of the pipe to the other).
In addition to closed simple loop energy equations, NF – NC required independent paths between
reservoirs or fixed head nodes in the network must also be considered.
Consider a series of NPLs pipes between two reservoirs designated as reservoir m and reservoir q. The
head loss in the pipes between 2 reservoirs must be equal to the difference in elevation or HGL between
the 2 reservoirs. Each path should be traversed in the same direction as the loop flow direction (usually
clockwise). This may be expressed as
where
n–1
r jQ j Q j = E Lm – E Lq (9.29)
j Ls
236
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Note that application of Equation 9.29 may be a little tricky. It is best to traverse the loop in the direction
of the loop flow arrow between the reservoirs – then make the right – hand side equal to the head loss
difference between the reservoirs. Finally move the right – hand side term to the left – hand side of the
equation so that the function can be equal to zero.
For the Darcy – Weisbach head loss equation with n = 2 for the required independent paths then
Equation 9.29 becomes
r j Q j Q j = E Lm – E Lq (9.30)
j Ls
For the Hazen – Williams head loss equation with n = 1.852 for the required independent paths then
Equation 9.29 becomes
0.852
r jQ j Q j = E Lm – E Lq (9.31)
j Ls
For the ten pipe network in Figure 9.3, one required independent path equation is needed between the
reservoir at node 5 and at node 1 as shown in Table 9.10.
Table 9.10 The energy equation for the required independent path in the ten pipe network
Path Energy equation
1 – h f – h f – h f – E L5 – E L1 =
f4 3 2 1
The same sign convention regarding the sign of the assumed head loss and the assumed flow direction in
the pipe is assumed for required independent path energy equations as for closed simple loop energy
equations. If the closed simple loop and required independent path energy equations in Table 9.9 and
Table 9.10 are now expressed in terms of flows as expressed in Equation 9.19 as the column vector
T
q = Q 1 Q 2 Q NP then a set of nonlinear algebraic equations results.
The head loss or energy equations for the two closed simple loops and one required independent path in
the ten pipe network in Figure 9.3, Table 9.9 and Table 9.10 are now expressed in terms of unknown
flows in the pipes by using Equation 9.19.
Substituting for the head losses in each of the pipes in the loops and required independent paths in
Table 9.9 and Table 9.10 leads to Table 9.11.
Table 9.11 The energy equations for simple closed loops and required independent paths in terms
of flows for the ten pipe network
2 f 9q r 3 Q3 Q3
n–1
+ r 7 Q7 Q7
n–1
– r 9 Q9 Q9
n–1
– r 6 Q6 Q6
n–1
= 0
Path 1 f 10 q r 4 Q4 Q4
n–1
–r 3 Q3 Q3
n–1
–r 2 Q2 Q2
n–1
– r 1 Q1 Q1
n–1
– E L5 – E L1 = 0
237
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
9.7.3 The energy equations for the Darcy – Weisbach head loss equation
For the Darcy – Weisbach head loss equation with n = 2 then Table 9.11 is rewritten as Table 9.12.
Table 9.12 The energy equations for simple closed loops and required independent paths in terms
of flows for the ten pipe network for the Darcy – Weisbach head loss equation
2 f 9q r 3 Q3 Q3 + r 7 Q7 Q7 – r 9 Q9 Q9 – r 6 Q6 Q6 = 0
Path 1 f 10 q r 4 Q4 Q4 –r 3 Q3 Q3 –r 2 Q2 Q2 – r 1 Q1 Q1 – E L5 – E L1 = 0
9.7.4 The energy equations for the Hazen – Williams head loss equation
For the Hazen – Williams head loss equation with n = 1.852 , then Table 9.11 is rewritten as Table 9.13.
Table 9.13 The energy equations for closed simple closed loops and required independent paths in
terms of flows for the ten pipe network for the Hazen – Williams head loss equation
f 2q – Q 2 + Q 3 + Q 6 + DM 3 = 0 f 6q – Q 7 – Q 9 + Q 10 + DM 8 = 0
f 3q – Q 3 – Q 4 + Q 7 + DM 4 = 0 f 7q – Q 10 + DM 9 = 0
f 4q – Q 5 + Q 8 + DM 6 = 0
f 8q r 2 Q2 Q2
n–1
+ r 6 Q6 Q6
n–1
– r 8 Q8 Q8
n–1
–r 5 Q5 Q5
n–1
= 0
f 9q r 3 Q3 Q3
n–1
+ r 7 Q7 Q7
n–1
– r 9 Q9 Q9
n–1
– r 6 Q6 Q6
n–1
= 0
f 10 q r Q Q n – 1 – r Q Q n – 1 – r Q Q n – 1 – r Q Q n – 1 – E L – E L = 0
4 4 4 3 3 3 2 2 2 1 1 1 5 1
238
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Figure 9.5 Unknown H – equations formulation for the ten pipe network (note demands are also
shown but these are assumed to be known; in addition, the Qs are solved for as an intermediate
step to update the Darcy-Weisbach friction factors or resistance factors at each iteration)
For the ten pipe network in Figure 9.5 the head loss equations in terms of the seven unknown heads
using Equation 9.19 are given in Table 9.15.
For the 10 equations in Table 9.15 there are 17 unknowns (7 unknown heads His and 10 unknowns flows
Qjs). All 17 unknowns could be solved by solving both the 7 continuity equations in Table 9.8 and the
10 head loss equations in Table 9.15 (this is a variation of the Q+H equations formulation that is
described in Section 9.10 but it is not the Global Gradient Algorithm formulation that is presented in
Section 9.11). The head equations may be determined by rewriting the link head loss equations from
Table 9.15 in terms of flow and then substituting into the continuity equations in Table 9.8.
Table 9.15 The head loss equations for each pipe in the ten pipe network
Pipe no. Head loss equation Pipe no. Head loss equation
239
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Table 9.15 The head loss equations for each pipe in the ten pipe network
1 n–1 6 n–1
E L1 – H 2 = r 1 Q1 Q1 H 3 – H 7 = r 6 Q6 Q6
2 n–1 7 n–1
H 2 – H 3 = r 2 Q2 Q2 H 4 – H 8 = r 7 Q7 Q7
n–1 n–1
3 H 3 – H 4 = r 3 Q3 Q3 8 H 6 – H 7 = r 8 Q8 Q8
n–1 n–1
4 E L5 – H 4 = r 4 Q4 Q4 9 H 7 – H 8 = r 9 Q9 Q9
5 n–1 10 n–1
H 2 – H 6 = r 5 Q5 Q5 H 8 – H 9 = r 10 Q 10 Q 10
From Equation 9.19 the pipe flow in pipe j is expressed (Bhave 1988) as
1 n – 1
Hi – Hk Hi – Hk 1 1 n –
Q j = ------------------------------------------------------------------- = ---------- H i – H k H i – H k (9.32)
1n r 1 n
rj j
Table 9.16 Head loss equations in terms of flows for each pipe in the ten pipe network
Pipe Head loss or pipe energy equation Pipe Head loss or pipe energy equation
no. no.
1 1 - H – H H – H 1 n – 1
--- – 1 Q 6 = ---------
1 n 1n 3 7 3 7
1 Q 1 = ---------- EL 1 – H 2 EL 1 – H 2 6 r6
1n
r1
1 1 n – 1 1 1 n – 1
Q 2 = ---------- H 2 – H 3 H 2 – H 3 Q 7 = ---------- H 4 – H 8 H 4 – H 8
2 1n 7 1n
r2 r7
1 - H – H H – H 1 n – 1 1 - H – H H – H 1 n – 1
Q 3 = --------- 3 4 3 4 Q 8 = --------- 6 7 6 7
3 1n 8 1n
r3 r8
1 1 1 n – 1
--- – 1 Q 9 = ---------- H 7 – H 8 H 7 – H 8
4 1 n 1n
Q 4 = ---------- EL 5 – H 4 EL 5 – H 4 9 r9
1n
r4
1 1 n – 1 1
Q 5 = ---------- H 2 – H 6 H 2 – H 6 --- – 1
5 1n 10 1 -H – H H – H n
r5 Q 10 = --------- 8 9 8 9
1n
r 10
The modulus sign avoids raising a negative exponent when Hi < Hk. For the Darcy – Weisbach head loss
equation where n = 2, Equation 9.32 becomes
1 – 0.5
Q j = ---------- H i – H k H i – H k (9.33)
r 1 2
j
For the Hazen – Williams head loss equation where n = 1.852, Equation 9.32 becomes
1 – 0.46
Q j = ----------- H i – H k H i – H k (9.34)
r 0.54
j
The reformulated pipe head loss equations expressed in terms of flows from Table 9.15 are shown in
Table 9.16.
240
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
9.8.2 The head or H – equations for the ten pipe network system
Each term in Equation 9.34 may be substituted into the continuity equations in Table 9.8 to form 7 non-
linear equations in 7 unknown heads H2, H3, H4, H6,....,H9 as shown in Table 9.17 and Table 9.18.
Table 9.17 The head or H – equations for the ten pipe network
Node Continuity equation at each node in terms of unknown heads
no.
1 n – 1 1 n – 1 1 n – 1
E L1 – H 2 E L1 – H 2 H 2 – H 3 H 2 – H 3 H 2 – H 6 H 2 – H 6
2 -------------------------------------------------------------------------- + -------------------------------------------------------------------
- + -------------------------------------------------------------------
- + DM 2 =
1n 1n 1n
r1 r2 r5
1 n – 1 1 n – 1 1 n – 1
H 2 – H 3 H 2 – H 3 H 3 – H 4 H 3 – H 4 H 3 – H 7 H 3 – H 7
3 -------------------------------------------------------------------
- + -------------------------------------------------------------------
- + -------------------------------------------------------------------
- + DM 3 =
1n 1n 1n
r2 r3 r6
1 n – 1 1 n – 1 1 n – 1
H 3 – H 4 H 3 – H 4 EL 5 – H 4 EL 5 – H 4 H 4 – H 8 H 4 – H 8
4 -------------------------------------------------------------------- – ------------------------------------------------------------------------
1n 1n
- + -------------------------------------------------------------------
1n
- + DM 4 = 0
r3 r4 r7
1 n – 1 1 n – 1
H 2 – H 6 H 2 – H 6 H 6 – H 7 H 6 – H 7
6 – -------------------------------------------------------------------
- + -------------------------------------------------------------------
- + DM 6 = 0
1n 1n
r5 r8
1 n – 1 1 n – 1 1 n – 1
H 3 – H 7 H 3 – H 7 H 6 – H 7 H 6 – H 7 H 7 – H 8 H 7 – H 8
7 -------------------------------------------------------------------
- + -------------------------------------------------------------------
- + -------------------------------------------------------------------
- + DM 7 =
1n 1n 1n
r6 r8 r9
1 n – 1 1 n – 1 1 n – 1
H 4 – H 8 H 4 – H 8 H 7 – H 8 H 7 – H 8 H 8 – H 9 H 8 – H 9
8 -------------------------------------------------------------------
- – -------------------------------------------------------------------
- + -------------------------------------------------------------------
- + DM 8 =
1n 1n 1n
r7 r9 r 10
1 n – 1
H 8 – H 9 H 8 – H 9
9 – -------------------------------------------------------------------
- + DM 9 = 0
1n
r 10
9.8.3 The H – equations formulation for Darcy – Weisbach head loss equa-
tion
For the Darcy – Weisbach head loss equation with n = 2 then Table 9.17 is rewritten as Table 9.18. The
resistance term r – values r 1 r 2 r 10 in Table 9.17 would be computed from the formulas in
Section 4.8 for pipe j for either SI units or US customary units. These values would be updated at every
iteration.
Table 9.18 The head or H – equations for the ten pipe network for the Darcy – Weisbach head loss
equation
Node Continuity equation at each node in terms of unknown heads
no.
– 0.5 – 0.5 – 0.5
E L1 – H 2 E L1 – H 2 H 2 – H 3 H 2 – H 3 H 2 – H 6 H 2 – H 6
2 ---------------------------------------------------------------
- + ---------------------------------------------------------
- + ---------------------------------------------------------
- + DM 2 =
0.5 0.5 0.5
r1 r2 r5
– 0.5 – 0.5
H 2 – H 6 H 2 – H 6 H 6 – H 7 H 6 – H 7
6 – ---------------------------------------------------------
- + ---------------------------------------------------------
- + DM 6 = 0
0.5 0.5
r5 r8
241
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Table 9.18 The head or H – equations for the ten pipe network for the Darcy – Weisbach head loss
equation
– 0.5 – 0.5 – 0.5
H 3 – H 7 H 3 – H 7 H 6 – H 7 H 6 – H 7 H 7 – H 8 H 7 – H 8
7 ---------------------------------------------------------
- + ---------------------------------------------------------
- + ---------------------------------------------------------
- + DM 7 =
0.5 0.5 0.5
r6 r8 r9
– 0.5
H 8 – H 9 H 8 – H 9
9 – ---------------------------------------------------------
- + DM 9 = 0
0.5
r 10
9.8.4 The H – equations formulation for Hazen – Williams head loss equa-
tion
For the Hazen – Williams head loss equation with n = 1.852 , then Table 9.17 is rewritten as
Table 9.19.
Table 9.19 The head or H – equations for the ten pipe network for
the Hazen – Williams head loss equation
Node Continuity equation at each node in terms of unknown heads
no.
– 0.46 – 0.46 – 0.46
E L1 – H 2 E L1 – H 2 H 2 – H 3 H 2 – H 3 H 2 – H 6 H 2 – H 6
2 -----------------------------------------------------------------
- + ------------------------------------------------------------ + ------------------------------------------------------------ + DM 2 =
0.54 0.54 0.54
r1 r2 r5
– 0.46 – 0.46
H 2 – H 6 H 2 – H 6 H 6 – H 7 H 6 – H 7
6 – ------------------------------------------------------------ + ------------------------------------------------------------ + DM 6 = 0
0.54 0.54
r5 r8
– 0.46
H 8 – H 9 H 8 – H 9
9 – ------------------------------------------------------------ + DM 9 = 0
0.54
r 10
T
u = LF 1 LF 2 LF NTL for s=1,...., NTL (9.35)
where
• u = vector of loop flows for each of the closed simple loops and required independent paths
(m3/s or ft3/s)
242
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
• LF s = loop flow for each loop s (closed simple loops or required independent paths) (m3/s
or ft3/s)
• NTL = number of independent loops (simple plus path) (= NL + NF – NC); NL = number
of closed simple loops; NF = number of reservoirs or fixed head nodes; NC = number of
separate disconnected networks
The column vector of unknown loop flows that are shown in Figure 9.6 for the ten pipe network is
T
u = LF 1 LF 2 LF 3 (9.36)
The minimum number of equations for any of the formulations considered results for the LF – equations
formulation. The set of LF – equations has equations that are all nonlinear. In general the number of
unknowns in the loop flow equations is substantially less than the number of Q – equations or the H –
equations. As for the Q – equations formulation all loops and required independent paths need to be
identified for the LF – equations formulation.
Figure 9.6 Unknown LF – equations formulation for the ten pipe network (note demands are also
init
shown but these are assumed to be known; in addition Q j values that are initially selected to
satisfy continuity stay constant iteration by iteration)
243
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
The LF – equations in terms of the unknown loop flows in the network have in the past been recom-
mended as the preferred formulation of the equations for a network (Epp and Fowler 1970, Wood and
Rayes 1981, Nielsen 1989). Ellis and Simpson (1996) indicated that the process for determining the pre-
ferred formulation is not straight forward. It not only depends on the number of equations but also the
initial set up time prior to the equations being iteratively solved for (e.g. in determining a set of link
flows that satisfy continuity) and also is quite dependent on the starting vector for the set of unknowns
that is selected to commence the iterative solution process.
• the need for computing a basis for the complete solution to the continuity equations at every
init
node to obtain an initial starting vector q
The Global Gradient Algorithm formulation is preferred to the loop flows method as will be seen later in
Chapter.
The continuity equations do not form part of the set of the LF – equations as long as the initial flow in
init
each link Q j satisfies the continuity at each node. Nielsen (1989) suggested a way of an initial col-
init init
umn vector of unknown flows or q that satisfies continuity. The Q j flows for the ten pipe exam-
ple network are shown in Figure 9.6.
init
• Qj is the assumed initial flow in each link j that satisfies continuity at each node. These
remain the same for all iterations. Note that this is quite different from the loop flows for-
mulation for the Hardy Cross method discussed in Section 8.4 where the initially selected
k k + 1
flows Q j are updated to Q j in the loop immediately after the computation of each
loop flow.
*
• Q j is the correct flow (i.e. the flow that is required to be found) in link j such that the LF –
equations or head loss energy equations for each closed simple loop and required inde-
pendent path s are satisfied
• LFs is the loop flow for a closed simple loop s or required independent path s that must be
init *
added (or subtracted) to the Q j values to obtain the actual flow rates Q j in each link
assuming the values have converged
244
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
* init
Qj = Qj + LF s for each link j = 1,...., NP (9.38)
s PL j
where
*
• Q j = actual true flows in the network (m3/s or ft3/s)
init
• Qj = assumed initial flows in each link j (m3/s or ft3/s)
• LF s = loop flow for each loop s (closed simple loops or required independent paths) (m3/s
or ft3/s)
• PLj = set of indices of the loops associated with pipe j
• NP = number of links
Each of the LF terms is only included within the summation if link j is a member in the closed simple
loop or required independent path s.
Consider the head loss for pipe j in a closed simple loop or required independent path s by combining
Equation 9.19 and Equation 9.38 as
* n–1 n–
= r j Q j + LF s Q j + LF s
* init init
= r jQ j Q j (9.39)
f j s PL j s PL j
For the Darcy – Weisbach head loss equation with n = 2 then Equation 9.39 becomes
= r j Q j Q j = r j Q j + LF s Q j + LF s
* * init init
(9.40)
f j s PL j s PL j
For the Hazen – Williams head loss equation with n = 1.852 then Equation 9.39 becomes
* 0.852 0.85
= r j Q j + LF s Q j + LF s
* init init
= r jQ j Q j (9.41)
f j s PL j s PL j
Variables are defined beneath Equation 9.39. Flow directions must be assumed for each pipe. A direc-
tion (usually positive for clockwise) for each of the loop flow LFs must also be assumed. Now for the
head loss around a closed simple loop
n–1
r j Q j + s P LLF s Q j + s P LLF s
init init
= 0 for s = 1,2,...,NL (9.42)
L j
j j
It follows that for the head loss along a required independent path between two reservoirs or nodes of
fixed head is
n–1
r j Q j + s P LLF s Q j + s P LLF s
init init
– E L m – E L q = 0for s=1,2,...,(NF – NC)(9.43)
L j
j j
9.9.5 The loop flow equations for the ten pipe network
For the ten pipe network in Figure 9.6, Equation 9.42 and Equation 9.43 for the two closed simple loops
and one path are shown in Table 9.20.
245
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Table 9.20 The loop flows or LF – equations for the ten pipe network
Loop no. Energy equation
1 init init n–1
r 2 Q 2 + LF 1 – LF 3 Q 2 + LF 1 – LF 3
init init n–1
+ r 6 Q 6 + LF 1 – LF 2 Q 6 + LF 1 – LF 2
init init n–1 init init n–1
– r 8 Q 8 – LF 1 Q 8 – LF 1 – r 5 Q 5 – LF 1 Q 5 – LF 1 = 0
2 init init n–1 init init n–1
r 3 Q 3 + LF 2 – LF 3 Q 3 + LF 2 – LF 3 + r 7 Q 7 + LF 2 Q 7 + LF 2
init init n–1 init init n–1
– r 9 Q 9 – LF 2 Q 9 – LF 2 – r 6 Q6 + LF 1 – LF 2 Q 6 + LF 1 – LF 2 = 0
3 init init n–1 init init n–1
r 4 Q 4 + LF 3 Q 4 + LF 3 – r 3 Q 3 + LF 2 – LF 3 Q 3 + LF 2 – LF 3
init init n–1 init init n–1
– r 2 Q 2 + LF 1 – LF 3 Q 2 + LF 1 – LF 3 – r 1 Q 1 – LF 3 Q 1 – LF 3
– E L5 – E L1 = 0
For the Darcy – Weisbach head loss equation with n = 2 then Table 9.20 is rewritten as Table 9.21. The
resistance term r – values r 1 r 2 r 10 in Table 9.21 would be computed from the formulas in
Section 4.8 for pipe j for either SI units or US customary units.
Table 9.21 The loop flows or LF – equations for the ten pipe network for the Darcy – Weisbach
head loss equation
Loop no. Energy equation
1 init init
r 2 Q 2 + LF 1 – LF 3 Q 2 + LF 1 – LF 3
init init init init
+ r 6 Q 6 + LF 1 – LF 2 Q 6 + LF 1 – LF 2 – r 8 Q 8 – LF 1 Q 8 – LF 1
init init
– r 5 Q 5 – LF 1 Q 5 – LF 1 = 0
2 init init
r 3 Q 3 + LF 2 – LF 3 Q 3 + LF 2 – LF 3
init init init init
+ r 7 Q 7 + LF 2 Q 7 + LF 2 – r 9 Q 9 – LF 2 Q 9 – LF 2
init init
– r 6 Q 6 + LF 1 – LF 2 Q 6 + LF 1 – LF 2 = 0
3 init init init init
r 4 Q 4 + LF 3 Q 4 + LF 3 – r 3 Q 3 + LF 2 – LF 3 Q 3 + LF 2 – LF 3
init init init init
– r 2 Q 2 + LF 1 – LF 3 Q 2 + LF 1 – LF 3 – r 1 Q 1 – LF 3 Q 1 – LF 3
– E L5 – E L1 = 0
246
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
For the Hazen – Williams head loss equation with n = 1.852 , then Table 9.20 is rewritten as Table 9.22
and Table 9.23.
Table 9.22 The loop flows or LF – equations for the ten pipe network for the Hazen – Williams
head loss equation
Loop Energy equation
no.
1 init init 0.852
r 2 Q 2 + LF 1 – LF 3 Q 2 + LF 1 – LF 3
init init 0.852 init init 0.852
+ r 6 Q 6 + LF 1 – LF 2 Q 6 + LF 1 – LF 2 – r 8 Q 8 – LF 1 Q 8 – LF 1
init init 0.852
– r 5 Q 5 – LF 1 Q 5 – LF 1 = 0
2 init init 0.852 init init 0.852
r 4 Q 4 + LF 3 Q 4 + LF 3 – r 3 Q 3 + LF 2 – LF 3 Q 3 + LF 2 – LF 3
init init 0.852 init init 0.852
– r 2 Q 2 + LF 1 – LF 3 Q 2 + LF 1 – LF 3 – r 1 Q 1 – LF 3 Q 1 – LF 3 =0
3 init init 0.852 init init 0.852
r 4 Q 4 + LF 3 Q 4 + LF 3 – r 3 Q 3 + LF 2 – LF 3 Q 3 + LF 2 – LF 3
init init 0.852 init init 0.852
– r 2 Q 2 + LF 1 – LF 3 Q 2 + LF 1 – LF 3 – r 1 Q 1 – LF 3 Q 1 – LF 3
– E L5 – E L1 = 0
T
m = Q 1 Q 2 Q NP H 1 H 2 H NJ (9.44)
where
• m = vector of unknown pipe flows (or other flow elements – pumps or valves) plus
unknowns heads at each node (m3/s or ft3/s).
• Q j = flow in link j (m3/s or ft3/s)
• NP = number of links
• H i = nodal head at node i (m or ft)
• NJ = number of nodes (excluding fixed head nodes such as reservoirs)
The number of equations in this formulation is clearly larger than the number of equations for the Q –
equations formulation or the H – equations formulation. Thus the size of the matrices that need to be
dealt with in the iterative solution process will consequently be larger. However, the form of the govern-
ing equations is simpler and computation of the Jacobian elements is considerably easier. In addition, it
is not necessary to determine the loops as for the Q – equations formulation.
The Q+H equations formulation for the ten pipe network shown in Figure 9.2 as seen earlier in the
Chapter.
9.10.1 The pipe head loss equations for the ten – pipe network
The head loss equation for a pipe expressed in terms of the unknown heads at the end nodes and the
unknown discharge in the pipe from Equation 9.19 in a functional form is
n–1
H i – H k – r jQ j Q j = 0 for j = 1,......,NP (9.45)
247
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
The head loss equation based on Equation 9.45 for each of the ten pipes in Figure 9.7 are given in
Table 9.23.
Table 9.23 The head loss equations for each of the ten pipes in the ten pipe network
PN* Funct. Head loss equation PN Funct. Head loss equation
1 f 1m E L – H – r Q Q n – 1 = 0 6 f 6m H – H – r Q Q n – 1 = 0
1 2 1 1 1 3 7 6 6 6
2 f 2m H – H – r Q Q n – 1 = 0 7 f 7m H – H – r Q Q n – 1 = 0
2 3 2 2 2 4 8 7 7 7
3 f 3m H – H – r Q Q n – 1 = 0 8 f 8m H – H – r Q Q n – 1 = 0
3 4 3 3 3 6 7 8 8 8
4 f 4m E L – H – r Q Q n – 1 = 0 9 f 9m H – H – r Q Q n – 1 = 0
5 4 4 4 4 7 8 9 9 9
5 f 5m H – H – r Q Q n – 1 = 0 10 f 10 m H – H – r Q Q n – 1 = 0
2 6 5 5 5 8 9 10 10 10
3 f 12 m – Q 2 + Q 3 + Q 6 + DM 3 = 0 8 f 16 m – Q 7 – Q 9 + Q 10 + DM 8 = 0
4 f 13 m – Q 3 – Q 4 + Q 7 + DM 4 = 0 9 f 17 m – Q 10 + DM 9 = 0
6 f 14 m – Q 5 + Q 8 + DM 6 = 0
Table 9.25 The Q+H equations for the ten pipe network
Func- Pipe head loss equations and continuity equations
tion
f 1m E L1 – H 2 – r 1 Q1 Q1
n–1
= 0 f 11 m – Q 6 – Q 8 + Q 10 + DM 7 = 0
f 2m H 2 – H 3 – r 2 Q2 Q2
n–1
= 0 f 12 m – Q 7 – Q 9 + Q 10 + DM 8 = 0
f 3m H 3 – H 4 – r 3 Q3 Q3
n–1
= 0 f 13 m – Q 10 + DM 9 = 0
f 4m E L5 – H 4 – r 4 Q4 Q4
n–1
= 0 f 14 m – Q 1 + Q 2 + Q 5 + DM 2 = 0
248
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Table 9.25 The Q+H equations for the ten pipe network
f 5m H 2 – H 6 – r 5 Q5 Q5
n–1
= 0 f 15 m – Q 2 + Q 3 + Q 6 + DM 3 = 0
f 6m H 3 – H 7 – r 6 Q6 Q6
n–1
= 0 f 16 m – Q 3 – Q 4 + Q 7 + DM 4 = 0
f 7m H 4 – H 8 – r 7 Q7 Q7
n–1
= 0 f 17 m – Q 5 – Q 8 + DM 6 = 0
f 8m H 6 – H 7 – r 8 Q8 Q8
n–1
= 0
f 9m H 7 – H 8 – r 9 Q9 Q9
n–1
= 0
f 10 m H – H – r Q Q n – 1 = 0
8 9 10 10 10
9.10.4 Q+H equations formulation for Darcy – Weisbach head loss equation
For the Darcy – Weisbach head loss equation with n = 2 then Table 9.25 is rewritten as Table 9.26.
Table 9.26 The Q+H equations with 17 unknowns for the ten pipe network (Darcy – Weisbach)
Func- Continuity equations and pipe head loss equations
tion
f 1m E L1 – H 2 – r 1 Q1 Q1 = 0 f 11 m – Q 6 – Q 8 + Q 10 + DM 7 = 0
f 2m H 2 – H 3 – r 2 Q2 Q2 = 0 f 12 m – Q 7 – Q 9 + Q 10 + DM 8 = 0
f 3m H 3 – H 4 – r 3 Q3 Q3 = 0 f 13 m – Q 10 + DM 9 = 0
f 4m E L5 – H 4 – r 4 Q4 Q4 = 0 f 14 m – Q 1 + Q 2 + Q 5 + DM 2 = 0
f 5m H 2 – H 6 – r 5 Q5 Q5 = 0 f 15 m – Q 2 + Q 3 + Q 6 + DM 3 = 0
f 6m H 3 – H 7 – r 6 Q6 Q6 = 0 f 16 m – Q 3 – Q 4 + Q 7 + DM 4 = 0
f 7m H 4 – H 8 – r 7 Q7 Q7 = 0 f 17 m – Q 5 – Q 8 + DM 6 = 0
f 8m H 6 – H 7 – r 8 Q8 Q8 = 0
f 9m H 7 – H 8 – r 9 Q9 Q9 = 0
f 10 m H 8 – H 9 – r 10 Q 10 Q 10 = 0
9.10.5 The Q+H equations formulation for Hazen – Williams head loss equa-
tion
For the Hazen – Williams head loss equation with n = 1.852 , then Table 9.25 is rewritten as Table 9.27
249
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Table 9.27 The Q+H equations with 17 unknowns for the ten pipe network (Hazen – Williams)
Func- Continuity equations and pipe head loss equations
tion
Func- Pipe head loss equations and continuity equations
tion
f 1m E L1 – H 2 – r 1 Q1 Q1
0.852
= 0 f 11 m – Q 6 – Q 8 + Q 10 + DM 7 = 0
f 2m H 2 – H 3 – r 2 Q2 Q2
0.852
= 0 f 12 m – Q 7 – Q 9 + Q 10 + DM 8 = 0
f 3m H 3 – H 4 – r 3 Q3 Q3
0.852
= 0 f 13 m – Q 10 + DM 9 = 0
f 4m E L5 – H 4 – r 4 Q4 Q4
0.852
= 0 f 14 m – Q 1 + Q 2 + Q 5 + DM 2 = 0
f 5m H 2 – H 6 – r 5 Q5 Q5
0.852
= 0 f 15 m – Q 2 + Q 3 + Q 6 + DM 3 = 0
f 6m H 3 – H 7 – r 6 Q6 Q6
0.852
= 0 f 16 m – Q 3 – Q 4 + Q 7 + DM 4 = 0
f 7m H 4 – H 8 – r 7 Q7 Q7
0.852
= 0 f 17 m – Q 5 – Q 8 + DM 6 = 0
f 8m H 6 – H 7 – r 8 Q8 Q8
0.852
= 0
f 9m H 7 – H 8 – r 9 Q9 Q9
0.852
= 0
f 10 m H – H – r Q Q 0.852 = 0
8 9 10 10 10
1. Local gradient (an example is the Hardy Cross approach that has already been described in
Chapter 8). These methods solve the original system of equations in terms of a local gradi-
ent (a loop flow correction for one loop in the case of the loop flows formulation of the
Hardy Cross method)
2. Newton – Raphson method (described in detail in Chapter 10 – Warga 1954, Martin and
Peters 1963, Shamir and Howard 1968). Todini and Pilati (1988) viewed this as an exten-
sion of the Hardy Cross method by means of a simultaneous multidimensional correction
algorithm.
250
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
3. Linearisation (the linear theory method of Charles and Wood (1972) described in
Chapter 10).
4. Numerical minimization based on a Content Model (Collins et al. 1978) that searches for a
minimum of a nonlinear convex objective function. Mathematical optimization techniques
are used to solve the system of equations. The advantage is that due to the convexity of the
objective function combined with the linear constraints guarantees the existence and
uniqueness of the problem. Unfortunately the solution algorithms are inefficient particu-
larly for large complex networks.
5. The Global Gradient Algorithm is described as a bridge between optimization and the
Newton – Raphson technique that proves the existence and uniqueness of the solution (the
reader is referred to the Todini and Pilati (1988) paper for details of the proof). A slightly
modified Content Model (Collins et al. 1978) is minimized leading to a system of heads and
flows that are solved for simultaneously. The Newton – Raphson technique is then applied
to the enlarged space of heads and flows where the proof of existence and uniqueness holds.
This is the key to the unconditional convergence of the Global Gradient Algorithm. A
Lagrange multiplier technique is used by Todini and Pilati (1988) to transform a con-
strained minimization problem into an unconstrained one. A proof is given of monotonicity
of one of the terms in the governing equations that leads to the uniqueness and existence of
the solution.
Finally the problem is algebraically rearranged (see Chapter 10 for details) to be
• a recursive solution of a linear system of size NJ equal to number of unknown heads
and
• a matrix projection of the results over the NP unknown link flows
A sparse symmetric, positive definite and Stieltjes type matrix that results allows for the
efficient solution using the Incomplete Choleski Factorization Method/Modified Conjugate
Gradient algorithm (ICF/MCG) of Kershaw (1978). More details are given in Chapter 10.
9.11.2 Specification of parameters and definition of required matrices
A number of quantities that have (mostly) been presented earlier in this Chapter are now considered.
The quantities considered are
• NP = number of links
• NJ = number of nodes
• NF = number of reservoirs or fixed head nodes
• NC = number of separate disconnected subnetworks (or components)
• NL = number of closed simple loops {= NP – NJ – NF – NC }
• NPL = number of required independent paths {= NF – NC }
• NTL = number of independent loops (simple loops plus required independent paths) {=
NL + NPL }
As an example consider the ten pipe network in Figure 9.7. This network has been studied for other for-
mulations earlier in the Chapter.
251
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Figure 9.7 Unknown Global Gradient Algorithm formulation variables for ten pipe network (note
demands are also shown but these are assumed to be known)
The continuity equation has been considered earlier in the Chapter - see Equation 9.15, Equation 9.16
and Equation 9.17
Thus the matrix formulation of the continuity equations for the Global Gradient Algorithm from
Equation 9.17 is
T
A1 q + dm = 0 (9.46)
where
9.11.3 The pipe head loss equations in matrix form – the Global Gradient
Algorithm
The head loss equations in each of the pipe j from Equation 9.19 are
n–1
H i – H k = r jQ j Q j for j = 1,..., NP (9.47)
Rearranging Equation 9.47 for the pipes not attached to reservoirs for the ten pipe network gives
n–1
–r j Q j Q j + Hi – Hk = 0 for j = 1,..., NP except pipes 1 and 4 (9.48)
For pipes 1 and 4 that are attached to fixed head node reservoirs the following equations apply
n–1
–r 1 Q1 Q1 – H + EL 1 = 0 for pipe 1 (9.49)
2
252
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
n–1
–r 4 Q4 Q4 – H + EL 5 = 0 for pipe 4 (9.50)
4
n–1
Consider the first term r j Q j Q j on the left – hand side of Equation 9.48. Introduce the following
matrix form for the ten pipe network in Figure 9.6 as follows
Q1
n–1 Q2
r 1 Q1 0 0 0 0 0
n–1 Q3
0 r 2 Q2 0 0 0 0
n–1 Q4
0 0 r 3 Q3 0 0 0
Q5
(9.51)
Q6
n–1
0 0 0 r 8 Q8 0 0
Q7
n–1
0 0 0 0 r 9 Q9 0 Q8
n–1
0 0 0 0 0 r 10 Q 10 Q9
Q 10
Thus the G matrix for the most general form of the head loss equation is
n–1
r 1 Q1 0 0 0 0 0
n–1
0 r 2 Q2 0 0 0 0
n–1
0 0 r 3 Q3 0 0 0
G = (9.52)
n–1
0 0 0 r 8 Q8 0 0
n–1
0 0 0 0 r 9 Q9 0
n–1
0 0 0 0 0 r 10 Q 10
Q1
Q2
Q3
Q4
Q5
G = Gq (9.53)
Q6
Q7
Q8
Q9
Q 10
Note that the G is a positive diagonal matrix that is dependent on the flow vector q . Another way to
write G is
253
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
n – 1
G = diag r j Q j for j = 1,..., NP (9.54)
Now returning to Equation 9.48 for the ten pipe network and considering the second and third unknown
nodal head terms – H i + H k on the left – hand side of
n–1
–r j Q j Q j + Hi – Hk = 0 for j = 1,..., NP except pipes 1 and 4 (9.55)
A matrix form can be introduced by using the unknown head incidence matrix A 1 for the ten pipe net-
work from Equation 9.11 and the vector of unknown heads h from Equation 9.4 as follows
–1 0 0 0 0 0 0
1 –1 0 0 0 0 0 H2
0 1 –1 0 0 0 0 H3
0 0 –1 0 0 0 0 H4
1 0 0 –1 0 0 0
H 6 = A1 h (9.56)
0 1 0 0 –1 0 0
H7
0 0 1 0 0 –1 0
0 0 0 1 –1 0 0 H8
0 0 0 0 1 –1 0 H9
0 0 0 0 0 1 –1
Now consider a pipe that is attached to a reservoir (from Equation 9.49). The third term of – EL 1 on the
left – hand side in
n–1
–r 1 Q1 Q1 – H + EL 1 = 0 for pipe 1 (9.57)
2
may be put in matrix form as follows. Introduce a general column vector of known reservoir elevations
for a total of NF reservoirs
T
e L = EL 1 EL 2 EL NF (9.58)
T EL 1
e L = EL 1 EL 5 = (9.59)
EL 5
The matrix form of the third term in Equation 9.57 using the fixed head node incidence matrix A 2
defined in Section 9.3.2 is
254
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
1 0
0 0
0 0
0 1
0 0 EL 1 = A e (9.60)
2 L
0 0 EL 5
0 0
0 0
0 0
0 0
where
Thus the resultant matrix form for the head loss equations for the pipes from Equation 9.47
n–
H
( i – H k = h f = r jQ j Q j ) in a network is
j
– Gq + A 1 h + A 2 e L = 0 (9.61)
where
n–1
• G = positive diagonal square matrix of r j Q j values (see Equation 9.52)
• n = exponent of the flow in the head loss equation (Darcy – Weisbach n = 2 or Hazen –
Williams equation n = 1.852)
• q = column vector of unknown pipe flows (Equation 9.1 and Equation 9.2) (m3/s or ft3/s)
• A 1 = unknown head node incidence matrix (Section 9.3.1 and Equation 9.11)
• h = column vector of unknown heads for each of the nodes (m or ft) (Equation 9.4)
• A 2 = fixed node incidence matrix (Section 9.3.2 and Equation 9.13)
• e L = reservoir elevations vector (Equation 9.59) (m or ft)
Together Equation 9.46 and Equation 9.61 form the Global Gradient Algorithm equation formulation
that is the basis of the Global Gradient Algorithm for solving for conditions in a network.
T
A1 q + dm = 0 (9.62)
– Gq + A 1 h + A 2 e L = 0 (9.63)
Expanding Equation 9.61 into full matrix form gives Equation 9.64.
255
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Q1
n–1 Q2
r 1 Q1 0 0 0 0 0
n–1 Q3
0 r 2 Q2 0 0 0 0
n–1 Q4
0 0 r 3 Q3 0 0 0
Q5
– (9.64)
Q6
n–1
0 0 0 r 8 Q8 0 0
Q7
n–1
0 0 0 0 r 9 Q9 0 Q8
n–1
0 0 0 0 0 r 10 Q 10 Q9
Q 10
–1 0 0 0 0 0 0 1 0
1 –1 0 0 0 0 0 H2 0 0
0 1 –1 0 0 0 0 H3 0 0
0 0 –1 0 0 0 0 H4 0 1
+ 1 0 0 –1 0 0 0 + 0 0 EL 1 = 0
H6
0 1 0 0 –1 0 0 0 0 EL 5
H7
0 0 1 0 0 –1 0 0 0
0 0 0 1 –1 0 0 H8 0 0
0 0 0 0 1 –1 0 H9 0 0
0 0 0 0 0 1 –1 0 0
A combined partitioned matrix formulation of these two sets of equations (Equation 9.62 and
Equation 9.63) gives
–G | A1 A2 e L
q
––– | ––– –– + ––– = 0 (9.65)
T h dm
A1 | 0
The derivation above differs from that of Todini and Pilati (1988) but arrives at the same result in
Equation 9.65. Todini and Pilati (1988) derived Equation 9.62 and Equation 9.63 based on a Content
Model approach based on the transformation of a constrained minimization into an unconstrained one
by means of Lagrange multipliers. Todini and Pilati (1988) concluded that because the r j values for
each pipe j are positive or the head loss expressions for each pipe f j Q j are all monotonically increas-
ing functions then the problem is convex and therefore a solution exists and is unique. However, this is
true only in the space of unknown Q and H (Todini and Pilati 1988). An alternative derivation of these
equations was provided by Ellis (2003) who used a total variation of parameters for the development of
the iterative solution procedure.
The numerical solution of Equation 9.65 using a Newton Raphson approach is given in Chapter 16.
In contrast to the Q – equations formulation and the H – equations formulation, the Global Gradient
Algorithm solves for the heads and flows simultaneously in a sequential iterative manner. The parti-
tioned form of the matrix in Equation 9.65 based on the continuity equations (Equation 9.16 and
Equation 9.46) and the pipe head loss equations is used to solve for both flows and heads.
256
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
locations and normal water surface operating levels, pump locations and characteristic operating curves,
pressure reducing valves and pressure settings, constants and external demands (Templeman and Yates
1984). Analysis involves the determination of the internal performance of the network in terms of flows
and pressures at nodes. Total inflow to the system must be equal to the total outflow.
Boulos and Wood (1990) divided parameters associated with a network into three categories
• design parameters such as pipe diameter, pipe length, pump power, pump head, storage
level and valve characteristics
• operating parameters such as pump speed, pressure regulating valve setting, control valve
setting, and flow or pressure specification
• calibration parameters such as pipe roughness and nodal demands
In general, one of the following occurs at all nodes in the network (Brebbia and Ferrante 1983)
As an alternative to the analysis problem described above, it is also possible to recast the equations to
take on a synthesis or design formulation. For example, the pipe network governing equations may be
formulated in terms of unknown pipe diameters, if flow velocities are specified in each line. Other vari-
ables may also be recast as unknowns including heads, water demands and pipe roughnesses or resis-
tances (Shamir and Howard 1968). Although not explicitly discussed by Shamir and Howard (1968) it is
possible that pipe diameters, pipe length or pipe roughness could be determined from values of pipe
resistance (Ormsbee and Wood 1986; Boulos and Wood 1990; Boulos and Ormsbee 1991). Ormsbee
and Wood in 1986 stated that they thought that direct solution of design parameters had great potential
and provided an alternative to implicit optimization procedures to water distribution systems. They sug-
gested that an optimum hydraulic design may be found in the sense that the designs are carried out to
just meet specified conditions. Whilst it is possible to recast the equations as suggested above, pre –
defining velocities in particular pipes is problematic as it may be that the particular velocity that is
selected is not optimal. Whilst having some use it is the opinion of the author that this method is not
nearly effective as using optimization of the design of networks such as genetic algorithm optimization.
Details of genetic algorithm analysis are shown in Chapter 20.
9.13 References
Bhave, P. R. (1988). “Extended period simulation of water systems - direct solution.” Journal of Envi-
ronmental Engineering, 114(5), October, 1146-1159.
Boulos, P. F., and Altman, T. (1991). “A graph-theoretic approach to explicit nonlinear pipe network
optimization.” Applied Mathematical Modelling, Vol. 15(September), 459-466.
Boulos, P. F., and Ormsbee, L. E. (1991). “Explicit network calibration for multiple loading conditions.”
Civ. Engrg. Syst., 8, 153-160.
Boulos, P. F., and Wood, D. J. (1990). “Explicit calculation of pipe-network parameters.” J. Hydr.
Engrg., 116(11), 1329-1344.
Brebbia, C. A. and A. J. Ferrante (1983). “Computational Hydraulics, Pipe Networks, Chapter 4." Com-
putational hydraulics: 59-121.
Collins, M., Cooper, L., Helgason, R., Kennington, J., and LeBlanc, L. (1978). “Solving the pipe net-
work analysis problem using optimization techniques.” Management Science, 24(7), 747-760.
Cross, H. (1936). Analysis of flow in networks of conduits or conductors. Bulletin No. 286, University of
Illinois Engineering Experimental Station, Urbana, Illinois.
Epp, R. and A. G. Fowler (1970). “Efficient code for steady-state flows in networks.” Journal of the
Hydraulics Division, Proceedings of the ASCE, January, Vol. 96, No. HY1: 43-56.
257
Chapter 9 - File: Chap9NwOld10-v02.fm July 6, 2022 Version 6
Jeppson, R. W. (1976). Analysis of flow in pipe networks, Ann Arbor Science, Ann Arbor, Michigan.
Kershaw, D. S. (1978). “The incomplete Cholesky - conjugate gradient method for the iterative solution
of systems of linear equations.” Journal of Computational Physics, 26, 43-65.
Kesavan, H. K., and Chandrashekar, M. (1972). “Graph-theoretical models for pipe network analysis.”
Journal of the Hydraulics Division, 98(2), 345-364.
Martin, D. W., and Peters, G. (1963). “The application of Newton's method to network analysis by digi-
tal computer.” Journal of Institute of Water Engineers and Scientists, 17(2), 115-129.
Ormsbee, L. E., and Wood, D. J. (1986). “Hydraulic design algorithms for pipe networks.” Journal of
Hydraulic Engineering, 112(12), 1195-1207.
Rossman, L. A. (2000). EPANET 2 users manual. U.S. Environmental Protection Agency, Washington,
D.C., EPA/600/R-00/057.
Salgado-Castro, R. O. (1988). Computer Modelling of Water Supply Distribution Networks Using Gra-
dient Method, Volume 1 and 2., PhD Thesis, University of Newcastle-Upon-Tyne, Newcastle, UK.
Shamir, U. and D. D. Howard (1968). “Water distribution systems analysis.” Journal of the Hydraulics
Division, Proceedings of the ASCE Vol. 94, No. HY1, January, 219-235.
Templeman, A. B., and Yates, D. F. (1984). “Mathematical similarities in engineering network analy-
sis.” Civil Engineering Systems, Vol. 1(March), 114-122.
Todini, E., Pilati, S. (1988). “A gradient algorithm for the analysis of pipe networks.” Proceedings,
Computer Applications in Water Supply, Research Studies Press, Letchworth, Hertfordshire, UK, 1-20.
Warga, J. (1954). “Determination of the steady state flows and currents in a network.” Proceedings of
Instrument Society of America, Vol. 9, Pt. 5, Paper No. 54-43-4.
Wood, D. J., and Charles, C. O. A. (1972). “Hydraulic network analysis using linear theory.” Journal of
the Hydraulics Division, Vol. 98, No. HY7, 1157-1170.
Wood, D. J., and Rayes, A. G. (1981). “Reliability of algorithms for pipe network analysis.” Journal of
the Hydraulic Division. 107(HY10), 1145-1161.
258
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
10.1 Introduction
As seen in Chapter 9, a set of simultaneous nonlinear equations may be formed to represent flows and
heads in a network. Five representations were outlined in Chapter 9 including
• the flow equations or Q – equations formulation where the continuity, closed simple loop
energy and required independent path energy equations are expressed in terms of unknown
flows in the pipes (or other flow elements) in the network. There are NP unknown flows for
this formulation.
• the head equations or H – equations formulation where the equations are formulated in
terms of unknown heads. There are NJ unknown heads in the network.
• the loop flow equations or LF – equations formulation where the equations are formulated
in terms of unknown loop flows. An initial estimate of all the flows in the network such that
continuity is satisfied at every node is required. There are NL + NF – NC unknown loop
flows for this formulation.
• the flow and head equations or Q – H equations formulation where both the continuity and
pipe head loss equations are expressed in terms of unknown flows in the pipes (or other
flow elements) and unknown heads at nodes. There are a total of NP + NJ unknown flows
and heads.
• the Global Gradient Algorithm. The formulation begins in a similar way to the Q – H equa-
tions formulation but a smart decomposition is used in developing the solution procedure.
Thus both the Q and H variables are dealt with simultaneously but the size of the matrix
that requires inversion in the iterative process is the size of the number of unknown heads
(NJ) rather than the size of the number of links plus the number of nodes (NP+NJ).
Each formulation for the example network in Equation 9.1 has a different matrix size that needs to be
computed are shown in Table 10.1. These matrices differ in their sparseness and their properties in terms
of symmetry, diagonal dominance and whether the matrix is positive definite and of Stieltjes type. This
will also have an influence on the ease of solution.
259
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
Usually the solution techniques of these sets of nonlinear equations are complicated and require iterative
solutions. Linearization of the nonlinear equations is the most common approach (Templeman and Yates
1984). A comprehensive comparison of the various solution techniques has been presented by Wood and
Rayes (1981), Salgado-Castro (1988) and Ellis and Simpson (1996). Often a Taylor series approxima-
tion, truncated to eliminate the nonlinear terms, forms the basis of iterative linearization procedures. The
changes or corrections in the unknown variables are then solved for, using techniques for solving sets of
linear equations. A new set of approximations to the unknown variables are found by adding the incre-
ments onto the values of the unknown variables at the previous iteration. Iterations continue such that
the solution is improved until a specified convergence criterion is met. The most common computer
solution techniques include (Heath 2001)
• the Newton – Raphson (NR) or Newton method (Warga 1954, Martin and Peters 1963)
• the linear theory method (LTM) (Wood and Charles 1972), this is actually fixed point itera-
tion
• the Global Gradient Algorithm (Todini and Pilati 1988), this is actually a form of Newton’s
method but it formulates the equations in a special way
Techniques for solving the set of equations include
• successive relaxation techniques such as the Hardy Cross (1936) method at the University
of Illinois at Urbana – Champaign, Illinois, USA. Elementary circuits or loops are balanced
in turn until all conditions for flow are satisfied.
• iterative methods including (a) successive substitution including both the Gauss – Seidel
and Jacobi methods (b) the Newton method where a nonlinear problem is turned into a lin-
ear problem. There are various variations of the Newton method including the damped
Newton method and where the Jacobian matrix is not recomputed at every iteration. New-
ton's method can also be used with either line search or trust region step control (Wolfram
website 2008).
This Chapter describes in general form the numerical techniques used to solve these sets of governing
equations. Chapter 12 to Chapter 16 then apply the numerical techniques to solve various formulations
of the water distribution system equations. The Hardy Cross method (Cross 1936, Cornish 1939), as dis-
cussed in Chapter 8, was the method of choice when hand computations were common prior to the mid –
1960s. Loop flow corrections are solved and applied to initially assumed flow values for each pipe and
are successively made loop by loop and iteration by iteration. These loop flow corrections are based on
a first order Taylor series expansion of the energy equations. As shown in Chapter 8, the method is suit-
able for hand computation but converges very slowly because each loop flow correction adjustment is
computed independently from every other loop.
260
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
The Newton method linearizes the nonlinear terms in the governing equations and solves a set of simul-
taneous linear equations to solve iteratively for corrections to the unknowns being solved for in the net-
work. Unknown variables are adjusted simultaneously thus achieving a more rapid convergence rate
than the Hardy Cross method.
Expressions for the Jacobian matrix in the Newton method for the ten pipe network (already introduced
in Chapter 9) are derived in Chapter 12 to Chapter 16 for the five formulations of the equations
described above. The choice of the equation formulation has a direct bearing on the behavior of the iter-
ative technique to solve the set of nonlinear equations (Nielsen 1989). Nielsen (1989) drew some con-
clusions from his investigations (prior to general knowledge about the Todini and Pilati 1988 paper)
• it is better to formulate the flow equations in terms of pipe flows (or other flow elements)
than in terms of heads at nodes
• the Newton iterative procedure is the preferred solution method
• the linear theory method results in oscillations when the iteration gets close to the solution,
however, it may provide a good starting point for the Newton method
The linear theory method (LTM) was a method that gained popularity in the early 1970s and was
thought at that time to be the method of choice. It involves linearization of the energy equations and an
iterative solution process of both the continuity equations and the linearized energy equations—a total
of NP equations. Starting solutions for the initial values are not required and they are usually assumed to
be one unit of flow to simplify the computations. This is an outcome of the way the linearization process
is implemented. Convergence problems have been experienced with the linear theory method technique
especially for large networks. The method is really a successive substitution solution method. It has
been consequently shown to be less effective than the Newton method for solving the set of nonlinear
equations.
The Global Gradient Algorithm formulation of the equations solved with the Newton technique appears
to be the most effective solution method. Matrices are pre – manipulated to maximize the efficiency of
the numerical solution. Application of the Global Gradient Algorithm to the solution of flows and heads
for the ten pipe network is given in Chapter 16.
Ax = b (10.1)
where
• A = coefficient matrix
• x = vector of unknowns to be solved for
• b = right hand side vector
To solve the system in Equation 10.1 the inverse of the coefficient matrix needs to be found such that
–1
x = A b (10.2)
For small problems Cramer’s rule can be used to invert the coefficient matrix but for computational
efficiency Gaussian elimination is preferred (Baldick 2006). For large systems, Gaussian elimination
takes much less computational effort than Cramer’s rule. The computational effort to perform Gaussian
elimination is bounded by a cubic polynomial (Baldick 2006). LU factorization involves factorizing
matrix A into the product of a lower triangular matrix L and an upper triangular matrix U. The method
is similar to Gaussian elimination (Baldick 2006). Because symmetry often arises in formulations of the
261
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
governing equations for water distribution systems a variant of LU factorization for symmetric systems
may be used. In addition the matrix A is often sparse. If this is the case, then the calculations in the LU
factorization can be arranged to reduce the computational effort considerably. The techniques discussed
so far are called direct solution techniques. Very large and sparse systems of equations are more effi-
ciently solved using iterative solution techniques (Baldick 2006).
A general set of unknowns is considered where the set of n unknown variables is the column vector x or
T
x = x 1 x 2 x n (10.3)
f 1 x 1 x 2 x n = 0
f 2 x 1 x 2 x n = 0
f n x 1 x 2 x n = 0 (10.4)
where
• x = vector of unknowns
• f j x 1 x 2 x n = jth non-linear function
• x i = unknown variable to be solved for
An iterative solution procedure is required to determine the values of xi in Equation 10.4 for n unknown
variables of x 1 x 2 x n . The true solution to this set of equations is assumed to be the following col-
umn vector
T
x * = x *1 x *2 x *n (10.5)
Let a general deviation or correction column vector for the n unknown variables be defined as
T
x = x 1 x 2 x n (10.6)
262
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
x * = x + x (10.7)
In the neighborhood of the current iteration point each of the functions in Equation 10.4 may be
expanded in a Taylor series (Press et al. 1996) as
n f x
1 2
f 1 x + x = f 1 x + -x i + O x
----------------
x i
i=1
n f x
2 2
f 2 x + x = f 2 x + -x i + O x
----------------
x i
i=1
n f x
n 2
f n x + x = f n x + -x i + O x
---------------- (10.8)
x i
i=1
where
• f i x , f j x + x = ith function
• x = deviation vector of the unknown variables; x i = ith deviation value in the vector
• n = number of functions
2
• O x = second order and higher terms of the flow and head corrections
Putting Equation 10.8 into matrix notation (Press et al. 1996) gives
2
f x + x = f x + J x x + O x (10.9)
where
*
f x + x = f x = 0
k k + 1 k
Jx x = –f x (10.10)
or
263
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
k k k
f 1x f 1x f 1x k + 1
----------------------- ------------------------ -----------------------
- x 1 k k k
x1 x2 xn f 1 x 1 x 2 x n
k + 1
k k k x 2 k k k
f 2x f 2x f 2x f 2 x 1 x 2 x n
----------------------- ------------------------ -----------------------
- = – (10.11)
x1 x2 xn
k k k k k k
f nx f nx f nx k + 1 f n x1 x2 x n
- x n
----------------------- ------------------------ -----------------------
x1 x2 xn
where the superscripts k and (k + 1) refer to successive iteration numbers. Equation 10.10 will be solved
k + 1
for the unknown vector x to avoid computation of the inverse of the Jacobian (as presented
below in Equation 10.13).
The Jacobian matrix for a general system of equations in Equation 10.11 is a square n by n matrix and
based on the variable values at iteration k is defined as
k k k
f 1x f 1x f 1x
------------------------ ------------------------ -----------------------
-
x1 x2 xn
k k k
f 2x f 2x f 2x
k - ------------------------ -----------------------
x = -----------------------
x1 x2 xn
- (10.12)
k k k
f nx f nx f nx
------------------------ ------------------------ -----------------------
-
x1 x2 xn
Equation 10.10 can also be rearranged to give an expression for a column vector of unknown corrections
at iteration (k + 1) as
k + 1 –1 k k
x = –J x f x (10.13)
where
–1 k
• J x is the inverse of the Jacobian matrix (the Jacobian matrix is defined by
Equation 10.12).
An apparent weakness in the Newton method for solving systems of nonlinear equations is the necessity
to invert the Jacobian matrix (Burden and Faires 1989). In practice, however, explicit inversion of the
Jacobian matrix may be avoided as mentioned previously. Generally, the Jacobian matrix has very few
non – zero entries (usually 2 to 5%) for large networks. Sparse matrix techniques may be used to
decrease the computation time for the solution of large networks (Chandrashekar and Stewart 1974).
– 16
mach 2 10 (10.14)
This value will be used later on as part of a stopping test for convergence.
264
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
There are three main norms that are defined – the one – norm, the two – norm and the infinity – norm. For
k + 1
the correction vector x of length n at the (k+1)st iteration during the Newton iterative solution
process, the p – norm (as defined by the MATLAB function reference webpage) is as follows.
th
--1-
k + 1 n k + 1 p
p
x p = x j (10.15)
j=1
n
k + 1 k + 1
x 1 = x j (10.16)
j=1
The 2 – norm (p = 2) is
1
---
n 2 2
k + 1 k + 1
x 2 = x j (10.17)
j=1
k + 1
This is the Euclidean length of a vector x . The root – mean – square (RMS) value of an n – element
k + 1
vector x at the (k+1)st iteration may be defined (from the MATLAB function reference) as
1---
n k + 1 2
2
x j
j=1
RMS = -------------------------------------------------- (10.18)
n
The infinity – norm (p = ) is the absolute value of the maximum sized deviation of all changes in the
k + 1
vector x at the (k+1)st iteration
k + 1 max x k + 1
x = j (10.19)
j=1, n
These norms can be applied to the flow change vector, the head change vector or the loop flow correc-
tion vector depending on what formulation has been selected.
The computer program EPANET for simulating water distribution systems uses the following relative
flow convergence test parameter (Rossman 2000) of
265
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
NP
k + 1
Q j
k + 1
q j=1
EPANET convergence = ---------------------------1 = ----------------------------------------- (10.20)
k + 1 NP
q 1 k + 1
Qj
j=1
The test in Equation 10.20 considers only the flows but from a practical standpoint it might be consid-
ered an appropriate alternative to cease iterating when, from one iteration to the next, the heads at each
node in a network differ by a sufficiently small margin (Elhay and Simpson 2011). The infinity – norm
applied to the head changes at all nodes in the network may be used as the check for convergence in all
the formulations presented in Chapter 12 to Chapter 16 as this seems to be the most physically based. In
other words, the engineer can say that they wish to have the maximum deviation to be say, no greater
than 1 mm (0.001 m). It is more difficult to attach a physical meaning to other convergence measures
such as the relative flow measure in Equation 10.20.
The infinity – norm for the head changes for the (k+1)st iteration may be computed as:
k + 1 max k + 1
h = H i (10.21)
i=1, NJ
where
k + 1
• h = infinity – norm for the head changes at the (k+1)st iteration (m or ft)
k + 1
• h = vector of nodal head changes at the (k+1)st iteration (m or ft)
k + 1
• H i = head change at node i at the (k+1)st iteration (m or ft)
• NJ = number of nodes of unknown head in the network
Thus the stopping test such that the iterative solution process terminates when the following is true
k + 1
h stop (10.22)
where
• stop = stopping test tolerance (m or ft - for example: may be set equal to say 0.001 m or
1 mm).
Equation 10.22 is applicable to three of the five formulations for checking the convergence for stopping
the iterative solution process. These formulations include (i) the H-equations (Chapter 12) (ii) the Q+H
equations (Chapter 14) and (iii) the Global Gradient Algorithm equations.
In contrast, Equation 10.22 is not suitable for the other two formulations of (i) the Q-equations (Chapter
11) and (ii) the loop flow equations (Chapter 13). The heads at the nodes are not computed in either of
these formulations so an alternative approach must be taken. Revised convergence stopping tests will be
introduced for these two formulations in the appropriate Chapters.
266
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
Modelers using an iterative procedure (for the Q+H equation formulation and the Global Gradient Algo-
rithm equations) are sometimes tempted, where the iteration process has signaled a failure to converge
after a certain number of steps based on Equation 10.20 or Equation 10.22, to relax the stopping test by
–5 –2
increasing the stopping tolerance (e.g. from the value of stop 10 to, say, stop 10 ). This is a
dangerous practice and so an additional test based on the residuals is introduced below (Elhay and Simp-
son 2011). The residuals of the computed solution for Equation 9.62 and Equation 9.63 should also be
checked, once the iterative solution process has been stopped by Equation 10.20 or Equation 10.22,
since residuals that are larger than expected will indicate an inaccurate solution. More precisely, for any
set of flows and heads q and h the following are defined, respectively, the pipe head loss residual and
the continuity residual by
h q h = – Gq + A 1 h + A 2 e L (10.23)
T
c q h = A 1 q + d m (10.24)
These residuals will be zero at the exact solution. A computed solution which satisfies Equation 10.20 or
Equation 10.22 should be considered unacceptable if for either of the following infinity norms of the
residuals (with norms defined by Equation 10.19)
h q h
u 1 stop (10.25)
or
c q h
u 2 mach (10.26)
where mach is defined in Equation 10.14 and where u1 = 1 and u2 = 100 have been found by Elhay and
Simpson (2011) to be suitable choices for networks with up to 10,000 pipes. For larger networks these
may need to be increased in size. Rejecting any solution for which one or both of Equation 10.25 and
Equation 10.26 holds safeguards against accepting an inaccurate solution.
An alternative to the infinity – norm for the head changes is the infinity – norm for the flow changes at the
(k+1)st iteration expressed as a fractional change (FC) as follows
k + 1
max Q j
FC = -----------------------
- (10.27)
j=1, NP Q k + 1
j
The difficulty with the infinity – norm for the flow changes is that it is difficult to assess a physically
appropriate stopping criteria. Obviously if there are values in the true solution that give zero flows then
this convergence parameter will cause problems due to the divide by zero or a number close to zero. The
following adjustment can be made to overcome this
k + 1
max Q j
FCA = -------------------------------
k + 1
-
(10.28)
j=1, NP 1.0 + Q j
Now the convergence criterion will not be affected by near zero flows.
267
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
• J has no inverse
• det( J ) = 0 (the determinant is zero)
• rank( J ) < n (the rank of a matrix is the maximum number of linearly independent rows or
columns it contains)
• the condition number is cond(J) = (defined in Equation 10.29 below)
If the matrix is nonsingular there will be a unique solution. The condition number is a measure of how
close the matrix is to being nonsingular (Heath 2001). A matrix with a large condition number is nearly
singular (in contrast, the size the determinant is not a good indicator of nearness to singularity – in other
words, the determinant can be large but the matrix may not be near to nonsingular). If the condition
number is large the system of equations is then considered to be ill conditioned. Thus a small change in
the coefficient matrix or a small change in the right – hand side results in a large change in the solution
vector (Holistic Numerical Methods Institute website, 2008).
In order to define the condition number, the norm of a matrix needs to be first defined. The norm of a
matrix is a scalar that gives some measure of the magnitude of the elements of the matrix (Mathworks
Documentation- norm-Vector and matrix norms website - 2019). Two definitions of the norm of a matrix
are the 1 – norm and the infinity – norm (Heath 2001). The 1 – norm is the column sum norm and is the
largest column sum of a matrix A of size n by m defined as:
m
max
A 1 = a ij (10.29)
1in j=1
The infinity – norm is the row sum norm and is the largest row sum of a matrix A of size n by m defined
as:
n
max
A = a ij (10.30)
1im j=1
The norm in Equation 10.30 finds the sum of the absolute of the elements of each row of the matrix A. It
is usual to be dealing with square matrices such that m = n. The condition number of matrix A is defined
as the product of the norm of the matrix and the norm of the inverse of the matrix:
–1
cond(A) = A A (10.31)
Because the condition number involves the inverse of the matrix, its computation is a nontrivial task
(Heath 2001). Computing the matrix norm A is easy while computing the norm of the inverse
–1
A is the challenge. Heath (2001) presents a method of predicting a bound for the norm of the
inverse matrix so that the estimate of the condition number can be achieved as an inexpensive byproduct
of the solution process.
For a matrix A the condition number is always cond(A) 1 (Heath 2001). By convention
cond(A) = if matrix A is singular.
For any diagonal matrix D = diag(di), the condition number is the ratio of the maximum diagonal ele-
ment to the minimum diagonal element as (Heath 2001):
268
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
max d
cond(D) = -----------------i- (10.32)
min d i
The usefulness of the condition number is in assessing the accuracy of the solution (Heath 2001). The
size of the condition number gives the number of dependable significant figures in the solution obtained.
The larger the condition number the smaller the number of reliable significant figures. The computed
solution loses about log10(cond(A)) decimal digits of accuracy relative to the accuracy of input (Heath
2001). This may be expressed as the rule of thumb that for every multiple of 10 of the condition number
one significant figure of accuracy is lost1.
An example of the calculation of the norms of both the Jacobian matrix and the inverse of the Jacobian
as well as the condition number is given in Example 12.4 (on page 292).
10.3 References
Baldick, R. (2006). Applied Optimization - Formulation and Algorithms for Engineering Systems. Cam-
bridge University Press, 786pp.
Chandrashekar, M., and Stewart, K. H. (1975). “Sparsity oriented analysis of large pipe networks.”
Journal of the Hydraulics Division, Proceedings, Vol. 101, No. HY4, 341-355.
Cross, H. (1936). Analysis of flow in networks of conduits or conductors. Bulletin No. 286, University of
Illinois Engineering Experimental Station, Urbana, Illinois.
Elhay, S. and Simpson, A.R. (2011). “Dealing with zero flows in solving the non-linear equations for
water distribution systems.” Journal of Hydraulic Engineering, Vol. 137, No. 10, Oct., 1216-1224.
Ellis, D. E., and Simpson, A. R. (1996). Convergence of iterative solvers for the simulation of water dis-
tribution pipe networks. Report R138, Department of Civil and Environmental Engineering, The Uni-
versity of Adelaide, 50.
Epp, R. and A. G. Fowler (1970). “Efficient code for steady-state flows in networks.” Journal of the
Hydraulics Division, Proceedings of the ASCE, January, Vol. 96, No. HY1: 43-56.
Forsythe, G. E., and Moler, C. B. (1967). Computer solution of linear algebraic systems.
Heath, M. T. (2001). Scientific Computing. An Introductory Survey, McGraw – Hill, 2nd edition.
Martin, D. W., and Peters, G. (1963). “The application of Newton's method to network analysis by digi-
tal computer.” Journal of Institute of Water Engineers and Scientists, 17(2), 115-129.
Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (1996) FORTRAN numerical recipes
(Vol. 1), Cambridge England.
Rossman, L A. (2000). EPANET 2 Users Manual. U.S. Environmental Protection Agency, Washington,
D.C., EPA/600/R-00/057.
Salgado-Castro, R. O. (1988). Computer Modelling of Water Supply Distribution Networks Using Gra-
dient Method, Volume 1 and 2., PhD Thesis, University of Newcastle-Upon-Tyne, Newcastle, UK.
1. From Dr. Sylvan Elhay of the School of Computer Science, University of Adelaide, Australia
269
Chapter 10 - File: Chap10new4-a.fm July 6, 2022 Version 7
Shamir, U. and D. D. Howard (1968). “Water Distribution Systems Analysis.” Journal of the Hydraulics
Division, Proceedings of the ASCE Vol.94, No.HY1, January: 219-235.
Templeman, A. B., and Yates, D. F. (1984). “Mathematical similarities in engineering network analy-
sis.” Civil Engineering Systems, Vol. 1(March), 114-122.
Todini, E., Pilati, S. (1988). “A gradient algorithm for the analysis of pipe networks.” Proc., Computer
Applications in Water Supply, Research Studies Press, Letchworth, Hertfordshire, UK, 1-20.
Warga, J. (1954). “Determination of the steady state flows and currents in a network.” Proceedings of
Instrument Society of America, Vol. 9(Pt. 5, Paper No. 54-43-4).
Wood, D. J., and Charles, C. O. A. (1972). “Hydraulic network analysis using linear theory.” Journal of
the Hydraulics Division, Vol. 98, No. HY7, 1157-1170.
Wood, D. J., and Rayes, A. G. (1981). “Reliability of algorithms for pipe network analysis.” Journal of
the Hydraulic Division. 107(HY10), 1145-1161.
270
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
In this Chapter the computer analysis using simulation software of EPANET (Rossman 2000) for the
modeling of water distribution systems is considered in detail. In Chapter 9 and Chapter 10, both the
formulation and solution of the network equations have been presented. Computer analysis is a very
important tool for analyzing networks. This Chapter considers the simulation of networks that are com-
prised of storage tanks and pipes only. Modeling of pumps and pressure regulating valves are consider
later in the book. Details of solving various formulations of the pipe network equations are also given in
later Chapters.
EPANET defines both links in the network as components that have an upstream and downstream node
(pipes, pumps and valves) and nodes including junctions, reservoirs and tanks. In this Chapter, the sim-
ulation model of EPANET 2.0 (Rossman 2000) is used to demonstrate computer simulation of networks.
The first simulation example presented in this Chapter involves the detailed discussion of the modeling
of the flow in a single pipeline connecting two reservoirs. The second example of the application of the
EPANET 2.0 model includes a minor loss valve in the single pipeline. Thirdly a network with 5 – pipes
and two loops is modeled. This network was solved in Chapter 8, using the Hardy Cross (1936) method.
Finally the ten pipe network introduced in Chapter 9 is also modeled with EPANET.
Many other computer programs for hydraulic simulation of networks are available that performs similar
tasks as the EPANET 2.0 examples shown in this book. In EPANET 2.0, as with other available pro-
grams, visualization of the network is possible through a map. Flows, pressures, hydraulic grade line
elevations, the variations in levels of tanks over, for example, a 24 – hour period may all be easily visu-
alized (in both tabular and graphical form) making interpretation of the results much easier.
1. © Copyright 2020. Prof. Angus R. Simpson, The University of Adelaide, Adelaide, Aus-
tralia. Part of the book entitled Water Distribution Systems Engineering.
271
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
The performance of EPANET has proven to be excellent, so much so in fact, that many simulation
model software vendors have adopted EPANET as the solution engine for their software.
EPANET 2.0 performs (as do most of the commercially and freely available software programs) the fol-
lowing functions for the analysis of pressurized networks (Rossman 2000)
• steady state analysis for a water demand loading case at a particular instant in time
• extended period simulation of the hydraulic behaviour over a period of time
• water quality behaviour within a network
EPANET 2.0 has an integrated environment for graphically editing network input data, running hydrau-
lic and water quality simulations and for viewing results in a number of different formats. Rossman
(2000) provided a very comprehensive manual for EPANET 2.0.
The focus of the discussion of EPANET 2.0 in this Chapter and later Chapters are on the hydraulic
behavior of water distribution systems. Consideration of water quality modeling aspects is beyond the
scope of this book. EPANET 2.0 enables tracking of chemical species throughout the network to deter-
mine their movement and fate and as well as determination of water age and source tracing (Rossman
2000).
The elements that may be modeled by computer hydraulic simulation models include: pipes, junctions,
pumps, valves and storage tanks or reservoirs. The outcome of running a simulation model for a water
demand loading cases includes: flows and velocities in pipes, flows through pumps and valves in the
system as well as the pressures and hydraulic grade line elevations at junctions. The format for viewing
the results includes a map of the network with numeric values and color coding, as well as, tables and
graphs of results. The visualization of the results using the map of the network in EPANET 2.0 is very
useful. It is possible to see both the numerical values of quantities computed from the hydraulic analysis
as well as colors of both nodes and pipes to indicate ranges of values. Contour plots are also possible.
Most of these features are also available in other computer simulation hydraulic modeling software.
Once in the EPANET 2.0 integrated environment a number of defaults may be chosen for output of the
results.
272
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
For the EPANET 2.0 example presented in the next section the units of LPS were selected. Demands at
junctions must be specified in the units as selected from Table 11.1. The Darcy – Weisbach equation (D –
W) was also selected.
273
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
• average pipe roughness height, , for computation of the Darcy – Weisbach friction factor
or resistance factor
• Hazen – Williams coefficient, C (typically 80 for very rough, 145 for very smooth)
• Manning coefficient, n
In Chapter 4, three types of head loss formula were discussed including:
EPANET 2.0 uses the Swamee and Jain equation (Equation 4.61).
Hazen – Williams formula (Equation 4.100, page 109 – SI units or Equation 4.94, page 107 – US Cus-
tomary units)
There are two forms of the Hazen – Williams equation depending on the system of units, either or US
customary units. Both are shown below.
In EPANET 2.0 all computations are carried out US customary units with the input parameters in SI
units being converted to US customary units. Once the analysis in US customary units is complete, the
results in US customary units are converted to SI units.
The Manning equation (Equation 4.136, page 129 – SI units or Equation 4.138 – US Customary units)
274
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
A click on the appropriate position on the map results in a junction being inserted on the map. Upon
double clicking on the junction on the map, an input data box appears requesting the input of data asso-
ciated with the junction. In EPANET two reservoirs and one center junction may be inserted on the map
and then two pipes are inserted to join the reservoirs with the central junction. Data is entered for each
reservoir, tank, junction and pipe using the pop – up menus that occur when the element is clicked upon
on the map.
To demonstrate the modeling of flow in a pipe between two reservoirs, Example 6.3 is revisited.
Example 11.1 Compute the flow for a reservoir – pipe – reservoir system as shown in Figure 11.2 for a smooth pipe
with a roughness height of 0.003 mm (new uPVC pipe). Other pertinent quantities are a diameter of D = 300 mm, a
length of L = 500 m, an upstream reservoir elevation of z1 = 50 m, a downstream reservoir elevation of z2 = 45 m,
–6
and a kinematic viscosity of water of v = 1.007 10 m2/s.
Figure 11.2 Reservoir – smooth pipe – reservoir system for Example 11.1
Answer – Computation of the flow using EPANET for flow between two reservoirs – smooth pipe turbulent
flow.
The solution to this pipe flow problem is detailed in Section 11.3.8. First, all of the necessary data definitions for the
EPANET input data file are developed in the next sections. To illustrate the input data required the input for EPANET
Version 1 is used (.INP files) and is shown below.
___________________________________________________________________________________
To demonstrate the EPANET input format, the style of format of input data as presented in EPANET
Version 1 is used here. The text style format as shown below is based on that developed by Rossman
(2000) for the original EPANET Version 1 that required the network to be described in a text input data
file. In EPANET 2.0 the data input may be made graphically via the map so it is not necessary to specify
the input data format as shown below, however, the EPANET Version 2.0 format is presented here and in
later Chapters in this book to illustrate the data needed by the simulation model. An example of the input
data for the junction to be modeled for Example 11.1 in Figure 11.2 in EPANET text input format is
shown below. An EPANET model requires at least one junction or node. In Figure 11.2, the pipe is
divided into two equal – length sections with junction 3 at the connection point for the two pipes. Defini-
tion of the junction is as follows
[JUNCTIONS]
;--------------------
; Elev Demand
; ID m L/s
;--------------------
3 10 0
The keyword [JUNCTIONS] is needed to commence the description of the nodal data in the water dis-
tribution network according to the data requirements of EPANET Version 2.0. The junction number or
identifier is the number 3. Note that this junction has been created in the EPANET 2.0 input data file for
Example 11.1 as it requires at least one junction. The junction at 3 is assumed to have an elevation of
10 m and the demand at the junction is set to 0 L/s.
275
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
The primary input value for a reservoir is the water surface elevation. A storage reservoir is a boundary
point to a network, and thus its head remains a constant and cannot be affected by what happens within
the network (Rossman 2000).
The input data for the storage reservoirs in Example 11.1 to be modeled in EPANET 2.0 is shown as fol-
lows (in EPANET 1 format)
[RESERVOIRS]
;----------
; Elev
; ID m
;----------
1 50
2 45
The keyword [RESERVOIRS] is needed to commence the description of the storage reservoirs. The
storage reservoirs are identified as the numbers 1 and 2 representing the reservoirs in Figure 11.2. The
water surface of the reservoir at node 1 is at elevation 50.0 m while the water surface of the reservoir at
node 2 is at 45.0 m.
As mentioned previously, two pipes are used to model the single pipe in Example 11.1 as EPANET
requires at least one junction. A junction numbered 3 has been added in the center of the pipeline. The
keyword [PIPES] is needed in EPANET 1 text style input format to commence the description of the
pipes in the water distribution network. The numbers or identifiers (ID labels) of the pipes are the num-
bers 1 and 2 representing the pipe in Figure 11.2. In Version 1 of EPANET, pipe designators had to be
numeric while in EPANET 2.0 designators have been extended to be able to be alphanumeric.
276
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
UNITS SI
HEADLOSS D-W
VISCOSITY 1.007E-6
The options section in the data file must commence with the keyword [OPTIONS]. For the keyword
MAP, the map file that contains the coordinates of the junctions, reservoirs and tanks is contained in the
file Ch11Ex1.map (EPANET Version 1 input data format). An example of the map file is shown in
Section 11.3.8. In EPANET 2.0 data the map information may alternatively be placed at the bottom of
the input data file. For the keyword UNITS, the default units are US customary units. In this case, the
keyword UNITS is set to SI and therefore selects SI units. For the keyword HEADLOSS, the default
head loss equation is Hazen – Williams (H – W) and in this case the Darcy – Weisbach equation has been
selected (D – W). Finally, the keyword VISCOSITY allows the user to specify a value of the kinematic
–6
viscosity. For Example 11.1, the kinematic viscosity of water is v = 1.07 10 m2/s.
[TITLE]
Flow in a single pipeline - Example 11.1 (Example 6.3 revisited)
Smooth pipe turbulent flow
[JUNCTIONS]
;--------------------
; Elev Demand
; ID m L/s
;--------------------
3 10 0
[RESERVOIRS]
;----------
; Elev
; ID m
;----------
1 50
2 45
[PIPES]
;--------------------------------------------------
; Start End Length Diam Roughness
;ID Node Node m mm Height mm
; (epsilon)
;--------------------------------------------------
1 1 3 250 300 0.003
1 3 2 250 300 0.003
[REPORT]
FILE Ch11Ex1.out
[OPTIONS]
;----------------------------------------------
MAP Ch11Ex1.map ; Map coordinates file
UNITS SI
HEADLOSS D-W
277
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
VISCOSITY 1.007E-6
[END]
The EPANET co-ordinates file (only for EPANET 1) for the Example 11.1 is the file Ch11Ex1.map as follows
[COORDINATES]
;Nodal coordinates
;----------------------
;ID x-coord. y-coord.
;----------------------
1 0 50
2 500 45
3 250 47.5
[LABELS]
0 60 "Upstream reservoir" 1
450 35 "Downstream reservoir" 2
An alternative to using the map file (for input into EPANET 2.0) is to incorporate the [COORDINATES]
and [LABELS] data in the EPANET input data file directly prior to the [END] statement. The input for
the keyword [COORDINATES] is self – explanatory as shown above. The [LABELS] keyword is used
to specify x and y – coordinate positions for a label name on the map.
Table 11.3 EPANET 2.0 tabular results for pipes in Example 11.1
Link Length Diameter Roughness Flow Velocity Friction factor
height or resistance
(m) (mm) (mm) (LPS) (m/s) factor
Pipe 1 250 300 0.003 151.84 2.15 0.0127
Pipe 2 250 300 0.003 151.84 2.15 0.0127
In Example 11.1 the analytic solution for the computation of the flow based on the Colebrook – White
formula for friction factor or resistance factor is 0.152 m3/s (or 152 L/s) that is very close to the value in
Table 11.3.
The output results computed from EPANET 2.0 for junctions and reservoirs are shown in Table 11.4.
Table 11.4 EPANET 2.0 tabular results for junctions in Example 11.1
Node Elevation Total Pressure
(m) head (m)
(m)
Junction 3 10 47.50 37.50
Reservoir 1 50 50.00 0.00
Reservoir 2 45 45.00 0.00
278
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
Example 11.2 Solve for the flows and pressures using the computer simulation model EPANET 2.0 for the network
shown in Figure 11.3
Table 11.5 Node data for 6 – pipe water distribution system (factored up by 10 compared with Chapter 8)
1 100 0
2 60 200
3 60 500
4 60 300
5 60 0
Answer – Computation of the flows and pressures using the computer simulation model EPANET 2.0
The EPANET 2.0 input data file called Ch11Ex2.inp (saved in the .inp format) for the water distribution system
described in Figure 11.3
[TITLE]
Flow in a 6-pipe network - Example 11.2 (Example 8.2 revisited)
279
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
[JUNCTIONS]
;ID Elev Demand (L/s)
;------------------------------
2 60 200
3 60 500
4 60 300
5 60 0
[RESERVOIRS]
;ID Head
;------------------
1 100
[PIPES]
;ID Node1 Node2 Length Diam Roughness
; m mm Height mm
;--------------------------------------------------------------
1 5 2 20 353 0.25
2 5 4 50 440 0.25
3 2 4 54 495 0.25
4 2 3 20 607 0.25
5 4 3 50 440 0.25
6 1 5 40 581 0.25
[OPTIONS]
;-------------------------
Units LPS
Headloss D-W
Viscosity 1.007E-6
[COORDINATES]
;Node X-Coord Y-Coord
;------------------------------------
1 0 30
2 20 20
3 70 20
4 70 0
5 20 0
[END]
280
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
Node Results:
----------------------------------------------------------------------
Node Demand Head Pressure Quality
ID LPS m m
----------------------------------------------------------------------
2 200.00 97.93 97.93 0.00
3 500.00 97.89 97.89 0.00
4 300.00 97.96 97.96 0.00
5 0.00 99.18 99.18 0.00
1 -1000.00 100.00 0.00 0.00 Reservoir
Link Results:
----------------------------------------------------------------------
Link Flow Velocity Unit Headloss Status
ID LPS m/s m/km
----------------------------------------------------------------------
1 474.00 4.84 62.26 Open
2 526.00 3.46 24.35 Open
3 -99.20 0.52 0.51 Open
4 373.20 1.29 2.35 Open
5 126.80 0.83 1.49 Open
6 1000.00 3.77 20.57 Open
281
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
The input data for this ten pipe network to be modeled in EPANET is shown as follows
[TITLE]
[JUNCTIONS]
;ID Elev Demand Pattern
2 320 17 ;
3 319 17 ;
4 322 17 ;
6 310 50 ;
7 310 50 ;
8 308 50 ;
9 304 32 ;
[RESERVOIRS]
;ID Head Pattern
1 365 ;
5 372 ;
[TANKS]
;ID etc
[PIPES]
;ID N1 N2 Length Dia Roughness
; MinorLoss Status
1 1 2 4800 356 0.25 0 Open ;
2 2 3 1600 254 0.25 0 Open ;
3 3 4 1600 254 0.25 0 Open ;
4 5 4 6400 356 0.25 0 Open ;
5 2 6 1600 254 0.25 0 Open ;
6 3 7 1600 254 0.25 0 Open ;
7 4 8 1600 254 0.25 0 Open ;
8 6 7 1600 203 0.25 0 Open ;
9 7 8 1600 203 0.25 0 Open ;
10 8 9 1600 203 0.25 0 Open ;
[PUMPS]
;ID Node1 etc
[VALVES]
;ID Node1 etc
[TAGS]
[DEMANDS]
;Junction etc
[STATUS]
;ID Status/Setting
[PATTERNS]
;ID Multipliers
[CURVES]
;ID X-Value Y-Value
[CONTROLS]
[RULES]
[ENERGY]
Global Efficiency 75
282
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
Global Price 0
Demand Charge 0
[EMITTERS]
;Junction Coefficient
[QUALITY]
;Node InitQual
[SOURCES]
;Node Type Quality Pattern
[REACTIONS]
;Type Pipe/Tank Coefficient
[REACTIONS]
Order Bulk 1
Order Tank 1
Order Wall 1
Global Bulk 0
Global Wall 0
Limiting Potential 0
Roughness Correlation 0
[MIXING]
;Tank Model
[TIMES]
Duration 0:00
Hydraulic Timestep 1:00
Quality Timestep 0:05
Pattern Timestep 1:00
Pattern Start 0:00
Report Timestep 1:00
Report Start 0:00
Start ClockTime 12 am
Statistic NONE
[REPORT]
Status No
Summary No
Page 0
[OPTIONS]
Units LPS
Headloss D-W
Specific Gravity 1
Viscosity 1
Trials 40
Accuracy 0.001
Unbalanced Continue 10
Pattern 1
Demand Multiplier 1.0
Emitter Exponent 0.5
Quality None mg/L
Diffusivity 1
Tolerance 0.01
[COORDINATES]
;Node X-Coord Y-Coord
2 2400.00 5200.00
3 4000.00 5200.00
4 5600.00 5200.00
6 2400.00 3600.00
7 4000.00 3600.00
8 5600.00 3600.00
9 7200.00 3600.00
1 800.00 8800.00
5 7200.00 10000.00
283
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
[VERTICES]
;Link X-Coord Y-Coord
1 800.00 5200.00
4 7200.00 5200.00
[LABELS]
;X-Coord Y-Coord Label & Anchor Node
[BACKDROP]
DIMENSIONS 0.00 0.00 10000.00 10000.00
UNITS None
FILE
OFFSET 0.00 0.00
[END]
The solution for the heads or HGLs at the nodes and discharges in each pipe (the primary variables)
were obtained using the hydraulic simulation software EPANET. The nodal heads and the discharges in
each pipe solved by EPANET are shown in Figure 11.4 and Figure 11.5 respectively. The minimum
allowable pressure head for this example is 20 m. The pressure heads at each delivery node and the
velocities in each pipe are shown in Figure 11.6 and Figure 11.7.
Table 11.9 EPANET results for pipes in the ten pipe network
Pipe Up – Down – Q (L/s) V (m/s) f
stream stream
node node
1 1 2 114.34 1.149 0.0191
2 2 3 36.30 0.716 0.0213
3 3 4 -33.47 -0.661 0.0214
4 5 4 118.66 1.192 0.0191
5 2 6 61.04 1.205 0.0207
6 3 7 52.77 1.041 0.0208
7 4 8 68.19 1.346 0.0206
8 6 7 11.04 0.341 0.0240
94 7 8 13.81 0.427 0.0234
10 8 9 32.00 0.989 0.0221
284
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
Figure 11.4 Heads or HGLs (m) at nodes from EPANET for 10 pipe network
Figure 11.5 Discharges or flows (L/s) in pipes from EPANET for 10 pipe network
285
Chapter 11 - File: Chap16-Comp-Anal-v04.fm July 6, 2022 Version 6
Figure 11.6 Pressure heads (m) at nodes from EPANET for 10 pipe network (ph=pressure head)
Figure 11.7 Velocities (m/s) for pipes from EPANET for 10 pipe network
11.6 References
Cross, H. (1936). Analysis of flow in networks of conduits or conductors. Bulletin No. 286, University of
Illinois Engineering Experimental Station, Urbana, Illinois.
286
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
12.1 Introduction
Solution of the flow equations or Q – equations formulation based on the Newton method is presented in
this Chapter. For the Q – equations, the continuity, closed simple loop energy and required independent
path energy equations are expressed in terms of unknown flows in the pipes (or other flow elements) in
the network. There are NP unknowns for this formulation.
f 1 Q 1 Q 2 Q NP = 0
f 2 Q 1 Q 2 Q NP = 0
f NP Q 1 Q 2 Q NP = 0 (12.1)
where
The unknown flows that are required to be solved for is the column vector as follows
T
q = Q 1 Q 2 Q NP (12.2)
Let the true solution to the set of nonlinear equations in Equation 12.1 be the following column vector
* * * * T
q = Q 1 Q 2 Q NP (12.3)
287
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
In order to find a solution by a successive iterative technique, let the deviation or correction column vec-
tor for the unknown flow problem be defined as
T
q = Q 1 , Q 2 ,, Q NP (12.4)
This is the quantity that will be solved for in the Newton iterative method.
In the Newton numerical solution technique discussed in the next section the objective is to find a solu-
k + 1 *
tion q at the (k +1)st iteration that is close to q within an acceptable tolerance, in other words
*
when q is very small. Thus the relationship between the true or correct flow vector q , the current
flow vector q , and the flow correction vector q is
*
q = q + q (12.5)
when q is small.
An initial estimate (referred to as the zeroth iteration indicated by the superscript zero (0)) needs to be
made for each of the unknown flows to commence the iterative solution process. The column vector of
initial estimates of the pipe flows is
A commonly used value for commencing the iterative solution process is to set all velocities to 1.0 fps
(0.3048 m/s) in all pipes and then to compute the corresponding discharges (Rossman 2000).
NP f q
1
f 1 q + q = f 1 q + - Q j + O Q
-----------------
Q j
j=1
NP f q
2
f 2 q + q = f 2 q + - Q j + O Q
-----------------
Q j
j=1
NP f q
NP
f NP q + q = f NP q + - Q j + O Q
--------------------- (12.7)
Q j
j=1
where
288
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
2
f q + q = f q + J q q + O q (12.8)
where
k k k
f 1q f 1q f 1q
------------------------ ------------------------ -----------------------
-
Q 1 Q 2 Q NP
k k k
k
f 2q f 2q f 2q
q = ------------------------ ------------------------ -----------------------
- (12.9)
Q 1 Q 2 Q NP
k k k
f NP q f NP q f NP q
---------------------------- ---------------------------- ---------------------------
-
Q 1 Q 2 Q NP
2
If q is small then second order and higher terms of O q can be dropped and also by setting in
Equation 12.8
*
f q + q = f q = 0
gives
k k + 1 k
Jq q = –f q (12.10)
or
k k k
f 1q f 1q f 1q k + 1
------------------------ - -----------------------
----------------------- - Q 1 k k k
Q 1 Q 2 Q NP f 1 Q 1 Q 2 Q NP
k + 1
k k k Q 2 k k k
f 2q f 2q f 2q f 2 Q 1 Q 2 Q NP
------------------------ - -----------------------
----------------------- - = – (12.11)
Q 1 Q 2 Q NP
k k k k k k
f NP q f NP q f NP q k + 1 f NP Q 1 Q 2 Q NP
--------------------------- ---------------------------- ---------------------------- Q NP
Q 1 Q 2 Q NP
289
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
Note the subscripts k and (k + 1) have been introduced to represent the successive iteration numbers.
k + 1
The flow correction vector q on the left – hand side of Equation 12.10 is for the (k + 1)st itera-
k k + 1
tion. The Jacobian matrix J q and the function vector q are Q – equations formulation the
k
flows q at iteration k.
k + 1
Equation 12.11 will be solved for the unknown vector q to avoid computation of the inverse of
the Jacobian.
k + 1
The vector of corrections to the flows q can be expressed from Equation 12.10 as
k + 1 –1 k k
q = –J q f q (12.12)
where
–1 k
• J q = inverse of the Jacobian matrix for the Q – equations formulation based on the
flows at iteration k (the Jacobian matrix is defined by Equation 12.9)
As mentioned previously, Equation 12.12 is not usually solved. It is desirable to avoid actually comput-
k + 1
ing the Jacobian explicitly. Instead, Equation 12.10 is solved for the vector q of corrections at
iteration (k + 1). This equation is a set of linear equations and may be solved by an LUD method
(lower – upper decomposition) or a sparse matrix solution technique.
k + 1
The vector of corrections q at the (k + 1)st iteration from Equation 12.10 is then added to the cur-
k
rent solution vector q to give the next best estimate of the unknowns as
k + 1 k k + 1
q = q + q (12.13)
or
k + 1
k + 1 k Q 1
Q1 Q1
k + 1
k + 1 k Q 2
Q2 Q2
= + (12.14)
k + 1 k
Q NP Q NP k + 1
Q NP
k + 1
The process is iterated until the vector q converges to within an acceptable tolerance. During the
iterative process it is possible that a variable may become zero.
290
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
f Q - = ----------------
d----------------------- f Q - d-----------------
f Q (12.15)
dQ f Q dQ
f Q d f Q d f Q
- f Q f Q = f Q ----------------- ------------------ + f Q ------------- (12.16)
Q f Q dQ dQ
n–1
f Q j = r jQ j Q j (12.17)
n–1 n–1
f n–1 n – 1 Q j Qj n–1
----- = r j Q j Qj + Qj = r j Q j ------------------
- Q j + Qj 1.0
Qj Q j Q j Qj
n – 1 Q j
and
n–1 n–1
----- Qj
f - = r Q ------------------ n–1–1 n–1 n–1 n–
j j - n – 1 Q j + Qj = r jn – 1 Q j + Qj = nr j Q j
Qj Qj
n–1
Thus the partial derivative of the expression containing a modulus in Equation 12.17 is
f n–1
--------- = nr j Q j (12.18)
Q j
Example 12.1 Consider the case of n = 2 in the Darcy – Weisbach head loss equation formulated for pipe 1 in
Figure 9.3 using Equation 12.17.
n–1 2–1
f Q1 = r 1 Q1 Q1 = r 1 Q1 Q1 = r 1 Q1 Q1 (12.19)
Answer – Computation of the derivative of the Darcy – Weisbach head loss equation including a modulus sign.
f n–1 2–1 f
--------- = nr 1 Q j = 2r 1 Q j or --------- = 2r 1 Q 1
Q 1 Q 1
Example 12.2 Consider the case of n = 1.852 in the Hazen – Williams head loss equation. Determine the deriva-
tive with respect to Q 1 of the following function for pipe 1 in Figure 9.3
Answer – Computation of the derivative of the Hazen – Williams head loss equation including a modulus sign.
291
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
f n–1 0.852
= nr 1 Q 1 = 1.852r 1 Q 1
Q1
or
f 0.852
= 1.852r 1 Q 1
Q1
Example 12.3 Consider the function from Equation 12.17 for pipe 1 in Figure 9.3 assuming a Darcy – Weisbach
head loss equation is used where n = 2 as follows
n–1
f Q1 = r 1 Q1 Q1 = r 1 Q1 Q1 (12.21)
Assume r 1 = 1.0 .
(v) Plot the derivative of the function for the range of Q 1 = – 1 to Q 1 = 1 (m3/s or ft3/s)
Answer – (i) Computation of the Darcy – Weisbach head loss equation for a particular flow.
f Q1 = Q1 Q1
___________________________________________________________________________________
Answer – (ii) Plot of the head loss function for the range of Q 1 = – 1 to Q 1 = 1 (m3/s or ft3/s).
The plot of the function is shown in Figure 12.1 with the values tabulated in Table 12.1.
Note that the gradient of this function at Q 1 = 0 is zero and the slope of this function is always positive.
___________________________________________________________________________________
Answer – (iii) The formula for the derivative of the head loss function.
The derivative using Equation with r 1 = 1.0 and n = 2 for the Darcy – Weisbach head loss equation is
f Q1 n–1 2–1
------------------ = nr 1 Q 1 = 2 1.0 Q 1 = 2 Q1 (12.22)
Q 1
___________________________________________________________________________________
Answer – (iv) Computation of the derivative of the head loss function at Q 1 = – 0.5 (m3/s or ft3/s).
The derivative of the function value at Q 1 = – 0.5 (m3/s or ft3/s) from Equation 12.22 is
f Q1
------------------ = 2 Q 1 = 2.0 – 0.5 = 1.0
Q 1
292
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
___________________________________________________________________________________
Answer – (v) Plot of the derivative of the head loss function for the range of Q 1 = – 1 to Q 1 = 1 (m3/s or ft3/s).
This function is plotted in Figure 12.2. Tabulated values are shown in Table 12.1.
Q1 Q1 Q1 Q Q Q1 Q1 Q1 Q Q
Q1 1 1 Q1 1 1
293
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
The derivative has a slope discontinuity at Q 1 = 0 and the derivative is always a positive value for all Q 1 values.
_______________________________________________________________________________________________________
Similarly to Equation 10.23, for the Q – equations formulation let the loop equation (for loop s) be desig-
nated respectively as
Q- L q = r jQ j Q j (12.23)
s
j P Ls
Q- P q = r j Q j Q j + E Lm – E Lq (12.24)
s
j P Ls
The infinity – norm test (based on Equation 10.19) can be used to stop the iterative convergence process
when for the closed loop equations
k + 1 max k + 1
Q- L q = Q- L q stop (12.25)
s
j=1, NL s
k + 1 max k + 1
Q- P q = Q- P q stop (12.26)
s
j=1, NF – NC s
294
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
The checking of the nodal continuity equations is not required as the continuity equations exactly satisfy
continuity at each node from iteration one onwards. As a result, performing this check would be redun-
dant for the Q – equations formulation.
k k k k T
q = Q 1 Q 2 Q 10 (12.27)
The column vector of flow corrections in the pipes (from Equation 12.4) that will be solved for itera-
tively in the Newton scheme for the ten pipe network at the (k + 1)st iteration becomes
k + 1 k + 1 k + 1 k + 1 T
q = Q 1 Q 2 Q 10 (12.28)
A column vector of initial estimates for the flows in each pipe needs to be made in order for the iterative
solution process to begin
0
The pipe resistance terms r j can now be computed for the Q – equations formulation based on the ini-
0 0 0 0
tial guesses of the flows Q j s. The resistance term r – values r 1 r 2 r 10 for the Darcy –
Weisbach head loss equation for each pipe that will be used for computing terms in both Equation 12.17
and Table 12.5 (n = 2) may be computed from Equation 4.122 for pipe j for either SI units or US cus-
tomary units as
8 f jL j
r f = ------------------
- (12.30)
j 2 5
gD j
The Darcy – Weisbach friction factor or resistance factor fj for each pipe depends on both Reynolds
number Rej and relative roughness ------j and would need to be updated at each iteration. The Swamee and
Dj
Jain equation for the friction factor fj from Equation 4.58 for pipe j may be used as
0.25
f j = --------------------------------------------------------------- (12.31)
j 5.74 -
2
log 10 ------------- - + --------------
3.7D j Re 0.9
j
295
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
If the flow in a pipe is laminar, Equation 12.30 and Equation 12.31 do not apply. The appropriate
expression for the laminar resistance factor is given in Chapter 16 in Section 16.2.4.
The r – values r 1 r 2 r 10 for the Hazen – Williams head loss equation for each pipe in network
would be computed for each pipe j from Equation 4.128 for SI units as
Lj
r H W = 10.670 ----------------------------------- (12.32)
j 1.852 4.871
Cj Dj
Lj
r H W = 4.7279 ----------------------------------- (12.33)
j 1.852 4.871
Cj Dj
The Hazen – Williams coefficient Cj for each pipe j is assumed to be constant and thus would not need to
be updated at each iteration, in contrast to the Darcy – Weisbach head loss equation.
The initial estimates of the Darcy – Weisbach friction factors or resistance factors corresponding to the
guessed velocities of 1.0 fps (0.3048 m/s) are also shown in Table 12.2.
Table 12.2 Computation for ten pipe network of friction factors & resistance terms for an assumed
velocity of 1.0 fps (0.3048 m/s) in each pipe
Pipe Up – Down – V (m/s) f
Re = VD
-------- 8 fL
r f = -----------------
stream stream (mm) = 1.0 fps j 2 5
node node gD
1 1 2 0.25 0.3048 95131 0.0214 1484.9
2 2 3 0.25 0.3048 67874 0.0232 2902.3
3 3 4 0.25 0.3048 67874 0.0232 2902.3
4 5 4 0.25 0.3048 95131 0.0214 1979.9
5 2 6 0.25 0.3048 67874 0.0232 2902.3
6 3 7 0.25 0.3048 67874 0.0232 2902.3
296
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
Table 12.2 Computation for ten pipe network of friction factors & resistance terms for an assumed
velocity of 1.0 fps (0.3048 m/s) in each pipe
7 4 8 0.25 0.3048 67874 0.0232 2902.3
8 6 7 0.25 0.3048 54246 0.0246 9437.9
9 7 8 0.25 0.3048 54246 0.0246 9437.9
10 8 9 0.25 0.3048 54246 0.0246 9437.9
Note that in Table 12.2, the values of velocity in each pipe are the initial guesses to commence the Newton iterative solution pro-
cess. The r f values are also based on the friction factor or resistance factor for this initial guess of velocity.
j
The updating of the pipe resistance terms r j can now proceed based on the revised Q j s at each itera-
tion.
The 10 equations for flows in the ten pipe network in Figure 12.3 are made up of seven continuity equa-
tions (at each of the non – reservoir nodes), three energy equations around the two closed simple loops
and for the one required independent path energy equation between the two reservoirs. The continuity
equations are linear, while the loop and path equations are nonlinear in terms of the flows.
The set of governing equations for the ten pipe network were presented in Chapter 9. These are repeated
in Table 12.3 for the Darcy – Weisbach head loss equation with n = 2.
Table 12.3 The flow or Q – equations formulation for the ten pipe network using the Darcy –
Weisbach head loss equation (n=2)
Continuity equations, energy equations for closed simple loops or required
independent paths for values of Q j at iteration k
f 1 q = – Q 1 + Q 2 + Q 5 + DM 2 = 0 f 4 q = – Q 5 + Q 8 + DM 6 = 0
f 2 q = – Q 2 + Q 3 + Q 6 + DM 3 = 0 f 5 q = – Q 6 – Q 8 + Q 9 + DM 7 = 0
f 3 q = – Q 3 – Q 4 + Q 7 + DM 4 = 0 f 6 q = – Q 7 – Q 9 + Q 10 + DM 8 = 0
f 7 q = – Q 10 + DM 9 = 0
f 8 q = r 2 Q2 Q2 + r 6 Q6 Q6 – r 8 Q8 Q8 –r 5 Q5 Q5 = 0
f 9 q = r 3 Q 3 Q 3 + r 7 Q 7 Q 7 – r 9 Q 9 Q 9 – r 6 Q 6 Q 6 = 0
f 10 q = r 4 Q 4 Q 4 – r 3 Q 3 Q 3 – r 2 Q 2 Q 2 – r 1 Q 1 Q 1 – E L 5 – E L 1 = 0
12.4.3 Jacobian matrix for the flow equations for the ten pipe network
The Jacobian matrix of Equation 12.9 based on values at the kth iteration is a 10 by 10 square matrix and
becomes
297
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
k k k
f 1q f 1q f 1q
------------------------ ------------------------ -----------------------
-
Q 1 Q 2 Q 10
k k k
k
f 2q f 2q f 2q
q = ------------------------ ------------------------ -----------------------
- (12.34)
Q 1 Q 2 Q 10
k k k
f 10 q f 10 q f 10 q
-------------------------- -------------------------- --------------------------
Q 1 Q 2 Q 10
Now compute the elements of the Jacobian for the pipe network in Figure 12.3. The first function from
Table 12.3 is
k k k k
f 1 q = – Q 1 + Q 2 + Q 5 + DM 2 (12.35)
The partial derivatives or the first row of the Jacobian matrix in Equation 12.34 are given in Table 12.4.
Note that the derivatives of each of the terms in the continuity equations can only be -1, +1 or zero as
these terms are linear in Qj.
Table 12.4 The Jacobian matrix elements for function 1 in Table 12.3
Element Jacobian elements for values of Q j at iteration k
k k k
Non – zero ele- f 1q f 1q f 1q
------------------------ = – 1 ------------------------ = 1 ------------------------ = 1
ments Q 1 Q 2 Q 5
k
Zero elements f 1q
------------------------ = 0.0 for j = 3, 4, 6, ... , 10
Q j
These Jacobian values are constant and do not vary from iteration to iteration. This is true for all conti-
nuity equations in the Q – equations formulation. All of the other Jacobian elements for the continuity
equations in functions two to seven in Table 12.3 are computed in a similar way as shown above and are
shown in Table 12.5.
The eighth function from Table 12.3 based on the first energy equation for loop 1 is
k k k k k k k k k k k k
f 8 q = r 2 Q2 Q2 + r 6 Q6 Q6 – r 8 Q8 Q8 – r 5 Q5 Q5 = 0 (12.36)
The partial derivatives or the eighth row of the Jacobian matrix in Equation 12.34 are now evaluated.
k
f 8q
------------------------ = 0.0 (12.37)
Q 1
k
The second derivative of the function f 8 q requires the general form from Equation 12.18 of
n–1 n–1
r jQ j Q j = nr j Q j (12.38)
Q j
298
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
Thus the derivative of Equation 12.36 with respect to the flow in pipe Q 2 for n = 2 is
k
f 8q k n – 1 k
------------------------ = nr 2 Q 2 = 2r 2 Q 2 (12.39)
Q 2
k
The other derivatives of the function f 8 q with respect to Q 6 , Q 8 and Q 5 respectively using
Equation 12.38 are similar to Equation 12.39 with a single term each and are shown in Table 12.5. All of
the other Jacobian elements for the loop equation and the required independent path equation in func-
tions nine and ten in Table 12.3 are computed in a similar way as shown above.
Thus the full 10 by 10 square Jacobian matrix of Equation 12.34 for the flow equations for the ten pipe
network based on flows at iteration k is shown in Table 12.5.
Table 12.5 The Jacobian matrix for the Q – equations at iteration k for the ten pipe network (the Q
and r values are based on the values at the kth iteration
1 2 3 4 5 6 7 8 9 10
1 –1 1 0 0 1 0 0 0 0 0
2 0 –1 1 0 0 1 0 0 0 0
3 0 0 –1 –1 0 0 1 0 0 0
4 0 0 0 0 –1 0 0 –1 0 0
5 0 0 0 0 0 –1 0 –1 0 1
6 0 0 0 0 0 0 –1 0 –1 1
7 0 0 0 0 0 0 0 0 0 –1
8 0 2r 2 Q 2 0 0 –2 r 5 Q5 2r 6 Q 6 0 – 2r 8 Q 8 0 0
9 0 0 2r 3 Q 3 0 0 –2 r 6 Q6 2r 7 Q 7 0 –2 r 9 Q9 0
10 –2 r 1 Q1 –2 r 2 Q2 –2 r 3 Q3 2r 4 Q 4 0 0 0 0 0 0
It may be seen that the Jacobian for the Q – equations formulation in Table 12.5 is not a symmetric
matrix. The matrix is also sparse (30% of the elements in the Jacobian matrix are non – zero).
12.4.4 Solving for the flow corrections for the ten pipe network
Once the Jacobian matrix for iteration k has been evaluated the set of linearized equations to be solved
for the corrections to the pipe flows during the iterative process from Equation 12.10 is
k + 1 k
Q 1 f 1q
k k + 1 k
Jq Q 2 = – f 2q (12.40)
k + 1 k
Q 10 f 10 q
or
k k + 1 k
Jq q = –f q (12.41)
299
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
Once the Jacobian matrix has been determined for a particular iteration as well as the function values on
the right hand side of Equation 12.41 based on the flow values at iteration k, then Equation 12.41 must
k + 1
now be solved for the vector of flow corrections q . During the iterative solution procedure, the
k + 1
corrections q for each iteration are added to the current solution vector to give the next best esti-
mate of the unknowns as
k + 1 k k + 1
q = q + q (12.42)
12.4.5 Solving the flow equations for the ten pipe network
Assume all the initial guesses for the flows are based on a velocity of 1.0 fps (0.3048
m/s) (Rossman, 2000). Based on Table 12.5 for the Jacobian for the ten pipe network it follows that
(12.43)
Table 12.6 Nature of matrices required for each formulation for the two pipe network
Method Matrix size Matrix size Type of matrix Chapter
for
network in
Figure 12.4
Q – equations NP NP 22 Non – 11
symmetric
H – equations NJ NJ 11 Symmetric 12
LF – equations* NLT NLT 11 Symmetric 13
Q+H equations NJ + NP NJ + NP 33 Non – 14
symmetric
Global Gradient Algo- NJ NJ 11 Symmetric, 15
rithm formulation (Todini positive definite
and Pilati 1988)
* where NLT = total number of loops and required independent paths in the network= NL + (NF – NC)
(see Section 9.2.2 for definition of variables)
300
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
The two pipe network has two reservoirs and one demand node. Assume the temperature of the water is
–6 2
20 C with a kinematic viscosity of = 1.004 10 m /s. The pipe and node properties of the net-
work are given in Table 12.7 and Table 12.8.
The hydraulic simulation software EPANET results are discussed in this section1. The solution for the
discharges, the velocities and the friction factors or resistance terms in each pipe from EPANET are
shown in Figure 12.5 and Table 12.9.
Table 12.9 Pipe quantities for the two pipe network from solution by EPANET
Pipe Discharge Velocity f r f ** h f **
(L/s) (m/s)
(m)
1 173.606 2.456 0.01937 658.64 19.851
2 123.606 1.749 0.01957 665.44 10.167
** Computed outside EPANET for use in example Example 12.4 below and Example 13.7.
The EPANET results for node 1 are summarized in Figure 12.6 and Table 12.10. The minimum allow-
able pressure head for this example is 20 m.
Table 12.10 Head and pressure values for the node in the two pipe network from EPANET
Node Head Pressure head
(m) (m)
1 60.159 20.159
–5
1. A scaling factor of 0.98539 was used in EPANET to adjust the 15C value of kinematic viscosity 1.14 10 ft2/s to
–6
give the same Reynolds number for a kinematic viscosity 1.004 10 m2/s at 20C with a velocity of 0.6 m/s (also
taking into account that EPANET uses a conversion factor of 0.3048 rather than 1.0/3.28).
301
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
Figure 12.5 EPANET pipe results for the two pipe network
Figure 12.6 EPANET node results for the two pipe network
k k k T
q = Q1 Q2 (12.44)
The functions to be solved include one continuity equation at node 1 and one path energy equation
between the two reservoirs (see Equation 12.49 and Equation 12.50 in Example 12.4 below).
The column vector of flow corrections in the pipes to be solved at each iterative step in the Newton
method (from Equation 12.4, page 288) for the two pipe network at the (k + 1)st iteration becomes
k + 1 k + 1 k + 1 T
q = Q 1 Q 2 (12.45)
A column vector of initial estimates for the flows in each pipe needs to be made in order for the iterative
solution process to begin
302
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
0
The initial flows Q j are often based on a flow velocity of 1.0 fps (0.3048 m/s) (as used in EPANET -
Rossman 2000) as shown in Table 12.11. The pipe properties for the network are given in Table 12.7.
Table 12.11 The flow values for an initial guess of velocity of 1.0 fps (0.3048 m/s)
Pipe Diameter Area (m2) V (m/s) V (m/s)* Q (m3/s) Q (L/s)
(mm)
1 300 0.070686 0.3048 0.3048 0.02155 21.55
2 300 0.070686 0.3048 0.3048 0.02155 21.55
* Computed based on 1.0/3.28 for conversion of fps to m.
The pipe resistance terms ( r f = r 1 r 2 ) can now be computed based on initial flow guesses shown in
2
Table 12.11 for the Darcy – Weisbach head loss equation h f = r f Q (where n = 2) using
j
Equation 12.39. The pipe resistance term values r j are shown in Table 12.12 with the friction factors
computed from the Swamee and Jain equation (Equation 4.58). These pipe resistance values r j are
updated at each iteration based on the latest flow values.
12.6.2 The convergence stopping test for the Q – equations (two pipe exam-
ple)
Based on Equation 12.24, the path head loss equation (for the one and only path as there are no loops) is
given from Equation 12.50 with s = 1 as
k + 1
Q- P q = – r 1 Q 1 Q 1 – r 2 Q 2 Q 2 + EL 2 – E L 3 (12.47)
1
k + 1
Q- P q stop (12.48)
1
–6
where stop = 1.0 10 m, for example
Example 12.4 For the two pipe network in Figure 12.4 complete the following:
(i) Develop the Q – equations formulation for the two pipe network system.
(ii) Verify that the EPANET flow values from Table 12.9 satisfy the Q – equations formulation for the two pipe net-
work.
(iii) Develop the Jacobian matrix for the Q – equations formulation and carry out the first two iterations for the two
pipe network.
(iv) Compute the condition number of the Jacobian matrix at the final iteration for the Q – equations formulation.
(v) Tabulate all iterations for the solution process for the Q – equations formulation.
(vi) Plot the convergence characteristics for the iterations for the Q – equations formulation for the two pipe network.
Assume the Darcy – Weisbach head loss equation is used for each pipe.
Answer – (i) Develop the Q – equations formulation for the two pipe network system.
The Q – equations formulation of the governing equations for this two pipe network includes a continuity equation at
node 1 and a required independent path equation between the two reservoirs at nodes 2 and 3 that includes pipes 1 and
2 (in a clockwise direction) as follows:
303
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
f 1 q = – Q 1 + Q 2 + DM 1 = 0 at node 1 (12.49)
Note that the “constants” for the two terms for rf in Equation 12.50 are dependent on the friction factor or resistance
factor f and hence are required to be updated at each iteration. The values for rf based on the initial flow guesses are
shown in Table 12.12.
Substituting the known quantities into Equation 12.49 and Equation 12.50 for the calculation for the first iteration
gives:
f 2 q = – 746.954 Q 1 Q 1 – 746.954 Q 2 Q 2 + 80.0 – 50.0 = 0 along the path between reservoirs (12.52)
___________________________________________________________________________________
Answer – (ii) Verify that the EPANET flow values from Table 12.9 satisfy the Q – equations formulation for the
two pipe network.
The EPANET values for flows from Table 12.9 are substituted into Equation 12.49 and Equation 12.50 (as follows:
3
f 1 q = – 0.173606 + 0.123606 + 0.050 = 0.00 m /s
Note that the first continuity equation is satisfied exactly while in the path equation is in error by 18 mm. This is
acceptable and represents an error of 0.05% in 30.0 meters of head difference between the two reservoirs.
___________________________________________________________________________________
Answer – (iii) Develop the Jacobian matrix for the Q – equations formulation and carry out the first two itera-
tions for the two pipe network.
k + 1
The system to be solved iteratively for a sequence of q values is:
k k + 1 k
Jq q = –f q (12.53)
The terms in the 2 by 2 Jacobian at the kth iteration can be determined by taking the appropriate partial derivatives of
Equation 12.51 and Equation 12.52 as follows:
k k
f 1q f 1q
------------------------ ------------------------
k Q 1 Q 2 – 1.0 1.0
q = = k k
(12.54)
k
f 2q f 2q
k – 2.0r f Q 1 – 2.0r f Q 2
1 2
------------------------ ------------------------
Q 1 Q 2
Note that the Jacobian matrix for the Q – equations formulation is not symmetric.
ITERATION 1, Q – equations
The initial guesses for the flows in the two pipes in this example are based on a standard value of 1.0 fps (0.3048 m/s).
The corresponding velocities in SI units and the flows are given in Table 12.12 and may be represented as:
3
0 m 0 3
Q1 = 0.02155 -------- Q 2 = 0.02155 m /s . (12.55)
s
0
= 0.02155 m /s
3
q (12.56)
0.02155
The friction factors or resistance factors (based on the Swamee and Jain equation – Equation 4.58) and corresponding rf
304
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
values (Equation 4.120) for the flows in Equation 12.56 for pipes 1 and 2 in the two pipe network are given in
Table 12.12.
Table 12.12 The rf values for initial flow guesses based on 1.0 fps (0.3048 m/s) for Q – equations formulation
0.25 fL -
Using in the above Table: f = ---------------------------------------------------------
- ; r f = -----------------
5.74 2 2 gD A
2
log 10 ------------ + ------------
3.7 D 0.9
Re
or
f = 0.02197 r f = 746.95
0.02197 746.95
The flows from Equation 12.56 may be substituted into the continuity and the path equations of Equation 12.51 and
Equation 12.52 as follows:
0 3
f 1 q = – Q 1 + Q 2 + 0.050 = – 0.02155 + 0.02155 + 0.050 = 0.050 m /s
0
f 2q = – 746.95 Q 1 Q 1 – 746.95 Q 2 Q 2 + 30.0 = – 746.95 0.02155 0.02155 – 746.95 0.02155 0.02155 + 30.0
= – 0.3469 – 0.3469 + 30.0 = 29.306 m
Thus:
0 0.050
f q = (12.57)
29.306
Thus the imbalance in the continuity equation is 50 L/s while the imbalance in the head along the path is 29.306 m and
hence the flows are substantially underestimated by the initial guesses of 1.0 fps (0.3048 m/s) as not enough head loss
is generated to offset the difference of 30.0 m between the two reservoirs.
The Jacobian matrix for the first iteration from Equation 12.54 for the initial flow guesses (Equation 12.56) and the rf
values (Equation 4.120) is:
or
The inverse of the Jacobian matrix is shown below for this simple two pipe network (note that this would never be
actually calculated in practice for a network of normal size – instead a method such as a Gaussian LUD or an alterna-
tive solution method would be used that avoids calculating the inverse explicitly would be employed)
0
= – 0.5 – 0.015531
–1
J q (12.60)
0.5 – 0.015531
The flow corrections for the first iteration are calculated from Equation 12.12 based on Equation 12.57 and
Equation 12.60 as:
305
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
As mentioned above, the inverse of the Jacobian would never be actually calculated in practice for a network of normal
size. It is presented in this way for convenience. The numerical values obtained would be identical to those from a
Gaussian LUD solution procedure.
Note the flows have been increased in size by a factor of 20 to 25 times compared with the initial guesses (and also
these new flows are much larger than the actual solution as obtained from EPANET shown in Table 12.9). The flows
for the first iteration from Equation 12.62 may now be substituted into the continuity equation of Equation 12.51 as fol-
lows:
1 3
f 1 q = – Q 1 + Q 2 + 0.050 = – 0.5017 + 0.4517 + 0.050 = 0.000 m /s
Note that the continuity equation is exactly satisfied after the first iteration. This remains the case for all subsequent
iterations.
Now values can be substituted into the path equation of Equation 12.52 (without updating the friction factors and the
corresponding rf values)
1
f 2q = – 746.69 Q 1 Q 1 – 746.69 Q 2 Q 2 + 30.0 = – 746.69 0.5017 0.5017 – 746.69 0.4517 0.4517 + 30.0
= – 310.403 m
(12.63)
Thus the imbalance in the head along the path is now negative 310.4 m (compared to the previous value of positive
29.31 m), thus the flows are now substantially overestimated by the values of flows at the end of the first iteration.
To check on convergence for iteration 1, use Equation 12.25 and Equation 12.47 for the infinity – norm for the govern-
ing path equation as follows
k + 1 max k + 1
Q- P q = Q- P q stop (12.64)
s
j=1, NF – NC s
where NF – NC = 1, s = 1 and k = 0.
Thus for the two pipe network the check is for the path equation only (from Equation 12.63) as there are no closed
loops
1
Q- P q = – r 1 Q 1 Q 1 – r 2 Q 2 Q 2 + EL 2 – E L 3 = – 310.403 = 310.403 m (12.65)
1
ITERATION 2, Q – equations
The vector of new flows is given by Equation 12.62 above. The friction factors (based on the Swamee and Jain
equation – Equation 4.58) and corresponding rf values (Equation 4.120) for the flows that resulted from iteration 1 in
Equation 12.62 are computed in Table 12.13.
Table 12.13 The rf values for flows from Iteration 2 for the Q – equations formulation
306
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
fL 0.25
Using in the above Table: r f = ------------------ ; f = ----------------------------------------------------------
2 5.74 2
2 gD A log 10 ------------ + ------------
3.7 D 0.9
Re
or
1
f = 0.01901 (12.66)
0.01904
and
1
rf = 646.50 (12.67)
647.25
The flows from Equation 12.62 may be substituted into the continuity and the path equations of Equation 12.49 and
Equation 12.50 with updates for the resistance terms rf as follows:
1 3
f 1 q = – Q 1 + Q 2 + 0.050 = – 0.5017 + 0.4517 + 0.050 = 0.0 m /s
1
f 2q = – r 1 Q 1 Q 1 – r 2 Q 2 Q 2 + 30.0 = – 646.50 0.5017 0.5017 – 647.25 0.4517 0.4517 + 30.0 = – 264.777 m
1 0.0
fq = (12.68)
– 264.777
The Jacobian matrix on the second iteration from Equation 12.54 for the flows from iteration 1 (Equation 12.62) and rf
values (Equation 12.67) is:
or
1
= – 0.4741 – 0.0008108
–1
J q (12.71)
0.5259 – 0.0008108
The flow corrections for the second iteration are calculated from Equation 12.12 by substituting Equation 12.68 and
Equation 12.71 as follows:
Note the flow corrections for pipes 1 and 2 are identical as continuity was already satisfied by the flows at the end of
the first iteration.
2
f 2q = – 53.251558 – 36.355385 + 30.0 = – 59.6069 m (12.72)
307
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
To check on convergence for iteration 2, use Equation 12.25 and Equation 12.47 for the infinity – norm for the govern-
ing path equation as follows
k + 1 max k + 1
Q- P q = Q- P q stop (12.73)
s
j=1, NF – NC s
where NF – NC = 1, s = 1 and k = 1.
Thus for the two pipe network the check is for the path equation only (from Equation 12.72) as there are no closed
loops
2
Q- P q = – r 1 Q 1 Q 1 – r 2 Q 2 Q 2 + EL 2 – E L 3 = – 59.6069 = 59.6069 m (12.74)
1
The iterations continue up to iteration 9 and are summarized below in Answer Part (v). The convergence check is
shown as the infinity – norm for the path equation as shown in the last column of Table 12.15.
___________________________________________________________________________________
Answer – (iv) Compute the condition number of the Jacobian matrix at the final iteration for the Q – equations
formulation.
9
= 0.17360 m /s
3
q (12.75)
0.12360
9
rf = 658.62 (12.76)
665.28
Table 12.14 The rf values for flows from Iteration 9 for the Q – equations formulation
The Jacobian matrix for the final iteration from Equation 12.54 for the initial flow guesses (Equation 12.56) and the rf
values (Equation 4.120) is:
or
308
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
The infinity – norm (L – inf or the row – sum norm) of the Jacobian matrix of size NP by NP (where the number of
pipes NP=2) from Equation 10.30 is:
NP
max
J = a ij = max – 1.0 + 1.0 – 228.59 + – 164.39 = max 2 392.98 = 392.98
1 i NP j=1
9
= – 0.4183 – 0.002545
–1
J q (12.79)
0.5817 – 0.002545
The infinity – norm (L – inf) of the inverse of the Jacobian matrix (NP=2) from Equation 10.30 is:
NP
–1 max
J = a ij = max – 0.4183 + – 0.002545 0.5817 + – 0.002545
1 i NP j=1
The condition number of Jacobian matrix in Equation 12.77 from Equation 10.31 based on the infinity – norm is
–1
cond(J) = J J = 392.98 0.5842 = 229.58
The size of the condition number is acceptable given that between two and three significant figures would be lost from
say a total of 15 significant figures for computations using double precision calculations.
___________________________________________________________________________________
Answer – (v) Tabulate all iterations for the solution process for the Q – equations formulation
The iterations for the full solution based on the Q – equations formulation are shown in Table 12.15 and Table 12.16.
Nine iterations are shown. The stopping tolerance based on the infinity – norm of the loop and path head losses (only
the path head loss is needed for this example) that was used in the computer simulation run for producing Table 12.15
–6
was 1.0 10 m. While this is much smaller than is normally required, it is used to demonstrate the quadratic conver-
gence properties. This behavior is clear after iteration 5 in Table 12.15. Realistically the stopping tolerance could have
–3
been 1.0 10 m or 1 mm which means that convergence would have occurred in 6 iterations.
Table 12.15 Iteration sequence of flow corrections for the Newton solution for the Q – equations formulation
–6
(stopping tolerance 1.0 10 m achieved at iteration 7) for the two pipe network
Table 12.16 Iteration sequence of flows for the Newton solution for the Q – equations formulation
–6
(stopping tolerance 1.0 10 m) for the two pipe network
309
Chapter 12 - File: Chap11-Q-form.fm July 6, 2022 Version 7
Table 12.16 Iteration sequence of flows for the Newton solution for the Q – equations formulation
–6
(stopping tolerance 1.0 10 m) for the two pipe network
** Infinity – norm for path head loss (m) used for testing for convergence
max k + 1
= Q- P q
s=1, NF – NC s
___________________________________________________________________________________
Answer – (vi) Plot convergence characteristics for the iterations for the Q – equations formulation for the two
pipe network.
Figure 12.8 Convergence of flows for solution of the two pipe network based on the Q – equations formulation for the New-
ton method
___________________________________________________________________________________
12.7 References
Lambert, M.F. (1994). “Hydraulics of Compound Channels.” PhD Thesis, Department of Civil Engi-
neering and Surveying, University of Newcastle.
Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (1996) FORTRAN numerical recipes
(Vol. 1), Cambridge England.
Rossman, L A. (2000). EPANET 2 users manual. U.S. Environmental Protection Agency, Washington,
D.C., EPA/600/R-00/057.
Todini, E., Pilati, S. (1988). “A gradient algorithm for the analysis of pipe networks.” Proc., Computer
Applications in Water Supply, Research Studies Press, Letchworth, Hertfordshire, UK, 1-20.
310
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
13.1 Introduction
In this Chapter, the head equations or H – equations formulation where the equations are formulated in
terms of unknown heads are solved using the Newton method. There are NJ unknowns in the network
which is usually less than the number of unknown flows (NP) in the network that needed to be solved
for in the Q – equations formulation given in Chapter 12.
f 1 H 1 H 2 H NJ = 0
f 2 H 1 H 2 H NJ = 0
f NJ H 1 H 2 H NJ = 0 (13.1)
where
The unknown heads that are required to be solved for may be expressed as the column vector
T
h = H 1 H 2 H NJ (13.2)
311
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
The true solution to the set of nonlinear equations in Equation 13.1 is assumed to be the column vector
* * * * T
h = H 1 H 2 H NJ (13.3)
The objective, in the Newton numerical solution technique discussed in the next section, is to find a
*
solution h that is acceptably close to h within a specified tolerance. Let the column vector for the
deviations or corrections for the heads be defined as
T
h = H 1 H 2 H NJ (13.4)
This the quantity that will be solved for in the iterative Newton method solution.
*
The relationship between the correct nodal head vector h , the current nodal head vector h , and the
nodal head correction vector h is
*
h = h + h (13.5)
To commence the iterative solution process an initial set of heads at iteration 0 (zero) are required. The
column vector of the initial estimates of the unknown heads is designated as
NJ f h
1
f 1 h + h = f 1 h + - H i + O H
-----------------
H i
i=1
NJ f h
2
f 2 h + h = f 2 h + - H i + O H
-----------------
H i
i=1
NJ f h
NJ
f NJ h + h = f NJ h + ---------------------H i + O H (13.7)
H i
i=1
where
312
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
• h = deviation vector of the unknown nodal heads; H i = ith deviation of head in the h
vector (m or ft)
• NJ = number of nodes with unknown heads in the network
2
• O H = second order and higher terms of the head corrections
Putting Equation 13.7 into matrix notation (Press et al. 1996) gives:
2
f h + h = f h + J h h + O h (13.8)
where
k k k
f 1h f 1h f 1h
------------------------ - -----------------------
----------------------- -
H 1 H 2 H NJ
k k k
k
f 2h f 2h f 2h
h = ------------------------ - -----------------------
----------------------- - (13.9)
H 1 H 2 H NJ
k k k
f NJ h f NJ h f NJ h
---------------------------- ---------------------------- ---------------------------
-
H 1 H 2 H NJ
To solve for the corrections to the heads the following formulation is made (in a similar way for the
unknown flow formulation as presented in Section 12.2.2)
2
If h is small then second order and higher terms of O h can be dropped and also by setting in
Equation 13.8
*
f h + h = f h = 0
gives
k k + 1 k
Jh h = –f h (13.10)
or
k + 1
H 1 k k k
f 1 H 1 H 2 H NJ
k + 1
H 2 k k k
k
f 2 H 1 H 2 H NJ
Jh = – (13.11)
k k k
k + 1 f NJ H 1 H 2 H NJ
H NJ
313
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
The subscripts k and (k + 1) are used to represent to the successive iteration numbers. Equation 13.10 is
k + 1
the equation that is used to solve for the unknown head correction vector of h .
k + 1
The vector of unknown nodal head corrections h can be expressed from Equation 13.10 as
k + 1 –1 k k
h = –J h f h (13.12)
All of the values on the right – hand side of Equation 13.12 are based on the head values at iteration k.
As mentioned previously it is very uncommon to actually solve explicitly for the inverse of the Jacobian
in Equation 13.12 and thus it is usual to work with Equation 13.10. This equation is a set of linear equa-
tions and may be solved by an LUD method (lower – upper decomposition) or a sparse matrix technique.
k + 1
Once the corrections h have been determined for an iteration they are then added to the current
k
solution vector h to give the next best estimate of the unknown heads as
k + 1 k k + 1
h = h + h (13.13)
or
k + 1
k + 1 k H 1
H1 H1
k + 1
k + 1 k H 2
H2 H2
= + (13.14)
k + 1 k
H NJ H NJ k + 1
H NJ
k + 1
The iterative solution process is continued until the vector h converges to within a specified tol-
erance.
Almost any assumed set of estimates of values for the NJ unknown heads may be used to initiate the
iterative solution process. It is best to avoid all zeros and/or heads at the two ends of a pipe being equal.
An upper bound for the initial starting estimates is the elevation of the highest reservoir in the system.
During the iterative process for the unknown heads at nodes, if the heads at the nodes at the end of a pipe
become similar serious problems may occur with regard to the singularity of the coefficient matrix
(Nielsen 1989). As a result, convergence is not guaranteed with either the Newton method or for the lin-
ear theory method for a H – equations formulation.
f H f H d f H
------------------------- = ------------------- ----------------- (13.15)
dH f H dH
f H d f H d f H
f H f H = f H ----------------- ------------------- + f H ----------- (13.16)
f H dH dH
314
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
1 -H – H H – H 1 n –
f H i H k = --------- i k i k (13.17)
1n
rj
The exponent in Equation 13.17 for the Darcy – Weisbach head loss equation is n = 2 or
1 – 0.
f H i H k = ---------- H i – H k H i – H k (13.18)
1 2
rj
For the Hazen – Williams head loss equation the exponent in Equation 13.17 is n = 1.852 or
1 -–1
------------
1 1.852 1 0.54 –
f H i H k = ------------------- H i – H k H i – H k = ----------- H i – H k H i – H k
1 1.852 0.54
rj rj
1 – 0.4
f H i H k = ----------- H i – H k H i – H k (13.19)
0.54
rj
The derivative of a term involving a modulus or absolute value with respect to the variable H i in
Equation 13.17 is given as
f 1 1 n – 1 1 n – 1
------- = ---------- H i – H k Hi – Hk + Hi – Hk (H – H k)
Hi rj
1 n Hi H i i
It then follows using Equation 13.16 for the first term on the right – hand side that
1 n – 1 1 n – 1
f 1 Hi – Hk 1 n – 1
-
------- = ---------- H i – H k ------------------------------------------- H i – H k + Hi – Hk 1 (13.20)
Hi 1 n 1 n – 1 H i
rj Hi – Hk
1 n – 1 1 n – 1
f 1 Hi – Hk 1 n – 2
------- = ---------- H i – H k -------------------------------------------
- 1 n – 1 H i – H k + Hi – Hk (13.21)
Hi 1 n 1 n – 1
rj Hi – Hk
1 n – 1 1 n – 1
f 1 1 1 1 1 n – 1
-------- = ---------- --- – 1 H i – H k + Hi – Hk = --- ---------- H i – H k
H i 1 n n nr1 n
rj j
Thus
f 1
1--- --------- 1 n – 1
--------- = - H – Hk (13.22)
H i n r1 n i
j
For the Darcy – Weisbach head loss equation the derivative in Equation 13.22 is
315
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
f 1
1 --------- 1 n – 1 1 1 1 2 – 1 1 – 0.5
-------- = --- - H – Hk = --- ---------- H i – H k = 0.5 -------- H i – H k (13.23)
H i n r1 n i 2r1 2 rj
0.5
j j
For the Hazen – Williams head loss equation the derivative in Equation 13.22 is
f 1
1--- --------- 1 n – 1 1 1 1 1.852 – 1 1 – 0.46
-------- = - H – Hk = ------------- ------------------- H i – H k = 0.54 ----------- H i – H k
H i n r1 n i 1.852 r 1 1.852 rj
0.54
j j
(13.24)
1 1 n –
Another derivative of a term of the form of f H i H k = ---------- H i – H k H i – H k from
1 n
rj
Equation 13.17 with respect to H k is now considered. It again involves a modulus and is given as
------ 1 - H – H H – H
f - = --------- 1 n – 1 1 n – 1 H
i k H i k + Hi – Hk ( – H k)
Hk rj
1n
k H k i
1 n – 1 1 n – 1
f 1 Hi – Hk 1 n – 1
-
-------- = ---------- H i – H k ------------------------------------------- H i – H k + Hi – Hk –1
Hk 1n 1 n – 1 H
rj Hi – Hk 2
(13.25)
1 n – 1 1 n – 1
f 1 Hi – Hk 1 1 n – 1 – 1
- – --- – 1 H i – H k
---------- = ---------- H i – H k ------------------------------------------- – Hi – Hk
H k 1 n 1 n – 1 n
rj Hi – Hk
(13.26)
1 n – 1 1 n – 1
f 1 1 1 1 n – 1
--------- = – ---------- --- – 1 H i – H k + Hi – Hk = – 1--- ---------- H i – H k (13.27)
H k 1 n n n r1 n
rj j
Thus
f 1
---------- = – 1--- ---------- H i – H k
1 n – 1
(13.28)
H k n r1 n
j
For the Darcy – Weisbach head loss equation the derivative in Equation 13.28 is
f 1 1 1 1
--------- = – 1--- ---------- H i – H k
1 n – 1 1 2 – 1 – 0.5
= – --- ---------- H i – H k = – 0.5 -------- H i – H k (13.29)
H k n r1 n 2r1 2 rj
0.5
j j
For the Hazen – Williams head loss equation the derivative in Equation 13.28 is
316
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
f 1 1 1 1
--------- = – 1--- ---------- H i – H k
1 n – 1 1 1.852 – 1 – 0.46
= – ------------- ------------------- H i – H k = – 0.54 ----------- H i – H k
H k n r1 n 1.852 r 1 1.852 rj
0.54
j j
(13.30)
Example 13.1 Now consider the case where n = 2 for the case of the Darcy – Weisbach head loss equation
Equation 13.17 for unknown heads H 2 and H 3 Figure 13.5 becomes
1 1 n – 1 1 –0
H 2 H 3 = ---------- H i – H k H i – H k = ---------- H 2 – H 3 H 2 – H 3 (13.31)
1n 12
rj rj
Answer – Computation of the derivative of the nodal head formulation equation/Darcy – Weisbach.
f 1 1 1 n – 1 1 1 – 0.5
---------- = --- ---------- H 2 – H 3 = --- ---------- H 2 – H 3 (13.32)
H 2 n r1 n 2 r1 2
j j
or
f 1 – 0.5
---------- = 0.5 ---------- H 2 – H 3 (13.33)
H 2 rj
12
f - = – 0.5 ---------
1 - H – H – 0.5
--------- 2 3 (13.34)
H 3 r
12
j
Example 13.2 For the Hazen – Williams head loss equation where n = 1.852 then Equation 13.17 for unknown
heads H 2 and H 3 Figure 13.5 becomes
1
------------- – 1
1 - H – H H – H 1 n – 1 = -----------------
1 - H – H H – H 1.852 1 -H – H H – H – 0
H 2 H 3 = --------- 2 3 2 3 2 3 2 3 = --------- 2 3 2 3
1n 1 1.852 0.54
rj rj rj
1 0.54 – 1 1 – 0.4
f H 2 H 3 = ------------------ H 2 – H 3 H 2 – H 3 = ---------- H 2 – H 3 H 2 – H 3 (13.35)
1 1.852 0.54
rj rj
Answer – Computation of the derivative of the nodal head formulation equation/Hazen – Williams.
1 -–1
------------
f 1 1 1 n – 1 1 1 1.852 1 0.54 – 1
---------- = --- ---------- H 2 – H 3 = ------------- ------------------ H 2 – H 3 = 0.54 ---------- H 2 – H 3
H 2 n r1 n 1.852 r 1 1.852 rj
0.54
j j
f - = 0.54 ---------
1 - H – H – 0.46
--------- 2 3
H 2 rj
0.54
and
f - = – 0.54 ---------
1 - H – H – 0.46
--------- 2 3
H 3 r
0.54
j
317
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
Example 13.3 Consider a function where the value of n = 1.852 is taken for the Hazen – Williams head loss equa-
1
tion in Equation 13.17 for unknown heads H 2 and H 3 in Figure 13.5 with ---------- = 3.0 . Thus for the head formula-
1n
rj
tion function is
1 -–
------------
1 1 n – 1 1.852
f H 2 H 3 = ---------- H i – H k H i – H k = 3.0 H 2 – H 3 H 2 – H 3 (13.36)
1n
rj
0.54 – 1 – 0.4
f H 2 H 3 = 3.0 H 2 – H 3 H 2 – H 3 = 3.0 H 2 – H 3 H 2 – H 3 (13.37)
(i) Plot the variation of the function with H 2 for a range of 0 to 60.0 (m or ft) given a value of H 3 = 30.0 (m or ft)
(ii) Compute the value of the function with respect at H 2 = 2.5 (m or ft).
(iv) Compute the derivative with respect to H 2 given a value of H 3 = 30.0 (m or ft) at H 2 = 2.5 (m or ft).
(v) Plot of the derivative of the nodal head function for the range of H 2 = 0 to H 2 = 60.0 (m or ft).
Answer – (i) Plot of the function of the nodal head function or the range of H 2 = 0 to H 2 = 60.0 (m or ft) with
H 3 = 30.0
– 0.46
Figure 13.1 Plot of function f H 2 H 3 = 3.0 H 2 – 30.0 H 2 – 30.0
Note that at H 2 = 30.0 (m or ft) the derivative is positive infinity. Contrast this to Figure 12.2 for the derivative of the
modulus term in the Q – equations formulation.
___________________________________________________________________________________
Answer – (ii) Computation of the function for a particular value of H 2 = 2.5 (m or ft)
The function value from Equation 13.37 at H 2 = 2.5 (m or ft) with H 3 = 30.0 (m or ft) is
– 0.46 – 0.46
f 2.5 30.0 = 3.0 H 2 – H 3 H 2 – H 3 = 3.0 2.5 – 30.0 2.5 – 30.0
– 0.46
= 3.0 – 27.5 27.5 = – 17.962 m or ft
318
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
1 1
The derivative using Equation 13.37 with ---------- = ------------------ = 3.0 and n = 1.852 with H 3 = 30.0 (m or ft) is
1n 1 1.852
rj rj
f - = 1--- ---------
1 1 n – 1
--------- - H – H3
H 2 n r1 n 2
j
1 -–1
------------
f 1 1 1.852 0.54 – 1 – 0.46
---------- = ------------- ------------------ H 2 – 30.0 = 0.54 3.0 H 2 – 30.0 = 1.62 H 2 – 30.0 (13.38)
H 2 1.852 r 1 1.852
j
A plot of the derivative is shown in Figure 13.2 for a range of values of H 2 = 0 to H 2 = 60.0 (m or ft). Note that at
H 2 = 30.0 (m or ft) the derivative is infinity.
___________________________________________________________________________________
Answer – (iv) Computation of the derivative of the nodal head formulation function at a particular value.
The derivative of the function value at H 2 = 2.5 (m or ft) with H 3 = 30.0 (m or ft) is
f – 0.46 – 0.46
---------- = 1.62 2.5 – 30.0 = 1.62 27.5 = 0.3527
H 2
Answer – (v) Plot of the derivative of the nodal head function for the range of H 2 = 0 to H 2 = 60.0 (m or ft).
A plot of the derivative of the function in Equation 13.38 is given in Figure 13.2. A table of the function values and
derivative values are given in Table 13.1.
– 0.46
Figure 13.2 Derivative of function f H 2 H 3 = 3.0 H 2 – 30.0 H 2 – 30.0 with respect to H 2
319
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
– 0.46
Table 13.1 Function values and derivative values for f H 2 H 3 = 3.0 H 2 – 30.0 H 2 – 30.0
___________________________________________________________________________________
Example 13.4 Consider the case where n = 2 for the Darcy – Weisbach head loss equation in Equation 13.17 for
unknown heads H 2 and H 3 in Figure 13.5 becomes
1 - H – H H – H 1 n – 1 = ---------
1 -H – H H – H –0
H 2 H 3 = --------- 2 3 2 3 2 3 2 3 (13.39)
1n 12
rj rj
Answer – Computation of the derivative of the nodal head formulation function (Darcy – Weisbach).
f - = – 1--- ---------
1 - H – H 1 n – 1
---------
H 3 n r1 n 2 3
j
or
f 1 – 0.5
---------- = – 0.5 ---------- H 2 – H 3
H 3 r
12
j
Example 13.5 For the Hazen – Williams head loss equation with n = 1.852 Equation 13.17 for unknown heads
H 2 and H 3 in Figure 13.5 becomes
1 - H – H H – H 1 n – 1 = -----------------
1 - H – H H – H 0.54 – 1 = ---------
1 - H – H H – H – 0.
H 2 H 3 = --------- 2 3 2 3 2 3 2 3 2 3 2 3
1n 1 1.852 0.54
rj rj rj
(13.40)
Answer – Computation of the derivative of the nodal head formulation function (Hazen – Williams).
320
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
The derivative with respect to H 3 of Equation 13.40 with n = 1.852 from Equation 13.28 is
1--- – 1
f 1 1 n 1
1 ----------------- 0.54 – 1 1 – 0.46
---------- = – --- ---------- H 2 – H 3 = – ------------
- - H2 – H3 = – 0.54 ---------- H 2 – H 3
H 3 n r1 n 1.852 r 1 1.852 rj
0.54
j j
or
f 1 – 0.46
---------- = – 0.54 ---------- H 2 – H 3
H 3 r
0.54
j
___________________________________________________________________________________
Example 13.6 Consider the form of the expression for the flow expressed in terms of the heads from Chapter 9 for-
mulated for the Darcy – Weisbach head loss equation (n = 2) as Equation 9.33
1 – 0.5
Q j = ---------- H i – H k H i – H k (13.41)
12
rj
Consider part of the nodal head formulation function in Equation 13.17 for unknown heads H 2 and H 3 in
1
Figure 13.5where the value of n = 2 and ---------- = 3.0 is
1n
rj
– 0.
f H 2 H 3 = 3.0 H 2 – H 3 H 2 – H 3
(i) Compute the value of the function for the value of H 3 = 20.0 (m or ft) given a value of H 2 = 50.0 (m or ft).
(ii) Plot the variation of the function given a value of H 2 = 50.0 (m or ft).
(v) Plot both the variation of the derivative with respect to H 3 given a value of H 2 = 50.0 (m or ft).
Answer – (i) Computation of the nodal head formulation function for a particular head value.
– 0.5
f 50.0 H 3 = 3.0 50.0 – H 3 50.0 – H 3 (13.42)
The plot of the function is shown in Figure 13.3. A table of the function values and derivative values are given in
Table 13.2.
___________________________________________________________________________________
Answer – (iii) Determination of the derivative of the nodal head formulation function.
1
The derivative using Equation 13.28 with ---------- = 3.0 and n = 2 is
1n
rj
f 1 1 n – 1
---------- = – 1--- ---------- H 2 – H 3
H 3 n r 1j n
321
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
f – 0.5
---------- = – 0.5 3.0 H 2 – H 3
H 3
f – 0.5
---------- = – 1.5 H 2 – H 3
H 3
___________________________________________________________________________________
Answer – (iv) Computation of the derivative of the nodal head formulation function at a particular value.
The derivative of the function value at H 3 = 20.0 (m or ft) with H 2 = 50.0 (m or ft) is
– 0.5
Figure 13.3 Plot of function f 50.0 H 3 = 3.0 50.0 – H 3 50.0 – H 3
___________________________________________________________________________________
Answer – (v) Plot of the derivative of the nodal head formulation function.
A plot of the derivative of the function in Equation 13.42 is given in Figure 13.4. A table of the function values and
derivative values are given in Table 13.2. Note that the derivative approaches negative infinity at H 3 = 50.0 .
322
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
– 0.5
Figure 13.4 Derivative of the function f H 2 H 3 = 3.0 50.0 – H 3 50.0 – H 3 with respect to H 3
– 0.5
Table 13.2 Function values and derivative values forf H 2 H 3 = 3.0 50.0 – H 3 50.0 – H 3
323
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
T
h = H 2 H 3 H 4 H 6 , H 7 H 8 H 9 (13.43)
For the 7 unknown heads a 7 by 7 symmetric Jacobian matrix results. The column vector of the correc-
tions to the heads that will be solved for in the Newton iterative scheme (of length 7) from Equation 13.4
at the (k+1)st iteration becomes
k + 1 k + 1 k + 1 k + 1 k + 1 k + 1 k + 1 k + 1 T
h = H 2 H 3 , H 4 H 6 , H 7 , H 7 , H 9
(13.44)
A column vector of initial estimates for the 7 unknown heads needs to be made to proceed with the iter-
ative solution process
Figure 13.5 Unknown H – equations formulation (Hs) for the ten pipe network
Seven nonlinear equations in the seven unknown heads of column vector h in Equation 13.43 were
determined in Chapter 9 for the Darcy – Weisbach head loss equation and are repeated in Table 13.3.
Appropriate designation of function numbers have been added to Table 13.3.
324
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
Table 13.3 The head or H – equations formulation for the ten pipe network (n = 2)
Node Func- Continuity equation at each node in terms of unknown heads
no. tion
2 E L1 – H 2 E L1 – H 2
– 0.5
H 2 – H 3 H 2 – H 3
– 0.5
H 2 – H 6 H 2 – H 6
– 0.5
f 1 h ---------------------------------------------------------------
- + ---------------------------------------------------------
- + ---------------------------------------------------------
- + DM 2 =
0.5 0.5 0.5
r1 r2 r5
– 0.5 – 0.5
H 2 – H 6 H 2 – H 6 H 6 – H 7 H 6 – H 7
6 f 4 h – ---------------------------------------------------------
- + ---------------------------------------------------------
- + DM 6 = 0
0.5 0.5
r5 r8
– 0.5
H 8 – H 9 H 8 – H 9
9 f 7 h – ---------------------------------------------------------
- + DM 9 = 0
0.5
r 10
Consider node 2 in Figure 13.5 or f 1 h in Table 13.3. Breakdown the continuity equation for node 2
into the individual flows into and out of the node as follows.
f 1 h = – Q 1 + Q 2 + Q 5 + DM 2 = 0 (13.46)
where
– 0.5
E L1 – H 2 E L1 – H 2
Q 1 = ----------------------------------------------------------------
- (13.47)
0.5
r1
– 0.5
H 2 – H 3 H 2 – H 3
Q 2 = ----------------------------------------------------------
- (13.48)
0.5
r2
– 0.5
H 2 – H 6 H 2 – H 6
Q 5 = ----------------------------------------------------------
- (13.49)
0.5
r5
It is better to keep the form of the equation for node 2 shown in Equation 13.46 by computing the corre-
sponding flows separately. In this way, friction factors and hence r j values can be computed initially
and updated during the iterative solution process as indicated in Equation 12.30 and Equation 12.31 for
the Darcy – Weisbach head loss equation. The latest resistance r – values r 1 r 2 r 10 for the
Darcy – Weisbach head loss equation for each pipe that will be used for computing terms in both
Table 13.3 and Table 13.4 (n=2) may be computed as shown in Section 12.4.2.
325
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
The other functions in Table 13.3 for nodes 3 to 9 (excluding node 5) would be computed in a similar
way as shown above in Equation 13.46 by computing individual flows in individual pipes for the updat-
ing of the r j values.
13.3.2 Jacobian matrix for the head equations for the ten pipe network
The Jacobian matrix of size 7 by 7 is symmetric (where the columns are associated with each unknown
head of H2, H3, H4, H6, H7, H8 and H9) and given from Equation 13.9 based on the unknown heads at
iteration k becomes
k k k
f 1h f 1h f 1h
------------------------ ------------------------ -----------------------
-
H 2 H 3 H 9
k k k
f 2h f 2h f 2h
k ------------------------ ------------------------ -----------------------
-
h = H 2 H 3 H 9 (13.50)
k k k
f 10 h f 10 h f 10 h
-------------------------- -------------------------- --------------------------
H 2 H 3 H 9
The first function in the H – equations formulation for node 2 for the Darcy – Weisbach head loss equa-
tion (n = 2) from Table 13.3 is
(13.51)
The partial derivative of the first term with respect to H 2 of Equation 13.51 is based on the general
expression for the derivative from Equation 13.28 of
1 1 n – 1 1 – 0.5
---------- H – H k H i – H k = – ------------ H i – H k (13.52)
H k r1 n i 2r j
0.5
j
The partial derivative of the second term with respect to H 2 on the right – hand side of Equation 13.51 is
based on the general expression for the derivative from Equation 13.28 of
1 1 n – 1 1 – 0.5
---------- H – H k H i – H k = ------------ H i – H k (13.53)
H i r1 n i 2r j
0.5
j
The first element in row 1 of the Jacobian matrix is obtained by differentiating Equation 13.51 with
respect to H2 using Equation 13.52 and Equation 13.53 based on H i values at iteration k with n = 2 as
follows
k
f 1h 1 k – 0.5 1 k k – 0.5 1 k k – 0.
---------------------
- = ------------ E L 1 – H 2 + ------------ H 2 – H 3 + ------------ H 2 – H 6 (13.54)
H 2 2r 1
0.5
2r 2
0.5
2r 5
0.5
326
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
The other Jacobian elements for node 2 (function 1) in row 1 of the matrix (differentiated with respect to
H 3 and H 6 respectively) and the Jacobian elements based on the other functions in Table 13.3 (func-
tions 2 to 7) are obtained in a similar way to described above. Note that the Jacobian matrix is symmet-
ric for the H – equations formulation and as such, only the elements along the diagonal of the matrix and
above the diagonal in the Jacobian need be calculated. Once again, as pointed out previously, the Jaco-
bian matrix for the H – equations formulation is symmetric. This is in contrast to the Jacobian matrix for
the Q – equations formulation that has a non – symmetric Jacobian matrix.
The non – zero terms in the Jacobian matrix of Equation 13.50 for the head equations for the ten pipe
network at iteration k are shown in Table 13.4.
Table 13.4 The non – zero Jacobian elements for the H – equations for the ten pipe network
Node Deriv- Jacobian element
no. ative
2 f 1 - E L – H k –0.5 + ----------
--------- 1 - H k – H k –0.5 + ----------
1 - H k – H k –0.5
----------1 0.5 1 2 0.5 2 3 0.5 2 6
H 2 2r 1 2r 2 2r 5
2 f 1 k k – 0.5
– ----------- H 2 – H 3 f 1 k k – 0.5
– ----------- H 2 – H 6
----------1 0.5 ----------1 0.5
H 3 2r 2 H 6 2r 5
3 f 1
– ----------- H 2 – H 3
– 0.5 f 1
– ----------- H 3 – H 4
– 0.5
----------2 0.5 ----------2 0.5
H 2 2r 2 H 4 2r 3
3 f 1
----------- H 2 – H 3
– 0.5 1 - H – H –0.5 + ----------
+ ---------- 1 - H – H –0.5
----------2 0.5 0.5 3 4 0.5 3 7
H 3 2r 2 2r 3 2r 6
3 f 1
----------- H 3 – H 7
– 0.5
----------2 0.5
H 7 2r 3
4 f 1 - H – H –0.5 f 1 - H – H –0.5
----------3 – ----------
0.5 3 4 ----------3 – ----------
0.5 4 8
H 3 2r 3 H 8 2r 7
6 f 1 - H – H –0.5
– ---------- f 1
– ----------- H 6 – H 7
– 0.5
----------4 0.5 2 6 ----------4 0.5
H 2 2r 5 H 7 2r 8
6 f 1
----------- H 2 – H 6
– 0.5 1
+ ----------- H 6 – H 7
– 0.5
----------4 0.5 0.5
H 6 2r 5 2r 8
7 f 1 – 0.5 f 1 – 0.5 f 1
– ----------- H 7 – H 8
– 0.5
----------5 – ----------- H 3 – H 7 ----------5 ----------- H 6 – H 7
0.5 ----------5 0.5
H 3 2r 6
0.5 H 6 2r 9 H 8 2r 8
7 f 1
----------- H 3 – H 7
– 0.5 1
+ ----------- H 6 – H 7
– 0.5 1
+ ----------- H 7 – H 8
– 0.5
----------5 0.5 0.5 0.5
H 7 2r 6 2r 8 2r 9
8 f 1 – 0.5 f 1 – 0.5
----------6 – ----------- H 4 – H 8
0.5 ----------6 – ----------- H 7 – H 8
0.5
H 4 2r 7 H 7 2r 9
8 f 1 – 0.5
----------6 – ----------- H 8 – H 9
H 9 2r 10
0.5
9 f 1 – 0.5 f 1 – 0.5
----------7 – ----------- H 8 – H 9
0.5 ----------7 ----------- H 8 – H 9
0.5
H 8 2r 10 H 9 2r 10
327
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
13.3.3 Solving for the head corrections for the ten pipe network
k + 1
The set of linearized equations for the nodal head corrections h (a column vector of length 7) to
be solved for during the iterative process is
k + 1 k
H 2 f 1h
k + 1 k
H 3 f 2h
k + 1 k
H 4 9 f 3h
k
Jh H k + 1 = – f h k (13.55)
6 4
k + 1 k
H 7 f 5h
k + 1 k
H 8 f 6h
k + 1 k
H 9 f 7h
or
k k + 1 k
Jh h = –f h (13.56)
k + 1
The corrections h are solved for Equation 13.56 then added to the current solution vector to give
the next best estimate of the unknowns as
k + 1 k k + 1
h = h + h (13.57)
k k T
h = H1 (13.58)
There is only one unknown head in Figure 13.6 and the one function to be solved. This function is that
includes the continuity equation at node 1 with the flows substituted for in terms of the heads at the ends
of each of the pipes (see Equation 13.62 in Example 13.7 below).
The column vector of head corrections in the pipes (from Equation 13.4) to be solved for by the Newton
method for the two pipe network at the (k + 1)st iteration becomes
328
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
k + 1 k + 1 T
h = H 1 (13.59)
An initial estimate for the head at node 1 needs to be made in order for the iterative solution process to
begin
0 0 T
h = H1 (13.60)
As well as calculating the unknown head, the pipe flows actually need to be calculated so that the fric-
tion factors in the Darcy – Weisbach head loss equation can be updated. As for the Q – equations formu-
lation, the friction factors for the first iteration can be based on initial flows for a flow velocity of 1.0 fps
(0.3048 m/s) as shown in Example 13.7. The pipe resistance terms for the two pipes ( r f = r 1 r 2 ) can
2
be computed based on initial velocity guesses with the Darcy – Weisbach head loss equationh f = r f Q
j
Example 13.7 For the two pipe network in Figure 13.6 do the following:
(i) Develop the H – equations formulation for the two pipe network system.
(ii) Verify that the EPANET head values from Table 13.5 satisfy the H – equations formulation.
(iii) Develop the Jacobian matrix for the H – equations formulation and carry out the first two iterations for the two
pipe network.
(iv) Tabulate all iterations for the solution process for the H – equations for the two pipe network.
(v) Compute the condition number of the Jacobian matrix at the final iteration and hence assess the accuracy of your
result for the H – equations.
(vi) Plot convergence characteristics for the iterations for the H – equations for the two pipe network.
Assume the Darcy – Weisbach head loss equation is used for each pipe.
Answer – (i) Develop the H – equations formulation for the two pipe network system.
The H – equations formulation of the governing equations for this two pipe network includes the continuity equation at
node 1 with the discharges substituted in terms of unknown heads at the ends of the pipes as follows:
f 1 q = – Q 1 + Q 2 + DM 1 = 0 at node 1 (13.61)
– 0.5 – 0.5
E L2 – H 1 E L2 – H 1 H 1 – E L3 H 1 – E L3
f 1 h = – ---------------------------------------------------------------
- + ---------------------------------------------------------------
- + DM 1 = 0 at node 1 (13.62)
0.5 0.5
r1 r2
Note that the “constants” for the two terms for rf in Equation 13.62 are dependent on the friction factor which in turn
requires computation of flows and hence are required to be updated at each iteration. In addition, the structure of these
equations Equation 13.61 and Equation 13.62 are important. The flows are required during the iterative process to
update the resistance terms (when the Darcy – Weisbach head loss equation is used) so it is best to compute
Equation 13.62 in parts so that the flows are remembered. These flows can then be used to update the Darcy –
Weisbach friction factors for the computation of the resistance terms, rj.
___________________________________________________________________________________
Answer – (ii) Verify that the EPANET head values from Table 13.5 satisfy the H – equations formulation.
The EPANET value for head at node 1 from Table 13.5 and the rf values from Table 12.9 are substituted into
Equation 13.62 as follows:
329
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
– 0.5 – 0.5
80.0 – 60.159 80.0 – 60.159 60.159 – 50.0 60.159 – 50.0
f 1 h = – ---------------------------------------------------------------------------------- + ---------------------------------------------------------------------------------- + 0.050 (13.63)
0.5 0.5
658.64 665.44
3
= – 0.173563 + 0.123558 + 0.050 = – 0.000005 m /s
Note that the nodal head equation is satisfied to a high degree of accuracy to within 0.005 L/s and represents an error of
0.01% of the demand of 50 L/s at node 1. In addition, the flows have been calculated in Equation 13.63 for pipes 1 and
2 as:
3
Q 1 = 0.1736 m /s
3
Q 2 = 0.1236 m /s
___________________________________________________________________________________
Answer – (iii) Develop the Jacobian matrix for the H – equations formulation and carry out the first two itera-
tions for the two pipe network.
k + 1
The equation to be solved iteratively for a sequence of h values from Equation 13.56 is:
k k + 1 k
Jh h = –f h (13.64)
The one term in the Jacobian at the kth iteration can be determined by taking the appropriate partial derivative of
Equation 13.63 as follows:
k k – 0.5 k – 0.5
= -----------------------
f 1 h = 0.5 80.0 – H 1 0.5 H 1 – 50.0
k
Jh - ----------------------------------------------- + -----------------------------------------------
- (13.65)
H 1 r1
0.5
r2
0.5
For the right – hand side of Equation 13.64, substituting the known quantities into Equation 13.62 for each iteration
gives:
k k – 0.5 k k – 0.5
k 80.0 – H 1 80.0 – H 1 H 1 – 50.0 H 1 – 50.0
f 1h = – ------------------------------------------------------------------------
- + ------------------------------------------------------------------------
- + 0.050 (13.66)
0.5 0.5
r1 r2
ITERATION 1, H – equations
To use Equation 13.65 and Equation 13.66 values of the resistance terms rj are needed. These depend on the Darcy –
Weisbach friction factor, however, the flows and hence the velocities are not known. Thus it is reasonable to make a
guess of the velocities in each pipe. Assume these velocities are initially 1.0 fps (0.3048 m). These velocities will be
updated after each iteration.
The rf values for velocities of 1.0 fps (0.3048 m/s) from Table 12.12 (page 305) are:
r f = 746.95
746.95
Table 13.5 The rf values for initial flow guesses based on 1.0 fps (0.3048 m/s) for H – equations formulation
fL
Using in the above Table: ; r f = ------------------
2
2 gD A
The initial starting head at node 1 is taken as the average of the two reservoir levels:
0
H1 = 65.0 m (13.67)
330
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
0
This is also the vector of unknowns h at iteration zero (0) as there is only one unknown head.
The head from Equation 13.67 may be substituted into the nodal head equation of Equation 13.66 as follows:
– 0.5 – 0.5
0 80.0 – 65 80.0 – 65 - + ------------------------------------------------------------
65 – 50.0 65 – 50.0 - + 0.050
f 1h = – ------------------------------------------------------------
0.5 0.5
746.95 746.95
3
= – 0.1417 + 0.1417 + 0.050 = 0.050 m /s
Thus the imbalance in the nodal head equation is 50.0 L/s. In addition, the flows have been calculated in pipes 1 and 2
as:
3
Q 1 = 0.1417 m /s
3
Q 2 = 0.1417 m /s
Note that unlike for the Q – equations formulation, the continuity of flow at the junction is not automatically satisfied
for all the iterations after the first iteration for this H – equations formulation.
The Jacobian matrix for the first iteration from Equation 13.65 is:
The inverse of the Jacobian matrix is shown below for this simple two pipe network (note that this would never be
actually calculated in practice for a network of normal size) but in this case is very straight forward for a single number,
as it is the reciprocal of the value in Equation 13.68 as follows:
–1 0 1
J h = ---------------------- = 105.85 (13.69)
0.009447
The head corrections for the first iteration are calculated from Equation 13.12 as:
or
1
H1 = 59.708 m (13.72)
To check on convergence for iteration 1, use Equation 10.21 and Equation 10.22 for the infinity – norm for the head
changes as follows
k + 1 max k + 1
h = H stop (13.73)
j=1, NJ
where NJ = 1 and k = 0.
Thus for the two pipe network the check is for the head at node 1 only (from Equation 10.21)
1 1
h = H1 = – 5.2925 = 5.2925 m (13.74)
The head for the first iteration from Equation 13.71 may now be substituted into the nodal head equation of
Equation 13.66 (without updating the friction factors and the corresponding rf values) as follows:
331
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
– 0.5 – 0.5
1 80.0 – 59.708 80.0 – 59.708 59.708 – 50.0 59.708 – 50.0
f 1h = – ---------------------------------------------------------------------------------- + ---------------------------------------------------------------------------------- + 0.050 (13.75)
0.5 0.5
746.95 746.95
3
= – 0.1648 + 0.1140 + 0.050 = – 0.0008 m /s
Thus the imbalance in the flow at node 1 is 0.8 L/s (compared to the previous value of 50 L/s), and the head is now
overestimated at the end of the first iteration. In addition, the flows have been calculated in pipes 1 and 2 as:
3
Q 1 = 0.1648 m /s
3
Q 2 = 0.1140 m /s
ITERATION 2, H – equations
The new head is given by Equation 13.72 and the corresponding flows are given by Equation 13.75. The friction fac-
tors and corresponding rf values for the flows that resulted from iteration 1 can now be computed as shown in
Table 13.5.
Table 13.6 The rf values for flows from Iteration 2 for the Q – equations formulation
Thus
1
f = 0.01940 (13.76)
0.01962
and
1
rf = 659.52 (13.77)
667.15
The head from Equation 13.67 may be substituted into the nodal head equation of Equation 13.66 as follows:
– 0.5 – 0.5
1 80.0 – 59.708 80.0 – 59.708 59.708 – 50.0 59.708 – 50.0
f 1h = – ---------------------------------------------------------------------------------- + ---------------------------------------------------------------------------------- + 0.050
0.5 0.5
659.52 667.15
3
= – 0.17541 + 0.1206 + 0.050 = – 0.00481 m /s
3
Q 2 = 0.1871 m /s
The Jacobian matrix for the second iteration from Equation 13.65 is:
The inverse of the Jacobian matrix is shown below for this simple two pipe network as follows:
332
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
–1 1 1
J h = ------------------- = 94.92 (13.79)
0.01054
The head corrections for the second iteration are calculated from Equation 13.12 as:
2 –1 1 1
h = –J h f h = – 94.92 – 0.004784 = 0.4541 m
To check on convergence for iteration 2, use Equation 10.21 and Equation 10.22 for the infinity – norm for the head
changes as follows
k + 1 max k + 1
h = H stop (13.80)
j=1, NJ
where NJ = 1 and k = 1.
Thus for the two pipe network the check is for the head at node 1 only (from Equation 10.21)
2 2
h = H1 = 0.4541 = 0.4541 m (13.81)
or
2
H1 = 60.162 m (13.83)
The iterations continue up to iteration 5 and are summarized below in part (iv).
___________________________________________________________________________________
Answer – (iv) Tabulate all iterations for the solution process for the H – equations formulation for the two pipe
network.
The iterations for the full solution based on the H – equations formulation are shown in Table 13.7. Five iterations are
shown. The stopping tolerance based on the infinity – norm of the head changes (the maximum allowable size of any
–6
change in heads from one iteration to the next) that was used in the computer simulation run was 1.0 10 m. Again
this value of stopping tolerance is much smaller than is normally required, but it is used to demonstrate the quadratic
–3
convergence properties of the Newton method. Realistically the stopping tolerance could have been 1.0 10 m or 1
mm which means that convergence would have occurred in 4 iterations.
Table 13.7 Iteration sequence for the Newton solution for the H – equations formulation for the two pipe network
Iteration H1 m H 1 m k + 1 Q1 Q2
h
(from Equation 10.21) ** (m3/s) (m3/s)
0 65.0 0.1417 0.1417
1 59.708 – 5.2925 5.2925 0.1648 0.1140
2 60.1616 0.4541 0.4541 0.1734 0.1234
3 60.1584 – 3.180E – 03 3.180E – 03 0.1736 0.1236
4* 60.1583 – 8.385E – 05 8.385E – 05 0.1736 0.1236
5 60.1583 – 7.817E – 07 7.817E – 07 0.1736 0.1236
–3
* A stopping tolerance of less than 1.0 10 m or 1 mm achieved at iteration 4
333
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
max k + 1
** Infinity – norm for head changes (m) used for testing for convergence = Hi
i=1, NJ
Flow values from the first iteration onwards are computed as part of the iterative H – equation process.
___________________________________________________________________________________
Answer – (v) Compute the condition number of the Jacobian matrix at the final iteration and hence assess the
accuracy of your result for the H – equations.
The Jacobian and inverse of the Jacobian for the last iteration is:
6
Jh = 0.010456 (13.84)
and
–1 6
J h = 95.639 (13.85)
The infinity – norm (L – inf or the row – sum norm) of the Jacobian matrix of size NJ by NJ (where the number of nodes
NJ=1) from Equation 13.84 is:
NJ
max
a ij = max 0.010456 = 0.010456
1 i NJ j=1
The infinity – norm (L – inf) of the inverse of the Jacobian matrix from Equation 13.85 is:
NJ
–1 max
J = a ij = max 95.639 = 95.639
1 i NJ j=1
The condition number of Jacobian matrix in Equation 13.85 from Equation 10.25 based on the infinity – norm is:
–1
cond(J) = J J = 0.010456 95.639 = 1.0
___________________________________________________________________________________
Answer (vi) Plot convergence characteristics for the iterations for the H – equations for the two pipe network.
Figure 13.7 Convergence of H – equations formulation for solution of the two pipe network
334
Chapter 13 - File: Chap12-H-form.fm July 6, 2022 Version 7
13.5 References
Nielsen, H. B. (1989). “Methods for analyzing pipe networks.” Journal of Hydraulic Engineering,
Vol.115, No.2, February, 139-157.
Lambert, M.F. (1994). “Hydraulics of Compound Channels.” PhD Thesis, Department of Civil Engi-
neering and Surveying, University of Newcastle.
Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (1996) FORTRAN numerical recipes
(Vol. 1), Cambridge England.
Shamir, U. and D. D. Howard (1968). “Water distribution systems analysis.” Journal of the Hydraulics
Division, Proceedings of the ASCE, Vol. 94, No. HY1, January, 219-235.
335
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
14.1 Introduction
In this Chapter, the loop flow equations or LF – equations formulation are solved for based on the New-
ton method.These equations are formulated in terms of unknown loop flows. An initial estimate of all
the flows in the network such that continuity is satisfied at every node is required.
14.2 The Loop Flow (LF) Equations for a Water Distribution System
14.2.1 Set of loop flow equations
There are NL + NF – NC unknowns for this formulation where these variables are defined in
Section 9.2.2.
The number of equations for this formulation is usually significantly less than either the number of flow
equations (NP equations or the number of pipes — Q values as unknowns) or the number of nodal equa-
tions (NJ equations or the number of nodes with unknown head — H values as unknowns). Epp and
Fowler (1970) improved the single loop adjustment method of Hardy Cross (1936) by applying a New-
ton solution technique to computing all loop flows and required independent path flows (LFs) simulta-
neously. The convergence characteristics were improved significantly.
The expression for the number of nonlinear equations for loop flows and required independent path
flows was developed in Chapter 9.
The general set of equations to be solved for the NTL loop flows for a network are
f 1 LF 1 LF 2 LF NTL = 0
f 2 LF 1 LF 2 LF NTL = 0
where
• f s LF 1 LF 2 LF NTL = sth function in the loop flow equations (an energy equation)
• LF s = loop flow in a loop or required independent path s (m3/s or ft3/s)
• NTL = number of total closed simple loops plus required independent paths
(NTL = NL + NF – NC )
336
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
The column vector of unknown loop flows that are required to be solved for is defined as:
T
u = LF 1 LF 2 LF NTL (14.2)
The true solution to this set of nonlinear equations in Equation 14.1 is assumed to be the following col-
umn vector
* * * * T
u = LF 1 LF 2 LF NTL (14.3)
T
u = LF 1 LF 2 LF NTL (14.4)
This is the quantity that will be solved for successively in the Newton iterative process.
Thus the relationship between the correct loop flow vector u * , the current loop flow vector u , and the
loop flow correction vector u is
u * = u + u (14.5)
An initial estimate (referred to as the zeroth iteration indicated by the superscript zero (0)) needs to be
made for each of the unknown variables. The column vector of initial estimates of the loop flows is
A column vector of initial estimates for the pipe flows needs to be selected such that the flows selected
satisfy all the continuity equations at all junctions (see Figure 14.2)
The starting vector should be selected as a value that is considered to be likely e.g. 0.010 m3/s or 10 L/s.
It is probably desirable to select the initial loop flow to be different e.g. 0.010, 0.015, 0.020 etc. rather
than being identical.
NTL f u
1 2
f 1 u + u = f 1 u + - LF s + O LF
-----------------
LF s
s=1
NTL f u
2 2
f 2 u + u = f 2 u + - LF s + O LF
-----------------
LF s
s=1
337
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
NTL f u
NTL
f NTL u + u = f NTL u + - LF s + O LF
------------------------ (14.8)
LF s
s=1
where
2
f u + u = f u + J u u + O u (14.9)
where
k k k
f 1u f 1u f 1u
------------------------ ------------------------ ------------------------
-
LF 1 LF 2 LF NTL
k k k
k
f 2u f 2u f 2u
u = ------------------------ ------------------------ ------------------------
- (14.10)
LF 1 LF 2 LF NTL
k k k
f NTL u f NTL u f NTL u
------------------------------- ------------------------------- ------------------------------
-
LF 1 LF 2 LF NTL
When the unknown loop flow correction term of u is small then it follows that both
2
1. second order and higher terms of O u can be dropped and
2. also the following can be set in Equation 14.9
f u + u = f u * = 0
k k + 1 k
Ju u = –f u (14.11)
or
338
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
k + 1
LF 1 k k k
f 1 LF 1 LF 2 LF NTL
k + 1
LF 2 k k k
k
f 2 LF 1 LF 2 LF NTL
Ju = – (14.12)
k k k
k + 1 f NTL LF 1 LF 2 LF NTL
LF NTL
The subscripts k and (k + 1) have been introduced to represent to the successive iteration numbers. The
k + 1
vector of loop flow corrections u on the left – hand side of Equation 14.11 is for the (k + 1)st iter-
k k k
ation. The Jacobian matrix J u , the function vector f u and the loop flows vector u are all at
iteration k. Once again, as pointed out previously, the Jacobian matrix for the LF – equations formulation
is symmetric. This is in contrast to the Jacobian matrix for the Q – equations formulation.
k + 1
The vector of loop flow corrections u may be expressed from Equation 14.8 as
k + 1 –1 k k
u = –J u f u (14.13)
where
–1 k
• J u = inverse of the Jacobian matrix for the LF – equations formulation based on the
loop flows at iteration k (the Jacobian matrix is defined by Equation 14.10)
As mentioned previously, Equation 14.13 is not usually solved. It is desirable to avoid actually comput-
k + 1
ing the Jacobian explicitly. Instead, Equation 14.11 is solved for the vector u of the loop flow
corrections. This equation is a set of linear equations and may be solved by an LUD method (lower –
upper decomposition) or sparse matrix technique.
k + 1 st
The vector of loop flow corrections u at the k + 1 iteration from Equation 14.11 are then
k
added to the current solution vector u to give the next best estimate of the unknown loop flows as
k + 1 k k + 1
u = u + u (14.14)
or
k + 1
k + 1 k LF 1
LF 1 LF 1
k + 1
k + 1 k LF 2
LF 2 LF 2
= + (14.15)
k + 1 k
LF NTL LF NTL k + 1
LF NTL
k + 1
The process is iterated until the vector u converges to within an acceptable tolerance.
339
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
k n–
g 1 u = r Q init + LF k – LF k Q init + LF k – LF k (14.16)
j j s t j s t
The partial derivative of Equation 14.17 with respect to LF s (the loop flow for loop s) is based on the
general expression for the derivative from Equation 13.18 adapted to be in terms of LF s as follows
k init k k n – 1
g 1 u = nr j Q j + LF s – LF t (14.17)
LF s
The partial derivative of Equation 14.16 with respect to LF t (the loop flow for loop t) is based on the
general expression for the derivative Equation 13.28 adapted to be in terms of LF t as follows
k init k k n – 1
g 1 u = – n r j Q j + LF s – LF t (14.18)
LF t
k + 1 init
Qj = Qj + b sj LF s (14.19)
s PL j
where PL j = indices of the loops s associated with pipe j and b sj = – 1 or +1 depending on the sign of
the loop flow direction compared to the direction of the flow assumed in the pipe ( – 1 for opposite signs
and +1 for same signs).The updated friction factors can then be calculated based on these updated dis-
charges in each pipe. For a network that has more than one loop, Equation 14.19 would require that each
initial flow would be adjusted by all loop flows associated with that pipe.
Similarly to Equation 12.23, for the LF – equations formulation let the loop head loss equation (for loop
s) be designated respectively as
LF - L u = r jQ j Q j (14.20)
s
j P Ls
or
340
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
init k + 1 init k + 1
LF - L u =
s
r j Q j + b sj LF s
Q j + b sj LF s (14.21)
j PL s PL j s PL j
s
where subscript LF – L refers to loop flow equations for individual loops and b sj = – 1 or b sj = 1
(depending on the flow direction in the pipe relative to the assigned loop flow direction) for each of
pipes in loop s.
init k + 1 init k + 1
LF - P s u = r j Q j + b sj LF s
Q j + b sj LF s + E Lm – E L p
j PL s LP j s LP j
s
(14.22)
where subscript LF – P refers to loop flow equations for individual paths, P L s =indices of the pipes in
loop or path s, and LP j =indices of the loops associated with pipe j.
The infinity – norm test (based on Equation 10.20) can be used to stop the iterative convergence process
when for the closed loop head loss equations
k + 1 max k + 1
LF - L u = LF - L u stop (14.23)
s
j=1, NL s
k + 1 max k + 1
LF - P u = LF - P u stop (14.24)
s
j=1, NF – NC s
The checking of the nodal continuity equations is not required as the continuity equations are exactly
init
satisfied for the initially selected flows Q j .
NTL = NL + NF – NC = 2 + 2 – 1 = 3 (14.25)
As shown in Chapter 9, the column vector of unknown loop flows to be solved for based on
Equation 9.36 for the ten pipe network in Figure 14.1 has three unknown loop flows as:
k k k k T
u = LF 1 LF 2 , LF 3 (14.26)
Note the superscript k has been introduced here to distinguish between successive iterations.
The column vector of the loop flow corrections that will be solved for in the Newton iterative scheme
for the (k + 1)st iteration from the generalized form of Equation 10.6 and Equation 14.6 becomes
341
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
k + 1 k + 1 k + 1 k + 1 T
u = LF 1 LF 2 , LF 3 (14.27)
A column vector of initial estimates for the loop flows needs to be made to proceed with the iterative
solution process
A vector of initial estimates for the pipe flows needs to be selected such that the ten flows in each of the
pipes must satisfy all the continuity equations at all junctions (see Figure 14.2)
These values stay constant for all iterations of the Newton method.
Figure 14.1 Unknown LF – equations formulation for the ten pipe network; the initial pipe flows
are selected such that they satisfy continuity but do NOT change from iteration to iteration
For the ten pipe network in Figure 14.1 assuming a Darcy – Weisbach head loss equation where n = 2,
the loop flows equations are repeated from Chapter 9 in Table 14.1.
342
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
k n–1
f 1u r Q init + LF – LF Q init + LF – LF
2 2 1 3 2 1 3
init init n–1
+ r 6 Q 6 + LF 1 – LF 2 Q 6 + LF 1 – LF 2
init init n–1 init init n–1
– r 8 Q 8 – LF 1 Q 8 – LF 1 – r 5 Q 5 – LF 1 Q 5 – LF 1 = 0
k n–1
f 2u r Q init + LF – LF Q init + LF – LF
3 3 2 3 3 2 3
init init n–1 init init n–1
+ r 7 Q 7 + LF 2 Q 7 + LF 2 – r 9 Q 9 – LF 2 Q 9 – LF 2
init init n–1
– r 6 Q 6 + LF 1 – LF 2 Q 6 + LF 1 – LF 2 = 0
k n–1
f 3u r Q init + LF Q init + LF
4 4 3 1 4 3
init init n–1
– r 3 Q 3 + LF 2 – LF 3 Q 3 + LF 2 – LF 3
init init n–1
– r 2 Q 2 + LF 1 – LF 3 Q 2 + LF 1 – LF 3
init init n–1
– r 1 Q 1 – LF 3 Q 1 – LF 3 – E L5 – E L1 = 0
k
Note that E L 5 – E L 1 has been moved to the left hand side of f 3 u
init
The superscripted terms of “init” in the equations above are the initial estimates of the flows Q j in
init
each of the pipes such that the flows satisfy continuity of flow at each of the nodes. The values of Q j
do not change at each iteration – they remain the same values for the entire iterative solution process.
The 3 by 3 Jacobian matrix for the loop flows for the ten pipe network at iteration k from the general
form of Equation 10.12 becomes
k k k
f 1 u f 1 u f 1 u
------------------------ ------------------------ ------------------------
LF 1 LF 2 LF 3
k k k k
u = -----------------------
f 2u f 2u f 2u
- ------------------------ ------------------------ (14.30)
LF 1 LF 2 LF 3
k k k
f 3u f 3u f 3u
------------------------ ------------------------ ------------------------
LF 1 LF 2 LF 3
k
Note the Jacobian elements are based on the column vector of loop flow values u determined at the
previous kth iteration.
The first element in row 1 of the Jacobian matrix for the ten pipe network is obtained by differentiating
k k
f 1 u in Table 14.1. Consider the first term on the left – hand side of f 1 u given in
Equation 14.31.
k
g 2 u = r Q init + LF – LF Q init + LF – LF (14.31)
2 2 1 3 2 1 3
The partial derivative with respect to LF 1 using Equation 14.17 is given as the first row in Table 14.2 as
343
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
k
g 2 u init
------------------------- = 2r 2 Q 2 + LF 1 – LF 3 (14.32)
LF 1
k
Now consider the third term on the left – hand side of f 1 u given in Equation 14.33.
k
g 3 u = r Q init – LF Q init – LF (14.33)
5 5 1 5 1
The partial derivative of Equation 14.33 with respect to LF 1 using Equation 14.18 is given as
k
g 3 u init
------------------------- = – 2 r 5 Q 5 – LF 1 (14.34)
LF 1
Note the negative sign on the right – hand side of Equation 14.34.
k
The differentiation of all other terms in f 1 u and the other two functions in Table 14.1 proceeds in a
similar way to as described above. The Jacobian elements for all functions are shown in Table 14.2.
Table 14.2 The non – zero Jacobian elements for LF – equations for the ten pipe network
Derivatives Jacobian element with all LF s values taken at iteration k
f1 init init
-----------------
- 2r 2 Q 2 + LF 1 – LF 3 + 2r 6 Q 6 + LF 1 – LF 2
LF 1
init init
+ 2r 8 Q 8 – LF 1 + 2r 5 Q 5 – LF 1
f1 init
-----------------
- – 2r 6 Q 6 + LF 1 – LF 2
LF 2
f1 init
-----------------
- – 2 r 2 Q 2 + LF 1 – LF 3
LF 3
f2 init
-----------------
- – 2r 6 Q 6 + LF 1 – LF 2
LF 1
f2 init init
-----------------
- 2r 3 Q 3 + LF 2 – LF 3 + 2r 7 Q 7 + LF 2
LF 2
init init
+ 2r 9 Q 9 – LF 2 + 2r 6 Q 6 + LF 1 – LF 2
f2 init
-----------------
- – 2r 3 Q 3 + LF 2 – LF 3
LF 3
f3 init
-----------------
- – 2 r 2 Q 2 + LF 1 – LF 3
LF 1
f3 init
-----------------
- – 2 r 3 Q 3 + LF 2 – LF 3
LF 2
f3 init init
-----------------
- 2r 4 Q 4 + LF 3 + 2r 3 Q 3 + LF 2 – LF 3
LF 3
init init
+ 2r 2 Q 2 + LF 1 – LF 3 + 2r 1 Q 1 – LF 3
The partial derivatives are also based on the general expressions for the derivatives from Equation 13.22
and Equation 13.28.
344
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
f1 f2 f1 f3 f2 f3
The pairs of non – zero Jacobian elements -----------------
- & - , -----------------
----------------- - & -----------------
- and -----------------
- & -----------------
- in
LF 2 LF 1 LF 3 LF 1 LF 3 LF 2
Table 14.2 are identical — thus the Jacobian matrix is symmetric.
14.4.2 Solving for the LF – corrections for the ten pipe network
k
The set of linearized equations for the loop flow corrections (with three unknown values in u ) to be
solved for the ten pipe network during the iterative process is
k + 1 k
LF 1 f 1 u
k
Ju LF k + 1 = – f u k (14.35)
2 2
k + 1 k
LF 3 f 3 u
or
k k + 1 k
Ju u = –f u (14.36)
k + 1
The vector of the loop flow correction values u is then added to the current solution vector of
k
loop flows values u to give the next best estimate of the unknowns for the ten pipe network as
k + 1 k k + 1
u = u + u (14.37)
14.5 Solving the LF – Equations (Loop Flow) for Two Pipe Network
14.5.1 The unknowns and initial guesses
Now consider the loop flow equations for the network in Figure 14.2. Only one loop flow (LF1) needs to
be solved for along the path between the two reservoirs as designated in. Figure 14.2 also shows the pipe
init init
flows Q 1 and Q 2 that must be selected such that they must satisfy continuity at node 1.
From Equation 14.2, the vector of unknown loop flows at the kth iteration for the two pipe network is
k k T
u = LF 1 (14.38)
One function needs to be solved to determine the one unknown loop flow. This function includes the
energy equation around the path in Figure 14.2 written in terms of the unknown loop flows. The column
vector of loop flow corrections in the pipes solved by the Newton method (from Equation 10.6) for the
two pipe network at the (k + 1)st iteration becomes
345
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
k + 1 k + 1 T
u = LF 1 (14.39)
k + 1 k k + 1
u = u + u (14.40)
but
k + 1 k + 1
u = LF 1 (14.41)
An initial estimate for the loop flow needs to be made in order for the iterative solution process to begin
0 0 T
u = LF 1 (14.42)
A column vector of initial estimates for the pipe flows needs to be selected such that the flows selected
satisfy all the continuity equations at all junctions (see Figure 14.2)
During the iterative process at any iteration (k+1) the flows in each of the pipes are updated from the ini-
tial estimates of the flows at each iteration of the Newton solution process using Equation 14.19 that
leads to for the two pipe network for pipes 1 and 2
k + 1 init k + 1 init k + 1
Qj = Qj + b sj LF s = Q j – LF 1 (14.44)
s PL j
where b sj = – 1 and each of pipes 1 and 2 only has one associated loop flow correction term.
During the iterative process, the friction factors and pipe resistance terms ( r f = r 1 r 2 ) for each itera-
2
tion can be updated based on the current flows. For the Darcy – Weisbach head loss equationh f = r f Q
j
would be used.
14.5.2 Two pipe example based on Newton method (LF – equations formu-
lation)
Example 14.1 For the two pipe network in Figure 14.2 do the following:
(i) Develop the LF – equations formulation (loop flow) for the two pipe network system.
(ii) Develop the Jacobian matrix for the LF – equations formulation and carry out the first two iterations.
(iii) Compute the condition number for the last iteration for the LF – equations formulation.
(iv) Tabulate all iterations for the solution process for the LF – equations formulation.
(v) Plot convergence characteristics for the iterations for the LF – equations formulation for the two pipe network.
Assume the Darcy – Weisbach head loss equation is used for each pipe.
Answer – (i) Develop the LF – equations formulation for the two pipe network system.
The LF – equations formulation of the governing equations for this two pipe network includes the energy equation
along the path between the two reservoirs written in terms of unknown loop flow LF1:
346
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
Note that the “constants” for the two terms for rf in Equation 14.45 are dependent on the friction factor which in turn
requires computation of flows from Equation 14.44 and hence are required to be updated at each iteration. The
unknown LF1 is assumed to be clockwise in Figure 14.2 thus the energy equation to go around the path begins with
pipe 2 and then moves to pipe 1.
___________________________________________________________________________________
Answer – (ii) Develop the Jacobian matrix for the LF – equations formulation and carry out the first two itera-
tions.
The linear system from Equation 14.36 that need to be solved iteratively for the vector of loop flow corrections
k + 1
u is
k k + 1 k
Ju u = –f u (14.46)
There is only one term in the Jacobian at the kth iteration and this can be determined by taking the appropriate partial
derivative of Equation 14.45 as follows:
k
= -----------------------
f 1 u = 2.0r Q init – L F + 2.0r Q init – L F
k
Ju - 2 2 1 1 1 1 (14.47)
LF 1
ITERATION 1, LF – equations
Firstly an initial starting guess of the loop flow to be solved for associated with the path in Figure 14.2 is taken as:
0 0 3
u = LF 1 = 0.025 m /s (14.48)
In addition pipe flows that satisfy the continuity equation at node 1 are selected as:
init 3
Q1 m
= 0.100 --------
init
q = (14.49)
Q2
init 0.050 s
where b sj = – 1 for both pipes 1 and 2. Thus the loop flow corrections are subtracted from the pipe flows because the
direction of the loop flow correction arrow has been selected to be opposite to the pipe flows around the loop. From
Equation 14.50 and Equation 14.51 it follows that
0
0 Q1
= 0.075
3
q = m /s (14.52)
0 0.025
Q2
The friction factors (based on the Swamee and Jain equation – Equation 4.61) and corresponding rf values
(Equation 4.123) for the flows in Equation 14.49 (assuming the Darcy – Weisbach head loss equation) for pipes 1 and 2
in the two pipe network are given in Table 14.3
347
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
Table 14.3 The rf values for flows from Iteration 2 for the Q – equations formulation
The value of loop flow from Equation 14.48 and the initial flows in each of the pipes from Equation 14.49 may be sub-
stituted into the path energy equation of Equation 14.45 as follows:
0
f 1 u = – 735.49 0.050 – 0.025 0.050 – 0.025 – 679.06 0.100 – 0.025 0.100 – 0.025 + 80.0 – 50.0
= – 0.4597 – 3.8197 + 30.0 = 25.721 m
Thus the imbalance in the head around the path is 25.721 m. It should be zero.
The Jacobian matrix for the first iteration from Equation 14.47 is:
0
Ju = 2.0 735.49 0.050 – 0.025 + 2.0 679.06 0.100 – 0.025 = 138.63 (14.53)
The inverse of the Jacobian matrix is shown below for this simple two pipe network (note that the inverse of the Jaco-
bian would never be actually calculated in practice for a network of normal size) but in this case is very straight for-
ward for a single number, as it is the reciprocal of the value in Equation 14.53 as follows:
–1 0
J u = 0.0072134 (14.54)
The loop flow correction for the first iteration are calculated from Equation 14.13 as:
It follows then that the loop flow for the path after the first iteration is:
Thus
1 3
LF 1 = – 0.1605 m /s (14.57)
1
1 Q1
= 0.2605
3
q = m /s (14.60)
1 0.2105
Q2
Note that the new flows still satisfy continuity at node 1. These updated flows are only solved for in order to recompute
the friction factors.
For the Hazen – Williams head loss equation it is not necessary to compute the flows at every iteration as the loss coef-
ficients do not depend on flows.
348
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
For the path energy equation balance with the new flows by substituting into Equation 14.45 is:
0
f 1 u = – 735.49 0.050 – – 0.1605 0.050 – – 0.1605 (14.61)
– 679.06 0.100 – – 0.1605 0.100 – – 0.1605
+ 80.0 – 50.0 = – 32.589746 – 46.081181 + 30.0 = – 48.671 m
To check on convergence for iteration 1, use Equation 14.23 for the infinity – norm for the governing path equation in
the LF – equations formulation as follows
k + 1 max k + 1
LF - P u = LF - P u stop (14.62)
s
j=1, NF – NC s
where NF – NC = 1, s = 1 and k = 0.
Thus for the two pipe network the check is for the path equation only (from Equation 14.62) as there are no closed
loops
k + 1 k + 1
r j Q j + b sj L F s
1 init init
LF - P q
1
=
Qj + b sj L F s + E Lq – E L p
j P L1 s LP j s LP j
ITERATION 2, LF – equations
The friction factors and corresponding rf values for the flows in Equation 14.55 that resulted from iteration 1 can now
be computed as shown in Table 14.6.
Table 14.4 The rf values for flows from Iteration 2 for the Q – equations formulation
–6 2
** = 1.007 10 m /s at 20C ;
0.25 fL
Using in the above Table: f = ---------------------------------------------------------- ; r f = ------------------
5.74 2 2
log 10 ------------ + ------------ 2 gD A
3.7 D 0.9
Re
Thus
1
f = 0.01920 (14.63)
0.01928
and
1
rf = 652.78 (14.64)
655.59
The loop flow from Equation 14.56 may be substituted into the path energy equation of Equation 14.45 as follows:
1
f 1 u = – 655.59 0.050 – – 0.1605 0.050 – – 0.1605 – 652.78 0.100 – – 0.1605 0.100 – – 0.1605
+ 80.0 – 50.0
= – 29.057 – 44.307 + 30.0 = – 43.365 m
Thus the imbalance in the head around the path is now negative 43.365 m compared with the previous value for itera-
tion 1 of positive 25.721 m.
The Jacobian matrix for the second iteration from Equation 14.47 is:
349
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
1
Ju = 2.0 655.59 0.050 – – 0.1605 + 2.0 652.78 0.100 – – 0.1605 = 616.177 (14.65)
The inverse of the Jacobian matrix is the reciprocal of the value in Equation 14.65 as follows:
–1 1
J u = 0.0016229 (14.66)
The flow corrections for the second iteration are calculated from Equation 14.13 as:
2 –1 1 1 3
u = –J u f u = – 0.0016229 – 43.365 = 0.07038 m /s
The loop flow for the path after the second iteration is:
Thus
2 3
LF 1 = – 0.09015 m /s (14.68)
2
2 Q1
= 0.19015
3
q = m /s (14.71)
2 0.14015
Q2
–6 2
** = 1.007 10 m /s at 20C ;
0.25 fL -
Using in the above Table: f = ---------------------------------------------------------
- ; r f = -----------------
5.74 2 2
log 10 ------------ + ------------ 2 gD A
3.7 D 0.9
Re
0
f 1 u = – 655.60 0.050 – – 0.09015 0.050 – – 0.09015 (14.72)
– 652.78 0.100 – – 0.09015 0.100 – – 0.09015 + 80.0 – 50.0
= – 12.877 – 23.603 + 30.0 = – 6.480 m
To check on convergence for iteration 2, use Equation 14.23 for the infinity – norm for the governing path equation in
the LF – equations formulation as follows
k + 1 max k + 1
LF - P u = LF - P u stop
s
j=1, NF – NC s
where NF – NC = 1, s = 1 and k = 1.
350
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
Thus for the two pipe network the check is for the path equation only (from Equation 14.72) as there are no closed
loops
___________________________________________________________________________________
Answer – (iii) Compute the condition number for the last iteration for the LF – equations formulation.
–1 J
cond(J) = J J = ----------
- = 1.0
J
___________________________________________________________________________________
Answer – (iv) Tabulate all iterations for the solution process for the LF – equations formulation.
The iterations for the full solution based on the LF – equations formulation are shown in Table 14.6. Seven iterations
are shown. The stopping tolerance based on the infinity – norm of the head changes that was used in the computer sim-
–6
ulation run was 1.0 10 m. Again as for the Q – equations formulation (see Table 12.15, page 305) this value of stop-
ping tolerance is much smaller than is normally required, but it is used to demonstrate the quadratic convergence
–3
properties of the Newton method. Realistically the stopping tolerance could have been 1.0 10 m or 1 mm which
means that convergence would have occurred in 5 iterations.
Table 14.6 Iteration sequence for the Newton solution for LF – equations formulation
–6
(stopping tolerance 1.0 10 m achieved at iteration 5) for two pipe network
max k + 1
= LF - P u
j=1, NF – NC s
___________________________________________________________________________________
Answer – (v) Plot convergence characteristics for the iterations for the LF – equations formulation for the two
pipe network.
351
Chapter 14 - File: Chap13-Loop-Form.fm July 6, 2022 Version 7
Figure 14.3 Convergence of loop flows for two pipe network for the Newton method
___________________________________________________________________________________
14.6 References
Cross, H. (1936). Analysis of flow in networks of conduits or conductors. Bulletin No. 286, University of
Illinois Engineering Experimental Station, Urbana, Illinois.
Epp, R. and A. G. Fowler (1970). “Efficient code for steady-state flows in networks.” Journal of the
Hydraulics Division, Proceedings of the ASCE, January, Vol. 96, No. HY1: 43-56.
Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (1996) FORTRAN numerical recipes
(Vol. 1), Cambridge England.
352
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
15.1 Introduction
The flow and head equations or Q+H equations formulation are solved for by the Newton method in this
Chapter. Both the continuity equations at nodes and the pipe head loss equations are expressed in terms
of unknown flows in the pipes (or other flow elements) and unknown heads at nodes. There are a total of
NP + NJ unknown flows and heads that need to be solved for. The number of unknowns to be solved
for in the formulation is by far the greatest of any of the formulations. Thus larger matrices need to be
dealt with in the solution process. This is a severe disadvantage of this method and as a consequence it
will not be recommended for usage. It will be seen that in Chapter 16 that the Global Gradient Algo-
rithm is a smart variant of the Q+H equations formulation that ends up only requiring to solve a system
of equations of size NJ – the number of unknown heads. The Global Gradient Algorithm formulation is
the preferred formulation.
f 1 Q 1 Q 2 Q NP H 1 H 2 H NJ = 0
f 2 Q 1 Q 2 Q NP H 1 H 2 H NJ = 0
f NP Q 1 Q 2 Q NP H 1 H 2 H NJ = 0
f NP + 1 Q 1 Q 2 Q NP H 1 H 2 H NJ = 0
f NP + NJ Q 1 Q 2 Q NP H 1 H 2 H NJ = 0 (15.1)
where
353
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
The first NP functions in Equation 15.1 are the pipe head loss equations for each pipe while the last NJ
functions are the continuity equations at each of the nodes.
Let the unknown flows and heads that are required to be solved for be expressed as the column vector as
follows
T
m = Q 1 Q 2 Q NP H 1 H 2 H NJ (15.2)
f 1 m 1 m 2 m NP + NJ = 0
f 2 m 1 m 2 m NP + NJ = 0
f NP + NJ m 1 m 2 m NP + NJ = 0 (15.3)
where
T
m* = Q *1 Q *2 Q *NP H *1 H *2 H *NJ (15.4)
In order to find a solution by a successive iterative technique, let the deviation or correction column vec-
tor for the unknown flow and head problem be defined as
T
m = Q 1 , Q 2 ,, Q NP H 1 H 2 H NJ (15.5)
This is the quantity that will be solved for in the iterative Newton method.
k + 1
In the Newton numerical solution technique discussed, the objective is to find a solution m at the
(k +1)st iteration that is close to m* within an acceptable tolerance, in other words when m is very
small. Thus the relationship between the true or correct flow vector m* , the current flow vector m, and
the flow correction vector m is
m* = m + m (15.6)
when m is small.
354
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
An initial estimate (referred to as the zeroth iteration indicated by the superscript zero (0)) needs to be
made for each of the unknown flows and heads to commence the iterative solution process. The column
vector of initial estimates of the pipe flows and nodal heads is
A commonly used value for commencing the iterative solution process for the flows is to set all veloci-
ties to 1.0 fps (0.3048 m/s) in all pipes and then to compute the corresponding discharges (Rossman
2000). In addition, initial guesses of the heads at the nodes are needed.
15.2.2 The Jacobian matrix for the unknown flow and head equations
The solution for the unknown flows and heads requires linearization of the nonlinear governing equa-
tions that were presented in Section 9.10 and given in Equation 15.1. In the neighborhood of the current
iteration point each of the functions in Equation 15.1 may be expanded in a Taylor series as shown ear-
lier in Equation 10.8
NP + NJ f
1m
f 1 m + m = f 1 m + -m s + O m
------------------
m s
s=1
NP + NJ f
2m
f 2 m + m = f 2 m + -m s + O m
------------------
m s
s=1
NP + NJ f
NP + NJ m
f NP + NJ m + m = f NP + NJ m + -m s + O m
----------------------------------- (15.8)
m s
s=1
where
2
f m + m = f m + J m m + O m (15.9)
where
355
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
From the set of equations in Equation 15.9, the Jacobian matrix for the flow equations formulation based
on the values of the flows at the iteration k is defined as
k k k
f 1m f 1m f 1m
-------------------------- -------------------------
- --------------------------
m 1 m 2 m NP + NJ
k k k
k
f 2m f 2m f 2m
m = -------------------------- -------------------------
- -------------------------- (15.10)
m 1 m 2 m NP + NJ
k k k
f NP + NJ m f NP + NJ m f NP + NJ m
----------------------------------------- ----------------------------------------- -----------------------------------------
m 1 m 2 m NP + NJ
2
If m is small then second order and higher terms of O m can be dropped and also by setting in
Equation 15.9
f m + m = f m* = 0
gives
k k + 1 k
Jm m = –f m (15.11)
k k k
f 1m f 1m f 1m k + 1
------------------------- ------------------------
- ------------------------- m 1
m 1 m 2 m NP + NJ f 1 Q 1 Q 2 Q NP H 1 H 2 H NJ
k + 1
k k k m 2 f 2 Q 1 Q 2 Q NP H 1 H 2 H NJ
f 2m f 2m f 2m
------------------------- ------------------------
- ------------------------- = –
m 1 m 2 m NP + NJ
k k k f NP + NJ Q 1 Q 2 Q NP H 1 H 2 H NJ
f NP + NJ m f NP + NJ m f NP + NJ m k + 1
-------------------------------------- ----------------------------------------- ----------------------------------------- m NP + NJ
m 1 m 2 m NP + NJ
(15.12)
Note the subscripts k and (k + 1) have been introduced to represent to the successive iteration numbers.
k + 1
The flow and head correction vector m on the left – hand side of Equation 15.12 is for the (k +
k k
1)st iteration. The Jacobian matrix J m and the flows and heads m are at iteration k.
k + 1
Equation 15.12 will be solved for the unknown vector m to avoid computation of the inverse of
the Jacobian. This equation is a set of linear equations and may be solved by a standard matrix technique
or sparse matrix technique.
k + 1
The vector of corrections to the flows m can be expressed from Equation 15.11 as
k + 1 –1 k k
m = –J m f m (15.13)
where
356
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
–1 k
• J m = inverse of the Jacobian matrix for the Q+H equations formulation based on
the flows at iteration k (the Jacobian matrix is defined by Equation 15.10)
k + 1
Once the vector of corrections m at the (k + 1)st iteration is determined it is then added to the
k
current solution vector of flows and heads m to give the next best estimate of the unknowns as
k + 1 k k + 1
m = m + m (15.14)
or
k + 1
Q 1
k + 1 k
Q1 Q1 k + 1
Q 2
k + 1 k
Q2 Q2
k + 1 k k + 1
Q NP Q NP Q NP
= + (15.15)
k + 1 k k + 1
H1 H1 H 1
k + 1 k k + 1
H2 H2 H 2
k + 1 k
Q NJ H NJ
k + 1
H NJ
k + 1
The process is iterated until the vector m converges to within an acceptable tolerance.
357
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
15.3 The Q+H equations Formulation for the Ten Pipe Network
In this section a formulation of the Q+H equations for a ten pipe network as shown in Figure 15.1 is
given. In Section 15.4 a numerical example of a two pipe network is developed.
Figure 15.1 Unknown Q+H equations formulation for the ten pipe network
15.3.1 Unknowns and functions for the Newton solution of Q+H equations
Consider the equations for the network in Figure 15.1 formulated in terms of a total of 17 unknowns
including 10 flows (Q1 to Q10 – thus NP = 10) in each of the pipes and 7 heads (H2 to H9 – thus NJ = 7,
with nodal heads at 1 and 5 are not included) at each of the nodes for the network previously considered
in Chapter 9. The properties of the network are given in Table 12.2 and Table 12.2. The column vector
of unknown flows and heads from Equation 15.2 at the kth iteration is
T
m = Q 1 Q 2 Q 10 H 2 H 3 H 9 (15.16)
In order to find a solution by a successive iterative technique, let the deviation or correction column vec-
tor for the unknown flow and head problem be defined as
T
m = Q 1 , Q 2 ,, Q 10 H 2 H 3 H 9 (15.17)
An initial estimate (referred to as the zeroth iteration indicated by the superscript zero (0)) needs to be
made for each of the unknown flows and heads to commence the iterative solution process. The column
vector of initial estimates of the pipe flows is
358
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
The set of governing equations for the ten pipe network were presented in Chapter 9. These are repeated
in Table 15.1 for the Darcy – Weisbach head loss equation with n = 2.
Table 15.1 The Q+H equations for the ten pipe network based on the pipe head equations and
continuity equations (for the Darcy-Weisbach head loss equation n = 2)
Func- Pipe head loss equation Func- Continuity equation
tion tion
f 1m – r 1 Q1 Q1 + E L1 – H 2 = 0 f 11 m – Q 6 – Q 8 + Q 10 + DM 7 = 0
f 2m – r 2 Q2 Q2 + H 2 – H 3 = 0 f 12 m – Q 7 – Q 9 + Q 10 + DM 8 = 0
f 3m – r 3 Q3 Q3 + H 3 – H 4 = 0 f 13 m – Q 10 + DM 9 = 0
f 4m – r 4 Q4 Q4 + E L5 – H 4 = 0 f 14 m – Q 1 + Q 2 + Q 5 + DM 2 = 0
f 5m – r 5 Q5 Q5 + H 2 – H 6 = 0 f 15 m – Q 2 + Q 3 + Q 6 + DM 3 = 0
f 6m – r 6 Q6 Q6 + H 3 – H 7 = 0 f 16 m – Q 3 – Q 4 + Q 7 + DM 4 = 0
f 7m – r 7 Q7 Q7 + H 4 – H 8 = 0 f 17 m – Q 5 – Q 8 + DM 6 = 0
f 8m – r 8 Q8 Q8 + H 6 – H 7 = 0
f 9m – r 9 Q9 Q9 + H 7 – H 8 = 0
f 10 m – r 10 Q 10 Q 10 + H 8 – H 9 = 0
15.3.2 Jacobian matrix for the Q+H equations for the ten pipe network
The Jacobian matrix of Equation 15.10 based on values at the kth iteration is a 17 by 17 square matrix for
the 10 unknown pipe flows and the 7 unknown heads and becomes
k k k
f 1m f 1m f 1m
-------------------------- -------------------------- -------------------------
-
m 1 m 2 m 17
k k k
k
f 2m f 2m f 2m
m = -------------------------- -------------------------- -------------------------
- (15.19)
m 1 m 2 m 17
k k k
f 17 m f 17 m f 17 m
---------------------------- ---------------------------- ---------------------------
-
m 1 m 2 m 17
The first function from Table 15.1 based on the first pipe head loss equation is
f 1 m = – r 1 Q1 Q1 + E L1 – H 2 = 0 (15.20)
The two non – zero partial derivatives of the first row of the Jacobian matrix for Equation 15.20 are now
evaluated. The 17 by 17 Jacobian matrix is shown in Table 15.3
The first non – zero element of the first row of the Jacobian matrix (the partial derivative with respect to
Q 1 )in the first column of Table 15.3 is
359
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
k k
f 1m f 1m k
------------------------- = -------------------------
- = – 2.0 r 1 Q 1 or element A in Table 15.2. (15.21)
m 1 Q 1
The second non – zero element of the first row of the Jacobian matrix (the partial derivative with respect
to H 2 ) in the eleventh column in Table 15.3 is
k k
f 1m f 1m
-------------------------- = -------------------------
- = –1 (15.22)
m 11 H 2
All other partial derivatives in row 1 of the Jacobian matrix in Table 15.3 are zero.
Derivatives for the other pipes are given in Table 15.2 and Table 15.3. The derivatives of the pipe head
loss equations in the top portion of the Jacobian matrix (rows 1 to 10, red colored area) are shown below
in Table 15.3.
Table 15.2 The Jacobian matrix for the Q+H equations at iteration k for the ten pipe network
(for the Darcy-Weisbach head loss equation n = 2)
Element in Non – zero Value of Element in Non – zero Value of
Table 15.3 Jacobian Jacobian Table 15.3 Jacobian ele- Jacobian
element element ment element
A k k F k k
f 1m – 2.0 r 1 Q 1 f 6m – 2.0 r 6 Q 6
-------------------------- --------------------------
Q 1 Q 6
B k k G k k
f 2m – 2.0 r 2 Q 2 f 7m – 2.0 r 7 Q 7
-------------------------- --------------------------
Q 2 Q 7
C k k H k k
f 3m – 2.0 r 3 Q 3 f 8m – 2.0 r 8 Q 8
-------------------------- --------------------------
Q 3 Q 8
D k k J k k
f 4m – 2.0 r 4 Q 4 f 9m – 2.0 r 9 Q 9
-------------------------- --------------------------
Q 4 Q 9
E k k K k k
f 5m – 2.0 r 5 Q 5 f 10 m – 2.0 r 10 Q 10
-------------------------- ----------------------------
Q 5 Q 10
Examples of the partial derivatives for the continuity equation at node 2 in the eleventh row of the Jaco-
bian matrix in Equation 15.19 are given for the Q – equations formulation in Table 12.6 (page 300).
Three elements are non – zero in columns 1, 2 and 5. In addition elements 11 through 17 of the eleventh
row will also take on a zero value.The derivatives of the other continuity equations are also shown in
Table 15.3 in the bottom portion of the Jacobian matrix (rows 11 to 17, colored blue).
Four important partitions are evident by the colored areas in Table 15.3 as follows
1. The red partition is the derivative of the flow terms in each pipe (from the head loss equa-
tion) along the diagonal (A, B, C,... etc.) and created a diagonal matrix in that partition.
2. The upper right hand side blue area is the unknown head incidence matrix A 1
(Equation 9.11, page 227).
360
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
T
3. The lower left hand side blue area is the transpose of the unknown head incidence matrix A 1
(Equation 9.12, page 228)
4. The yellow area in the lower right hand corner is all zeros.
Table 15.3 The Jacobian matrix for the Q+H equations at iteration k for the ten pipe network (for
definitions of A, B, C,....etc. see Table 15.2)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Pipe 1 1 A –1
Pipe 2 2 B 1 –1
Pipe 3 3 C 1 –1
Pipe 4 4 D –1
Pipe 5 5 E 1 –1
Pipe 6 6 F 1 –1
Pipe 7 7 G 1 –1
Pipe 8 8 H 1 –1
Pipe 9 9 J 1 –1
Pipe 10 10 K 1 –1
Node 2 11 –1 1 1 0
Node 3 12 –1 1 1 0
Node 4 13 –1 –1 1 0
Node 6 14 –1 1 0
Node 7 15 –1 –1 1 0
Node 8 16 –1 –1 1 0
Node 9 17 –1 0
All empty cells represent a zero value in the Jacobian
As will be seen in the Chapter the form of the Jacobian in Table 15.3 is the same as that derived for the
GGA of
k
k –n G A1
Jm = (15.23)
T
A1 0
where from Chapter the node-arc incidence matrix (from Equation 15.24) is
Node = 02 03 04 06 07 08 09
–1 0 0 0 0 0 0 pipe 1
1 –1 0 0 0 0 0 pipe 2
0 1 –1 0 0 0 0 pipe 3
0 0 –1 0 0 0 0 pipe 4
A1 = 1 0 0 –1 0 0 0 pipe 5 (15.24)
0 1 0 0 –1 0 0 pipe 6
0 0 1 0 0 –1 0 pipe 7
0 0 0 1 –1 0 0 pipe 8
0 0 0 0 1 –1 0 pipe 9
0 0 0 0 0 1 –1 pipe 10
361
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
n–1
r 1 Q1 0 0 0 0 0
n–1
0 r 2 Q2 0 0 0 0
n–1
0 0 r 3 Q3 0 0 0
G = (15.25)
n–1
0 0 0 r 8 Q8 0 0
n–1
0 0 0 0 r 9 Q9 0
n–1
0 0 0 0 0 r 10 Q 10
15.3.3 Solving for the flow corrections for the ten pipe network
Once the Jacobian matrix for iteration k has been evaluated the set of linearized equations to be solved
for the corrections to the pipe flows and heads during the iterative process from Equation 15.12 is
k + 1
Q 1
k + 1
Q 2 k
f 1m
k k
Jm Q k + 1 = – f 2 m (15.26)
10
k + 1
H 2 k
f 17 m
k + 1
H 9
or
k k + 1 k
Jm m = –f m (15.27)
Once the Jacobian matrix has been determined for a particular iteration, Equation 15.27 must now be
k + 1
solved for the vector of flow corrections m . During the iterative solution procedure, the correc-
k + 1
tions m for each iteration are added to the current solution vector to give the next best estimate of
the unknowns as
k + 1 k k + 1
m = m + m (15.28)
15.4 Solving the Q+H equations for the Two Pipe Network
15.4.1 The unknowns and initial guesses
Now consider the flow and head equations for the network in Figure 15.2. Flows for each of the two
pipes need to be solved for, that is Q1 and Q2, as well as, the head at node 1, H1.. From Equation 15.2
(page 354), the column vector of unknown flows and at the kth iteration for the two pipe network is
k k k k T
m = Q1 Q2 H 1 (15.29)
362
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
Figure 15.2 Unknown Qs and the H to be solved for in the two pipe network
The functions to be solved include two head loss equations for the pipes and one continuity equation at
node 1.
The column vector of flow and head corrections in the pipes to be solved at each iterative step in the
Newton method (from Equation 15.17, page 358) for the two pipe network at the (k + 1)st iteration
becomes
k + 1 k + 1 k + 1 k + 1 T
m = Q 1 Q 2 H 1 (15.30)
A column vector of initial estimates for the flows in each pipe and the heads at each node needs to be
made in order for the iterative solution process to begin
0
The initial flows Q j are often based on a flow velocity of 1.0 fps (0.3048 m/s) (as used in EPANET -
Rossman 2000) as shown in Table 12.11 (Table 12.11, for the Q – equations formulation). An estimate
of the unknowns heads also needs to be made. The pipe properties for the network are given in
Table 12.8.
The pipe resistance factors ( r f = r 1 r 2 ) can now be computed based on initial flow guesses shown in
2
Table 12.11 for the Darcy – Weisbach head loss equation h f = r f Q (where n = 2) using
j
Equation 12.30. The pipe resistance values r j are shown in Table 12.12 (for the Q – equations formula-
tion) with the friction factors computed from the Swamee and Jain equation. These pipe resistance val-
ues r j are updated at each iteration based on the latest flow values.
15.4.2 Two pipe example based on Newton method (Q+H equations formu-
lation)
Example 15.1 For the two pipe network in Figure 15.2 complete the following:
(i) Develop the Q+H equations formulation for the two pipe network.
(ii) Develop the Jacobian matrix for the Q+H equations formulation and carry out the first two iterations for the two
pipe network.
(iii) Tabulate all iterations for the solution process for the Q+H equations formulation.
(iv) Plot the convergence characteristics for the iterations for the Q+H equations formulation for the two pipe net-
work.
Assume the Darcy – Weisbach head loss equation is used for each pipe.
Answer – (i) Develop the Q+H equations formulation for the two pipe network.
The Q+H equations formulation of the governing equations for this two pipe network includes two pipe head loss
equations, one for each pipe, and a continuity equation at node 1 as follows:
363
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
f 3 m = – Q 1 + Q 2 + DM 1 = 0 at node 1 (15.34)
The “constants” for the two terms for rf in Equation 15.32 and Equation 15.33 are dependent on the friction factor and
hence are required to be updated at each iteration. Values of rf are given in Table 15.4.
Table 15.4 The rf values for velocity guesses based on 1.0 fps (0.3048 m/s) for Q+H – equations formulation
Substituting the known quantities and the quantities from Table 12.12 (from the Q – equations formulation example,
Example 12.4, page 303) into Equation 15.32 to Equation 15.34 for the calculation for the first iteration gives:
(assuming a velocity of 1.0 fps (0.3048 m/s) in each pipe for computation of the rf values).
In matrix form (according to Table 9.2) the unknown node incidence matrix A 1 [having 2 rows (NP = 2 for each of the
two pipes) and 1 column (NJ = 1 for the one node)] for the two pipe network is
A1 = –1 (15.38)
1
The transpose of A 1 is
T
A1 = –1 1 (15.39)
The fixed node incidence matrix A 2 [having 2 rows (NP = 2 for the two pipes) and 2 columns (NF = 2 for the two
fixed – head nodes)] for the two pipe network (according to Table 9.4) is
A2 = 1 0 (15.40)
0 –1
___________________________________________________________________________________
Answer – (ii) Develop the Jacobian matrix for the Q+H equations formulation and carry out the first two itera-
tions for the two pipe network.
The terms in the Jacobian at the kth iteration can be determined by taking the appropriate partial derivatives of
Equation 15.32 to Equation 15.34 as follows:
364
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
k k k
f 1m f 1m f 1m
------------------------- ------------------------- -------------------------
Q 1 Q 2 H 1 k
– 2.0r f Q 1 0 –
f 2 m f 2 m f 2 m = – nG A 1 =
k k k 1
= ------------------------
k
m - ------------------------- ------------------------- k (15.41)
Q 1 Q 2 H 1 T 0 – 2.0r f Q 2 1
A1 0 2
k k k –1 1 0
f 3m f 3m f 3m
------------------------- ------------------------- -------------------------
Q 1 Q 2 H 1
Note that the Jacobian matrix for the Q+H equations formulation is symmetric in contrast to the Jacobian for the Q –
equations formulation (Equation 12.54, page 304).
k k + 1 k
Jm m = –f m (15.42)
The initial guesses for the flows in the two pipes and the head at node in this example are based on a standard value of
velocity of 1.0 fps (0.3048 m/s) and converted to a flow (same values as for the Q – equations formulation example,
Table 12.11, page 303) and the same value of head guess to commence the iterative solution for the H – equations for-
mulation (Equation 13.67, page 330). These are:
3 3
0 m 0 = 0.02155 m 0
Q1 = 0.02155 -------
- Q2 --------, H 1 = 65.0 m (15.43)
s s
These initial values have been selected to enable a fair comparison of the iterative solution process to be able to be
made between the Q – equations, the H – equations and the Q+H equations. Thus from Equation 15.34 the vector of
unknowns at iteration zero (0) is:
0
Q1
0.02155
0
m = 0 = 0.02155 (15.44)
Q2
0 65.0
H1
Note that it turns out that the sequence of iterations of the Q and H values here is actually independent of the choice of
0
H1 . In this formulation the Jacobian matrix in Equation 15.41 for all iterations is only dependent on the Q values
and has no dependence on H values.
The friction factors (based on the Swamee and Jain equation – Equation 4.61) and corresponding rf values
(Equation 4.123) for the flows in Equation 15.43 for pipes 1 and 2 in the two pipe network are given in Table 12.12
(page 305) and were calculated for the Q – equations formulation. These are:
f = 0.02197
0.02197
and
0 8 f jL j
rf - = 746.95
= ------------------
2 5
gDj 746.95
The values from Equation 15.44 may be substituted into the pipe head loss and continuity equations of Equation 15.35
to Equation 15.37 as follows:
0
f 1 m = – 746.954 0.02155 0.02155 + 80.0 – 65.0 = – 0.3468873 + 15.0 = 14.6531 m (15.45)
0
f 2 m = – 746.954 0.02155 0.02155 + 65.0 – 50.0 = – 0.3468873 + 15.0 = 14.6531 m (15.46)
0 3
f 3 m = – Q 1 + Q 2 + 0.050 = – 0.02155 + 0.02155 + 0.050 = 0.050 m /s (15.47)
These functions should be zero. Clearly the initially guessed discharges of 21.55 L/s are too small.
365
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
14.6531
0
f m = 14.6531
0.050
The Jacobian matrix for the first iteration from Equation 15.41 is:
k
– 2.0r f Q 1 0 –1 – 2.0 746.954 0.02155 0 –1
1
0
Jm = k = 0 – 2.0 746.954 0.02155 1 (15.48)
0 – 2.0r f Q 2 1
2
–1 1 0
–1 1 0
– 32.1937 0 –1
0
Jm = 0 – 32.1937 1 (15.49)
–1 1 0
The inverse of the Jacobian matrix is shown below for this simple two pipe network (note that this would never be
actually calculated in practice for a network of normal size – an alternative solution method would be used to solve
Equation 15.27 (page 362) that avoids calculating the inverse explicitly).
The flow and head corrections for the first iteration as calculated from Equation 15.27 are:
1
Q 1
0.48014
1
m = Q 2
1 = 0.43014 (15.52)
1 – 0.80486
H 1
To check on convergence for iteration 1, use Equation 12.25 and Equation 12.47 for the infinity – norm for the govern-
ing path equation as follows
k + 1 max k + 1
h = H stop (15.53)
j=1, NJ
where NJ = 1, s = 1 and k = 0.
Thus for the two pipe network the check is for the head change at node 1 (from Equation 15.52) as
1 1
h = H1 = – 0.80486 = 0.80486 (15.54)
The new flows after the first iteration from Equation 15.28 are:
366
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
Note the new flows are exactly the same as the flows obtained for iteration 1 for the Q – equations formulation. The
flows satisfy the continuity equation exactly as follows:
1 3
f 3 m = – Q 1 + Q 2 + 0.050 = – 0.5017 + 0.4517 + 0.050 = 0.000 m /s (15.56)
The continuity equation at node 1 is also exactly satisfied for all subsequent iterations.
The head at iteration 1 at node 1 is 64.150 m, however, this value is different to the value obtained in the H – equations
formulation of 59.708 m (Equation 13.72, page 331).
The vector of new flows and head is given by Equation 15.55 above. The friction factors (based on the Swamee and
Jain equation – Equation 12.31) and corresponding rf values (Equation 4.123) for the flows that resulted from iteration
1 in Equation 15.55 are computed in Table 15.5.
Table 15.5 The rf values for flows from Iteration 1 for the Q – equations formulation
–6 2
** = 1.007 10 m /s at 20C ;
0.25 fL
Using in the above Table: f = ---------------------------------------------------------- ; r f = ------------------
5.74 2 2 gD A
2
log 10 ------------ + ------------
3.7 D 0.9
Re
Thus
1
f = 0.01901 (15.57)
0.01904
and
1 8 f jL j
rf - = 646.73
= ------------------ (15.58)
2 5
gDj 647.48
The flows and head from Equation 15.55 may be substituted into the pipe head loss and continuity equations of
Equation 15.35 to Equation 15.37 with updates to the resistance factors rf as follows:
1
f 1 m = – 646.73 0.5017 0.5017 + 80.0 – 64.150 = – 146.93 m for pipe 1 (15.59)
1
f 2 m = – 647.48 0.4517 0.4517 + 64.150 – 50.0 = – 117.96 m for pipe 2 (15.60)
1
f 3 m = – 0.5017 + 0.4517 + 0.050 = 0.0 at node 1 (15.61)
or the vector for the right – hand side of Equation 15.42 becomes:
– 146.93
1
fm = – 117.96 (15.62)
0.0
The Jacobian matrix for the second iteration from Equation 15.41 is:
k
– 2.0r f Q 1 0 –1 – 2.0 646.73 0.5017 0 –1
1
1
Jm = k = 0 – 2.0 647.48 0.4517 1 (15.63)
0 – 2.0r f Q 2 1
2
–1 1 0
–1 1 0
367
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
– 648.93 0 –1
1
Jm = 0 – 584.93 1 (15.64)
–1 1 0
The flow corrections for the second iteration are calculated from Equation 15.28 by substituting Equation 15.62 and
Equation 15.65 as follows:
Thus
2
Q1
– 0.2147
2
m = Q2
2 = – 0.2147 (15.66)
2 – 7.664
H1
To check on convergence for iteration 2, use Equation 12.25 and Equation 12.47 for the infinity – norm for the govern-
ing path equation as follows
k + 1 max k + 1
h = H stop (15.67)
j=1, NJ
where NJ = 1, s = 1 and k = 1.
Thus for the two pipe network the check is for the head change at node 1 only (from Equation 15.66) as
1 1
h = H1 = – 16.1406 = 16.1406 (15.68)
Note the flow corrections for pipes 1 and 2 are identical as continuity was already satisfied by the flows at the end of
the first iteration.
The iterations continue up to iteration 8 and are summarized below in Answer Part (iii).
___________________________________________________________________________________
Answer – (iii) Tabulate all iterations for the solution process for the Q+H equations formulation
The iterations for the full solution based on the Q+H equations formulation are shown in Table 15.6 and Table 15.7.
Eight iterations are shown. The stopping tolerance based on the infinity – norm of the head changes that was used in the
–6
computer simulation run for producing Table 15.6 was 1.0 10 m. Realistically the stopping tolerance could have
–3
been 1.0 10 m or 1 mm which means that convergence would have occurred in 7 iterations.
368
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
Table 15.6 Iteration sequence of flow and head corrections for the Newton solution for the Q+H equations formulation
–6
(stopping tolerance 1.0 10 m achieved at iteration 8) for the two pipe network
max k + 1
** Infinity – norm for Head Changes (m) used for testing for convergence = Hi
i=1, NJ
Note that the convergence of the Q+H equations in Table 15.6 is faster than for the Q – equations in Table 12.16. The
sequence of Q iterates are virtually identical for both cases but the H values converge faster for the Q+H equations for-
mulation. One iteration is saved.
Table 15.7 Iteration sequence of flows and head for the Newton solution for the Q+H equations formulation
–6
(stopping tolerance 1.0 10 m) for two pipe network
369
Chapter 15 - File: Chap14-QH-form-v03.fm July 6, 2022 Version 7
Figure 15.3 Convergence of flows for solution of the two pipe network using the Q+H equations formulation for the Newton
method
Figure 15.4 Convergence of head for solution of the two pipe network using the Q+H equations formulation for the Newton
method
15.5 References
Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (1996) FORTRAN numerical recipes
(Vol. 1), Cambridge England.
Rossman, L A. (2000). EPANET 2 Users Manual. U.S. Environmental Protection Agency, Washington,
D.C., EPA/600/R-00/057.
370
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
16.1 Introduction
In this Chapter, the Global Gradient Algorithm formulation is used to solve the set of simultaneous non-
linear equations formed to represent flows and heads in a network. As mentioned in Chapter 9, both the
H and Q variables are dealt with simultaneously in the Global Gradient Algorithm formulation. Recall
that in Chapter 15 for the Q+H equations formulation the size of the matrix that requires inversion in the
iterative process is the size of the number of links plus the number of nodes (NP+NJ). A significant
advantage of the Global Gradient Algorithm formulation is that the matrix that requires inversion in the
iterative solution process is smaller and only the size of the number of unknown heads (NJ). In addition,
the matrix to be inverted is symmetric and positive definite.
The speed with which the GGA executes the Newton iterations to solve the set of non-linear equations
governing flows and heads in a water distribution system has probably contributed most to the method’s
popularity (Elhay et al. 2014). The GGA determines the solution of a nonlinear system by a two-stage
iteration in which the linear solver deals with a matrix of dimension only NJ (the number of nodes).
This, together with the fact that the matrix to be inverted is sparse and symmetric, leads to a very fast
algorithm (Elhay et al. 2014).
A different derivation to the Global Gradient Algorithm is given in this chapter based on Simpson and
Elhay (2009).
The matrix form of Global Gradient Algorithm based on the continuity equations (Equation 9.46) and
the pipe head loss equations (Equation 9.61) developed in Chapter 9 are repeated here.
T
A1 q + dm = 0 (16.1)
–G q + A1 h + A2 e L = 0 (16.2)
where
• A 1 = unknown head node incidence matrix (Equation 9.3 and Equation 9.11) of size NP
pipes by NJ nodes
• q = column vector of pipe flows (or other flow elements) (Equation 9.3) (m3/s or
T
ft3/s) = Q 1 , Q 2 , Q NP of length NP pipes
• h = column vector of heads for each of the nodes (m or ft)
T
= H 1 , H 2 , H NJ of length NJ nodes
371
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
• A 2 = reservoir loop incidence matrix (Section 9.3.2) of size NP pipes by NF fixed – head
nodes
• e L = column vector of reservoir elevations (Equation 9.59) (m or ft)
T
= EL 1 , EL 2 , ,EL NF of length NF fixed – head nodes
• d m = column vector of demands for each of the nodes (m3/s or ft3/s)
T
= DM 1 , DM 2 , DM NJ of length NJ nodes
A combined partitioned matrix formulation of the two sets of equations in Equation 16.1 and
Equation 16.2 and from Equation 9.65 gives
–G A1 q A e
+ 2 L = 0 (16.3)
T
A1 0 h dm
Recall that the definition of G (an NP by NP diagonal matrix) from Chapter 9 (Equation 9.52) written
in a slightly more general form is
n–1
r 1 Q1 0 0 0 0 0
n–1
0 r 2 Q2 0 0 0 0
n–1
0 0 r 3 Q3 0 0 0
G =
n–1
0 0 0 r NP – 2 Q NP – 2 0 0
n–1
0 0 0 0 r NP – 1 Q NP – 1 0
n–1
0 0 0 0 0 r NP Q NP
(16.4)
A very important proviso needs to be made about the form of the above matrix definition. These diago-
nal terms in Equation 16.4 are valid for the Hazen – Williams formulation as well as for the Darcy –
Weisbach formulation as long as the flow is not laminar. The appropriate terms for laminar flow are
given in Section 16.2.4.
Q1
n–1
r 1 Q1 0 0 | Q2
n–1
0 r 2 Q2 0 |
Q NP A2 e L
– | –A1 + = 0 (16.5)
n–1 dm
0 0 0 r NP Q NP | H1
––– ––– ––– ––– –– ––– ––– ––– | –– H2
T
–A1 | 0
H NJ
372
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
The set of equations in Equation 16.3 has a solution if the inverse of G is not singular (Todini and Pilati
1988). The terms on the diagonal of the inverse of the G matrix are
1
------------------------ (16.6)
n–1
rj Qj
Singularity of the inverse of the G matrix occurs if the flow Q j in any pipe becomes very small or zero.
Todini and Pilati (1988) suggested that a lower bound should be defined for all flows to avoid this prob-
lem. As an alternative, a regularization method to overcome the problem of zero flows was developed
by Elhay and Simpson (2011).
NTOT = NP + NJ (16.7)
In a similar approach to that in Chapter 15 (Section 15.2.1), define in Equation 16.3 the following quan-
tity to enable a Taylor’s series expansion to be written thus hence a Newton formulation to be derived
q
m = (16.8)
h
or
T
m = m 1 m 2 m NTOT (16.9)
or
T
m = Q 1 Q 2 Q NP H 1 H 2 H NJ (16.10)
Also define
A2 e L
p = (16.11)
dm
It follows that substituting Equation 16.8 and Equation 16.11 into Equation 16.3 gives
–G A1
m + p = 0 (16.12)
T
A1 0
For the column vector m the following set of NTOT – functions made up of the pipe flow equations and
the nodal continuity equations can be written as
f 1 m 1 m 2 m NTOT = 0
373
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
f 2 m 1 m 2 m NTOT = 0
where
The first NP functions are the pipe head loss equations that have the general form
n–1
–r j Q j Q j + Hi – Hk = 0 for pipes j = 1,..., NP (16.14)
where one of the heads may be a reservoir elevation if the pipe is attached to the reservoir. The remain-
ing functions in Equation 16.13 are NJ nodal continuity equations from Equation 9.15 of the form
NP
a ij Q j + DM i = 0 for nodes i = 1,2,..., NJ (16.15)
j=1
where
• a ij = element of the unknown head node incidence matrix A 1 (with values zero, – 1 or
+1), thus only Qj values for pipes connected to the node are included.
Let the true solution to the set of nonlinear equations in Equation 16.13 be the following column vector
* * * * T
m = m 1 m 2 m NTOT (16.16)
or
* * * * * * * T
m = Q 1 Q 2 Q NP H 1 H 2 H NJ (16.17)
Let the deviation or correction column vector for the unknown flows and heads problem be defined as
T
m = m 1 m 2 m NTOT (16.18)
or
T
m = Q 1 Q 2 Q NP H 1 H 2 H NJ (16.19)
This is the quantity that needs to be solved for in the Newton iterative scheme.
374
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
NTOT f m
1
f 1 m + m = f 1 m + -m j + O m
------------------
m j
j=1
NTOT f m
2
f 2 m + m = f 2 m + -m j + O m
------------------
m j
j=1
NTOT f m
NTOT
f NTOT m + m = f NTOT m + - m j + O m
------------------------------ (16.20)
m j
j=1
where
• f s m , f s m + m = sth function in the GGA equation formulation (either a pipe head loss
or a continuity equation)
• m = column vector of unknown heads (m or ft) and flows (m3/s or ft3/s)
• m = deviation vector of the unknown heads and flows; m s = sth deviation of heads and
flows in the m vector
• NP = number of pipes in the network
• NJ = number of nodes with unknown heads in the network
• NTOT = NP +NJ
2
• O m = column vector of second order and higher terms of the flows and heads correc-
tions
Rewriting Equation 16.20 in matrix notation using Equation 10.9 (Press et al. 1996) gives
2
f m + m = f m + J m m + O m (16.21)
where
375
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
k k k
f 1m f 1m f 1m
-------------------------- -------------------------
- --------------------------
m 1 m 2 m NTOT
k k k
k
f 2m f 2m f 2q
m = -------------------------- -------------------------
- ------------------------ (16.22)
m 1 m 2 m NTOT
k k k
f NTOT m f NTOT m f NTOT m
------------------------------------- ------------------------------------- ------------------------------------
-
m 1 m 2 m NTOT
k k k k k k
f 1m f 1m f 1m f 1m f 1m f 1m
------------------------
- ------------------------
- ------------------------
- | ------------------------- ------------------------- ------------------------
-
Q 1 Q 2 Q NP H 1 H 2 H NJ
k k k k k k
f 2m f 2m f 2q f 2m f 2m f 2m
------------------------
- ------------------------
- ------------------------ | ------------------------- ------------------------- ------------------------
-
Q 1 Q 2 Q NP H 1 H 2 H NJ
|
k k k k k k
f NP m f NP m f NP m f NP m f NP m f NP m
----------------------------
- ----------------------------
- ----------------------------- | ----------------------------- ----------------------------- -----------------------------
Q 1 Q 2 Q NP H 1 H 2 H NJ
k
m = ––– ––– –– ––– ––– –– –– ––– ––– –– | ––– ––– –– ––– ––– –– –– ––– ––– –
k k k k k k
f NP + 1 m f NP + 1 m f NP + 1 m f NP + 1 m f NP + 1 m f NP + 1 m
-----------------------------------
- ------------------------------------ -----------------------------------
- | -----------------------------------
- ------------------------------------ ---------------------------------
Q 1 Q 2 Q NP H 1 H 2 H NJ
k k k k k k
f NP + 2 m f NP + 2 m f NP + 2 m f NP + 2 m f NP + 2 m f NP + 2 m
-----------------------------------
- ------------------------------------ -----------------------------------
- | -----------------------------------
- ------------------------------------ ---------------------------------
Q 1 Q 2 Q NP H 1 H 2 H NJ
|
k k k k k k
f NP + NJ m f NP + NJ m f NP + NJ m f NP + NJ m f NP + NJ m f NP + NJ m
- ----------------------------------------- ----------------------------------------
---------------------------------------- - | ----------------------------------------- ----------------------------------------- ------------------------------------
Q 1 Q 2 Q NP H 1 H 2 H NJ
(16.23)
2
If m is small then second order and higher terms of O m can be dropped and also by setting in
Equation 16.21
*
f m + m = f m = 0
gives
k k + 1 k
Jm m = –f m (16.24)
k + 1
m 1 k k k
f 1 m 1 m 2 m NTOT
k + 1
m 2 k k k
k
f 2 m 1 m 2 m NTOT
Jm = – (16.25)
k k k
k + 1 f NTOT m 1 m 2 m NTOT
m NTOT
or
376
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
k + 1
Q 1
k + 1
Q 2
k
f 1 Q 1 Q 2 Q NP H 1 H 2 H NJ
k + 1 k
k Q NP f 2 Q 1 Q 2 Q NP H 1 H 2 H NJ
Jm = – (16.26)
k + 1
H 1
k + 1 k
H 2 f NTOT Q 1 Q 2 Q NP H 1 H 2 H NJ
k + 1
H NJ
Note the subscripts k and (k + 1) have been introduced to represent the successive iteration numbers.
k + 1
The flows and heads correction vector m on the left – hand side of Equation 16.24 is for the
k k
(k + 1)st iteration. The Jacobian matrix J m and the function vector f m are the Q+H equations
k
formulation for the flows and heads m at iteration k.
k + 1
The vector of corrections to the flows m may be expressed from Equation 16.24 as
k + 1 –1 k k
m = –J m f m (16.27)
where
–1 k
• J m = inverse of the Jacobian matrix for the Global Gradient Algorithm formulation
at iteration k (the Jacobian matrix is defined by Equation 16.22)
As mentioned previously Equation 16.27 would never normally be used because of the computational
intensity required in obtaining the inverse of the Jacobian. Equation 16.26 would be solved instead.
k + 1
Once the vector of corrections m at the (k + 1)st iteration is determined it is then added to the
k
current solution vector of flows and heads m to give the next best estimate of the unknowns as
k + 1 k k + 1
m = m + m (16.28)
However, this formulation is different from that in Chapter 15, in that the H – component of the
k + 1
m vector is solved separately from the Q – component. This will be seen later on in the Chapter.
16.2.3 Calculation of the Jacobian matrix elements for the Global Gradient
Algorithm
To evaluate the Jacobian elements the functions given Equation (given below in Equation 16.30) needs
to be evaluated term by term.
377
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
Q1
n–1
–r 1 Q1 0 0 | Q2
n–1
0 –r 2 Q2 0 |
| A 1 Q NP
A2 e L
+ = 0 (16.29)
n–1 H1 dm
0 0 0 – r NP Q NP |
– – – – – – – – – – – – – – – – – – – – – – – | – – H2
T
A1 | 0
H NJ
–G A1 q A e
+ 2 L = 0 (16.30)
T
A1 0 h dm
or
– Gq A 1 h A2 e L
+ = 0 (16.31)
T
A1 q 0 dm
Consider derivatives of each block in turn whilst keeping in mind the general form of the Jacobian given
in Equation 16.23.
This block is the pipe equations of the form of Equation 16.14. To determine the Jacobian elements in
Equation 16.23, this block needs to be differentiated with respect to Q j variables. Each diagonal term in
n–1
this matrix block of Gq is r j Q j Q j. Only the diagonal terms of the Gq block are non – zero thus
Jacobian elements along the diagonal are
k
f jm n–1
------------------------ = nr j Q j (16.32)
Q j
All other Jacobian elements in this NP by NP block of Gq are zero. Thus the Jacobian part of this block
is
nG (16.33)
The Jacobian elements given by the derivative with respect to H i of this block in Equation 16.23 or
Equation 16.31 or of A 1 h in Equation 16.31 is just
k
f jm
------------------------- = A 1 (16.34)
H i
378
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
T
3. Derivative of A 1 q in the lower left – block with respect to Q j
The Jacobian elements given by the derivative with respect to Q j of this block in Equation 16.23 or
T
Equation 16.31 of A 1 q in Equation 16.31 is just
k
f jm T
------------------------- = A 1 (16.35)
Q i
Clearly the derivative of the lower right – hand block will be zero n Equation 16.23 or Equation 16.31.
Thus the final expression for the Jacobian matrix for the Global Gradient Algorithm is
k
k –n G A1
Jm = (16.36)
T
A1 0
where
k
• Jm = Jacobian matrix at iteration k based on the flows and heads.
k
• m = column vector of unknown heads (m or ft) and flows (m3/s or ft3/s) at iteration k
k n–1
• G is the a diagonal matrix with terms along the diagonal for each pipe j of r j Q j as
defined in Equation 16.4 at iteration k
• A 1 = unknown head node matrix as defined in Section 9.3 and Equation 9.11.
Note that the Jacobian in Equation 16.36 only depends on values of Qj and does not depend on values of
Hi at iteration k.
1
---------------------------- 0 0 0 0 0
k n – 1
r 1 Q1
1
0 ---------------------------- 0 0 0 0
k n – 1
r 2 Q2
–1
k = (16.37)
G
1
0 0 0 0 -----------------------------------------------
- 0
k n–1
r NP – 1 Q NP – 1
1
0 0 0 0 0 ---------------------------------
k n – 1
r NP Q NP
–1
Let each term along the diagonal of the inverse G be designated as
379
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
1
j = ---------------------------- (16.38)
k n – 1
rj Qj
Thus
–1 ·
G = diag 1 2 NP – 1 NP (16.39)
Obviously, zero flows in Equation 16.37 are going to lead to an extremely large condition number and
–1
hence a singularity of the G matrix, particularly for the Hazen – Williams head loss formulation.
However, there it is useful to differentiate between laminar and turbulent flow for the diagonal terms in
–1
G for the Darcy – Weisbach formulation. Traditionally both laminar and turbulent flow are dealt with
in the same way through the Darcy – Weisbach head loss equation from Equation 4.3.
64 64 64 64 16D
f = ------- = --------------- = ------------------------- = ----------------------------------- = ----------------- (16.40)
Re VD QD A 4QD D
2 Q
The problem in computing diagonal elements in Equation 16.37 with zero flows for the laminar flow
case can be avoided if the Darcy – Weisbach equation for the head loss is reformulated by combining
Equation 16.40 and Equation 4.3 as follows
2 2
L Q 16D L Q 16 16 LQ 128LQ
h f = f ---- ------------- = ----------------- ---- -------------------------- = -------------------------------- = -------------------- = r L Q (16.41)
D 2g A 2 Q D 2 2 2 4 4
2g D
2g D g D
----------
4
or
h f = r LQ (16.42)
128L
r L = ---------------- (16.43)
4
g D
Note that in Equation 16.41 the head loss is linearly related to the discharge. As a result the term on the
–1
diagonal of the G matrix is the constant r L rather than r f Q . Thus in the matrix inverse G is a pipe
has laminar flow then the diagonal term for that pipe will be
1
----- (16.44)
rL
and because this is independent of flow for laminar conditions (unlike turbulent flow) then this term in
–1
the G matrix will not cause a singularity to occur for normal sizes of values in Equation 16.43.
380
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
T –1
U = A1 G A1 (16.45)
T –1
where – A 1 G A 1 is the Schur complement.
NP
a ij j for node i (16.46)
j=1
where
k n – 1
Thus for a particular node i all the j with a value of 1 r j Q j or 1 r L for the pipes connected
to node i are added up to give the diagonal elements of the U matrix.
Consider the example of the ten pipe network that has a total of 7 nodes and 10 pipes as shown in
Figure 16.1. Assume the flows in all pipes are not laminar and that the Darcy – Weisbach head loss equa-
tion is used.
381
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
Node 2 has pipes 1, 2 and 5 connected to it. Thus the diagonal element of U in the first row (assuming
the rows are in ascending order of numeric numbers) of the matrix for node 2 is
NP NP 1 NP 1 1
a ij j = a 2 j j = 1 + 2 + 5 = a ij j = --------------
r Q
- + --------------- + --------------
r Q r
(16.47)
=1 j=1 j=1 1 1 2 2 5 Q5
1 1 1
2 = --------------- + --------------- + --------------- (16.48)
r 1 Q1 r 2 Q2 r 5 Q5
The off – diagonal entries in U for a particular node i only occur at positions associated with the nodes k
(that are not fixed head nodes) that have pipes connected to node i. The entry is usually only one value
k n – 1
being the negative of the value j or 1 r j Q j for the connected pipe placed in the column
associated with the connecting node k (except for parallel pipes between the same nodes where there
will be more than one value). For example in the ten pipe network for node 2 nodes 3 and 6 are con-
nected and thus the matrix U will have elements in the columns corresponding to these nodes.
Thus for node 3, pipe 2 is connected thus the entry in the matrix U for the column corresponding to node
2 of the first row is
–2 (16.49)
and for node 6, pipe 5 is connected to node 2 thus the entry in the matrix U for column corresponding to
node 6 of the first row is
–5 (16.50)
T –1
Computation of the U = A 1 G A 1 matrix for the ten pipe network gives
1 0 0 0 0 0 0 0 0 0
0 2 0 0 0 0 0 0 0 0 –1 0 0 0 0 0 0
1 –1 0 0 0 0 0
–1 1 0 0 1 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0
0 1 –1 0 0 0 0
0 –1 1 0 0 1 0 0 0 0 0 0 0 4 0 0 0 0 0 0
0 0 –1 0 0 0 0
0 0 –1 –1 0 0 1 0 0 0 0 0 0 0 5 0 0 0 0 0 1 0 0 –1 0 0 0
0 0 0 0 –1 0 0 1 0 0
0 0 0 0 0 6 0 0 0 0 0 1 0 0 –1 0 0
0 0 0 0 0 –1 0 –1 1 0
0 0 0 0 0 0 7 0 0 0 0 0 1 0 0 –1 0
0 0 0 0 0 0 –1 0 –1 1
0 0 0 1 –1 0 0
0 0 0 0 0 0 0 0 0 –1 0 0 0 0 0 0 0 8 0 0
0 0 0 0 1 –1 0
0 0 0 0 0 0 0 0 9 0
0 0 0 0 0 1 –1
0 0 0 0 0 0 0 0 0 10
Multiplying these matrices out with the diagonal elements defined by Equation 16.48 gives
382
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
1 –2 0 –5 0 0 0
–2 2 –3 0 –6 0 0
0 –3 3 0 0 –7 0
T –1
U = A1 G A1 = – 0 0 4 –8 0 0 (16.51)
5
0 –6 0 –8 5 –9 0
0 0 – 7 0 – 9 6 – 10
0 0 0 0 0 – 10 7
where
NP
• j = a ij j
j=1
1
• j = ------------------------.
n–1
rj Qj
The inverse of the matrix U needs to be dealt with in the Global Gradient Algorithm iterative procedure.
The terms along the diagonal of matrix U in Equation 16.51 are shown in Table 16.1.
Table 16.1 Diagonal terms of matrix U for Darcy – Weisbach head loss equation
Column/ j in Equation 16.51
Row
1 1 1
2 + 5 = --------------- + ---------------
r 2 Q2 r 5 Q5
2 1 - + --------------
1 - + --------------
1 -
2 + 3 + 6 = --------------
r 2 Q2 r 3 Q3 r 6 Q6
3 1 - + --------------
1 -
3 + 7 = --------------
r 3 Q3 r 7 Q7
4 1 1
5 + 8 = --------------- + ---------------
r 5 Q5 r 8 Q8
5 1 1 1
6 + 8 + 9 = --------------- + --------------- + ---------------
r 6 Q6 r 8 Q8 r 9 Q9
6 1 1 1
7 + 9 + 10 = --------------- + --------------- + --------------------
r 7 Q 7 r 9 Q 9 r 10 Q 10
7 1
10 = --------------------
r 10 Q 10
k + 1
k k
J q k h k q = –f q h (16.52)
k + 1
h
383
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
k k
Consider the function term f q h on the right – hand side of Equation 16.24 from Equation 16.3
k k k
k k f1 q h –G A1 q k A e
fq h = = + 2 L (16.53)
k k T k dm
f2 q h A1 0 h
k k
–G q + A1 h + A2 e L
=
T k
A1 q + dm
Substituting Equation 16.36 and Equation 16.53 and introducing the unknowns into Equation 16.52
gives
k k k
–n G A1 q k + 1 –G q + A1 h + A2 e L
= – (16.54)
T k + 1 T k
A1 0 h A1 q + dm
where the superscripts k and (k+1) refer to the iteration number. This is equivalent to Equation (9) in the
T
Todini and Pilati (1988) paper. Note that matrices A 1 , A 2 and A 1 are all independent of the iteration
number as too are the vectors e L and d m . Thus as a result these matrices and vectors do not require a
iteration counter superscript.
The following derivation is based on that given by Simpson and Elhay (2009)1.
k + 1 k + 1 k
q =
q –q
(16.55)
k + 1 k + 1 k
h h –h
giving
k k k
–n G A1 q k + 1 – q k –G q + A1 h + A2 e L
= – (16.56)
T k + 1 k T k
A1 0 h –h A1 q + dm
k k k k
–n G A1 q k + 1 –n G A1 q k –G q + A1 h + A2 e L
= – (16.57)
T k + 1 T k T k
A1 0 h A1 0 h A1 q + dm
k + 1 k + 1 k k k k
– n Gq + A1 h – n Gq + A1 h –G q + A1 h + A2 e L
= – (16.58)
T k + 1 T k T k
A1 q A1 q A1 q + dm
1. Thanks go to Dr. Sylvan Elhay, School of Computer Science, University of Adelaide for his elegant
derivation of the Global Gradient Algorithm equations
384
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
k + 1 k + 1 k k k k
– n Gq + A1 h = – n Gq + A1 h – –G q + A1 h + A2 e L (16.59)
k + 1 k + 1 k
– n Gq + A1 h = 1 – n Gq – A2 e L (16.60)
k + 1 k + 1 k
A1 h = nGq – n – 1 Gq – A2 e L (16.61)
and
T k + 1
A1 q = –dm (16.62)
STIIL HAVE TO ALTER THE SECTIONS BELOW WITH NEW SIGN CONVENTION
T –1 T –1
Multiply both sides of Equation 16.61 by A 1 G and use U = A 1 G A 1
T –1 k + 1 T –1 k + 1 k
A1 G A1 h = A 1 G nGq – n – 1 Gq + A2 e L (16.63)
Thus
k + 1 T –1 k + 1 T –1 k
Uh = nA 1 G Gq – A 1 G n – 1 Gq + A2 e L (16.64)
or
k + 1 T k + 1 T –1 k T –1
Uh = nA 1 q – n – 1 A 1 G Gq + A1 G A2 e L (16.65)
Substituting from the continuity equation of Equation 16.62 into the first term on right hand side of
Equation 16.65 gives
k + 1 T k –1
Uh = – n d m + A 1 1 – n q – G A2 e L (16.66)
Thus
k + 1 –1 T k –1
h = U – n d m + A 1 1 – n q – G A 2 e L (16.67)
–1 –1
Note that in Equation 16.67 the only difficult inverse to compute is U . The other inverse G
–1 k
involves a diagonal matrix which is very easy to invert. G is known based on the previous q vec-
tor value while matrices A 1 and A 2 as well as vectors e L and d m are all known at the very beginning
of the iterative solution procedure and remain constant throughout.
385
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
k + 1 k + 1 k
A1 h = nGq – n – 1 Gq + A2 e L (16.68)
k + 1 k k + 1
nGq = n – 1 Gq – A2 e L + A1 h (16.69)
k + 1 1 –1 k k + 1
q = --- G n – 1 Gq – A 2 e L + A 1 h (16.70)
n
Thus
k + 1
= 1--- n – 1 q + G – A 2 e L + A 1 h
k + 1 k –1
q (16.71)
n
–1
This time the only inverse in Equation 16.71 is for a diagonal matrix G . This makes computation of
k + 1
the updates flows q very easy. Thus Equation 16.71 is very straightforward to evaluate as a series
of matrix multiplications.
Thus the recursive Newton algorithm includes Equation 16.45, Equation 16.67 and Equation 16.71
T –1
U = A1 G A1 (16.72)
k + 1 –1 T k –1
h = U – n d m + A 1 1 – n q – G A 2 e L (16.73)
k + 1 1 k –1 k + 1
q = --- n – 1 q + G – A 2 e L + A 1 h (16.74)
n
16.3 Solving the Global Gradient Algorithm Equations for the Two
Pipe Network
16.3.1 Unknowns and initial guesses
Now consider the flow and head equations for the network in Figure 16.2. The unknowns that need to be
solved for are pipe flows Q1 and Q2 and the head at node 1, H1..
386
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
Figure 16.2 Unknown Global Gradient Algorithm Qs and H to be solved for in the two pipe net-
work
The functions to be solved include two head loss equations for the pipes and one continuity equation at
node 1, however, these are expressed in the block form as proposed by Todini and Pilati.
From Equation 16.10 (page 373), the column vector of unknown flows and at the kth iteration for the two
pipe network is
k
Q1
k k
m = Q2 (16.75)
k
H1
Thus the heads and flows to be solved successively at each iterative step (from Equation 16.67) and
Equation 16.71 for the two pipe network at the (k + 1)st iteration becomes
k + 1 k + 1
h = H1 and then (16.76)
k + 1
k + 1 Q1
q = (16.77)
k + 1
Q2
A column vector of initial estimates for the flows only in each pipe (initial estimates of the heads are not
needed) is required to be made in order for the iterative solution process to begin
0
0 Q1
q = (16.78)
0
Q2
0
The initial flows Q j are often based on a flow velocity of 1.0 fps (0.3048 m/s) (as used in EPANET
Rossman 2000) as shown in Table 12.11 (page 303, used as initial guesses for the Q – equations and for
the Q+H Q+H equations formulations). The pipe properties for the network in Figure 16.2 are given in
Table 12.8 (page 301) and Table 12.9.
The pipe resistance terms ( r f = r 1 r 2 ) can now be computed based on initial flow guesses shown in
2
Table 12.11 for the Darcy – Weisbach head loss equation h f = r f Q (where n = 2) using
j
Equation 12.30. It is assumed that the flows are turbulent and not laminar in this example. The pipe
resistance values r j are shown in Table 12.12 (page 305) (for the Q – equations formulation) with the
friction factors computed from the Swamee and Jain equation. These pipe resistance values r j are
updated at each iteration based on the latest flow values.
387
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
Example 16.1 For the two pipe network in Figure 16.2 complete the following:
(i) Develop the Global Gradient Algorithm for the two pipe network.
(ii) Carry out the first two iterations of the Global Gradient Algorithm solution for the two pipe network.
(iii) Tabulate all iterations to convergence for the solution process for the Global Gradient Algorithm such that the
infinity – norm is less than 10 – 3 m.
(iv) Plot the convergence characteristics for the iterations for the Global Gradient Algorithm for the two pipe net-
work.
Assume the Darcy – Weisbach head loss equation is used for each pipe.
Answer – (i) Develop the Global Gradient Algorithm for the two pipe network.
k
Q1
k
m = k (16.79)
Q2
k
H1
The Global Gradient Algorithm formulation of the governing equations for this two pipe network includes two pipe
head loss equations (Equation 16.14) – one for each pipe, and a continuity equation at node 1 (Equation 16.15) as fol-
lows:
k k k k
f 1 m = r 1 Q1 Q1 – EL 2 + H 1 = 0 for pipe 1 (16.80)
k k k k
f 2 m = r 2 Q2 Q2 – H1 + EL 3 = 0 for pipe 2 (16.81)
k k
f 3 m = Q1 –Q2 – D M 1 = 0 at node 1 (16.82)
k
The “constants” for the two terms for r j in Equation 16.80 and Equation 16.81 are dependent on the friction factor
and hence are required to be updated at each iteration.
In matrix form the unknown node incidence matrix A 1 [having 2 rows (NP = 2 for each of the two pipes) and 1 col-
umn (NJ = 1 for the one node)] for the two pipe network is
A1 = –1 (16.83)
1
The transpose of A 1 is
T
A1 = –1 1 (16.84)
The fixed node incidence matrix A 2 [having 2 rows (NP = 2 for the two pipes) and 2 columns (NF = 2 for the two
fixed – head nodes)] for the two pipe network is
A2 = 1 0 (16.85)
0 –1
The demand vector [having 1 row (NJ = 1 for the one node) and one column] is
The fixed head elevation vector [having 2 rows (NF = 2 for the two reservoirs)] is
388
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
E L1
eL = = 80.0 m (16.87)
E L2 50.0
Thus the set of equations to be solved using the Global Gradient Algorithm from Equation 16.12 is
k
G | –A1 G | –A1 Q1
A2 e L
– – – | – – – m – p = – – – | – – – Q2
k – = 0 (16.88)
T T dm
–A1 | 0 –A1 | 0 H1
k
The diagonal G matrix (Equation 16.4) and the inverse of the G matrix (Equation 16.37) for this two pipe network are
k
r 1 Q1 0
G = (16.89)
k
0 r 2 Q2
1
------------------ 0
k
–1 r 1 Q1
G = (16.90)
1
0 ------------------
k
r 2 Q2
k r 1 Q1 0 k
G | –A1 Q1 | – –1 Q1 1 0 80.0
k
A2 e L 0 r 2 Q2 1 k 0 – 1 50.0
––– | ––– Q2 – = Q2 – (16.91)
T dm ––– | ––– –––
–A1 | 0 H1
k
H1
k
– –1 1 | 0 0.050
r 1 Q1 0 k
| – –1 Q1
80.0
0 r 2 Q2 1 k
= Q2 – – 50.0 = 0
––– | ––– 0.050
k
H1
– –1 1 | 0
The Global Gradient Algorithm two step solution for each iteration is given from Equation 16.67 as
k + 1 –1 T k –1
h = U – n d m + A 1 1 – n q – G A 2 e L (16.92)
or
k + 1 T –1 –1 T k –1
h = A 1 G A 1 – n d m + A 1 1 – n q – G A2 e L (16.93)
–1
1 1
------------------
k
0 k
------------------
k
0
k + 1 r 1 Q1 – 1 Q r Q 1 0 80.0
h = –1 1 – 2 0.050 + – 1 1 1 – 2 1 – 1 1
1 1 Q2
k 1 0 – 1 50.0
0 ------------------ 0 ------------------
k k
r 2 Q2 r 2 Q2
or
389
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
–1
1 1
----------------------
k k
0 k
----------------------
k k
0
k + 1 r Q1
– 1 – 0.100 + – 1 1 – Q 1 – r 1 Q 1 1 0 80.0 (16.94)
h = –1 1 1
1 1 Q k 1 0 – 1 50.0
0 ---------------------
- 2 0 ---------------------
-
k k k k
r 2 Q2 r 2 Q2
Once the head vector has been found, the unknown Qs can be solved for from Equation 16.71 as
k + 1 1 k –1 k + 1
q = --- n – 1 q + G A 2 e L + A 1 h (16.95)
n
k + 1 1 k –1 –1 k + 1
q = --- n – 1 q + G A 2 e L + G A 1 h (16.96)
n
1 -
----------------- 0
k k
k + 1 1 Q1 r 1 Q1 1 0 80.0 – 1
q = --- 2 – 1 + + H1
k + 1 (16.97)
2 k 1 0 – 1 50.0 1
Q2 0 ------------------
k
r 2 Q2
1 - 1 -
k ----------------- 0 ----------------- 0
k k
k + 1 Q1 r 1 Q1 r
1 0 80.0 + 1 1 Q –1
q = 0.5 + k + 1 (16.98)
H1
Q k
0 1 - 0 – 1 50.0
----------------- 0 1 - 1
-----------------
2 k k
r 2 Q2 r 2 Q2
___________________________________________________________________________________
Answer – (ii) Carry out the first iteration of the Global Gradient Algorithm solution for the two pipe network.
3
0 m 0 3
Q1 = 0.02155 -------- Q 2 = 0.02155 m /s (16.99)
s
Thus from Equation 12.55 the vector of initial guesses of the unknowns at iteration zero (0) is:
0
0 Q1
= 0.02155
3
q = m /s (16.100)
0 0.02155
Q2
The friction factors (based on the Swamee and Jain equation – Equation 4.61) and corresponding rf values
(Equation 4.123) for the flows in Equation 16.100 for pipes 1 and 2 in the two pipe network are given in Table 12.12
(page 305) and were calculated for the Q – equations formulation. These are:
0
f = 0.02197
0.02197
and
0
rf = 746.95 (16.101)
746.95
390
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
Table 16.2 The rf values for initial velocity guesses based on 1.0 fps (0.3048 m/s) for Q – equations formulation
The values from Equation 16.100 and Equation 16.101 based on estimates at the zeroth iteration may be substituted
into the expression for the inverse of the G matrix in Equation 16.90:
1
---------------------- 0 1
0 0
r 1 Q1 --------------------------------------- 0
= 746.95 0.02155 = 0.062122 0
–1
G = (16.102)
1 1 0 0.062122
0 ---------------------- 0 --------------------------------------
-
0 0 746.95 0.02155
r 2 Q2
or
= 0.062122 0
–1
G (16.103)
0 0.062122
Now solve for the unknown head at node 1 by using Equation 16.94 as
–1
1 1
----------------------
0 0
0 0
----------------------
0 0
0
1 r Q1
– 1 – 0.100 + – 1 1 – Q 1 – r 1 Q 1 1 0 80.0
h = –1 1 1
1 1 Q 0 1 0 – 1 50.0
0 ---------------------
- 2 0 ---------------------
-
0 0 0 0
r 2 Q2 r 2 Q2
Substituting for G – 1 from Equation 16.102 at the zeroth iteration and q(0) gives
–1
1 – 1 – 0.100 + – 1 1 – 0.02155 – 0.062122 1 0 80.0
h = – 1 1 0.062122 0
0
0 0.062122 1 0.02155 0 0.062122 0 – 1 50.0
(16.104)
A matrix inversion is required for the first term on the right hand side but in this case it is trivial as it is just the inverse
of a single number.
1 –1
h = 0.124244 – 0.100 + – 1 1 – 0.02155 – 4.96978 (16.105)
0.02155 – 3.10612
with the last term of 4.96978 being G –1 A e that will be used below in computing the value of q 1 . Thus
2 L
– 3.10612
391
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
–1
G A2 e L = 4.96978 (16.106)
– 3.10612
1
h = 8.04864 – 0.100 + – 1 1 – 4.99133
3.08457
1
h = 8.04864 – 0.100 + 4.99133 + 3.08455
1
h = 8.04864 – 0.100 + 8.07588
1
h = 8.04864 7.97588
1
h = 64.1949 m
and thus
It is not possible to check for convergence based on the change of heads for iteration 1 - we will have to wait for the
second iteration.
1
The q value can now be obtained from Equation 16.98 of
1 1
0 ---------------------- 0 ---------------------- 0
0 0 0 0
1 Q1 r 1 Q1 1 0 80.0 + 1 Q 1
r –1
q = 0.5 + 1 (16.108)
H1
Q 0 0 1 - 0 – 1 50.0
--------------------- 0 1 - 1
---------------------
2 0 0 0 0
r 2 Q2 r 2 Q2
which is just by a series of matrix multiplications (no matrix inversion is required). Recall the form of the general equa-
tion of
k + 1
= 1--- n – 1 q + G A 2 e L + G A 1 h
k + 1 k –1 –1
q (16.109)
n
–1 1
Now substitute for G from Equation 16.104, H 1 from Equation 16.107 and use the computed expression for
–1
G A 2 e L from Equation 16.105 as
1
q = 0.5 0.02155 + 4.96978 + 0.062122 0 –1
64.1949
0.02155 – 3.1061 0 0.062122 1
1
q = 0.5 0.02155 + 4.96978 + – 0.062122 64.1949
0.02155 – 3.10612 0.062122
1
q = 0.5 0.02155 + 4.96978 + – 3.98795
0.02155 – 3.10612 3.98795
1
q = 0.5 0.02155 + 0.98183
0.02155 0.88183
1
q = 0.5 0.02155 + 0.98183
0.02155 0.88183
1
q = 0.5 1.00339
0.90339
392
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
3
1 m
q = 0.50169 -------- (16.110)
0.45169 s
and thus
1
Q1
= 0.50169
3
m /s (16.111)
1 0.45169
Q2
Note these values of pipe flows and the head at node 1 are exactly same as for the values at iteration 1 for the solution
to the Q+H equations formulation, however, to solve the Global Gradient Algorithm a Jacobian matrix only of size
NJ = 1 had to be inverted in comparison to a Jacobian size of NP+NJ = 3 that had to be inverted for the Q+H equa-
tions. In addition the sequence of iterates of Qs for the Q – equations formulation is also identical to the Global Gradi-
ent Algorithm formulation iterates. For the Q – equations formulation a Jacobian matrix of size NP = 2 had to be
inverted.
Note also these values of pipe flows are exactly same as for the values at iteration 1 for the solution to the Q – equations
formulation.
The vector of new flows from iteration 1 in Equation 16.110 in now used in the second iteration of the Global Gradient
Algorithm solution method. The friction factors (based on the Swamee and Jain equation – Equation 4.61) and corre-
sponding rf values (Equation 4.123) for the flows that resulted from iteration 1 are computed in Table 12.13 (page 306)
as computed for iteration 1 of the Q – equations formulation, as the flows that were computed are identical.
1
rf = 646.50 (16.112)
647.25
Table 16.3 The rf values for flows from Iteration 2 for the Q – equations formulation
The values from Equation 16.111 and Equation 16.112 may be substituted into the expression for the inverse of the G
matrix (from Equation 16.37) for the second iterations as
1
---------------------- 0 1
1 1
r 1 Q1 --------------------------------------- 0
= 646.50 0.50169 = 0.0030821 0
–1
G = (16.113)
1 1 0 0.0034192
0 ---------------------- 0 ---------------------------------------
1 1 647.25 0.45169
r 2 Q2
Now solve for the unknown head at node 1 for iteration 2 into Equation 16.94 as
–1
1 1
----------------------
1 1
0 1
----------------------
1 1
0
2 r Q1 – 1 – 0.100 + – 1 1 – Q 1 – r 1 Q 1 1 0 80.0
h = –1 1 1
1 1 Q 1 1 0 – 1 50.0
0 ---------------------- 2 0 ----------------------
1 1 1 1
r 2 Q2 r 2 Q2
and thus by substituting from Equation 16.112 and Equation 16.113 gives
393
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
–1
2 – 1 – 0.100 + – 1 1 – 0.50169 – 0.0030821 1 0 80.0
h = – 1 1 0.0030821 0
0
0 0.0034192 1 0.45169 0 0.0034192 0 – 1 50.0
2 –1
h = 0.0065013 – 0.100 + – 1 1 – 0.50169 – 0.24656 (16.114)
0.45169 – 0.17096
with the last term of 0.24656 being G –1 A e that will be used below in computing the value of q 2 .
2 L
– 0.17096
2 –1
h = 153.815 – 0.100 + – 1 1 – 0.74825
– 0.28073
2
h = 153.8158 – 0.100 + 0.74825 – 0.28073
2
h = 153.8158 – 0.100 + 0.46752
2
h = 153.8158 0.36752
2
h = 56.5313 m
and thus
1
The q value can now be obtained from Equation 16.98 of
1 - 1 -
1 --------------------- 0 --------------------- 0
1 1 1 1
2 Q1 r 1 Q1 1 0 80.0 r 1 Q1 –1
q = 0.5 + + 2 (16.116)
H1
Q 1 0
1
----------------------
0 – 1 50.0
0
1
----------------------
1
2 1 1 1 1
r 2 Q2 r 2 Q2
which is just by a series of matrix multiplications (no matrix inversion is required). Recall the form of the general equa-
tion of
k + 1 1 k –1 –1 k + 1
q = --- n – 1 q + G A 2 e L + G A 1 h (16.117)
n
–1 –1
Now substitute for G from Equation 16.113 and use the computed expression for G A 2 e L from Equation 16.114
as
2
q = 0.5 0.50169 + 0.24656 + 0.0030821 0 –1
56.5313
0.45169 – 0.17096 0 0.0034192 1
2
q = 0.5 0.50169 + 0.24656 + – 0.0030821 56.5313
0.45169 – 0.17096 0.0034192
2
q = 0.5 0.50169 + 0.24656 + – 0.17423
0.45169 – 0.17096 0.19329
394
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
2
q = 0.5 0.50169 + 0.07233
0.45169 0.02233
2
q = 0.5 0.50169 + 0.98183
0.45169 0.88183
2
q = 0.5 0.57402
0.47402
2
= 0.28701
3
q m /s (16.118)
0.23701
and thus
1
Q1
= 0.28701
3
m /s (16.119)
1 0.23701
Q2
Note again, as for iteration 1, these values of pipe flows and the head at node 1 are exactly same as for the values at
iteration 2 for the solution to the Q+H equations formulation. In addition, the sequence of iterates of Qs for the Q –
equations formulation is also identical to the Global Gradient Algorithm formulation iterates. The iterations continue
up to iteration 8 and are summarized below in Answer Part (iii).
___________________________________________________________________________________
Answer – (iii) Tabulate all iterations to convergence for the solution process for the Global Gradient Algorithm
formulation
The iterations for the full solution based on the Global Gradient Algorithm formulation are shown in Table 16.4. Eight
iterations are shown. The stopping tolerance based on the infinity – norm of the head changes that was used in the com-
–6
puter simulation run for producing Table 16.4 was 1.0 10 m. Realistically the stopping tolerance could have been
–3
1.0 10 m or 1 mm which means that convergence would have occurred in 7 iterations.
Table 16.4 Iteration sequence of flows and head for the Newton solution for the Global Gradient Algorithm formulation
–6
(stopping tolerance 1.0 10 m achieved at iteration 8) for two pipe network
0 0.02155 0.02155
1 0.50169 0.45169 64.195 15.458
–3
* A stopping tolerance of less than 1.0 10 m or 1 mm achieved at iteration 7
max k + 1
** Infinity – norm for Head Changes (m) used for testing for convergence = Hi
i=1, NJ
___________________________________________________________________________________
395
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
Answer – (vi) Plot convergence characteristics for the iterations for the Global Gradient Algorithm formulation
for the two pipe network.
Figure 16.3 Convergence of flows for solution of the two pipe network using the Global Gradient Algorithm
formulation
Figure 16.4 Convergence of head at node 1 for solution of the two pipe network using the Global Gradient Algorithm formu-
lation
16.4 References
Ajiz, M. A., and A. Jennings, A. (1984). “A robust incomplete Choleski conjugate gradient algorithm.”
Int. J. Num. Meth. Engng., 20, 949-966
Ayres, F. (1974). Schaum's outline of theory and problems of matrices, SI (metric) ed., McGraw-Hill,
London, England.
Elhay, S. and Simpson, A.R. (2011). “Dealing with zero flows in solving the non-linear equations for
water distribution systems.” Journal of Hydraulic Engineering, Vol. 137, No. 10, Oct., 1216-1224.
396
Chapter 16 - File: Chap15-TP-QH-form-v02.fm July 6, 2022 Version 7
Elhay, S., Simpson, A.R., Deuerlein, J., Alexander, B. and Schilders, W.H.A., (2014). “Reformulated
Co-tree flows method competitive with the Global Gradient Algorithm for solving the water distribution
system equations.” Journal of Water Resources Planning and Management, Dec., Vol. 140, No. 12.
DOI: 10.1061/(ASCE)WR.1943-5452.0000431.
Kershaw, D. S. (1978). “The incomplete Cholesky - conjugate gradient method for the iterative solution
of systems of linear equations.” Journal of Computational Physics, 26, 43-65.
Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (1996) FORTRAN numerical recipes
(Vol. 1), Cambridge England.
Rossman, L A. (2000). EPANET 2 Users Manual. U.S. Environmental Protection Agency, Washington,
D.C., EPA/600/R-00/057.
Salgado-Castro, R.O. (1988). “Computer modelling of water supply distribution networks using the gra-
dient method.” PhD Thesis, University of Newcastle-Upon-Tyne, UK.
Simpson, A. R., and Elhay, S. (2009). “A framework for alternative formulations of the pipe network
equations.” 11th Annual Symposium on Water Distribution Systems Analysis, American Society of Civil
Engineers, Kansas City, USA.
Todini, E., and Pilati, S. (1988). “A gradient algorithm for the analysis of pipe networks,” B. Coulbeck
and O. Chun-Hou, eds., Wiley, London, 1–20.
397
Chapter 17 - File: Chap17-Data-needs.fm July 6, 2022 Version 6
To analyze the hydraulic performance of a water distribution system a considerable amount of data is
required. Computer simulation of water distribution systems was introduced in Chapter 11. Most of the
data listed in this Chapter would be required to be available for either a hand – analysis or a computer
analysis. Much of the data describes the physical components in the water distribution, the topology of
the network and components (that is — the connectivity), details of the various components and how the
system is operated. At the end of the Chapter some specific data requirements are discussed relating to
convergence of the hydraulic solver.
1. © Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, The University of Adelaide, Ade-
laide, Australia. Part of a book entitled Water Distribution Systems Engineering.
398
Chapter 17 - File: Chap17-Data-needs.fm July 6, 2022 Version 6
• location of pipe
• labels or node numbers of the end of the pipe
• diameter (including actual internal diameter)
• length
• material
• age and condition
• roughness coefficient information (e.g. the roughness height or for the Darcy – Weisbach
friction factor and head loss equation or Hazen – Williams C value – both preferably from
a field test where pressure drop and flow rate are measured to enable calculation of pipe
roughness coefficient)
• wall thickness (important for water hammer analysis or selection of class of pipe)
• modulus of elasticity of the pipe wall material E (for wave speed calculations for water
hammer analysis)
• depth of cover above the pipe
• soil type information is also useful to identify possible pipe corrosion and possibility of
ground movement
Properties of water required include
399
Chapter 17 - File: Chap17-Data-needs.fm July 6, 2022 Version 6
• location of pressure reducing valve, pressure sustaining valve, flow control valve
• labels or node numbers at the immediate upstream and downstream sides of the valve
• pressure setting to which the downstream pressure or upstream pressure is restricted or flow
control value setting
Storage and tank (or reservoir) information includes
• location of storage
• label or node number
• nature of reservoir or tank (is it covered?)
• normal water surface elevation of the tank
• volume of tank
• normal operating range of water surface levels (maximum and minimum)
• elevation – volume relationship for the tank (to enable volume – elevation changes to be
computed during extended period simulations), for example, the diameter of the tank
• assumed reservoir operating levels for the peak hour analysis condition or for fire loading
analysis
• sources of supply to tanks and reservoirs in the system
System layout information includes
• geographic location
• topography of the supply area
• identification of pressure zones and their boundaries (stop valves)
• cross – connections to other distribution zones is needed
• positions of all components in the system
Water quality information includes
17.2.3 Demands
Two aspects must be considered here. In the first instance, the types of demands expected in the area of
supply need to be estimated. These include domestic demands, however, the density of housing in terms
of number of lots must also be considered. Industrial demands, commercial demands, school and hospi-
tal demands and public park usage also need to be estimated. Analysis of historic demands may be use-
ful. Current and projected demands should also be determined.
Consideration of the peak day demands usually have a significant influence on the design of a water dis-
tribution system or network. The peak instantaneous demand during the peak hour of the peak day is
usually considered. An event with a particular annual recurrence interval (ARI) may be selected (e.g. a 1
in 7 year event may be used) or sometimes the peak day on record may form the basis of the design. His-
torical data is important in knowing the demand characteristics of the present system. Demographic
trends, as well as, changes in consumption with time, educational programs to reduce the demand all
need to be considered.
Projected demands into the future must be made assuming full development of the supply area. Popula-
tion projections and projected occupancy of households is also required. Domestic water usage patterns
should be identified including the proportion used for garden watering. In addition, climate historic
records provides information on likely water usage.
400
Chapter 17 - File: Chap17-Data-needs.fm July 6, 2022 Version 6
Implications on the need to augment headworks storages or pumping from rivers, in addition to any
additional water treatment plants must also be considered.
The demands also need to be quantified over time so variation of demand within the day, average daily,
weekly and annual demands need to be assembled. An extended period simulation is needed to ensure
tanks refill after a critical demand period (for example, during a peak day or sometimes as long as a
week) need to be studied. In addition, average daily demands may provide an indication of pumping
costs on an annual basis.
During the peak day or critical peak period, the tanks in the system must refill after the end of the peak –
demand, so the volumes of these tanks must be of adequate size to ensure these tanks do not run dry.
Minimum pipe sizes and pipe classes for various materials acceptable in the system (e.g. 100 mm diam-
eter) need to be set. Other design criteria may include, maximum allowable velocities of flow in pipes,
and water quality design criteria. Pipe breakage or system reliability may be another consideration.
Necessity for loops also needs to be considered. Dead end mains should be avoided.
A water hammer analysis of the system is necessary. Maximum allowable pressures are required for var-
ious classes of pipes that in turn determines of the wall thickness of the pipe.
Costs of choices for components in the new or expanded part of the water distribution system need to be
assembled, including pipe purchase costs for a range of sizes and materials, pump purchase and operat-
ing costs, storage costs, and pressure reducing valve costs (if necessary). Pipe laying costs may differ if
an existing road is being torn up and restored versus laying the pipe through farmland being newly sub-
divided. Road resurfacing costs and long term pipe maintenance costs should also be included. The
resulting inconvenience to traffic, local businesses, and residents in the surrounding area should also be
taken into account. Land acquisition costs may also be needed.
Shutoff valves are required in systems to be able to isolate portions of the main in case of breakage.
These costs must be incorporated in the overall estimate of cost.
Annual operating costs for pumps based on a projected daily schedule (e.g. the pumping during the aver-
age day) may be extended to the computation of annual pump costs. A present value of the operating
costs may be computed based on an expected life of a pump and also for a selected interest rate.
Loops are essential in water distribution systems to ensure adequate flow circulation to maintain ade-
quate water quality especially chlorine residual for bacterial control. In addition, aspects including the
need for loops to ensure reliability of supply if there is a pipe breakage, need to be assessed.
401
Chapter 17 - File: Chap17-Data-needs.fm July 6, 2022 Version 6
In summary, the cost information (and associated information needed for pipes includes)
17.4 Demands
Two aspects must be considered here. In the first instance, the types of demands expected in the area of
supply need to be estimated. These include domestic demands, however, the density of housing in terms
of number of lots must also be considered. Domestic uses for water are numerous including drinking
water, toilet flushing, washing, bathing, kitchen use, washing of clothes, household cleaning, car wash-
ing, swimming pools and air conditioning. Garden watering is a large component of domestic use in a
number of places where the climate is hot and dry. Industrial demands (breweries, canneries, laundries,
paper mills, steel mills), commercial demands, schools, hospitals, educational establishments, hotels and
public park usage also need to be estimated.
402
Chapter 17 - File: Chap17-Data-needs.fm July 6, 2022 Version 6
Peak day consideration usually have a significant influence on the design of a network. The peak instan-
taneous demand during the peak hour of the peak day is usually considered. An event with a particular
annual recurrence interval (ARI) may be selected (e.g. a 1 in 7 year event may be used) or sometimes the
peak day on record may form the basis of the design. Historical data is important in knowing the
demand characteristics of the present system. Demographic trends, as well as, changes in consumption
with time, educational programs to reduce the demand all need to be considered.
Projected demands into the future must be made assuming full development of the supply area. Popula-
tion projections and projected occupancy of households are also required. Domestic water usage pat-
terns should be identified including the proportion used for garden watering. In addition, historic records
of climate provide information on likely water usage. Implications on the need to augment headworks
storages or pumping from rivers, in addition to any additional water treatment plants must also be con-
sidered. [[[Some of this seems to be duplicated earlier in the book – check]]]
To determine the water consumption for a city a good knowledge of consumption of volumes of water
by consumers is needed. These volumes need to be related to both population and time. The important
volumes or demands include
• total annual consumption in liters (L) or megaliters (ML) or gallons (g) or millions of gal-
lons (mg). The total number of people to be served by the water supply system is a signifi-
cant determining factor for the total annual consumption
• average daily consumption (L/d) or millions of liters per day (ML/d) or gallons per day
(gall/day) or millions of gallons per day (mgd)
• average daily consumption per capita in liters (L/d/capita) or gallons (gall/day/capita). In
addition, industrial, commercial, parkland and any other specialized water use estimated
flow rates are required
• average daily consumption per service in liters per service (L/service) or gallons per ser-
vice (gall/service)
• peak daily consumption or maximum day in L/s or gpm
• peak hourly consumption in L/s or gpm
The water demand fluctuates within the year (seasonal changes in climate), within a month, within a
week, within a day (changes in household and industrial activity) and within an hour. These fluctuations
in flow may be expressed as ratios of the value at a particular time within the period under consideration
to the average value for that period. For example, during a peak demand day in the summer when the
watering of gardens is high the peak hour ratio may be 1.45. This means that the demand during the peak
hour is 45% higher than the average of the peak day flows taken over 24 hours. Typical ranges of ratios
are shown in Table 17.2.
Average daily demand varies depending on the day of the week. Industrial demands often are lower on
weekends. Accurate estimates of the variations in water demand must be known in order to properly
dimension transmission or supply pipes, service reservoirs and tanks, and distributing pipes that make
up the water distribution system network. Quantities of water required for fire fighting are unpredict-
able. These demands must be taken into account. During a fire the flow rate is high but the volume with-
drawn from the water distribution system is relatively small. The smaller the size of the community the
more unpredictable and variable the demand.
403
Chapter 17 - File: Chap17-Data-needs.fm July 6, 2022 Version 6
Estimation of design demands or consumptions require analysis of historic demand patterns. Periods or
particular days of extremely high demand are useful to enable estimation of peak day demands. The pro-
jection of estimates of future demands requires an analysis of social, demographic and economic trends.
Considerable research has been carried out related to the prediction of population growth. The areas of a
city that have been designated for growth, in other words, where new subdivisions will be built needs to
be known. Details of maggots for predicting demand growth are not given in this book. There are many
other books on water supply that provide adequate coverage of this topic. In addition, local factors
including climate, demographics and attitudes to water conservation all affect current and future demand
patterns that need to be considered in the design of the water distribution network.
Fair, Geyer and Okun (1971) give a comprehensive list of factors that affect water consumption. These
include climate, standards of living, types of industry, commercial activity, cost of water, availability of
private supplies, quality of untreated water, pressures maintained, the use of water meters and systems
management.
A number of factors govern the appropriate selection of a design period for a particular element of a
water supply system. Fair, Geyer and Okun (1971) suggested the following factors should be considered
• the useful life of components, structures and equipment needs to be considered. Wear and
tear and obsolescence all need to be taken into account
• the ease of extension of a water distribution network whether existing or planned also needs
to be considered
• the level of interest rate to be used in the economic analyses of alternatives is important.
Project alternatives are often compared on a present worth or present value analysis. For
example, if pumping costs are considered in the analysis of a particular scheme then a
stream of annual costs over the assumed life of the component needs to be converted into a
present value.
• in the early years, the amount of growth in a particular area may be significantly less than
that expected at full build out. As a result, consideration must be given to the performance
of the works when they are not fully loaded.
A long design period should be selected if the element of the water supply system has
404
Chapter 17 - File: Chap17-Data-needs.fm July 6, 2022 Version 6
Another way of defining the level of service is to specify the minimum flow rate that a customer (usu-
ally a domestic dwelling) may expect.
In the past water utilities have maintained higher pressures (40 m or 60 psi in gage units) in the system
to cope with fire fighting occurrences. The introduction of motor pumpers in fire fighting appliances has
eliminated the need for elevated pressures. Improved construction of joints in pipelines has reduced
leakage. Seasonal variations in temperature may cause pipe joints to expand and contract. Colder tem-
peratures may result in increased leakage due to contraction of pipes at their joints. Pressure control or a
lowering of pressure also provides a reduction in leakage.
Water utilities should be able to account for a large percentage of water delivered. Water meters should
be able to record water deliveries to domestic dwellings, industry and commercial users. It has been
shown that metering reduces demand. Unaccounted for water is used for purposes such as fire fighting,
washing filters, flushing streets, mains and sewers and some watering of parklands and public gardens.
17.7 References
Bhave, P. R. (1988). “Extended period simulation of water systems - direct solution.” Journal of Envi-
ronmental Engineering, 114(5), October, 1146-1159.
Fair, G. M., Geyer, J. C., and Okun, D. A. (1971). Elements of water supply and wastewater disposal,
2nd Ed., Wiley, New York.
Stephenson, D. (1984). Pipeflow analysis. Developments in Water Science, No., Elsevier, Amsterdam,
84.
405
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
CHAPTER 18 PUMPS1
18.1 Introduction
Pumps are a member of the fluid machinery family that also includes turbines (see 58022). Pumps are
the focus of this Chapter. The aim of this Chapter is to enable informed judgment to be made in the
selection of pumps in Civil Engineering applications. In many regions of the world the use of pumps in
a water supply is extremely important. This book covers very little on the actual design of pumps. Many
other books provide detailed information on the design of pumps. The discipline area of pump design is
a specialist area and is usually in the domain of Mechanical Engineers and the pump manufacturers.
There are a number of important definitions of pump terminology that an engineer needs to become
familiar with. This Chapter starts out by giving the most important of these definitions. Different types
of pumps are then defined but only rotodynamic or impeller type pumps are considered in detail here.
Pump performance characteristics are defined. These are generally provided by the manufacturer. The
steady state operation of a pump is then considered by the introduction of the pump curve, the system
curve and the pump operating point. Specific speed for a pump is defined and ranges are given for cen-
trifugal, mixed flow and axial flow pumps. The pump affinity laws and dimensionless numbers associ-
ated with pumps are presented. Dimensionless pump curves are then developed. The use of the affinity
laws for similar pumps results in the development of two affinity laws. Pumps in series or pumps in par-
allel are sometimes used in pumping stations depending on the economic evaluation of alternatives. Two
sections are devoted to the consideration of pumps in series and pumps in parallel. Prevention of cavita-
tion of pumps is also considered. The concept of net positive suction head is introduced that enables a
designer to select an appropriate vertical elevation for the pump relative to the water surface elevation of
the suction side reservoir to avoid cavitation of the impeller of the pump. The rotating moment of inertia
of a pump is introduced. This is important when water hammer is considered.
TERM DEFINITION
BEP Best efficiency point on the pump efficiency versus flow Q curve
Net positive suction head The amount of head available at the inlet of the pump in relation to
available (NPSHA) prevention of cavitation in the pump impeller. Depends on the suction
pipe work configuration.
Net positive suction head The amount of head required at the inlet of the pump to prevent cavi-
required (NPSHR) tation in the pump impeller. Provided by the pump manufacturer.
Power curve for pump Plot of pump shaft power P versus flow Q. Can be computed from the
(P – Q) pump head curve (HP versus Q) and the pump efficiency curve (
versus Q).
Pump curve (H – Q) Plot of pumping head HP versus flow Q for a pump at a particular
rotational speed. Usually obtained from the pump manufacturer.
Pump flow Q Flow through the pump
Pump efficiency Ratio of water or hydraulic power (IEC 1999) QHP to the pump shaft
power P
1. © Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, The University of Adelaide, Ade-
laide, Australia. Part of a book entitled Water Distribution Systems Engineering.
406
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Pump efficiency curve Plot of efficiency versus flow Q for a pump at a particular rotational
( – Q) speed. Usually obtained from the pump manufacturer.
Pump head HP The increase in head across the pump from the suction flange to the
discharge flange
Pump shaft power P Product of specific weight of fluid flowing , discharge Q and pump
head HP divided by the pump efficiency or P = QHP/
Pump rotational speed N Rotational speed of the pump impeller
Shut – off head Value of pump head from pump curve corresponding to zero flow
Q=0
Static head Hs Difference in elevation between the water surface at a lower reservoir
and the water surface elevation at the upper reservoir where water is
being pumped from the lower to the upper reservoir
Static suction head hs Elevation difference between the centerline of the intake to the pump
(2 and thus z 2 ) and the suction reservoir water surface (1 and thus z 1 )
such that h s = z 2 – z 1 where
• hs is positive when the pump is above the reservoir (m or
ft)
• hs is negative when the pump is below the reservoir water
surface elevation (m or ft)
System curve Sum of static head Hs plus pipe friction losses and minor losses in suc-
tion pipework and delivery pipework of the pumping system
Water or hydraulic power Product of specific weight of fluid flowing , flow Q and pump head
(IEC 1999) HP or QHP.
2 2
p V1 p V2
z 1 + -----1- + --------
- + H P = z 2 + -----2- + --------
2g f L
-+ h + h (18.1)
2g
where
407
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Figure 18.1 Rising main system supplied by a pump; note hf2 has been exaggerated to highlight its
existence - normally the loss per unit length on the suction side would be significantly smaller than
in the discharge pipe
Question – How would the pressure difference between the suction and discharge sides of a pump be obtained?
Answer – By using two Bourdon pressure gages that each has a dial reading the pressure on both sides of the pump
(on the suction intake pipe and on the discharge pipe) to determine the pressures. The head across the pump is the dif-
ference in HGL (sum of elevation head of the location of the centerline of the dial of the gage and the pressure head)
between the downstream location and the upstream location for the Bourdon gages.
Conventionally minor losses inside the pump between the suction flange and discharge flange of the
pump are not calculated separately. The manufacturer includes all losses as pump losses.
408
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
The load on the motor is very easy to cope with for a centrifugal pump as only a relatively small torque
is required to start the pump against a closed valve. The effect of closing the valve on the pump flow is
to increase the pump head by approximately 15 to 30% (to the shut – off head value corresponding to a
discharge of zero) and to reduce the power by 50 to 60% from those values at the best efficiency point
(ASCE 1975).
A typical gate valve that is often used on either side of a pump is shown in Figure 18.3 and Figure 18.4.
409
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Figure 18.4 Photograph of a gate valve showing the gate with a semi – circular bottom
410
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Often the suction line pipe diameter leading to intake side of the pump is larger than the discharge pipe
downstream of the pump in order to minimize the possibility of cavitation. The concept of net positive
suction head (NPSH) in relation to cavitation potential for the pump is introduced later on in the Chap-
ter.
• head HP usually in meters (m) in SI units (or feet — ft — in US customary units) of water
• flow Q in L/s (or US gpm or cfs)
• efficiency taken as a decimal fraction between 0 and 1 (sometimes referred to as Ep)
• shaft power input to the pump P in kW (or HP)
• rotational speed N in rpm
18.6.1 Pump curves
Three curves are important for consideration of pumps in water distribution systems
Different classes of impeller or rotodynamic pumps (centrifugal, mixed flow and axial flow) have differ-
ent shaped curves.
If the pump head is increased by throttling the pump delivery valve then the flow must decrease as the
pump operating point moves to the left along the H – Q curve. When the flow is zero (Q = 0) this is
referred to as the shut – off head condition.
The point of maximum pump efficiency is called the best efficiency point (BEP). The most common
operating point for the pump should be close to the BEP to minimize the power costs (although it does
depend on initial capital cost as well).
411
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
QH P (18.2)
where
PUMP EFFICIENCY
where
QH
P = ---------------P (18.4)
where
412
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
.
Example 18.1 Consider two pumps with pump curves represented by algebraic equations. The general form of the
pump curve for the pump head H P in terms of Q represented as an equation may be expressed as
b
H P = H SHUTOFF – aQ
For pump A, take H SHUTOFF = 50 meters , a = 0.0002 and b = 2.5 . Thus the pump head – flow relationship is
given by
2.5
H P = 50 – 0.0002 Q (18.5)
2
= – 0.0164Q + 2.3727Q + 0.0734 (18.6)
For pump B, take H SHUTOFF = 60 meters , a = 0.0002 and b = 2.68 . Thus the pump head – flow relationship
is given by
2.68
H P = 60 – 0.0002 Q (18.7)
(i) Compute the pump head for a flow of 40 L/s for both pump A and pump B. Compute the corresponding efficiency
for pump A.
(ii) Determine the head – flow curves for both pumps A and B over a range of 100 L/s at increments of 10 L/s.
(iii) Plot the pump curves (HP versus Q) for pump A and pump B on the same plot.
Answer – (i) Computation of the pump head at a flow of 40 L/s for both pump A and pump B.
The pumping heads may be obtained from the equations above. For pump A at a flow of 40 L/s the pumping head from
Equation 18.5 is:
2.5 2.5
H P = 50 – 0.0002 Q = 50 – 0.0002 40 = 48.0 m
For pump B at a flow of 40 L/s the pumping head from Equation 18.7 is:
2.68 2.68
H P = 60 – 0.0002 Q = 60 – 0.0002 40 = 56.1 m
For pump A for a flow of 40 L/s the efficiency fromEquation 18.6 is:
2 2
= – 0.0164Q + 2.3727Q + 0.0734 = – 0.0164 40 + 2.3727 40 + 0.0734 = 68.74%
(ii) Determination of the head – flow curves for both pumps A and B.
The pump head, efficiency and power curves over the range of flows of 100 L/s are given in Table 18.1
413
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Equation 18.5 and Equation 18.7 have been used to generate the head values in Table 18.1.
(iv) Plot of the efficiency versus flow curve for pump A is given in Figure 18.6.
Equation 18.6 has been used to generate the efficiency values in Table 18.1.
(v) Plot of the power versus flow curve for pump A is given in Figure 18.6.
Compute the power for each flow in Table 18.1. In particular, for Q = 40 L/s the power from Equation 18.4 is:
414
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Units of right – hand side of Equation 18.4 for the pump power delivered by the shaft to the pump impel-
ler are as follows
3
N- m
------ ------- m
m
3 s N-m
------------------------------------ = ----------- = watts or W
1 s
E = Pt (18.9)
PUMP ENERGY
where
• E = energy delivered to the pump shaft (Wh - usually converted to kWh by dividing by
1000)
• P = shaft power delivered by pump motor (W or HP)
• t = time over which pump operates (h or hours)
For Equation 18.9 to be valid the power must remain constant for the entire period t . In turn this
requires the head across the pump, the flow through the pump and the upstream and downstream reser-
voir levels to remain constant. In practice, this would be very unlikely. In order to correctly assess the
energy usage by the pump it would necessitate an EPANET extended period simulation hydraulic model
to be run at say a time step of 5 minutes over the t period. The reservoir levels, the pump flow and
hence the head across the pump would be updated every 5 minutes to update the power calculation to be
the correct value. The energy usage would be accumulated for all of the 5 minute periods in t .
415
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Pt
EE = --------- (18.10)
Em
where
• EE = electrical energy delivered to the pump motor (Wh) - usually converted to kWh by
dividing by 1000
• Pt = E = energy delivered to the pump shaft (Wh)
• E m = efficiency of pump motor (usually around 95%)
• P = shaft power delivered by pump motor (W or HP)
• t = time over which pump operates (h or hours)
Input power to shaft of the motor is not readily measured directly so it is usually obtained from the elec-
trical power input Pe to the motor.
P = Pe Em
where
Cost = EE c (18.11)
where
Example 18.2 Compute the following (i) the shaft power for a pump head of H P = 41 m , a pump flow
Q = 28 L/s at the operating point and a pump efficiency of = 0.755 . (ii) the electrical energy input to the pump
motor for 5 hours of continuous operation at constant pumping conditions (iii) the cost of electricity for pump opera-
tion assuming the pump is operating from 12 midnight to 5am on an off-peak electricity tariff of 6 cents/kWh.
Assume a motor efficiency of 96%.
416
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
The shaft energy over 5 hours is given from Equation 18.9 as:
The cost of electrical energy input to the pump motor is given from Equation 18.11 by:
6
Cost = EE c = 77.5 --------- = $4.65
100
___________________________________________________________________________________
Figure 18.8 shows the change in the pump curve when the pump speed is altered from 1480 rpm to
either 2900 rpm or 750 rpm. The tabular values of the pump curves for different speeds are shown in
Table 18.2. Details of exactly how the curves at different speeds are obtained is given in Example 18.6.
In Figure 18.8, it is evident that doubling the speed increases the head by a factor of four while the flow
is doubled.
417
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Table 18.2 Computation of pump curves for other rotational speeds (D = 0.25 m)
Pump A Pump A N=750 N=750 N=2900 N=2900
N=1480 N=1480 rpm rpm rpm rpm
rpm rpm
Q HP Dimensionless Dimensionless Q HP Q HP
(L/s) 3 2 2 (L/s) (L/s)
(m) Q N D gH P N D (m) (m)
P = T (18.12)
where
418
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
2N
= ----------- (18.13)
60
and thus
2N - = 2
P = T
------------------- ------ TN (18.14)
60 60
H S = z2 – z1 (18.15)
where
2 2
LV L Q
f = f ---- ------ =
D 2g f ---- -----------
D 2g A
(18.16)
Minor losses for multiple losses in the system from Equation 5.1 are given by
2 2
Q
hL= K V
------ = K ------------2-
2g 2g A
2 2
fL- ------------
Q - + K ------------
Q -
system curve = H S + -----
D 2g A 2 2g A 2
(18.17)
where
419
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
2
fL Q
• ------ ------------- = friction losses for the pipework attached to the pump both on the suction side
D 2g A 2
and the discharge side of the pump (m or ft)
2
Q
• K ------------2- = minor losses for components in the pipework attached to the pump (m or ft)
2g A
18.8 Pump Operating Point
For the pump – pipeline system as depicted in Figure 18.1, the head – flow curve is shown in
Figure 18.9. The operating point is where the H – Q curve for the pump intersects with the system curve
of Hs+(sum of the pipe friction losses h f and minor losses h L in the suction and delivery
pipework) — see Equation 18.17.
Figure 18.9 H – Q pump curve, system curve and efficiency curve for a constant speed
The properties of the pipe network used to determine the system curve in Figure 18.9 is shown in
Table 18.3.
Example 18.3 Consider the following pumping system with Pump A (see Figure 18.5 and Table 18.1) connected to a
pipeline with a diameter D = 300 mm , pipe length L = 1000 m , pipe roughness = 0.25 mm and water viscos-
–6 2
ity = 1.140 10 m /s at 15 degrees Celsius. The pump – pipeline system connects two reservoirs with the dif-
ference in water surface elevations of the lower and upper reservoirs of 35 m (the static head H S = 35.0 meters ).
420
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
The system curve is based on the friction loss in the pipeline. Results are shown in Table 18.4. Consider a flow of 70 L/
s.
2 2
D 0.3 2
A = ---------- = ------------------ = 0.07069 m
4 4
0.99 0.3
Re = VD
-------- = ---------------------------
- = 260300
1.141 10
–6
The Darcy – Weisbach friction factor from the Swamee and Jain equation (Equation 4.61) is
0.25 0.25
f = ---------------------------------------------------------
- = ----------------------------------------------------------------------------------
- = 0.0202
5.74 2 0.25 5.74 2
log 10 ------------ + ------------ log 10 --------------------- + ----------------------------
3.7 D 0.9 3.7 300 0.9
Re 260300
The head loss based on the Darcy – Weisbach head loss formula (Equation 4.3) is
2 2
fL V 0.0202 1000 0.99
h f = ------ ------ = --------------------------------- ------------------ = 3.36 m
D 2g 0.3 2 9.81
The system curve head is
_________________________________________________________________________________
Answer – (ii) The operating point.
421
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
The specific speed for a pump is a very useful number to determine in the process of selecting a pump. It
is defined as
12
NQ -
N s = ---------------- (18.18)
34
HP
• N s = specific speed (units depend on system of units being used - see Equation 18.19 and
Equation 18.20)
• N = rotational speed (rpm)
• Q = pump flow (m3/s or ft3/s – sometimes the flow may be given in L/s)
• HP = pump head (m or ft)
The units of the specific speed are not rpm but actually have the following dimensions for SI units
12 3 12
N Q rpm m /s
--------------------------- = --------------------------------------- (18.19)
34 34
H P m
For US customary units the units of the quantities used to define the specific speed of a pump are
• N in rpm
• Q in gpm (US gallons)
• HP in feet
In this case the units of Ns are
422
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
12
N Q rpm gpm 1 2
--------------------------- = -------------------------------------- (18.20)
34 34
H P ft
A convention is adopted here that whenever the specific speed for a pump is given then the units should
be specified in square brackets following the number. The reason that this practice should be followed is
so that it is very clear what the units of the quantities were that were used to calculate the value of spe-
cific speed for the particular pump. Examples of units are
N S in US Customary units
N S in SI units = -----------------------------------------------------------------------
- (18.21)
51.7
Another way to think of specific speed of a pump is to consider it as the rotational speed for a unit flow
(i.e. 1 m3/s or 1 US gpm) and a unit pumping head (i.e. 1 m or 1 ft). For these conditions from
Equation 18.18 the specific speed equals the rotational speed as
NS = N (18.22)
where
• N s = specific speed
• N = actual rotational speed of the impeller of the pump (rpm)
18.10 Types of Pumps
Three types of pumps are considered in this Chapter that are relevant to water distribution systems.
These include centrifugal, mixed flow and axial flow pumps. A typical configuration for a pumping sys-
tem showing a pump, check valve and bypass line is shown in Figure 18.12. A reflux valve is shown in
A duo check reflux valve is shown in Figure 18.14 and Figure 18.15.
423
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Figure 18.11 Photograph of a reflux valve and a butterfly valve (on the left) –
flow is from right to left
Figure 18.12 Pumping system with check valve and bypass line
424
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Figure 18.14 Photograph of a duo check valve – flow goes into the valve from this side
425
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Figure 18.15 Photograph of a duo check valve – flow comes into the valve from the other side
12
NQ small
N s = ----------------- = N ----------------- (18.23)
HP
34 large
12
NQ moderate
N s = ----------------- = N --------------------------- (18.24)
HP
34 moderate
426
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Mixed flow pumps are popular when the space available is restricted in places such as wells when multi
stages (pumps in series) are used.
12
large
N Q - = N -----------------
N s = ---------------- (18.25)
HP
34 small
Figure 18.16 Impeller types for various specific speeds (Streeter and Wylie p.392)
Example 18.4 A pump is required to handle a pumping head of 18 m and a flow of Q = 30 L/s. The available motor
speed is N = 1450 rpm. Compute the specific speed and select the appropriate type of pump.
12 12
N Q - = ------------------------------------------
1450 0.030 - = 28.7 [rpm, m3/s, m]
N s = ----------------
34 34
HP 18
As the specific speed of NS is much less than 60 (the approximate breakpoint between centrifugal and mixed flow
pumps) thus only a centrifugal pump is suitable for this application.
Example 18.5 A pump is required to handle a pumping head of 11.5 m and a flow of Q = 480 L/s. Again the avail-
able motor speed is N = 1450 rpm. Compute the specific speed and select the appropriate type of pump.
427
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
12 12
N Q - = ------------------------------------------
1450 0.480 - = 160.9 [rpm, m3/s, m]
N s = ----------------
34 34
HP 11.5
The specific speed for this application is on the border of a mixed flow pump and an axial flow pump. Thus either a
mixed flow or propeller type pump would be suitable.
___________________________________________________________________________________
*where D = the distance from the centerline of the pump to the impeller exit and D
1 2 = distance from centerline to the
entrance of the impeller (m or ft).
** The specific speed for a double suction pump is obtained by using one – half the flow. For multi – stage pumps the
head per stage is used.
• geometric similarity
• kinematic similarity evidenced by similar velocity vector diagrams at the entrance to, and at
the exit from, the impeller
428
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
• dynamic similarity such that force ratios are the same in both pumps
Figure 18.17 The velocity vector diagram at the exit of a pump impeller
Often pump performance characteristics are determined in model study tests. These are then scaled up to
prototype size pumps. In considering similarity of pumps the viscous effects must be neglected because
it is not possible to maintain the same Reynolds number Re in the model and prototype while satisfying
the above conditions.
2N
u = r = r -----------
60
where
• u = vector of peripheral velocity of the impeller (m/s or ft/s)
• r = radius of impeller (m or ft)
• = angular speed (rad/s)
V = vector of absolute velocity of flow leaving the impeller (someone standing outside the impeller
would see the absolute velocity). This is the vector sum of u and v as follows:
V = u+v
Vr Q
where
429
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Figure 18.18 Two similar velocity diagrams for different sized impellers of identical shape
The following quantity must be constant to have two pumps to be considered homologous units or to
exhibit similarity
Vr V sin
------ = ---------------- = constant (18.26)
u u
where
• = angle that the absolute velocity makes with the tangential direction u
• = blade angle of the vane in the impeller
For homologous or similar units the blade and or the angle in the velocity diagrams must be the
same.
2
Q V rD (18.27)
or
2
Q V sin D (18.28)
Thus the flow through the pump is directly proportional to the absolute velocity of flow leaving the
impeller, the sine of the angle that the absolute velocity makes with the tangential direction and the
diameter of the impeller squared.
2N DN
u = r = r ----------- = ------------- (18.29)
60 60
430
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
60u
N = ---------
D
It follows that
u
N ----
D
or
u ND (18.30)
Thus the magnitude of the peripheral velocity of the impeller is proportional to both the rotational speed
and the impeller diameter.
V sin
---------------- = C 1 (18.31)
u
Q
V -------------------- (18.32)
2
D sin
Q sin
---------------------- = C 2
2
uD sin
resulting in
Q- = C
--------- 2 (18.33)
2
uD
Q
--------------------- = C 2 (18.34)
2
ND D
resulting in
Q
C Q = ----------- = constant (18.35)
3
ND
431
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
3
L
------
Q T
C Q = --------------------- = -------------------- = 1
3 1 3
N D --- L
T
The time unit may be different for the flow Q and the rotational speed N but this difference just means
that CQ is multiplied by a constant.
Equation 18.35 is only true for similar or homologous pumps of the same specific speed NS.
Q = C d A 2g H P (18.36)
where
2
D
Q = C d ---------- 2g H P (18.37)
4
Q
----------------------- = constant (18.38)
2
D gH P
Taking the square root of this expression and then cubing gives
32
1 Q
------- ------------------------- = constant (18.39)
3 34
D g H P
32
N- ------------------------
Q
--- - = constant (18.40)
Q g H 3 4
P
432
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
resulting in
12
1 - ----------------
NQ - = constant
C N = ---------- (18.41)
34 34
g HP
The specific speed as defined earlier is the second quotient in Equation 18.41 and it follows that
1
----------- N S = constant (18.42)
34
g
The omission of the gravity term of Equation 18.42 in the normal definition of the specific speed (as per
Equation 18.18) is the reason for the difference in specific speeds in the SI units system and for US cus-
tomary units.
3 12
12 --1- L ------
1 N Q 1 T T
C N = ---------------- --------------------------- = -------------------- ----------------------------- = 1
34 34 L- 3 4 L 3 4
g H P -----
2
T
gH P
C H = -------------- = constant (18.43)
2 2
N D
L- L
-----
g H P T
2
C H = -----------------------
- = ----------------------- = 1
2 2 1 2
N D --- L
2
T
Example 18.6 Consider a mixed flow pump with an impeller of diameter 150 mm, a flow of Q = 50 L/s, a rotational
speed of N = 1800 rpm and a pumping head of H = 4 m operating at BEP (best efficiency point).
(i) What speed should a pump of impeller diameter of 450 mm (3 times larger) be operated at to produce a flow of
Q = 0.9 m3/s (18 times larger) at the best efficiency point (BEP)?
(ii) What pumping head is developed by the 450 mm diameter pump operating at the speed computed in Part (i)?
433
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
For similar machines dimensionless pump flow number given by Equation 18.35
Q
C Q = ----------- = constant
3
ND
and
Q1 Q2
----------------
- = ----------------
-
3 3
N 1 D1 N 2 D2
Thus
Q1 50 900
----------------
- = --------------------------------- = ------------------------
3 3 3
N 1 D1 1800 150 N 2 450
N2 = 1200 rpm
_________________________________________________________________________________
Answer – (ii) Computation of the head developed by the pump.
gHP
C H = -------------
- = constant
2 2
N D
or
gHP gHP
1 2
------------------
- = ------------------
-
2 2 2 2
N 1 D1 N 2 D2
Thus
Thus solving for the pumping head for the 450 mm diameter pump at the new speed of 1200 rpm gives
H P = 16 m
2
_________________________________________________________________________________
QH
P = T = ---------------P (18.44)
2N
= ----------- (18.45)
60
It then follows from Equation 18.44 that the shaft power is proportional to
P QH P
for a given operating point on the pump curve. Thus it follows that
P
Q -----------
H P
434
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
or
P -
Q -------------- (18.46)
g H P
Eliminating the flow in Equation 18.46 using Equation 18.35 (Q/ND3 = constant) gives
P
---------------------------- = constant (18.47)
3
g H P N D
2 2
N D
H P -------------- (18.48)
g
Eliminating the head HP between Equation 18.47 and Equation 18.48 gives
gP
---------------------- = constant (18.49)
3 5
g N D
resulting in
P - = constant
C P = ----------------- (18.50)
3 5
N D
2
ML
------------
3
P T
C P = --------------------------------- = ----------------------------------------- = 1
3 5 M- --- 1 3 L 5
N D -----
3 T
L
2N QH
T ---------------- = ---------------P (18.51)
60
T 2N 2 TN
Q = ------------------------ = ---------- ------------ (18.52)
60g H P 60g H
P
Thus the flow at a given operating point along the pump curve is proportional to
435
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
TN
Q ----------- (18.53)
H P
Combining Equation 18.53 with Equation 18.35 (Q/ND3 = constant) to eliminate Q gives
TN
----------------------------- = constant
3
H P N D
resulting in
T
------------------- = constant (18.54)
3
H P D
From Equation 18.43 (gHP/(N2D2) = constant) and taking gravity to be combined with the constant
HP
-------------- = constant (18.55)
2 2
N D
T
C T = ------------------ = constant (18.56)
2 5
N D
2
ML
-----------
2
T T
C T = --------------------------------- = ----------------------------------- = 1
2 5 M 1 2
N D ------ --- L
5
3 T
L
436
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Q - = constant
C Q = ----------
3
ND
12
1 NQ
C N = ----------- ----------------- = constant
34 34
g HP
gH P
C H = -------------- = constant
2 2
N D
P
C P = ------------------ = constant
3 5
N D
T
C T = ------------------ = constant
2 5
N D
437
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
gH P Q-
-------------- versus ---------- (18.57)
2 2 3
N D ND
or
C H versus C Q
Tabular values of the dimensionless head curve for pump A may be computed as shown in Table 18.6
for a rotational speed of N = 1480 rpm and pump impeller diameter D = 0.3 m. A plot of the dimension-
less head curve for pump A is shown in Figure 18.20.
Example 18.7 For Pump A at a flow of 40 L/s (i) compute the dimensionless head and (ii) compute the dimension-
less flow (iii) compute the dimensionless power and (iv) compute the specific speed of the pump. The rotational
speed of the pump is N=1480 rpm and the impeller diameter is 300 mm.
Q 40
C Q = ------------ = -------------------------------- = 1.0010
3 3
ND 1480 0.3
438
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
P - = -----------------------------------------------
27.4 -8
C P = ----------------- - = 0.3484 10
3 5 3 5
N D 998.2 1480 0.3
Switch to a discharge of 70 L/s and pump head of 41.8 m at the best efficiency point (85.8%). Thus the specific speed
is given by Equation 18.18 as
70 1 2
1480 ------------
12 1000
N Q - = -----------------------------------------
N s = ---------------- - = 24 [rpm, m3/s, m]
34 34
HP 41 8
___________________________________________________________________________________
For a particular pump specific speed the plot shown in Figure 18.20 is a single curve irrespective of the
size of the pump (assuming scale effects due to viscosity are ignored).
Q-
versus ---------- (18.58)
3
ND
or
versus C Q
A dimensionless efficiency for Pump A (from Example 18.1, Table 18.1 and Figure 18.6) is shown in
Figure 18.21. It is a plot of versus CQ. Values are taken from Table 18.6.
439
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
P Q
------------------ versus ----------- (18.59)
3 5 3
N D ND
or
C P versus C Q
A dimensionless power curve for Pump A (from Example 18.1, Table 18.1 and Figure 18.7) is shown in
Figure 18.22. It is a plot of CP versus CQ. Values are taken from Table 18.6.
440
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
From the expression for the dimensionless flow as given by Equation 18.35
Q - = constant
C Q = ----------
3
ND
it follows that
Q1 Q2
----------------
- = ----------------
- (18.60)
3 3
N 1 D1 N 2 D2
D1 = D2 (18.61)
Thus from Equation 18.60 it follows that if the speed changes from N1 to N2 then the flow changes
according to the following law
Q Q
------1- = ------2-
N1 N2
or
Q1 N
------ = ------1- (18.62)
Q2 N2
Thus the pump flow varies linearly with an increase in rotational speed of the pump impeller.
gH P
C H = -------------- = constant
2 2
N D
gH P gH P
1 2
-------------------
- = -------------------
-
2 2 2 2
N 1 D1 N 2 D2 (18.63)
HP HP
----------1 = ----------2
2 2
N1 N2
441
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
or
HP N 2
----------1 = ------1- (18.64)
HP N
2 2
Thus the pump head is related to the square of the rotational speed of the pump.
P
C P = ------------------ = constant
3 5
N D
P1 P2
----------------------
- = ----------------------
- (18.65)
3 5 3 5
N 1 D 1 N 2 D 2
P1 P2
---------
- = ---------
-
3 3
N1 N2
or
P N 3
-----1- = ------1- (18.66)
P2 N
2
The pump shaft power is related to the cube of the rotational speed of the pump impeller.
A summary of the Law 1 pump affinity relationships for a constant diameter impeller follows
Q N
------1 = ------1- from Equation 18.62
Q2 N2
HP N 2
----------1 = ------1- from Equation 18.64
HP N
2 2
P N 3
-----1- = ------1- from Equation 18.66
P2 N2
442
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
N1 = N2 (18.67)
Q1 Q2
----------------
- = ----------------
-
3 3
N 1 D1 N 2 D2
Q1 Q2
--------
- = --------
-
3 3
D1 D2
or
Q D 3
------1 = ------1- (18.68)
Q2 D2
Pump head – diameter of impeller relation for pump affinity law number 2
gH P gH P
1 2
-------------------
- = -------------------
-
2 2 2 2
N 1 D1 N 2 D2
HP HP
----------1 = ----------2
2 2
D1 D2
or
HP D 2
----------1 = ------1- (18.69)
HP D 2
2
Thus the pump head is related to the square of the diameter ratio at a constant rotational impeller speed.
P1 P2
----------------------
- = ----------------------
-
3 5 3 5
N 1 D 1 N 2 D 2
443
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
P1 P2
--------
- = --------
-
5 5
D1 D2
or
P D 5
-----1- = ------1- (18.70)
P2 D2
Thus the pump power is related to the impeller of the diameter to the fifth power.
As mentioned earlier, a smaller impeller is usually achieved by trimming and using the same sized cas-
ing. If the assumption in Law No. 2 regarding the maximum allowable diameter change is violated it is
best to go back to manufacturer's data.
A summary of the Law 2 pump affinity relationships for a constant rotational speed follows
Q1 D 3
------ = ------1- from Equation 18.68
Q2 D
2
HP D 2
----------1 = ------1- from Equation 18.69
HP D
2 2
P D 5
-----1- = ------1- from Equation 18.70
P2 D
2
H
g -------P-
n
CH = ----------------- = constant (18.71)
2 2
N D
where
Q
C Q = ----------- = constant (18.72)
3
ND
444
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
gH P
C H = -------------- = constant (18.73)
2 2
N D
Q ----
n
CQ = ----------- = constant (18.74)
3
ND
where
u = ND (18.75)
The form of a pump Reynolds number (in contrast to Equation 2.15) is as follows
2
uD ND D N D
Re = ------- = ---------------------- = --------------- (18.76)
One condition for dynamic similarity is that the Reynolds number be the same for each pumping head
along the pump curve.
445
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Figure 18.23 Photograph of two pumps in series – flow is from right to left
Consider n pumps in series, two of which are shown in Figure 18.24. For pumps in series the flow QSR is
the same through all n pumps
Q SR = Q 1 = Q 2 = = Q n (18.77)
The total resultant pumping head H P from the suction side of the first pump to the discharge side of
SR
the nth pump is the sum of the heads for the individual pumps at the same flow.
HP = HP + HP + + HP (18.78)
SR 1 2 n
The total power is the sum of the power for the individual pumps as follows
P SR = P A + P B (18.79)
The power of each of the two pumps A and B is given from Equation 18.4 as
Q A H P
P A = ---------------------A (18.80)
A
446
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
and
Q B H P
P B = --------------------B- (18.81)
B
Solving for the efficiencies of the two individual pumps in Equation 18.80 and Equation 18.81 gives
Q A H A
A = ------------------
- (18.82)
PA
and
Q B H B
B = ------------------
- (18.83)
PB
For the two pumps A and B in series the overall efficiency is given as
Q A + B H A + B
SR = A + B = ----------------------------------
- (18.84)
PA + B
Q SR = Q A + B (18.85)
HP = HP =H + HP (18.86)
SR A+B PA B
The total power PA+B is the sum of the power for each of the individual pumps A and B. Thus from
Equation 18.80 and Equation 18.81 it follows that
Q A H P Q B H P
P SR = P A + B = P A + P B = ---------------------A + --------------------B- (18.87)
A B
Now substituting Equation 18.85, Equation 18.86 and Equation 18.87 into Equation 18.84 gives
Q A + B H A + B Q SR H P + H P Q SR H P + H P
A + B = ---------------------------------- A B
- = --------------------------------------------- A B
- = ------------------------------------------------- (18.88)
PA + B PA + PB Q A H P Q B H P
---------------------A + --------------------B-
A B
Q SR H P + H P
A + B = -------------------------------------------------
A B
(18.89)
Q SR H P Q SR H P
--------------------A- + --------------------B-
A B
and
447
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
HP + HP
A + B = ---------------------------
A B
- (18.90)
HP HP
A B
---------- + ----------
A B
A summary of the head, flow, power and efficiency relationships for two pumps in series are given
below
Q A H P Q B H P
P SR = P A + B = P A + P B = ---------------------A + --------------------B- from Equation 18.87
A B
HP + HP
SR = A + B = ---------------------------
A B
- from Equation 18.90
HP HP
A B
---------- + ----------
A B
Consider n pumps in parallel, two of which are shown in Figure 18.25. For pumps in parallel the flow
QPL (where the subscript PL refers to the term “parallel”) is the sum of the flows through all n pumps
Q PL = Q 1 + Q 2 + + Q n (18.91)
The pumping head H P from the suction side to the discharge side of each pump is the same for all n
PL
pumps.
HP = HP = HP = = HP (18.92)
PL 1 2 n
448
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
The total power of the two pumps A and B in parallel is the sum of the power for the individual pumps is
P PL = P A + P B (18.93)
The power of each of the two pumps A and B is given from Equation 18.4 as
Q A H P
P A = ---------------------A (18.94)
A
and
Q B H P
P B = --------------------B- (18.95)
B
For the two pumps A and B in parallel the overall efficiency is given as
Q A + B H A + B
PL = A + B = ----------------------------------
- (18.96)
PA + B
Q PL = Q A + Q B (18.97)
HP = HP = HP (18.98)
PL A B
The total power PA+B for the two pumps in parallel is the sum of the power for each of the individual
pumps A and B. Thus from Equation 18.93, Equation 18.94 and Equation 18.95 it follows that
Q A H P Q B H P
P PL = P A + B = P A + P B = ---------------------A + --------------------B- (18.99)
A B
Now substituting Equation 18.97, Equation 18.98 and Equation 18.99 into Equation 18.96 gives
Q A + B H A + B Q A + Q B H P Q A + Q B H P
A + B = ---------------------------------- PL
- = ------------------------------------------ PL
= -------------------------------------------------
- (18.100)
PA + B P A + PB Q A H P Q B H P
---------------------A + --------------------B-
A B
449
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
Q A + Q B H P
A + B = ------------------------------------------------
PL
- (18.101)
QAH P QB H P
PL PL
--------------------- + ---------------------
A B
and
Q A + QB
A + B = -------------------------
- (18.102)
Q A QB
------- + -------
A B
A summary of the head, flow, power and efficiency relationships for two pumps in parallel are given
below
Q A H P Q B H P
P PL = P A + B = P A + P B = ---------------------A + --------------------B- from Equation 18.99
A B
Q A + QB
PL = A + B = -------------------------
- from Equation 18.102
Q A QB
------- + -------
A B
The concept of net positive suction head is very critical in the selection of pumps to prevent cavitation.
NPSH is defined as the pressure required to cause liquid to flow through the suction side piping and fit-
tings and into the pump. The minimum pressure point in a pump normally occurs at the entrance to the
impeller vanes.
450
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
To determine the Net Positive Suction Head Available (NPSHA) for a pumping system consider the suc-
tion side details in Figure 18.26.
Figure 18.26 Definition diagram for net positive suction head available (NPSHA) for a pump
Write the energy equation from Equation 3.67 between the suction side reservoir (1) and a fluid particle
at the centerline of the pipe just as it enters the inlet to the pump (2)
* 2 * 2
p V1 p V2
z 1 + -----1- + --------
- = z 2 + -----2- + --------
2g f L
-+ h + h (18.103)
2g
where
• the asterisk on each of the pressure terms refers to absolute units (rather than gage units that
is the convention)
Let the difference between the elevation of the centerline of the inlet pipe to the pump and the water sur-
face elevation of the suction reservoir be defined as the static suction lift hs or
hs = z2 – z1 (18.104)
Thus if the suction side reservoir (section 1) is below the centerline of the pump inlet (section 2) the
value of hs is positive (see Figure 18.26) while if the suction side reservoir (section 1) is above the cen-
terline of the pump inlet (section 2) the value of hs is negative. The term suction lift is rather misleading.
Water cannot be sucked through the inlet line to the pump. The water must be forced into the suction
intake and along to the pump by atmospheric pressure acting on the surface of the suction side reservoir.
In Equation 18.103 the pressure at the surface of the reservoir is zero (gage units) or equal to the baro-
metric pressure in the atmosphere (absolute units of pressure). It is usual to work in absolute units of
pressure when dealing with pump cavitation computations. Thus the pressure on the surface of the suc-
tion side reservoir is barometric pressure
* *
p p
-----1- = -----b- (18.105)
451
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
The velocity of a fluid particle on the surface of the reservoir may usually be assumed to be zero. Thus
in Equation 18.103
2
V1
------ = 0 (18.106)
2g
* * 2
p p V2
-----b- + 0 = z 2 – z 1 + -----2- + --------
2g f L
-+ h + h (18.107)
or
* 2 *
p V2 p
h s + -----2- + --------
- + h f + h L = -----b- (18.108)
2g
Rearranging and solving for the pressure head at the pump inlet gives
* * 2
p p V 2
-----2- = -----b- – h s – --------
- + h f + h L (18.109)
2g
The net positive suction head available is the amount of head available above the vapor pressure head of
the fluid flowing (in absolute units) or
* *
p p
NPSHA = -----2- – -----v- (18.110)
Thus an expression for the NPSHA for a particular pumping system results from combining
Equation 18.109 and Equation 18.110 as
* 2 *
p V 2 p
NPSHA = -----b- – h s – --------
- + h f + h L – -----v- (18.111)
2g
Typical values of barometric pressure head and vapor pressure head of water (both in meters of water
absolute) at 15°C are
*
p
-----b- = 10.34 m
and
*
p
-----v- = 0.17 m
452
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
In other words the net positive suction head available (NPSHA) at the inlet of the pump (as computed
for the suction side pipework from Equation 18.111) must be greater than the minimum allowable or net
positive suction head required (NPSHR) as specified by the pump manufacturer.
The maximum allowable suction lift hs may be found from substituting Equation 18.111 into
Equation 18.112
* 2 *
p V 2 p
-----b- – h s – --------
- + h f + h L – -----v- NPSHR (18.113)
2g
* 2 *
p V 2 p
-----b- – --------
- + h f + h L – -----v- NPSHR + h s (18.114)
2g
Thus the static suction lift hs must be less than the quantity of the right – hand side of the following
equation
* 2 *
p V 2 p
h s -----b- – --------
- + h f + h L – -----v- – NPSHR (18.115)
2g
If in computing the suction lift hs it turns out to be negative (recall that it is defined as positive when
pump is located above the level of the suction reservoir), then the pump must be set below the water sur-
face of the suction reservoir
.
Example 18.8 Consider a design problem where it is required to determine the setting of a pump to prevent cavita-
tion. Water at a temperature of 20°C is to be pumped. The minimum expected barometric pressure (in absolute units
specified as a height of water) during the life time of the pump is expected to be
*
p
-----b- = 9.7 m
The vapor pressure of water for the warmest expected operating conditions during the life time of the pump is
*
p
-----v- = 0.24 m
The pipe friction losses and minor losses for a flow of 500 L/s in the inlet side suction pipework for the pump are
h f = 1.0 m
hL = 0.1 m
From the pump manufacturer, the net positive suction head required for the pump is
NPSHR = 6.0 m
The velocity head of water entering the inlet of the pump for a velocity of 2.5 m/s.
2 2
V2 2.5
--------
- = ------------------ = 0.32 m
2g 2 9.81
Now the minimum allowable static suction head from Equation 18.115 is
453
Chapter 18 - File: Chap18-Pumps.fm July 6, 2022 Version 6
* 2 *
p V 2 p
h s -----b- – --------
- + h + h – -----v- – NPSHR
2 g f L
or
Because the value of the static suction lift is positive it means that the reservoir water surface elevation may be up to
but no more than 2.04 m below the level of the centerline of the intake to the pump.
Example 18.9 Consider a design problem in Example 18.8 except for different pipe friction and minor losses.
Determine the setting of a pump to prevent cavitation. The pipe friction losses and minor losses for a flow of 500 L/
s in the inlet side suction pipework for the pump are
h f = 5.0 m
hL = 0.5 m
Now the minimum allowable static suction head from Equation 18.115 is
* 2 *
p V 2 p
h s -----b- – --------
- + h + h – -----v- – NPSHR
2 g f L
That is
or
h s – 2.36 m
Because the value of static suction lift is negative it means that the suction side reservoir water surface elevation must
at least be 2.36 m above the level of the centerline of the intake to the pump.
___________________________________________________________________________________
18.21 References
ASCE (1975). Pipeline design for hydrocarbon gases and liquids. Report of the Task Committee on
Engineering Practice in the Design of Pipelines, Committee on Pipeline Planning, Pipeline Division,
American Society of Civil Engineers, New York, 1-79.
454
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
CHAPTER 19 VALVES1
Three types of valves are considered in this Chapter including isolating valves (or control valves), regu-
lating valves and control valves. Isolating valves are extremely important in water distribution systems,
especially, when repairs to leaks need to be carried out. In terms of modeling water distribution systems,
isolating valves are not usually important. They may be taken into account as a localized or minor loss
via a head loss coefficient K. Regulating valves include pressure reducing valves (PRVs), pressure sus-
taining valves (PSVs) and flow control valves (FCVs). These are extremely important in hydraulic mod-
els and should be modeled to accurately reflect flow and pressure conditions in the water distribution
system.
This Chapter commences with a discussion of isolating valves. Regulating valves are then considered.
In the section on pressure reducing valves (PRVs) the various operating modes are described in detail.
Control valves that allow throttling of the flow are covered in the last section of the Chapter.
• gate valves. Often a gate valve is rectangular in shape. In the fully opened position the gate
is completely withdrawn from the flow. The inside of the valve is almost continuous with
the pipework upstream and downstream of the valve except for the recesses where the gate
seals shut. As a result, the losses through the valve in the fully opened position are small.
Gate valves are operated by a spindle with a screw thread.
• butterfly valves. These may be operated by a 90° turn handle. The leaf of the valve remains
in the flow in the fully opened valve position and thus the losses are higher than for gate
valves.
• rotary or spherical valves
Generally, isolating valves are designed to pass full flow with minimal head loss when in the fully
opened position. If an isolating valve is operated in a partly closed position it will have poor operating
characteristics. As the valve is moved from a fully opened position toward the fully closed position the
pressure reduction (or flow control) that occurs is small. A reasonable level of pressure control only
occurs when the isolating valve is almost closed. Due to the small opening when the valve is almost
closed, the velocities through the valve may be extremely high. As a result, cavitation and consequent
valve damage may occur. Cavitation occurs in association with high velocity flows. Fast rotating vorti-
ces in the flow may result in pressures within the vortex that drop to the vapor pressure of the fluid caus-
ing vapor bubbles to form. These bubbles are swept downstream into regions of higher pressure where
the bubbles implode. The implosion pressures may be on the order of hundreds of thousands of kPa.
Many implosions near a metal or concrete surface may erode the surface and cause significant damage.
1. © Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, The University of Adelaide, Ade-
laide, Australia. Part of a book entitled Water Distribution Systems Engineering.
455
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
A further potential problem with isolating valves is the possible occurrence of water hammer. Generally
the shutting of a gate valve is designed to close as rapidly as possible. As mentioned above, the flow
reduction effect does not actually occur until the valve is almost closed. In addition, the relationship
between the open bore area and degree of turning of the closure wheel is generally nonlinear. A conse-
quence of the significant flow reduction that occurs during the last portion of the closure is that severe
water hammer pressures may occur. The magnitude of the water hammer clearly depends on the length
of pipes attached to the valve. The warning here is that the total period of the valve closure may be mis-
leading. Consider a valve closure from fully opened to fully closed of say 3 minutes. The majority of the
flow reduction may actually only occur in the last 5 to 10% of the closure. As a result, the effective clo-
sure time that will produce water hammer may be 9 to 18 seconds. In some systems, this is fast enough
to result in the “fast” closure of the valve when Joukowsky water hammer pressure rise. The Joukowsky
pressure rise is given by
H = – --a- V (19.1)
g
where
Example 19.1 Consider an isolating valve where the closure causes a “fast” valve closure. Compute the maximum
head rise in the pipe upstream of the valve as it shuts completely. Assume the initial velocity in the pipe and through
the valve is 1.5 m/s and that the wave speed for the ductile iron cement mortar lined (DICL) pipe is 1150 m/s.
Answer – Computation of the maximum head rise in the pipe upstream of the valve.
The change in velocity of pipe flow due to the closure of the valve is given by
a 1150
H = – --- V = – ------------ – 1.5 = 176 m
g 9.81
___________________________________________________________________________________
Each of these valves is considered in turn in the subsequent sections of this Chapter.
Pressure reducing valves are placed in pipelines to perform the following functions
• to keep the pressure at the downstream side of the PRV at a constant value whenever the
upstream pressure exceeds the preset value for the PRV (pressure setting)
456
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
• to avoid reverse flow when the pressure on the downstream side of the valve exceeds the
pressure on the upstream side of the valve
The PRV is a valuable and very useful device. They are cheaper than a Break Pressure Tank (BPT). A
PRV is represented within a computer hydraulic model of a water distribution system like a pipe, with an
upstream node and a downstream node.
• standard mode (or active position of PRV). Flow occurs from the upstream side of the
valve to the downstream side through the PRV. The pressure on the downstream side of the
valve is equal to the pressure setting for the PRV while the pressure on the upstream side of
the valve is greater than the PRV setting pressure. As the pressure increases or decreases on
the upstream side of the PRV the downstream pressure is held constant. The PRV valve
opens or closes to maintain the constant pressure on the downstream side of the valve. The
position of the valve element is adjusted until the head losses within the valve produce the
required outlet pressure. As a result, the head loss through the PRV is essentially variable.
The entire water distribution system section downstream of the PRV is protected from high
pressures.
• open mode (or inactive position). The pressure on the upstream side of the PRV is less than
the pressure setting for the PRV and as a result the PRV opens fully with the flow being
unrestricted. The pressure on the downstream side is equal to the pressure on the upstream
side (and both are less than PRV pressure setting). The PRV acts as a short pipe with a
larger diameter than the pipe and water flows unrestricted through the valve. Unlike a fully
opened check valve, a fully opened PRV in the inactive position has a low friction factor. A
small local head loss occurs.
• check valve mode (or closed position preventing back flow). The pressure on the down-
stream side of the PRV is greater than the pressure on the upstream side and as a result the
PRV shuts fully and acts as a check valve preventing reverse flow through the PRV. For this
occurrence the PRV could be eliminated from a hydraulic computer model of the water dis-
tribution system.
• a second situation may also lead to the PRV acting as a check valve. If the pressure on the
downstream side of the PRV increases to be above the set pressure then the PRV closes and
acts as a check valve. The pressure on the upstream side of the PRV may be greater than the
pressure on the downstream side of the valve. This situation is not possible if the water dis-
tribution system downstream of the PRV is completely isolated from the network upstream
of the PRV.
19.2.2 Elements of pressure reducing valves
There are a number of elements including
• a main valve
• a relay system
• fittings
The main valve is based on a simple globe valve, modified with a mobile central valve element, a relay
system allowing the specification of a set downstream pressure and fittings connecting the inlet, the out-
let and the chamber containing the mobile valve element.
457
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
A PRV in active mode may be modeled by eliminating the connection between the upstream and down-
stream sides of the valve (results in a zero coefficient in the matrix). The downstream side of the valve is
considered a supply point or reservoir with known pressure. A pseudo – reservoir or dummy reservoir
with a fixed head or HGL replaces the PRV and is assumed to supply water to the water distribution sys-
tem downstream of the PRV. The PRV is disconnected from its upstream junction and the PRV is
replaced by a reservoir. After the withdrawal rate from the PRV (or pseudo – reservoir) is computed, the
outflow is applied as a demand on the upper system at the node located at the upstream side of the PRV.
The outflow from the pseudo – reservoir must be equal to flow out of the system on the upstream side of
the PRV. Flow continuity is imposed over the two halves of the water distribution system where the PRV
originally was located. Thus a demand is placed at the node just upstream of the PRV. In summary, the
water distribution system is disconnected at the PRV and replaced by a pseudo – reservoir and a demand.
The active operation of PRVs result in subnetworks that may be analyzed separately starting with the
lower elevation subnetworks. The solution from the lower network is used to determine demands at var-
ious junctions of the higher network. In a loop equation formulation of the governing equation for flow
in a water distribution system, an extra loop is needed to be added to the formulation for every PRV in
the system. Every PRV that is replaced by a reservoir results in an extra path or pseudo – loop equation.
The head loss in the path is equal to the difference between the “dummy” reservoir head and the head of
a real reservoir in the water distribution system.
The computer simulation of a PRV in inactive mode treats the model of the PRV as transparent (i.e. the
valve has a large diameter and its length is very short). Alternatively inputting a large pressure setting
for the PRV has the same effect. Water flows unrestricted through the valve.
For a PRV acting as a check valve the simulation model is allowed to find its own pressure level at the
downstream side of the PRV where the cutoff of flow has occurred (zero flow occurs in the pipes con-
nected to the PRV for a check valve operation mode). If the PRV acts as a check valve (having been
assumed to be in an active mode), the flow is calculated as negative through the valve.
Use of the loop method formulation in terms of unknown flows has difficulty in handling the operation
of PRVs. Heads must be known to be able to accurately assess whether a PRV is operating in the
assumed mode of operation.
458
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
Example 19.2 Consider a pressure reducing valve in the middle of a pipe line (600 m long, 500 mm in diameter, and
an internal roughness height of = 0.25 mm ) between two reservoirs as shown in Figure 19.1 — the upstream res-
ervoir at 60.0 m and the downstream reservoir at 30.0 m. Set up the EPANET input file and run 4 cases. Assume the
–6
water is at 15°C — thus the density is 999.1 kg/m3 and the kinematic viscosity is 1.140 10 m2/s.
(i) Simulate the pipeline system without a PRV in the center of the pipe.
(ii) Simulate the PRV installed in the center of the pipe with a set pressure of 60 m.
(iii) Simulate the PRV with a set pressure of 40 m.
(iv) Simulate the PRV with a set pressure of 20 m.
Figure 19.1 Two pipe – PRV schematic and EPANET node and pipe numbers
Answer – (i) Simulation of the pipeline system when the PRV is removed.
First, the flow assuming that the PRV is removed from the system is calculated by the explicit (or non – computer meth-
ods) outlined in Chapter 4. Under this condition the HGL at the center of the 600 m pipeline would be 45 m (half way
between the upstream and downstream water levels).
Assume the flow is in the transitional flow region within the Moody diagram (Figure 4.2).
The flow for a pipe with flow in the transitional turbulent region from Equation 6.17 is
gh f D 5 –6
5 –3
1.7748 9.81 30 0.5 0.25 10 1.7748 1.141 10
Q = – 0.9646 ----------------- ln ------------ + --------------------- = – 0.9646 -------------------------------------ln ------------------------ + --------------------------------------------------
L 3.7 D 3 600 3.7 0.5 3
gh f D 9.81 30 0.5 -
------------------------------------
----------------- 600
L
–3 –6
where g = 9.81 m2/s, h f = 30 m, D = 0.5 m, = 0.25 mm = 0.25 10 m and = 1.141 10 m2/s.
2 2
D 0.5 2
A = ---------- = ------------------ = 0.1963 m
4 4
VD 5.385 0.5 6
Re = -------- = ----------------------------- = 2.36 10
1.141 10
–6
The Darcy – Weisbach friction factor from the Swamee and Jain equation (Equation 4.61) is
0.25 0.25
f = ---------------------------------------------------------- = ---------------------------------------------------------------------------------------- = 0.0170
- + -----------
5.74- 2 0.25 2
log 10 ----------- 5.74
log 10 --------------------- + -------------------------------- -
3.7 D 0.9
3.7 500 0.9
Re 2.36 10
6
459
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
2 2
--------- --------------------
L- V = 5.385 = 30.15 m
h f = f --- ------ 0.0170 600
D2g 0.5 2 9.81
This is OK and the difference from 30 m may be attributed to using the Swamee and Jain formula (Equation 4.61)
instead of the Colebrook-White formula.
2 2
V 5.385 2
o = f ------ = 0.0170 999.1 -------------------- = 61.6 N/m
8 8
The shear velocity is
–6
- = 1.141 10 –6 –3
--------- = ---- ----------------------------- = 4.60 10 m = 4.60 10 mm
o u* 0.248
-----
0.25
------------ = ------------------------ = 54.3
u* 4.60 10
–3
5 -----------
- 70
u*
Thus the assumption that was made earlier was valid. Now a simulation of EPANET with the PRV removed follows.
The EPANET input file for the case where the PRV has been removed is given below.
[TITLE]
PRV Example - Example 19.2 (i)
PRV removed temporarily to determine maximum
possible flow
[JUNCTIONS]
;--------------------
; Elev Demand
; ID m L/s
;--------------------
2 0 0
[TANKS]
;----------
; Elev
; ID m
;----------
1 60
4 30
[PIPES]
;--------------------------------------------------
; Start End Length Diam Roughness
;ID Node Node m mm Height mm
; (epsilon)
;--------------------------------------------------
1 1 2 300 500 0.25
2 2 4 300 500 0.25
[REPORT]
FILE Ch19PRV1.out
[OPTIONS]
460
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
;----------------------------------------------
MAP Ch19PRV.map ; Map coordinates file
UNITS SI
HEADLOSS D-W
VISCOSITY 1.141E-6
ACCURACY 1E-06
[END]
The EPANET co-ordinates file for the case where the PRV has been removed is
[COORDINATES]
;Nodal coordinates for Chapter 19 Example 19.2 - PRV example
1 0 0
2 300 0
4 600 0
[LABELS]
0 20 "Upstream reservoir" 1
500 20 "Downstream reservoir" 4
The EPANET output file for the case where the PRV has been removed is
Page 1
******************************************************************
* E P A N E T *
* Hydraulic and Water Quality *
* Analysis for Pipe Networks *
* Version 2.0 *
******************************************************************
Node Results:
-------------------------------------------------------------------
Elev. Demand Grade Pressure
Node m L/s m m
-------------------------------------------------------------------
2 0.00 0.00 45.00 45.00
1 60.00 -1054.78 60.00 0.00 Reservoir
4 30.00 1054.78 30.00 0.00 Reservoir
461
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
Link Results:
----------------------------------------------------------------
Start End Diameter Flow Velocity Headloss
Link Node Node mm L/s m/s /1000m
----------------------------------------------------------------
1 1 2 500.00 1054.78 5.38 50.00
2 2 4 500.00 1054.78 5.38 50.00
The HGL and flow for the situation above with the PRV removed are shown in Figure 19.2.
___________________________________________________________________________________
Answer - (ii) Simulation of the pipeline when the set pressure for the PRV is 60 m.
This is the level of the upstream reservoir. As it is impossible to achieve this pressure, the PRV opens up completely
and the results are identical to the case above where there is no PRV present.
[TITLE]
PRV Example - Example 19.2 (ii)
PRV set point pressure set at HGL 60.0 m
[JUNCTIONS]
;--------------------
; Elev Demand
; ID m L/s
;--------------------
2 0 0
3 0 0
[TANKS]
;----------
; Elev
; ID m
;----------
1 60
4 30
[PIPES]
;------------------------------------------------
; Start End Length Diam Rough.
;ID Node Node m mm Height
; (epsilon)
;------------------------------------------------
1 1 2 300 500 0.25
2 3 4 300 500 0.25
[VALVES]
;id node1 node2 diam type setting (losscoeff)
462
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
[REPORT]
FILE CH19PRV2.out
[OPTIONS]
;----------------------------------------------
MAP Ch19PRV2.map ; Map coordinates file
UNITS SI
HEADLOSS D-W
VISCOSITY 1.141E-06
[END]
The EPANET co-ordinates file for a PRV setting of 60 m (also the same file is used for the other PRV settings below)
is
[COORDINATES]
;Nodal coordinates for Chapter 19 Example 19.2(ii) - PRV example
1 0 0
2 280 0
3 320 0
4 600 0
[LABELS]
0 20 "Upstream reservoir" 1
600 20 "Downstream reservoir" 4
Page 1
******************************************************************
* E P A N E T *
* Hydraulic and Water Quality *
* Analysis for Pipe Networks *
* Version 2.0 *
******************************************************************
463
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
Node Results:
-------------------------------------------------------------------
Elev. Demand Grade Pressure
Node m L/s m m
-------------------------------------------------------------------
2 0.00 0.00 45.00 45.00
3 0.00 0.00 45.00 45.00
1 60.00 -1054.78 60.00 0.00 Reservoir
4 30.00 1054.78 30.00 0.00 Reservoir
Link Results:
----------------------------------------------------------------
Start End Diameter Flow Velocity Headloss
Link Node Node mm L/s m/s /1000m
----------------------------------------------------------------
1 1 2 500.00 1054.78 5.38 50.00
2 3 4 500.00 1054.78 5.38 50.00
3 2 3 500.00 1054.78 5.38 0.00 PRV
The HGL and flow for the situation above with a PRV setting of 60 m are shown in Figure 19.3.
___________________________________________________________________________________
Answer – (iii) Simulation of the pipeline system when the set pressure for the PRV is 40 m.
As a result, the PRV closes down until the pressure on the downstream side of the valve is 40 m. The flow between the
reservoirs is thus determined by the difference in the pressure on the downstream side of the PRV and the elevation of
the downstream reservoir (EL 30.0 m).
[TITLE]
PRV Example - Example 19.2 (iii)
PRV set point pressure set at HGL 40.0 m
[JUNCTIONS]
;--------------------
; Elev Demand
; ID m L/s
;--------------------
2 0 0
3 0 0
[TANKS]
;----------
; Elev
; ID m
;----------
1 60
4 30
464
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
[PIPES]
;------------------------------------------------
; Start End Length Diam Rough.
;ID Node Node m mm Height
; (epsilon)
;------------------------------------------------
1 1 2 300 500 0.25
2 3 4 300 500 0.25
[VALVES]
;id node1 node2 diam type setting (losscoeff)
3 2 3 500 PRV 40 0.0
[REPORT]
FILE CH19PRV2.out
[OPTIONS]
;----------------------------------------------
MAP Ch19PRV2.map ; Map coordinates file
UNITS SI
HEADLOSS D-W
VISCOSITY 1.141E-06
[END]
Page 1
******************************************************************
* E P A N E T *
* Hydraulic and Water Quality *
* Analysis for Pipe Networks *
* Version 2.0 *
******************************************************************
Node Results:
-------------------------------------------------------------------
Elev. Demand Grade Pressure
Node m L/s m m
-------------------------------------------------------------------
2 0.00 0.00 50.00 50.00
465
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
Link Results:
----------------------------------------------------------------
Start End Diameter Flow Velocity Headloss
Link Node Node mm L/s m/s /1000m
----------------------------------------------------------------
1 1 2 500.00 859.81 4.38 33.33
2 3 4 500.00 859.80 4.38 33.33
3 2 3 500.00 859.81 4.38 10.00 PRV
The HGL and flow for a PRV setting of 40 m are shown in Figure 19.4.
Figure 19.4 Flow in a one pipe system containing a PRV with a pressure head setting of 40 m
___________________________________________________________________________________
Answer – (iv) Simulation of the pipeline system when the set pressure for the PRV is 20 m.
This causes the PRV to close completely. There is no flow between the reservoirs.
[TITLE]
PRV Example - Example 19.2 (iv)
PRV set point pressure set at HGL 20.0 m
[JUNCTIONS]
;--------------------
; Elev Demand
; ID m L/s
;--------------------
2 0 0
3 0 0
[TANKS]
;----------
; Elev
; ID m
;----------
1 60
4 30
[PIPES]
;------------------------------------------------
; Start End Length Diam Rough.
;ID Node Node m mm Height
; (epsilon)
;------------------------------------------------
1 1 2 300 500 0.25
2 3 4 300 500 0.25
466
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
[VALVES]
;id node1 node2 diam type setting (losscoeff)
3 2 3 500 PRV 20 0.0
[REPORT]
FILE CH19PRV4.out
[OPTIONS]
;----------------------------------------------
MAP Ch19PRV2.map ; Map coordinates file
UNITS SI
HEADLOSS D-W
VISCOSITY 1.141E-06
[END]
Page 1
******************************************************************
* E P A N E T *
* Hydraulic and Water Quality *
* Analysis for Pipe Networks *
* Version 2.0 *
******************************************************************
Node Results:
-------------------------------------------------------------------
Elev. Demand Grade Pressure
Node m L/s m m
-------------------------------------------------------------------
2 0.00 0.00 60.00 60.00
3 0.00 0.00 30.00 30.00
1 60.00 -0.00 60.00 0.00 Reservoir
4 30.00 0.00 30.00 0.00 Reservoir
Link Results:
----------------------------------------------------------------
467
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
The HGL and flow for the situation of a PRV setting of 20 m are shown in Figure 19.5.
___________________________________________________________________________________
PRVs protect sections of water distribution system being damaged by excessively high pressures. Trunk
mains often have a considerably higher pressure than distribution mains. PRVs are often used to reduce
the pressure for water flowing in distribution mains or in secondary or tertiary mains. Installation of
PRVs may be costly although in some instances there may be no alternative method for reducing the
pressure.
PRVs placed in a system cause the pressure in the portion of the water distribution system downstream
of the PRV to be independent of the remainder of the water distribution system upstream of the PRV.
• the pipe class (i.e. pipe wall thickness) may be reduced for pipes downstream of the PRV
thereby leading to a cost saving
• wear to plumbing and garden fixtures may be reduced by reducing the working pressure by
using a PRV
One possible disadvantage of a PRV is the tendency of blockages occurring especially for usage in
untreated water supply systems.
468
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
Example 19.3 Consider a flow control valve in the middle of a pipeline 600 m long, 500 mm in diameter and with a
roughness height of = 0.25 mm between two reservoirs — the upstream reservoir at 60.0 m and the downstream
reservoir at 30.0 m (identical to the pipe system in Example 19.2). Set up the EPANET input file and run 3 cases.
–6
The water is at 15°C thus the density is 999.1 kg/m3 and the kinematic viscosity is 1.141 10 m2/s.
(i) Simulate the FCV set point such that the valve is fully opened — determine the maximum possible controllable
flow. Use a set flow for the FCV of 1500 L/s
(ii) Simulate the FCV set point at 600 L/s.
Figure 19.6 One pipe system containing an FCV (EPANET node and pipe numbers are also shown)
Answer – (i) The set flow for the FCV is 1500 L/s.
First, the flow assuming that the FCV is removed from the system is 1055 L/s — the same as for Example 19.2. Under
this condition the HGL at the center of the 600 m pipeline would be 45 m. It is therefore impossible to achieve a flow
of 1500 L/s, thus the FCV opens up completely and the results are identical to the case above where there is no FCV
present.
The EPANET input file for a FCV setting of 1500 L/s is given below.
[TITLE]
FCV Example - Example 19.3 (i)
FCV set point flow set at 1500 L/s
[JUNCTIONS]
;--------------------
; Elev Demand
; ID m L/s
;--------------------
2 0 0
3 0 0
[TANKS]
;----------
; Elev
; ID m
;----------
1 60
4 30
[PIPES]
;--------------------------------------------------
469
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
[VALVES]
;--------------------------------------------------
;id node1 node2 diam type setting (losscoeff)
; mm L/s K-open
;--------------------------------------------------
3 2 3 500 FCV 1500 0.0
[REPORT]
FILE CH19FCV1.out
STATUS YES
[OPTIONS]
;----------------------------------------------
MAP Ch19FCV2.map ; Map coordinates file
UNITS SI
HEADLOSS D-W
VISCOSITY 1.141E-06
[END]
Page 1
******************************************************************
* E P A N E T *
* Hydraulic and Water Quality *
* Analysis for Pipe Networks *
* Version 2.0 *
******************************************************************
Node Results:
-------------------------------------------------------------------
Elev. Demand Grade Pressure
Node m L/s m m
-------------------------------------------------------------------
470
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
Link Results:
----------------------------------------------------------------
Start End Diameter Flow Velocity Headloss
Link Node Node mm L/s m/s /1000m
----------------------------------------------------------------
1 1 2 500.00 1054.77 5.38 50.00
2 3 4 500.00 1054.77 5.38 50.00
3 2 3 500.00 1054.77 5.38 0.00 FCV
Warning error generated during run (in another Window when EPANET is run)
The HGL and flow for a FCV setting of 1500 L/s are shown in Figure 19.7.
The maximum controllable flow by the pressure is 1055 L/s. If the valve setting is above this value, the valve is fully
opened and the condition as shown in Figure 19.7 results.
___________________________________________________________________________________
Answer – (ii) The set flow for the FCV is 600 L/s.
This causes the FCV to close and throttle the flow until it is equal to 600 L/s.
The EPANET input file for a FCV setting of 600 L/s is given below.
[TITLE]
FCV Example - Example 19.3 (ii)
FCV set point flow set at 600 L/s
[JUNCTIONS]
;--------------------
; Elev Demand
; ID m L/s
;--------------------
2 0 0
3 0 0
[TANKS]
;----------
; Elev
; ID m
;----------
1 60
4 30
471
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
[PIPES]
;--------------------------------------------------
; Start End Length Diam Rough.
;ID Node Node m mm Height mm
; (epsilon)
;--------------------------------------------------
1 1 2 300 500 0.25
2 3 4 300 500 0.25
[VALVES]
;--------------------------------------------------
;id node1 node2 diam type setting (losscoeff)
; mm L/s K-open
;--------------------------------------------------
3 2 3 500 FCV 600 0.0
[REPORT]
FILE CH19FCV2.out
STATUS YES
[OPTIONS]
;----------------------------------------------
MAP Ch19FCV2.map ; Map coordinates file
UNITS SI
HEADLOSS D-W
VISCOSITY 1.141E-06
[END]
Page 1
******************************************************************
* E P A N E T *
* Hydraulic and Water Quality *
* Analysis for Pipe Networks *
* Version 2.0 *
******************************************************************
472
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
Node Results:
-------------------------------------------------------------------
Elev. Demand Grade Pressure
Node m L/s m m
-------------------------------------------------------------------
2 0.00 0.00 55.09 55.09
3 0.00 0.00 34.91 34.91
1 60.00 -600.00 60.00 0.00 Reservoir
4 30.00 600.00 30.00 0.00 Reservoir
Link Results:
----------------------------------------------------------------
Start End Diameter Flow Velocity Headloss
Link Node Node mm L/s m/s /1000m
----------------------------------------------------------------
1 1 2 500.00 600.00 3.06 16.35
2 3 4 500.00 600.00 3.06 16.35
3 2 3 500.00 600.00 3.06 20.19 FCV
The HGL and flow for a FCV setting of 600 L/s are shown in Figure 19.8.
___________________________________________________________________________________
• needle valves. This type of valve is expensive. A needle valve is often used in water supply
headworks systems to release water from a pipe to a river.
• diaphragm type valves
• slotted radial flow sleeve valves
• plunger type control valves
• piston type valves
19.4.1 Cavitation in control valves
A measure of the potential for cavitation in valves is provided by the cavitation index. The cavitation
index is defined as;
473
Chapter 19 - File: Chap19-PRVs.fm July 6, 2022 Version 6
* *
pd – pv
= -----------------------
- (19.2)
* *
pu – pd
where
*
• p d = pressure in absolute units at the downstream side of the valve (N/m2 or psi)
*
• p u = pressure in absolute units at the upstream side of the valve (N/m2 or psi)
*
• p v = vapor pressure of the liquid in absolute units (N/m2 or psi)
* *
In Equation 19.2 the numerator of p d – p v represents how close the downstream pressure is to vapor
pressure. The closer this term is to zero the more potential there is for cavitation to occur. The denomi-
* *
nator of p u – p d represents the difference between the pressure on the upstream side of the valve and
the pressure on the downstream side of the valve. The larger the pressure difference (that in turn reflects
a higher head loss through the valve — often due to the valve being almost totally closed) the more likely
cavitation will occur.
In general terms, the value of sigma determined from Equation 19.2 and the possibility for cavitation are
given in Table 19.1.
0.1
1.0
19.5 References
Jeppson, R. W. (1976). Analysis of flow in pipe networks, Ann Arbor Science, Ann Arbor, Michigan.
Stephenson, D. (1984). Pipeflow analysis. Developments in Water Science, No., Elsevier, Amsterdam.
474
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
20.1 Introduction
The cost of purchase, supply and installation of pipes, pumps, tanks and valves in water distribution sys-
tems to provide water to consumers is quite significant, often on the order of millions of dollars (Simp-
son et al. 1995). So far in this book, when designing a water distribution system, the designer has had to
choose the sizes of components or elements including pipe diameters, locations of and sizes and settings
of tanks, pumps and valves in the water distribution system. This is usually achieved by using computer
simulation models to test the performance of a trial water distribution system design to ensure it is satis-
factory. In turn, trial – and – error adjustment of the design is made based on the interpretation of the
results of computer simulation runs for the various water demand loading cases under consideration as
described in Chapter 17. Low pressures at nodes in the water distribution system are one indication that
a trial design is unsatisfactory. The designer may attempt to adjust the design to reduce the cost of the
water distribution system while at the same time achieving satisfactory pressures across the entire net-
work. This trial – and – error process is laborious and time – consuming with the outcome often being a
suboptimal design. What is needed is some way of automating the design process so that many designs
are considered both quickly and efficiently. Consideration of the optimization of the design and opera-
tion of water distribution systems is a logical next step, and is considered in detail in this Chapter.
Considerable research has been carried out in the past developing approaches for optimizing water dis-
tribution system design (Alperovits and Shamir 1977, Quindry et al. 1981, El – Bahwry and Smith 1985,
Goulter and Morgan 1985, Su et al. 1987, Simpson et al. 1994, Dandy et al. 1996). A large literature
exists. Lansey and Mays (1989) provided a comprehensive review of the published literature up to 1988.
Other reviews have been carried out since that time.
The main focus of this Chapter is the application of genetic algorithm (GA) optimization to the design
and operation of piped water distribution systems. A genetic algorithm is a member of a class of search
algorithms based on artificial evolution. GAs are a relatively new optimization technique pioneered by
Holland (1975) at the University of Michigan. Goldberg2 in 1989 published a book that was a turning
point in the development of the genetic algorithm (GA) technique and its application to engineering.
There is scant theoretical basis for genetic algorithms except from the schema theorem (Holland 1975),
however, there have been many studies where GA optimization has been shown to be very successful in
a wide range of optimization problems.
Genetic algorithm search methods have been applied to a number of other applications including
475
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
Other evolutionary type techniques have included evolutionary strategy (Rechenberg 1973) and simu-
lated annealing (Bochachevsky et al. 1986).
The first application of evolutionary optimization techniques to water distribution system optimization
came from Cembrowicz and Krauter (1977). They used graph theory, linear programming and a search
procedure based on concepts from “biological evolution” (the evolutionary strategy) to optimize water
distribution systems. The evolutionary strategy approach was developed by Rechenberg (1973) in Ger-
many in parallel but independent of the development of genetic algorithms by Holland (1975). Cembro-
wicz and Krauter (1977) considered tree configurations of pipes (a branched network with no loops such
that every node is connected) that corresponded to a local cost minimum. The search procedure based on
biological evolution was composed of five major operators similar in nature to genetic algorithm opera-
tors. The evolutionary strategy technique was used to generate the tree networks while linear program-
ming was used to optimize the generated tree networks.
The research into the application of genetic algorithm optimization to the optimal design of water distri-
bution systems was pioneered in the early 1990s at the University of Adelaide, South Australia. First
results were presented in Murphy and Simpson (1992). The first application of GA optimization opti-
mized the sizing of the diameter of pipes in a water distribution system, as well as deciding on whether
pipes should be either cleaned or duplicated (with a new pipe parallel to the existing pipe — although not
necessarily the same diameter as the existing pipe). Since 1992, a sophisticated approach to the applica-
tion of genetic algorithm optimization has been developed including the ability to size and determine the
optimal location of pipes, pumps, tanks and pressure regulating valves, as well as for determining the
optimal operation of pumping. The GA technique finds low cost solutions (often near the global opti-
mum) in relatively few evaluations compared to the size of the search space. The efficiency of the GA
indicates a robustness of the search method that underlies the GA approach and the flexibility of the for-
mulation itself (Goldberg 1989). GAs are very well suited to complicated water distribution system opti-
mization (Simpson et al. 1995). Millions of dollars of savings of both capital and operating costs have
been achieved by the practical application of GA techniques to the optimal design and operation of
water distribution systems. The GA technique has the potential to be extremely useful in engineering
practice in the optimization of the design and operation of water distribution systems.
A primary objective of the design of water distribution systems is to determine the minimum cost sys-
tem that provides water for all the desired water demand conditions. The sum of the capital cost and the
operating cost (usually the pump power costs — expressed as an annual cost and taken back to a present
value cost) is a commonly selected objective that is minimized in the optimization procedure. Specified
design criteria (such as minimum allowable pressure at supply nodes, maximum allowable pressures and
maximum allowable velocities) usually need to be satisfied by the optimized design. An essential ele-
ment of the GA procedure is the running of a simulation model to determine whether a water distribu-
tion system meets the design constraints. As part of the computation of the cost of each water
distribution system in the genetic algorithm optimization process the unit costs of pipe (for different
diameters) are needed — including purchase and installation costs — as well as costs of all other new
components that could possibly be installed in the water distribution system.
Techniques for the optimization of water distribution systems are not new. In fact, many papers have
appeared on the optimization of water distribution systems in the research literature since the mid –
1960s. The main techniques that have been used in the past include linear programming, nonlinear pro-
gramming, pruned enumeration and dynamic programming. However, despite the availability of a num-
ber of papers, there has been virtually no transfer from the world of academia to professional practice of
the techniques developed in these technical publications.
This Chapter starts out by giving an overview of the genetic algorithm process. This is followed by a
review of the main elements of the common trial – and – error method of design traditionally used for the
design of water distribution systems. A discussion of combinatorially large problems is presented as an
introduction to optimization of water distribution systems. The genetic algorithm (GA) technique for the
optimization of water distribution system design is then described in detail. Some examples of applica-
tions of the GA technique to the optimization of water distribution systems are then given. The role of a
water distribution designer will change as a result of the use of genetic algorithm optimization, in com-
476
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
parison to the use of trial – and – error combined with experience and judgment design methods. A sec-
tion is devoted to discussing these issues. The Chapter ends by comparing the GA technique to other
traditional optimization techniques and exploring some of the reasons why traditional optimization tech-
niques have not been readily adopted by water distribution system design practitioners in the past.
In the case of water distribution system optimization, a population of solutions of water distribution sys-
tem designs is dealt with simultaneously in the GA technique. The individual strings are made up of
numbers or bits (zeroes and ones) that describe the problem to be optimized. These strings may be
thought of as genes within chromosomes when considering the analogy to natural population genetics.
The strings in a GA population represent complete design alternatives of possible combinations of ele-
ments in the water distribution system network that are being selected in the optimization process. The
population of designs is dealt with simultaneously in the GA process. The strings are manipulated by the
genetic algorithm to produce low cost water distribution system network designs. The aim of the genetic
algorithm optimization procedure is to identify a near – optimal combination (or combinations) of
design decision variable values such that cost is minimized and the design constraints are satisfied.
Particular decision variables are represented within the string by a series of substrings. For example, the
first substring may represent a pipe in the water distribution system that has to be sized. The second sub-
string may represent the pressure setting of a valve that needs to be determined, and so on along the
string. Choice or look – up tables for each decision variable represented by each substring need to be
provided. The corresponding cost data and design data must also be provided for each of the elements in
the choice tables. An example of a choice table would be a series of different pipe diameters, costs and
roughness height values that are possible selections for a particular pipe in the system.
The genetic algorithm process commences by randomly generating a population of strings (say 200)
where each string represents a different water distribution system design. These designs vary in their
effectiveness. A population of 200 usually represents only an infinitesimal fraction of the total search
space of all possible combinations. Thus it is very unlikely that even one of the randomly generated
solutions will be close to the global optimal solution. Genetic algorithm operators are applied to the ini-
tial population to produce the next generation of design solutions. To commence the process of applying
the genetic operators, it is necessary to compute a fitness of each of the strings in the initial population.
The cost of implementation of each design is computed. Each design may then be hydraulically evalu-
ated in a computer simulation model to assess whether it meets the specified design criteria. The overall
fitness of a coded string representing a water distribution system network design is determined by both
pipe costs and the hydraulic performance of the network design (Dandy et al. 1996). A hydraulic analy-
sis is required for all new strings during the GA run and this may be computationally intensive.
The beauty of the genetic algorithm optimization procedure is that it only requires the strings (the series
of numbers that represent a physical configuration of the water distribution system being optimized) and
a fitness measure for each string. No other information such as gradients is required. This situation is in
contrast to the requirements of other more traditional optimization techniques including linear program-
ming, nonlinear programming and dynamic programming.
Formulation of the fitness function for a string depends on the problem being optimized. For the optimi-
zation of water distribution systems the fitness often has two parts (Simpson et al. 1994). The first part is
an actual or physical cost (real or estimated) associated with the particular combination of design vari-
ables that the string represents including pipes, pumps, storage tanks and valves. Both capital costs and
operating costs may be included. The second part is a cost that is assigned if the particular combination
of elements that are represented by the string fail to meet all of the specified design criteria for the
design situation. A computer simulation model analysis of the water distribution system design for the
477
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
water demand loading case (or cases) enables the determination of whether the particular design meets
the design criteria (for example, the minimum allowable pressures). The failure to meet design con-
straints may be designated as a penalty cost (or costs). The total cost is then taken to be the sum of the
physical cost plus the penalty cost. The fitness of the string is usually taken as a function of the cost, for
example, often the inverse of the total cost is used. The genetic algorithm is often formulated to mini-
mize the cost of the system or to maximize the fitness. Once all the fitness values have been determined
for each of the strings in the population of water distribution system designs the next step is to apply
genetic operators to create, first, a mating pool and then the next generation of solutions. The most com-
mon genetic operators are selection, crossover and mutation.
The genetic algorithm optimization process is driven by two main features. In the first, a selection pro-
cess occurs (driven by the “survival of the fittest”) to create a mating pool for the next generation. The
new mating pool has a higher average fitness compared to the previous generation. The second feature
involves genetic operators including crossover and mutation. Crossover interchanges pieces of strings
between two randomly chosen strings from the mating pool formed by the selection process. The inter-
mixing of information between strings is critical to the process. Mutation is an operator that enables
diversity to be reinjected into the population by the alteration of one piece of the string from its existing
value to another value. The GA process proceeds by the repeated application of the genetic operators of
selection, crossover and mutation to produce many generations of populations of solutions. The best
solutions must be remembered along the way (for example — the 20 lowest cost solutions are stored cor-
responding to the strings with maximum fitness). It is necessary to remember the best solutions, as it is
possible that the crossover and mutation may eliminate top solutions during the process.
Hydraulic simulation models numerically solve a set of nonlinear equations governing steady – state
flow conditions in the water distribution system as described in Chapter 9. The fastest solver appears to
be EPANET. The source code for EPANET is available and has been incorporated into many commer-
cial solvers. Simulation is a very important part of the genetic algorithm procedure as is discussed in fol-
lowing sections.
The standard method of design of water distribution systems currently used by the majority of engineers
in practice for the design is by a trial – and – error approach guided by engineering experience and judg-
ment. A computer hydraulic simulation model of the proposed water distribution system is developed.
Usually pipe routes and hence lengths, node elevations and water demands at nodes are given, although
478
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
there may be some alternative possible pipeline routes that need to be chosen (such as beneath tall build-
ings). All the locations and sizes of components in the computer model must be selected by the designer.
These components include sizes of pipe diameters and the sizes and locations of pumps, tanks and
valves. Valves also require settings to be specified such as pressure settings for pressure reducing valves
and pressure sustaining valves and the set flows for flow control valves. Tanks require a volume and a
normal operating level range to be specified. The designer usually selects sizes of pipes based on knowl-
edge of water demands in the system as well as engineering judgment. Once a trial water distribution
system has been developed, the computer hydraulic simulation model is run for all of the water demand
load cases of interest. These may include peak hour, peak day over an extended period simulation (EPS)
and fire loading cases. The output results for each of the computer simulation runs that are conducted
may then be analyzed. For example, in terms of specified design criteria including pressures at nodes —
that is, as to whether minimum allowable pressures are satisfied at all water demand supply nodes and
also whether maximum allowable pressures are not exceeded at water demand supply nodes. In addi-
tion, pipe velocities and head loss per km or 1000 ft are sometimes considered. Finally, an extended
period simulation (EPS) run is needed to ensure that tank or reservoir levels do not drop below mini-
mum allowable levels or even worse, run dry on a peak water demand day or a succession of peak water
demand days. The cost of the water distribution system is also computed from the unit cost information
from the database of costs.
An assessment is made of the acceptability of the results for a particular design of a water distribution
system relative to both the adopted design criteria and the objective of minimizing the cost of the design.
Once this evaluation is made, then changes to sizes of elements in the water distribution system are
made (for example, pipe sizes are increased or decreased) to either attempt to meet the design criteria
and/or reduce the cost of the design. Various combinations of pipe sizes, tanks, valves and pumps are
tried by the designer. The computer simulation of the revised water distribution system for all of the
water demand loading cases is repeated. The designer then continues the process of adjusting sizes of
components of elements in the water distribution system, computation of cost, hydraulic simulation for
all water demand loading cases, and assessment as to whether the design criteria are met over and over
in an attempt to improve the design of the water distribution system to achieve a low cost solution.
Clearly only a limited number of water distribution systems may be analyzed (Dandy et al. 1993).
Therefore the designer usually searches for a satisfactory rather than necessarily an optimum solution.
The inherent limitations using a computer simulation modeling approach for design of water distribution
systems is the total dependence on the designer to manually identify and input trial solutions to be tested
by the model. This places tremendous responsibility on the designer who is expected (often with limited
budget and time) to find hydraulically viable and cost effective solutions.
Where pressures at nodes in the water distribution system are lower than the minimum allowable pres-
sure, pipe sizes may be sometimes increased to improve these pressures. However, care must be taken
not in assuming that this is always the case. In looped systems it is sometimes possible to reduce the
sizes of certain pipes and as a consequence, increase the pressure to adequate levels at deficient nodes. A
redistribution of flow and hence pressure may occur when pipes are reduced in size in the looped system
depending on where the low pressure areas are. It is not always the case that reducing the size of pipes
makes the pressures lower.
479
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
The New York Tunnels network has been used as a case study by many researchers (Schaake and Lai
1969, Quindry et al. 1981, Gessler 1982, Bhave 1985, Morgan and Goulter 1985, Dandy et al. 1996,
Savic and Walters19 97 and Lippai et al. 1999).
The layout shown in Figure 20.1 indicates a series of tunnels that were in place in the late 1960s at the
time the optimization of the water distribution system was first considered. Future water demands had
been estimated for the water distribution system and minimum allowable HGL levels were specified at
all supply nodes. The objective in the design was to determine the least cost way of adding tunnels in
parallel to the existing tunnels to achieve the projected flows and meet the minimum allowable pressure
design criteria. The available pipe sizes and corresponding costs (in 1969 dollars) as listed in Table 20.2
have been discretized from the fitted cost function for the new paralleled pipes as given by
1.24
C f = 1.1D (20.1)
where
480
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
Table 20.1 shows the change in minimum cost configuration from 1969 to 1996 by researchers who
have used various optimization techniques to attempt to find the minimum cost expansion. The cost of
the water distribution system expansion that satisfies the minimum allowable pressure constraints has
been reduced to $38.8 million that is about one – half of the original cost.
Figure 20.1 The layout of the New York City Tunnels network
Table 20.1 Minimum cost solutions for the New York City Tunnels expansion determined by
various optimization techniques
Researchers Year Cost ($million – Optimization
1969 dollars) technique
Schaake and Lai 1969 78.1 Linear programming
(LP)
Quindry, Brill and Liebman 1981 63.6 Generalized reduced
gradient (GRG) —
nonlinear program-
ming (NLP)
Gessler 1982 41.8 Partial enumeration
Bhave 1985 40.2
Morgan and Goulter 1985 39.2 Iterative LP with heu-
ristics
Murphy, Simpson and 1996 38.8 Genetic algorithms
Dandy
481
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
The solution of Lai and Schaake (1969) at a cost of $78.1 million specified that 18 of 21 of the possible
pipes be duplicated. Proposed pipe diameters based on continuous rather than discrete pipe sizes, ranged
from 19.52 in. to 133.07 in. Quindry et al. (1981) used a nonlinear programming approach to identify a
solution with 10 pipes that lowered the cost to $63.6 million. Gessler (1982) presented a partial enumer-
ation technique (where the range of possible choices is severely pruned and pipes are grouped), all pos-
sible combinations were then enumerated and the lowest cost – feasible solution was selected. The
outcome was a solution with the duplication of just 7 pipes at a cost of $41.8 million. Morgan and
Goulter (1985) used linear programming combined with heuristics to develop a six pipe solution at
$39.2 million.
The genetic algorithm technique was used by Murphy et al. (1993) to identify a series of alternative
designs with costs less than earlier optimized solutions. Three designs were found with costs of $38.80,
$39.06 and $39.17 million that were less expensive than the Morgan and Goulter (1985) solution of
$39.20 million. Each solution calls for six pipes in parallel. Choices were made from 15 allowable sizes
(ranging from 36 in. to 204 in. in diameter in increments of 12 in.). Another interesting solution was
identified in the GA optimization analysis — a solution with a cost of $33.62 million that only required
five parallel pipes that was marginally infeasible with pressure head deficits of about 1.0 ft at three
nodes in the water distribution system. The sensitivity of the cost of upgrading the New Tunnels system
to the possibility of slightly relaxing the design criteria is a further outcome of the GA optimization pro-
cess.
Table 20.2 Pipe data for New York City tunnels network
Pipe Start End Length Diameter Pipe Start End Length Diameter
no. node node of existing no. node node of existing
Pipe pipe
(ft) (in.) (ft) (in.)
[1] 1 2 11,600 180 [12] [13] 12 12,200 204
[2] 2 3 19,800 180 [13 [14] 13 24,100 204
[3] 3 4 7,300 180 [14] [15] 14 21,100 204
[4] 4 5 8,300 180 [15] [1] 15 15,500 204
[5] 5 6 8,600 180 [16] [10] 17 26,400 72
[6] 6 7 19,100 180 [17] [12] 18 31,200 72
[7] 7 8 9,600 132 [18] [18] 19 24,000 60
[8] 8 9 12,500 132 [19] [11] 20 14,400 60
[9] 9 10 9,600 180 [20] [20] 16 38,400 60
[10] 11 9 11,200 204 [21] [9] 16 26,400 72
[11] 12 11 14,500 204
482
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
Table 20.4 Available new pipe sizes and costs for New York City Tunnel expansion (as of 1969)
Diameter Pipe cost Diameter Pipe cost Diameter Pipe cost
(in.) ($/ft) (in.) ($/ft) (in.) ($/ft)
36 93.5 96 316.0 156 577.0
48 134.0 108 365.0 168 632.0
60 176.0 120 417.0 180 689.0
72 221.0 132 469.0 192 746.0
84 267.0 144 522.0 204 804.0
21 84 25
16 = 2 = 1.934 10
Even if a computer was able to evaluate 1 million different design combinations per second, complete
enumeration of every possible alternative for the New York City tunnels network would take 613 billion
years. Thus complete enumeration of the entire search space to find the global optimum solution is usu-
ally infeasible even for small design networks. As a result, effective optimization techniques are
required to be able to quickly search for low – cost designs. Most water distribution systems networks
involve search space sizes that are much bigger than the example given for the New York City tunnels
network outlined above in Section 20.5.2.
483
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
A genetic algorithm (GA) is a powerful population orientated search algorithm based upon mechanisms
of natural selection and genetics (Holland 1975, Goldberg 1989). Application of genetic algorithms to
the design of water distribution systems was pioneered at the University of Adelaide, South Australia in
the early 1990s (Murphy and Simpson 1992). “Survival of fittest” relentlessly drives the genetic algo-
rithm towards improved designs of water distribution networks. The genetic algorithm selects, combines
and manipulates possible solutions in a search for the lowest cost water distribution system. The opera-
tors within a genetic algorithm search are analogous to survival in nature, reproduction and the combina-
tion of chromosomes in the search of the best adaptation in natural systems. Genetic algorithms exploit
coding similarities in a very general way (Goldberg 1989). GAs are not constrained by requirements
such as continuity, derivative existence, unimodality, linearity, etc. that are often necessary in other opti-
mization techniques. A genetic algorithm starts with a population of strings representing water distribu-
tion system designs and thereafter generates successive populations of strings. The GA relies on the
diversity of the initial population to move generation by generation in a parallel fashion towards
improved solutions.
One of the advantages of a genetic algorithm is the robustness of the technique. The GA exploits simi-
larities in codings and thus can deal with the optimization of a broader class of functions than can many
other optimization procedures.
In GA optimization of water distribution systems there is a very clean separation of the optimization
process and the simulation process for modeling of the behavior of various water distribution system
designs. All the GA sees is a population of strings (containing a series of numbers or bits) and their asso-
ciated fitnesses. These numbers in the strings represent values that are choices or options for decision
variables that are to be selected as outcome of the optimization procedure. In the case of optimization of
water distribution systems, the genetic algorithm passes to the simulator the sizes of components repre-
sented by the string of numbers (pipe diameters, pump sizes and locations, valve locations and settings,
tank volumes and normal operating levels). The GA is linked to the hydraulic simulation model of the
particular water distribution system it is trying to optimize. The hydraulic simulation model is then run
for each of the water demand loading cases (peak hour, peak day – extended period and fire demand
loadings). The performance of the water distribution system is then assessed by evaluating whether the
specified design criteria have been satisfied. The corresponding fitness of each particular string is deter-
mined for all members of the population and then passed back to the genetic algorithm. The genetic
operators are then applied to the population of strings driven by selection of the fittest strings and an
intermixing of the strings by crossover and mutation. Only the strings and fitnesses are used by the
genetic algorithm to create a new improved population of strings or design solutions. The GA does not
know whether it is optimizing a water distribution system design, a structure, a gas turbine design or a
financial system.
484
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
strings of higher fitness to go to the mating pool for the next generation), crossover (to allow mixing or
mating of strings) and mutation (to reinject diversity into the population) are used over and over on the
population of water designs to continuously improve the solutions. The GA optimization process is a
structured search technique that very efficiently and quickly narrows in on low cost designs.
For a given possible layout of pipes and a set of specified water demand loadings patterns at nodes (for
example, peak hour, peak day and fire loadings)
• find the combination of pipe sizes (for new pipes, replacement pipes and pipes in parallel),
pump locations and sizes, tank locations and sizes and valve locations and settings (pres-
sure reducing valves, pressure sustaining valves and flow control valves)
• that minimizes the present value of material, construction and operating costs
• subject to specified constraints
Examples of constraints include
• minimum allowable and maximum allowable pressure constraints must be satisfied at cer-
tain nodes in the water distribution system
• maximum allowable velocity constraints must not be exceeded in pipes in the water distri-
bution system
• minimum diameter requirements may be specified for certain pipes in the water distribution
system
• only commercially available pipe diameter sizes, pump and valve sizes are to be used
• tanks of increments of certain volumes may be specified as choices for the water distribu-
tion system
Other design criteria that may be included in the optimization process include reliability of the system
for outage of certain pipelines. It may be acceptable to provide a proportion of the peak flow at a
reduced minimum allowable pressure when particular pipes are unable to be used. Looped water distri-
bution systems offer increased reliability for multiple loading cases especially in the case of off – farm
piped irrigation delivery systems (Dandy et al. 1996).
485
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
20.7.3 Steps in using genetic algorithms for water distribution system optimi-
zation
Goldberg (1989) referred to the application of the three operators of reproduction, crossover and muta-
tion as a standard genetic algorithm. The following steps summarize an implementation of a genetic
algorithm for optimizing the design of a water distribution network system (Simpson, Murphy and
Dandy 1993, Simpson, Dandy and Murphy 1994)
1. Develop a coding scheme to represent the decision variables to be optimized and the corre-
sponding lookup tables to represent the choices for the design variables (Section 20.8), e.g.
pipe diameters of new pipes, pipe diameters of duplicate pipes, locations of pumps, tanks
and pressure regulating valves, sizes of pumps, normal operating levels of reservoirs, pres-
sure regulating valve settings.
2. Choose the population size (N) — this may vary between 50 and 1000 (see Section 20.9).
3. Choose the form of the genetic algorithm operators (Section 20.12), e.g. population size,
selection scheme — tournament selection or biased Roulette wheel, crossover type — one –
point, two – point or uniform, and mutation type — bit – wise or creeping.
4. Choose values for the genetic algorithm parameters (e.g. crossover probability, mutation
probability).
5. Select a seed for the random number generator.
6. Randomly generate the initial population of water distribution network designs (see
Section 20.10). Each of the N strings represents a possible combination of components and
thus represents a different configuration of water distribution system network design.
7. Decode each string in the population by dividing into substrings and then determine the
corresponding decision variable choices (using the lookup tables).
8. Compute the cost of each of the water distribution system design in the population.
9. Analyze each water distribution system design with a hydraulic solver for each water
demand loading case to compute pipe flows, pressures and pressure deficits (if any).
10. Compute a penalty cost for each water distribution system where design constraints are vio-
lated.
11. Compute the fitness of each string based on the costs in steps 8 and 10.
12. Generate a new population of designs in the next generation using the genetic algorithm
operators — selection, crossover and mutation (see Section 20.13, Section 20.14 and
Section 20.15).
13. Record the lowest cost solutions from the generation.
14. Repeat steps 7 to 12 to produce successive generations of populations of designs — stop if
all members of the population are the same.
15. Select the lowest cost design and any similarly low cost design of different configuration.
16. Check if any of the decision variables have been selected at the upper bound of the possible
choices in the lookup table. If so, expand the range of choices and rerun the genetic algo-
rithm.
17. Repeat steps 4 to 15 for say, ten different starting random number seeds.
18. Repeat steps 4 to 16 for successively larger and larger population sizes.
20.8 Coding Schemes
A selected mapping between the coded substrings and the design variables associates the artificial
genetic code with the water distribution system network being optimized (Dandy et al. 1996). A genetic
algorithm coding scheme is required for each of the design variables to be selected as part of the design.
Examples include
486
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
A string or chromosome for the design problem in Figure 20.2 is made up of the 8 substrings for the
three existing pipes that may either be cleaned or duplicated and the 5 new pipes.
Table 20.6 Genetic algorithm string coding scheme for the 14 – pipe network
Pipe Number [1] [4] [5] [6] [8] [11] [13] [14]
Substring 111 111 111 111 111 111 111 111
Diameter (mm) 615 615 615 615 615 615 615 615
Integer coding 7 7 7 7 7 7 7 7
Figure 20.2 A water distribution system showing genetic algorithm coding substrings
A range of pipe size diameter choices as shown in Table 20.5 is provided in the form a lookup table.
487
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
In Table 20.5, eight choices for pipe [14] are provided. For a binary coding system the number of
choices must be a multiple of 2n where n = 1, 2, 3, 4,.... etc. (that is 2, 4, 8, 16, 32 etc.). A different
decoding table may be specified for each of the decision variables if necessary. It may be seen that
binary coding is somewhat restrictive when 2n choices must be provided. An alternative to binary cod-
ing is integer coding that allows the number of choices to be any integer number (e.g. 3, 10, 15 etc.).
Integer codings are shown in Table 20.5.
String number 2 101 100 000 000 011 010 110 011
Diameter (mm) 464 384 151 151 305 252 516 305
String number 3 100 110 011 101 110 011 110 011
Diameter (mm) 384 516 305 464 516 305 516 305
String number 4 001 010 100 101 000 111 010 010
Diameter (mm) 199 252 384 464 151 615 252 252
488
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
the degree by which the design does not meet the design constraints — refer to this cost as C2. The fitness
of each string may be computed from the total cost of the water distribution network design (the sum of
the real cost and the penalty cost). A number of different ways may be used to compute the fitness of a
string. A common way is to take the inverse of the total cost whereby the fitness is given as
1
Fitness = -------------------- (20.2)
C1 + C2
where
Fitness = – C 1 + C 2 (20.3)
Different methods may be used to compute the penalty costs. Consider an example of a penalty cost that
is applied for pressures in the water distribution system being less than the minimum allowable pressure.
A penalty cost may be based on either
• Case 1: Only the node with the worst pressure deficit dmax
• Case 2: All nodes with a pressure deficit (d1, d2,..., dND) where ND = number of nodes in the
water distribution system with pressure deficits
A hydraulic simulation needs to be run for the design configuration to compute the flow distribution and
nodal pressures in the water distribution system. Consider the case where a pressure deficit occurs. A
cost penalty factor K needs to be assigned to enable computation of the penalty costs. The penalty multi-
plier factor K is a measure of worth per meter (or per foot length) attributed to having pressure heads
below the minimum allowable pressure heads as specified by the design criteria. This factor should be
selected such that near – optimal infeasible solutions are highly fit so that the optimum solution is
approached from both above and below (Simpson et al. 1994). Consider the penalty cost for Case 1 as
C 2 = K d max (20.4)
where
ND
C2 = Kdi (20.5)
i=1
where
For example, consider a K value of $5000/m of pressure deficit applied to the worst node in the water
distribution system where the pressure deficit is 7 m. The penalty cost from Equation 20.4 would be
489
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
Penalty costs may be cumulated over a number of water demand loading cases. In addition, if penalty
factors are applied for different design criteria then different penalty factor values may need to be used
for each of the different design criteria. For example, Table 20.8 shows different design criteria and cor-
responding penalty factor values.
The selection of appropriate values of the penalty factors K1, K2, and K3 depend on the magnitude of the
input costs of the water distribution system being optimized. A trial – and – error procedure is needed to
determine appropriate values. If the penalty factors are too large, then any design solution in the genetic
algorithm population is penalized so severely that it is very unlikely to be selected to go into the mating
pool for the next generation. Thus only feasible solutions would survive. On the other hand, if the pen-
alty factors are too small then after many generations of solutions from the GA process the population
would be dominated by infeasible solutions. Thus the lowest cost solutions do not satisfy the design
constraints. Reduction of the penalty factor makes the marginally infeasible solutions more prominent in
the search (Dandy et al. 1993). A balance between small and large values of penalty factors is required
so that the GA optimization process approaches the optimum solution from both the feasible side and
the infeasible side.
During the genetic algorithm process, it is desirable to keep solutions in the population that only just fail
to meet the design criteria. As a result, the selection of the magnitude of the penalty factors is important.
Consider an example, where the pressure at one node is in deficit by 0.1 m (19.9 m instead of the mini-
mum allowable pressure head of 20.0 m). This solution may be deemed as being acceptable. Clearly the
string that represents this solution for the design of a water distribution system contains useful genetic
material. If the penalty factor is set too high, this type of solution would be eliminated from the popula-
tion too readily (Simpson et al. 1995). It is best not to discard solutions that are only slightly infeasible
as a correctly placed crossover or mutation may produce an optimal string.
490
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
tion). All selection methods rely on some form of the principle of “survival of the fittest” where more
copies of strings with larger fitness are preferred as candidates to go into the mating pool for the next
generation. Two commonly used operators are proportionate selection (also called Roulette wheel selec-
tion) and tournament selection.
fi
p i = ---------------------- (20.6)
N
f j
j=1
where
• fi = fitness of string i
• pi = probability of selecting a string to be included in the mating pool for the next genera-
tion
• N = population size
To implement proportionate selection a cumulative distribution function is developed to enable the
weighted roulette wheel to be simulated. Consider as a trivial example a population size of N = 10. If the
fitness of 8 members is 0.08 and the fitness of the remaining two members (strings 9 and 10) is 0.18 then
the cumulative density function (CDF) has points 0.0, 0.08, 0.16, 0.24, 0.32, 0.40, 0.48, 0.56, 0.64, 0.82,
1.0. A uniformly distributed number between 0 and 1 is generated and depending on the segment of the
CDF that the random number “falls in” determines the member of the population that passes to the mat-
ing pool for the next generation. On average, strings 9 and 10 would receive more than twice the number
of copies than strings 1 to 8 because the size of the segment on the weighted roulette wheel is 0.18 com-
pared with 0.08. Proportionate selection was used in early studies for optimization of water distribution
networks (Murphy and Simpson 1992, Simpson et al. 1994). Proportionate selection may be improved
by using fitness scaling (Murphy, Simpson and Dandy 1993) as shown in Equation 20.7.
n
fi = fi (20.7)
where
• fi = fitness of string i
• n = scaling exponent
20.13.2 Tournament selection
There are various forms of tournament selection with the most common involving the comparison of
two randomly selected members of the population of water distribution system designs. Two – member
tournament selection are described first followed by the more general s – member tournament selection.
In two – member tournament selection (where s = 2), a contest is conducted between randomly selected
pairs of strings representing water distribution system designs from the population. If the current gener-
ation strings of population of size N is randomly divided into groups of two members selected without
replacement then a total of N/2 groups are formed. Each pair of strings is considered in turn. The string
that has the largest fitness out of the pair is transferred to the mating pool for the next generation. This
process is repeated for all N/2 groups. To fill the mating pool with a total of N strings it is necessary to
carry out the same process as described above another time. This second set of tournaments adds another
491
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
N/2 strings to the mating pool. Analysis of the N strings in the mating pool formed by tournament selec-
tion reveals that the fittest member of the previous generation obtains exactly 2 copies in the mating
pool (or more copies if there is more than one copy of the fittest string in the population). This occurs
because the fittest string always wins the tournament irrespective of which string it is paired up with.
The least – fit string in the population does not receive any copies in the mating pool as it cannot win a
tournament. All other strings in the population have between zero and two – members in the mating pool
depending on who their opponents were in the tournament.
An extension of the paired tournament selection process just described is s – member tournament selec-
tion. Now a contest is conducted between a specified number s of the strings from the population. The
current generation of population of size N is randomly divided into groups of s members selected with-
out replacement such that N/s groups are formed. It is assumed that N is exactly divisible by the tourna-
ment size s. The string in each subgroup of s that has the largest fitness is transferred to the mating pool
for the next generation. This process is repeated for all N/s groups. To fill the mating pool with a total of
N strings it is necessary to carry out the same process as described above another s – 1 times. The fittest
member of the previous generation obtains at least s – copies in the mating pool. The strings with the
( s – 1 )th fitness or smaller does not receive any copies in the mating pool as they cannot win a tourna-
ment. All other strings in the population have between zero and s – members in the mating pool depend-
ing on who their opponents were in the s – member tournament.
Tournament selection has been shown to be much more effective than proportionate selection (Simpson
and Goldberg 1994) and is the selection method of choice. The variable exponent in Equation 20.7 is
used to modify the fitness as part of the improved GA formulation (Dandy et al. 1996). The value of the
exponent n is allowed to increase in steps as the GA run develops. The initial population is randomly
generated and thus has a diversity of water distribution system designs. The average string fitness will
be relatively low and individual fitnesses will vary considerably. A low value of n should be used at the
start of the GA run, for example, n = 1. A low value of n preserves some population diversity in the early
generations. After a number of generations the value of the exponent n in the fitness function may be
increased in steps during the intermediate generations. As the GA run progresses further, the highly fit
string similarities that have evolved begin to dominate the population. A high value of n, say 3 or 4, is
needed to accentuate the small differences in string fitness as most of the strings will be constructed of
similar genetic code and their magnitudes of raw fitness will be similar.
492
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
If crossover is to be performed, the next random operation is the selection of a crossover point (for the
case of one – point crossover). Consider a string of 8 bits as shown in Figure 20.3, a random number in
the range 1 to 7 with a uniform distribution is generated (say, for example 5). This random number then
becomes the crossover point. All bits from the first and second strings are interchanged to the right –
hand end of the strings past the crossover point. For the example, bits 6 to 8 are interchanged between
the strings as shown in Figure 20.3.
For two – point crossover, two crossover points along the pair of strings are chosen randomly (for exam-
ple, points 3 and 6 in the 8 – bit string example as shown in Figure 20.4). The bits between the crossover
points are interchanged.
493
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
1-
p m --- (20.8)
N
where
• N = population size
1
p m --- (20.9)
L
where
1
p m --------- = 0.002
500
For the lower limit of pm, then on average 12000 0.002 = 24 bits in each generation will be mutated.
The upper limit of the mutation rate is
1
p m ------ = 0.0417
24
If the upper mutation rate is used, then on average 12000 0.0417 = 500 bits will be mutated out of
the 12,000 total bits in the population. If the mutation rate is too high, the population will be disrupted
and as a result the GA will not be able to converge on low cost solutions.
Thus the range of suggested values for the probability of mutation for a population size N = 500 and a
string length L = 24 is
0.002 p m 0.0417
Mutation may be regarded as of second – order importance in the GA process. Simpson and Goldberg
(1994) showed that there was little difference if mutation was or was not included in the GA process
when optimizing the design of a 14 – pipe network.
494
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
The maximum number of generations that the GA is to be run, is usually preset. If the mutation operator
is set to zero then the population will converge with the same solution being present for every member
of the generation. Thus an additional check for termination of the GA process is whether the standard
deviation of all of the fitnesses in the population has become so small that it is likely that all the mem-
bers of the population are the same. If this occurs, the GA process is terminated as there is no point con-
tinuing selection and crossover because no new strings can possibly arise from continuing the GA
process.
The GA technique is often referred to as a global search technique. The use of this terminology is mis-
leading as there is no guarantee that the GA will converge on the global optimum solution. If the popu-
lation size is too small it has been shown that the GA will converge on a sub – optimal solution (Simpson
and Goldberg 1994). However, once the population size has been selected such that it is large enough,
the GA has been shown to be able to produce lower cost solutions for the optimization of water distribu-
tion system designs than traditional optimization techniques (Dandy et al. 1993, Dandy et al. 1996).
These low cost optimized solutions may or may not be the global optimum solution — there is no way to
prove this — either way.
495
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
The techniques apply equally well to new water distribution systems, expansions to existing water distri-
bution systems or rehabilitation of existing water distribution networks. A computer simulation model
that is usually calibrated with field measurements is required to accurately simulate the existing water
distribution systems performance (Frey et al. 1996). A number of different applications of genetic algo-
rithms to generate least cost designs of all components of a water distribution network are now
described.
• deciding on which new pipes should be incorporated in the design. Often new pipes will
have service connections off them and thus they cannot be eliminated. These pipes may be
constrained to be at least a minimum diameter in the GA optimization process (Simpson et
al. 1995).
• choosing the optimal locations of new storage tanks
• choosing the optimal locations of source or booster pump stations
• choosing the optimal locations of valves in the water distribution system (pressure reducing
valves — PRVs, pressure sustaining valves — PSVs and flow control valves — FCVs)
20.17.2 Sizing of components in a new system
The genetic algorithm optimization technique for water distribution system design may be used to select
the best combination of
• duplication of existing pipes with new pipes in parallel (not necessarily of the same diame-
ter)
• removal of existing pipes
20.17.4 Rehabilitation
Rehabilitation actions that may be evaluated by the GA include
• cleaning (and lining) of pipes (in order to reduce the internal pipe roughness of a pipe)
• elimination of an existing pipe
• replacement of an existing pipe with a new pipe (not necessarily of the same diameter)
• refurbishment of pumps in existing pumping stations
496
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
20.17.5 Operation
A number of operational decisions may be optimized by the genetic algorithm including
• number and combination of pumps in operation at a particular time during a day of opera-
tion
• determining the schedule of operation of pumps to ensure tanks do not empty and then refill
on the peak water demand day
• determining the normal water surface operating elevations for reservoirs or storage tanks
• determining the settings for valves (PRVs, PSVs and FCVs)
The optimization by the GA evaluates the hydraulic feasibility of the trial designs by checking the pres-
sure heads at water demand nodes to ensure they are above the minimum allowable pressures and that
all other design constraints are satisfied.
The genetic algorithm technique may also be useful when tender bids are received especially for pipes
of different materials (e.g. reinforced concrete, Hobas and uPVC). Differences between materials of
pipes in actual internal pipe diameters and roughness values for the same nominal diameter may be
taken into account in the optimization process. The genetic algorithm enables the optimal configuration
of the design to be determined based on tender bid prices. This approach was adopted for the Cobdogla/
Loveday irrigation system optimization study in South Australia (Simpson et al. 1996).
In applying the genetic algorithm technique to the design of these water distribution systems, it has been
shown that lower cost designs have been identified consistently when compared with the designs of
experienced designers or compared to designs determined by other optimization techniques. In compar-
ing the designs, it is evident that a number of pipes have often actually increased in diameter in the GA
design (Simpson 1996). However, the GA was able to identify overall pipe combinations that reduced
the total cost of the water distribution system design components compared to the cost of the trial – and –
error developed network. The savings in using GA optimization have been shown to be in the range of
5% to 49%. In addition, the lowest cost feasible solution for the New York City Tunnels network has
been found using genetic algorithms (Murphy et al. 1993, Dandy et al. 1996). The savings are only 1%,
however, this problem has been previously optimized by many other researchers as described in
Section 20.5.2.
497
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
Table 20.9 Water demand loading patterns and associated minimum allowable pressures
Demand pattern 1 Demand pattern 2 Demand pattern 3
Demand Minimum Demand Minimum Demand Minimum
Node allowable allowable allowable
pressure pressure pressure
head head head
(L/s) (m) (L/s) (m) (L/s) (m)
2 12.62 28.18 12.62 14.09 12.62 14.09
3 12.62 17.61 12.62 14.09 12.62 14.09
4 0 17.61 0 14.09 0 14.09
6 18.93 35.22 18.93 14.09 18.93 14.09
7 18.93 35.22 82.03 10.57 18.93 14.09
8 18.93 35.22 18.93 14.09 18.93 14.09
9 12.62 35.22 12.62 14.09 12.62 14.09
10 18.93 35.22 18.93 14.09 18.93 14.09
11 18.93 35.22 18.93 14.09 18.93 14.09
12 12.62 35.22 12.62 14.09 50.48 10.57
In Figure 20.6, the solid lines represent the existing system while the dashed lines depict the new pipes.
Elevations, pipe lengths, diameters and Hazen – Williams C coefficients of the existing water distribu-
tion system were provided as known information.
To determine the effectiveness of the GA in identifying the global optimum solution, a complete enu-
meration of every possible combination for all three water demand loading cases was carried out. Com-
plete enumeration of each of the alternative designs was possible because the size of the search space
was not prohibitively large (Murphy and Simpson 1992). The lowest cost feasible water distribution sys-
tems were tracked during the complete enumeration of 16,777,216 possible combinations that involved
a total of 50,331,648 hydraulic simulations. The best feasible water distribution systems are shown in
Table 20.10. A number of different configurations have very similar costs. There are at least two water
distribution systems with the lowest possible cost that represent the global minimum with a cost of
$1.7503 million. All top 20 solutions have a duplication of pipe [4] with a 356 mm diameter pipe size
while pipe [1] is not duplicated or cleaned. Some of the solutions suggested cleaning of pipe [1] com-
bined with duplicating pipe [4] with a 305 mm diameter pipe. Some of the top solutions that duplicate
pipe [5] with either a 152 mm, 203 mm or 254 mm diameter pipe or clean pipe [5].
Table 20.10 Results of complete enumeration (Murphy and Simpson 1992, Simpson et al. 1994)
Rank Total Pipe Pipe Pipe Pipe Pipe Pipe Pipe Pipe
no. cost [1] [4] [5] [6] [8] [11] [13] [14]
($m)
1 1.7503 leave dup 356 leave 305 203 203 152 254
2 1.7503 leave dup 356 leave 305 203 254 152 203
3 1.7725 leave dup 356 leave 305 203 203 203 254
4 1.7725 leave dup 356 leave 305 203 254 203 203
5 1.7910 leave dup 356 dup 203 254 203 203 152 254
6 1.7999 leave dup 356 clean 254 203 203 203 254
7 1.8010 leave dup 356 leave 305 203 254 152 254
8 1.8010 leave dup 356 leave 305 254 203 152 254
498
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
Table 20.10 Results of complete enumeration (Murphy and Simpson 1992, Simpson et al. 1994)
9 1.8010 leave dup 356 leave 305 254 254 152 203
10 1.8115 leave dup 356 leave 356 203 203 152 254
11 1.8115 leave dup 356 leave 356 203 254 152 203
12 1.8115 leave dup 356 leave 305 203 305 152 203
13 1.8115 leave dup 356 leave 305 203 203 152 305
14 1.8131 leave dup 356 dup 203 254 203 203 203 254
15 1.8232 leave dup 356 leave 305 203 203 254 254
16 1.8232 leave dup 356 leave 305 203 254 203 254
17 1.8232 leave dup 356 leave 305 254 203 203 254
18 1.8232 leave dup 356 leave 305 203 254 254 203
19 1.8232 leave dup 356 leave 305 254 254 203 203
20 1.8285 leave dup 356 clean 254 203 254 152 254
The actual pressure heads are shown for the known global optimal water distribution system (ranked as
number 1 in Table 20.10) with a cost of $1.7503 million.
Table 20.11 Actual pressure head for the global optimum solution (Murphy and Simpson 1992)
Demand pattern 1 Demand pattern 2 Demand pattern 3
Actual Min. Deficit Actual Min. Deficit Actual Min. Deficit
head allow. ( – ) or head allow. ( – ) or head allow. ( – ) or
Node head excess head excess head excess
(m) (m) (m) (m) (m) (m) (m) (m) (m)
2 36.2 28.18 +8.02 24.95 14.09 +10.89 30.48 14.09 +16.39
3 30.47 17.61 +12.86 19.32 14.09 +5.23 24.52 14.09 +10.43
4 26.84 17.61 +9.23 16.15 14.09 +2.06 20.46 14.09 +6.37
6 46.87 35.22 +11.65 18.68 14.09 +4.59 34.34 14.09 +20.25
7 50.06 35.22 +14.84 12.75 10.57 +2.18 37.54 14.09 +23.45
8 59.23 35.22 +24.01 41.29 14.09 +27.20 47.93 14.09 +33.84
9 51.88 35.22 +16.66 24.06 14.09 +9.97 34.61 14.09 +20.52
10 49.79 35.22 +14.57 22.38 14.09 +8.29 26.65 14.09 +12.56
11 47.53 35.22 +12.31 24.82 14.09 +10.73 18.27 14.09 +4.18
12 50.00 35.22 +14.78 27.29 14.09 +13.20 13.72 10.57 +3.15
The pipes for the global optimum solution are shown in Figure 20.6.
499
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
Figure 20.6 The configuration of the global optimal solution ($1.7503 million)
The genetic algorithm procedure applied to the 14 – pipe network to search for low cost solutions
involved the following steps (Murphy and Simpson 1992, Simpson et al. 1994).
1. Representation of design problem with a binary string. There are 8 decision variables in this
design optimization problem (for pipes [1], [4], [5], [6], [8], [11], [13] and [14]). Each deci-
sion variable to be selected by the GA is assigned a choice or look – up table. For eight dif-
ferent choices of diameter, a substring of 3 binary bits is used to represent the choices. Thus
for eight pipes, a 24 – bit binary string, where each bit is either zero or one, comprises
eight – 3 bit substrings. Each substring represents each decision variable as shown in
Figure 20.2. The maximum possible number of combinations of pipes is 224 or 16,777,216
different alternatives as shown above in the discussion on complete enumeration of the
search space. An example of a string, corresponding pipe numbers for substrings and deci-
sion variables from the look up tables is shown in Figure 20.12.
The last five pipes are new pipes for which diameters must be chosen. A 3 – bit binary rep-
resentation is used for each of the eight decision variables resulting in a binary string of
total length of 24 – bits. The 3 – bit binary codings and the choices, unit pipe costs and
Hazen – Williams C values are given in Table 20.13.
500
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
Table 20.13 Options for each decision variable for new pipes
New pipe Binary Unit cost Hazen – Williams C
diameter coding roughness value for
(mm) ($/m) the new pipe
152 000 49.54 120
203 001 63.32 120
254 010 94.82 120
305 011 132.87 120
356 100 170.93 120
407 101 194.88 120
458 110 232.94 120
509 111 264.10 120
The first three pipes in the binary string are existing pipes that may either be cleaned or
duplicated with a parallel pipe (not necessarily of the same diameter). The lookup decod-
ing table for duplicate pipes and/or cleaning of the three existing pipes is shown in
Table 20.14. The options available for existing pipes have been arranged in Table 20.14 in
terms of increasing cost ($/m).
2. Selection of values for genetic algorithm operators and parameters. The values selected for
the genetic algorithm parameter values include
•population size N = 100
•probability of crossover pc = 0.9
•probability of mutation pm = 0.02
•penalty multiplier, K = $70,000/m pressure deficit at worst node
•maximum number of generations, G = 50
501
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
5. Hydraulic analysis of each water distribution system for all three loading cases. Steady
state pipe flows, heads and nodal pressure heads were computed for each of the three load-
ing cases.
6. Computation of penalty costs. The GA assigns a penalty cost for each loading case if a
water distribution system does not satisfy the minimum pressure constraints. The pressure
violation at the worst node was used. The maximum pressure deficit was multiplied by a
penalty multiplier factor of K = $70,000/m of pressure head deficit.
7. Computation of the total water distribution system costs. The total cost of each network in
the population was taken as the sum of the network cost (Step 3 above) and any penalty
costs (Step 5 above).
8. Computation of string fitnesses. The fitness of each string was taken as the inverse of the
total water distribution system cost (Step 6 above). Thus from Equation 20.2 follows that
1
Fitness i = ------------------------------------------------- (20.10)
Total Network Cost i
9. Applying the genetic algorithm operators of selection, crossover and mutation. Proportion-
ate or biased roulette wheel selection, one – point crossover and bit – wise mutation were
used as the genetic algorithm operators to create a mating pool and then the next generation.
As the probability of crossover pc is 0.9 it would be expected on average that 90% of all
pairs of strings selected for crossover from the mating pool to be crossed over. Thus 10% of
the strings pass from the mating pool to the next generation uncrossed. In the same way, as
the probability of mutation pm is 0.02 then it would be expected that the average number of
bits to be mutated in a generation to be 2%.
10. Generation of successive generations. Once a new generation is created, Steps 4 to 9 are
repeated over and over until the specified maximum number of generations of G = 50 is
reached. Thus a maximum of 50,000 function evaluations of different water distribution
network designs were allowed for each run (0.298% of the total 16,777,216 total possible
combinations).
11. Different random number seeds. Ten GA runs were performed for the optimum design of
the 14 – pipe water distribution system network using different random number seeds. The
GA found one of the two global optimum solutions in 8 out of 10 runs and always identified
near – optimal solutions. The lowest cost solutions achieved in each run are presented in
Table 20.15.
Table 20.15 Genetic algorithm results for a 14 – pipe network with a variation in random number
seed for 50,000 evaluations (N = 100, pc = 0.9 and pm = 0.02) — Murphy and Simpson 1992
Run Random Best feasible Difference Evaluation Ranked
number seed total network from number solution
cost optimum achieved number from
($million) Table 20.10
1 1000 1.7725 1.27% 29,070 3
2 2000 1.7503 0 10,350 1
3 3000 1.7503 0 43,740 2
4 4000 1.8115 3.5% 40,860 10
5 5000 1.7503 0 17,190 2
6 6000 1.7503 0 11,070 2
7 7000 1.7503 0 10,080 1
8 8000 1.7503 0 41,490 2
9 9000 1.7503 0 12,150 1
10 10000 1.7503 0 19,890 1
502
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
12. Different sets of genetic algorithm parameters. Ten GA runs were performed for the case
study water distribution system network using different sets of GA parameters. The GA
found one of the two global optimum solutions in 9 out of 10 runs The genetic algorithm
parameters and the lowest cost solutions achieved in each run are presented in Table 20.16.
The genetic algorithm method using the standard three – operators was found to be particularly effective
in finding global or near optimal solutions for the case study water distribution system in relatively few
evaluations (< 0.3% of the total search space for each computer run). Computer times were compara-
tively long for 50,000 evaluations of each of the 10 genetic algorithm runs with different starting seeds.
However, the GA was still effective in finding the global solution for 15,000 evaluations for each com-
puter run. One difficulty with the GA technique is knowing how many evaluations will be sufficient.
503
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
Fort Collins – EPANET design 313 $5.85 million $2.96 million 49.4% $2.88 mil-
Loveland Water by local consul- (1995) lion
System Colorado, tant in Fort Col-
lins, Colorado
USA (Fort Collins –
Loveland Water
District)
Cobdogla/Loveday WATSYS design 50 $4.26 million $3.79 million 11.0% $470,000
Irrigation Network by experienced (1995)
Riverland, South water distribu-
tion network
Australia (E&WS)
designers
(E&WS)
Corbie Hill WATSYS design 83 $2.91 million* $2.45 mil- 15.8% $458,000
Irrigation Network by experienced lion* (1995)
Leeton, NSW (Mur- engineering con-
sultant
rumbidgee Irriga-
tion and Department
of Water Resources,
NSW)
504
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
The difficulty for a designer using trial – and – error improvement of the design of a water distribution
system is that once the number of pipes exceeds about 10, the size of the search space becomes incredi-
bly large. Even if the designer has a great deal of experience it is very difficult to be able to determine
the lowest cost solution or even a range of low cost solutions. The design engineer does not have time to
investigate all the potential cost savings using computer simulation models and some good designs may
not be obvious even to an experienced design engineer.
505
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
actually results in a further optimization problem. Other discrete options include the decision of cleaning
or not cleaning a pipe, locations of pumps, tanks and valves — that are either yes or no decisions. In
practice GAs are one of the few optimization techniques where direct use of commercially available
pipe sizes and other discrete choices are used directly in the optimization.
As an example, consider the rehabilitation of the water distribution system in an existing area. Two dif-
ferent optimized solutions may be available that involve upgrading a pipeline on streets that are parallel.
The GA optimization process may not have taken into account the disruption and trading loss for shops
along one of the streets. Thus the designer may select the solution that involves putting the pipeline
along the less busy road that would have less impact on the shop owners.
When a simulation model is used as an integral part of the optimization procedure as in GAs then there
is no need to determine the underlying equations for a new feature and then to incorporate them within
the optimization formulation. This is necessary for many of the traditional optimization techniques and
is clearly one of the advantages that GA optimization has over traditional approaches.
506
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
• complete enumeration
• pruned enumeration (Gessler 1982, Gessler 1985, Loubser and Gessler 1990)
• Linear programming (Calhoun 1971, Alperovits and Shamir 1977, Quindry et al. 1981,
Morgan and Goulter 1985)
• nonlinear programming (El – Bahrawy and Smith 1985, Su et al. 1985, Leibman et al. 1986,
Lansey and Mays 1989, Lansey et al. 1989, Vigus 1989, Waters 1989, Duan et al. 1990)
• dynamic programming
To implement the traditional optimization techniques the underlying equations governing the problem to
be solved need to be put into the form appropriate for the particular optimization technique.
• the grouping of a number of pipes together to be restricted to be the same pipe size
• the reduction of the number of choices that a group of pipes may take on
During the pruned enumeration process the cost of the water distribution system is firstly computed for
each combination of pipe groups. Each water distribution system design is then simulated to determine
the flows in pipes and the HGLs and pressures at the nodes. The pressures are compared with the mini-
mum allowable pressures specified in the design criteria. If the design criteria are not satisfied the water
distribution system is designated as infeasible. A list of the currently lowest cost networks is maintained
as well as the networks that just fail to satisfy the design constraints.
Two heuristics were introduced by Gessler (1982) to further reduce the number of networks to be evalu-
ated during the pruned enumeration process. These included
• a cost filter — a combination of pipe sizes does not need to be tested for hydraulic feasibil-
ity if the cost of the solution is greater than some cost cut off. The cut off cost is set to be the
lowest known cost solution that satisfies the design pressure constraints.
• a size filter — a combination of pipe sizes does not need to be tested for hydraulic feasibility
if all the selected sizes are equal or less than the pipe sizes of some other infeasible solution
A significant disadvantage of these heuristics as proposed by Gessler, is that they may lead to the elimi-
nation of networks that are in fact lower cost yet satisfy the design constraints (Murphy et al. 1993,
Dandy et al. 1993). Partial enumeration suffers from the disadvantage that an arbitrary grouping of pipes
into sets, each with the same diameter is likely to exclude solutions that may be of lower cost. GA opti-
mization (Dandy et al. 1993) has been shown to find lower cost solutions than partial enumeration of
Gessler and Loubser (1990).
507
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
In looped systems it is possible to increase the pressure head at a deficient node by decreasing the size of
a pipe downstream of the node (Murphy et al. 1993 — Water Journal). This actually improves the pres-
sure deficiency with a water distribution system of lower cost that is in direct contradiction to Gessler’s
(1982) heuristic above. Dandy et al. (1993) concluded that a clear disadvantage of the pruned enumera-
tion technique is that is likely that optimum and other low cost networks will be excluded from the
search space as an outcome of the search space pruning process.
As seen previously complete enumeration of all solutions even for a relatively small water distribution
system would take billions of years. When the total size of the search space exceeds about 230 (1.073 bil-
lion different alternative solutions) then the number of combinations becomes very large and complete
enumeration will take a very long time. It is when problems exceed this size that GA techniques become
particularly useful.
1. The solution produced may only be a local optimum. Thus the problem needs to be solved a
number of times with different starting conditions.
2. The sizes of pipe diameters obtained are continuous values and not commercially available
pipe sizes. As mentioned earlier, pipe sizes in the solution must be rounded up or rounded
down to obtain a practical solution. The rounded solution needs to be checked to see if it
satisfies the design criteria. For continuous pipe size diameters as determined by the nonlin-
ear programming optimization process there are 2NP alternatives for rounding up or down to
the nearest commercially available pipe diameter. This rounding process requires consider-
able judgement, particularly for a large water distribution system network as it is not clear
that the solution after rounding will automatically satisfy the minimum allowable pressure
constraints at all nodes. Usually each rounded solution is determined by trial – and – error
and then each rounded solution is checked with a hydraulic solver. Many of the combina-
tions of round up and round down will not satisfy the minimum allowable pressure head
constraints. Thus, the issue of determining the best approach to round up and round down is
an optimization problem in its own right (Dandy et al. 1993). In any case there is no guaran-
tee that the rounded continuous solution is the optimum solution to the discrete pipe prob-
lem.
3. The order of the governing equations and constraints appears to influence the optimum
solution obtained.
4. The fitting of the cost function is difficult when pipe duplications are considered (Dandy et
al. 1993). An abrupt change occurs in the cost function for which it is difficult to obtain a
simple continuous function over the desired range of pipe diameters. The fitting of the cost
508
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
function based on discrete data for commercially available pipe sizes may have an impact
on the optimum solution obtained (Dandy et al. 93).
5. There is a limitation on the number of constraints that may be handled and hence this in
turn limits the size of the water distribution system and/or the number of loading cases that
may be handled (Simpson et al. 94). Adding an additional water demand loading case adds
a significant number of additional constraints for the optimization problem.
Consider a case of a new water distribution system water distribution system where all NP pipe diameter
sizes are to chosen. Thus for each pipe there are both NP pipe diameters and NP pipe flows to be com-
puted. In addition, there are NJ unknown heads at the non – reservoir nodes in the water distribution sys-
tem. Thus the total number of unknowns to be solved for in a nonlinear programming formulation of the
optimization problem is
2 NP + NJ
The requirements are that the flows and heads in the water distribution system must satisfy the hydraulic
constraints including continuity at all junctions and the head loss relationships for each pipe leads to the
number of constraints being equal to
NP + NJ
Walski (1988) suggested that the most successful of these traditional techniques involved “gradient
search” where the partial derivative of cost with respect to some or all of the variables in the problem are
calculated and used to determine a new solution. Simpson et al. (1994) highlighted some of the prob-
lems in using a nonlinear programming approach based on a generalized reduced gradient – technique
(GRG) as
1. Often the solution procedure gets stuck on a single local minimum solution. In fact, the
solution that the technique finds seems to depend on the order of the equations put into the
nonlinear optimization model.
2. Sometimes the method fails to converge on any solution.
3. The technique shows a dependence of the solution found on the order of equations and con-
straints in the optimization model. Different local minima are approached, as a result.
4. There is difficulty in being able to handle more than one steady state water demand loading
case. The inclusion of consideration of an extended period simulation is virtually impossi-
ble without making the size of the optimization problem unmanageable (in terms of a large
number of constraints).
5. Once the solution of the diameters is obtained there is a need to round – up or round – down
“continuous” solutions (e.g. a pipe diameter of 141.23 mm) to commercially available “dis-
crete” sizes. This ends up being a significant optimization problem in its own right.
El – Bahrawy and Smith (1985) applied the nonlinear programming package called MINOS to the
design of water collection and distribution systems. This technique was applied to a number of case
studies (El – Bahrawy and Smith 1985). Their model included a pre – processor to set up the data files
and a post – processor to round off the pipe sizes to commercial sizes. The model for water distribution
systems also included check valves and pressure regulating valves. They demonstrated its ability
509
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
• optimization techniques usually are derived from the field of operations research and as a
result it is usually necessary to simplify the field problem to fit the solution technique
• there has been difficulty in incorporating reliability considerations into the design in an
appropriate manner
• there are generally shortcomings in design criteria
I believe the first point made by Walski is accurate. Traditional optimization techniques (e.g. linear pro-
gramming, nonlinear programming and dynamic programming) are difficult to apply unless an expert –
user is involved, as has been indicated in this Chapter.
I disagree with Walski’s second point above and believe that the issue of optimization may be treated
separately from reliability. The issue of reliability is an important one that must be addressed in relation
to design of all water distribution systems whether optimization is used or not. Reliability constraints or
design criteria may be incorporated into the formulation of the optimization problem but the way in that
reliability is provided or the design criteria associated with reliability in a water distribution system may
be determined separately from consideration of the optimization. Excellent guidance on pipe sizes and
layout, pump sizes and locations and pressure valve locations and pressure setting may be provided by
optimization. Reliability may be built into the system by determining appropriate design criteria (e.g.
providing a reduced flow at a lower than normal minimum pressure if a pipe breaks in the system) or by
providing adequate looping within the system.
Finally, Walski’s last point above is difficult to follow. Any shortcomings in design criteria will be pres-
ent if an engineer uses computer hydraulic simulation and a trial – and – error system improvement pro-
cess to develop lower cost designs or whether optimization is used. It is important to develop the best
possible design criteria. Once the design criteria are specified they are used to guide the trial – and –
error improvement of the design via evaluation of the computer simulation results. These same design
criteria may also be used in the optimization process. If there is uncertainty in data or shortcomings in
design criteria the issues associated with their use in the design process are equally as problematic if
optimization is or is not used. A sensitivity analysis may be needed to assess the effect on the optimiza-
tion results of changes in uncertain data or design criteria.
20.23 Summary
Genetic algorithm optimization for water distribution network design (both for irrigation and urban sys-
tems) is a very powerful technique. Low cost urban water distribution and irrigation pipe network
designs result from the use of genetic algorithms. This optimization technique has significant advan-
tages over the more traditional optimization techniques
510
Chapter 20 - File: Chap20-Optimization.fm July 6, 2022 Version 6
Case studies have shown the effectiveness of the genetic algorithm optimization technique for identify-
ing significant capital cost savings in the design of water distribution systems. Wide spread adoption of
the use of these techniques could result in millions of dollars of savings in water supply and irrigation
infrastructure.
511
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
This Chapter does not attempt to present an exhaustive coverage of water hammer analysis. There are
many fine books that already cover water hammer analysis in detail. Examples include Wylie and
Streeter’s 1993 Fluid Transients in Systems and Chaudhry’s 2014 Applied Hydraulic Transients. The
basics of water hammer are presented here in order to provide the water distribution design engineer an
understanding of the underlying principles. Water hammer analysis is an important aspect of the design
of water distribution transmission and distribution systems. Water hammer analysis often governs the
class of pipe, and therefore the pipe wall thickness, that must be selected for the design of particular
pipes in a water distribution system network.
The topics presented in this Chapter are now described. The concept of a water hammer wave traveling
in an infinite fluid leads to the concept of wave speed and the important fluid properties that govern the
value of speed of propagation of pressure waves generated during water hammer events. The Joukowsky
head rise and the sequence of events following the fast closure of a valve in a pipeline system are then
presented. The time during which a valve is closed results in either a rapid or fast valve closure or a
slow valve closure - this delineation depends on the wave return time of 2L/a where L is the length of the
pipeline. These concepts are important in the understanding of water hammer and are described in this
Chapter. The governing equations of unsteady flow in pipelines are presented without a significant
amount of derivation. The unsteady equation of mass and momentum lead to a set of hyperbolic partial
differential equations. These equations are solved using a method of characteristics transformation that
results in four ordinary differential equations. Integration of the compatibility equations along the char-
acteristic lines results in a relatively straight forward set of algebraic equations that may be solved in a
pipeline system to determine the evolution of the pressure as a water hammer event proceeds. The
method of characteristic equations are the basis of a number of commercial computer programs includ-
ing Hytran (Hytran Solutions – Dr. Norman Lawgun, New Zealand), and HCP Software Pty Ltd (Chris
Vigus - Western Australia - originally written by Max Olde (HCP Software Pty Ltd (2019)) of Austra-
1.© Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, University of Adelaide, Adelaide,
Australia. Part of the book entitled Water Distribution Systems Engineering.
512
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
lia’s WATHAM. Boundary. Other programs are Hammer by Bentley Systems and Surge by
Innovyze.Boundary conditions including reservoirs, dead ends and valves are also described in this
Chapter. The Chapter concludes with a discussion of some typical devices used for the control and miti-
gation of water hammer in piping systems.
• fluid transients
• unsteady flow
• surge
Significant damage may occur as a result of water hammer as demonstrated in Figure 21.1.
Figure 21.1 Hydropower accident water hammer failure Oigawa, Japan (Bonin, 1960)
513
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
in a perfectly rigid pipe such as a concrete lined tunnel through rock. If the pipe wall is elastic and
deforms as the water hammer wave passes along the pipeline, then the wave speed is reduced. For a steel
pipeline the wave speed drops from the theoretical maximum of 1485 m/s to around 1000 to 1200 m/s
while for a plastic pipe such as uPVC the wave speed may be as low as 300 m/s.
As the velocity of flow changes a corresponding head rise (or head drop — if a valve is suddenly opened)
occurs. Lupton (1953) suggested that the change in pressure or head resulting from the velocity change
persists. In fact, there will be little change in the pressure at a point in the pipeline until a reflected water
hammer wave arrives back at that point. Thus for an instantaneous valve closure as in Figure 21.2 the
head increase will persist at the valve for 2L/a seconds (the wave return time for the reservoir-pipe-valve
system). Water hammer reflections occur when a water hammer wave reaches a reservoir, a junction in a
water distribution network or a dead end.
Figure 21.2 A reservoir – pipeline – valve system for water hammer description
The bulk modulus of elasticity is defined as the change in pressure p divided by the volumetric strain
V M V M from Equation 2.29 as
p p
K = – -------------------------- = -------------- (21.1)
V M V M
where
514
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
9
• water, K = 2.20 10 N/m2 at 20°C or 320,000 psi at 68°F
9
• oil, K = 1.62 10 N/m2 or 235,000 psi
11 6
• steel, E = 2.05 10 N/m2 or 29.7 10 psi
Thus water is about 93 times more compressible than steel.
This unsteady flow situation may be made steady by traveling with the wave at a velocity of a. The rela-
tive velocity in the undisturbed zone of the infinite fluid is now V o – a and in the disturbed zone
V o + dV – a behind the elastic wave.
Application of the steady state continuity equation across the pressure wave gives
o A o V o – a = o + d A o V o + dV – a (21.2)
o V o – o a = o V o + o dV – o a + d V o + dV – a
Simplifying
0 = o dV + d V o + dV – a (21.3)
515
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Usually the wave speed ( a 1000 m/s ) is much greater than the initial steady state fluid velocity
(Vo = 1 to 2 m/s) such that
a >> V o + dV (21.4)
This simplifies the continuity equation relating the change in velocity to the change in density as
dV = ad
---------- (21.5)
o
Recalling the bulk modulus of elasticity for a fluid in terms of the density change is
p -
K = ------------- (21.6)
Combining these two equations gives an expression for the wave speed in an infinite fluid
a = K dV
------- (21.7)
dp
It will be shown later that the relation (the Joukowsky head or pressure head rise) between the change in
pressure d p d and the change in velocity dV due to the passage of the water hammer wave is
d p d = adV (21.8)
or
dV 1
---------- = ------ (21.9)
d pd a
Now combining these two equations in Equation 21.7 and Equation 21.9 gives
K
a = ---- (21.10)
where
516
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
9
K- = 2.2 10 - = 1485 m/s
a = --- ------------------
998.2
This would be the maximum wave speed that would be expected to be found in a pipeline filled with water.
Example 21.2 For water the bulk modulus of elasticity is K = 320,000 psi (lbf/in2) and the fluid density of water is
1.938 slugs/ft3 at 68°F (from Table 2.3). Compute the wave speed.
slug.ft
1 --------------- -
2 2 2
K 320000 lbf/in s 144 in
a = ---- = ------------------------------------ ---------------------- ------------------ = 4876 ft/s
1.938 slugs/ft
3 1 lbf 1 ft
2
where the relationship between slugs (mass in US Customary units) and lbf (pound-force) from Newton’s second law
of motion F = ma is
slug.ft
1 lbf = 1 ----------------
2
s
Recalling from Chapter 2 that a slug is a unit of mass in US customary units that accelerates by 1 ft/s2 when a force of
one pound (1 lbf) is exerted on it.
_______________________________________________________________________________
--L- seconds
a
where
2L
------ seconds (21.11)
a
517
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Once the water hammer wave arrives at the valve for the first time - pressure relief occurs and the high
pressure (due to the Joukowsky head rise) drops down to a lower value. Thus for the Joukowsky head
rise equation it is assumed that the valve is closed in a time of less than 2L a seconds.
Following the valve closure, the head change in the pipe just upstream of a valve is given by
where
The magnitude of the head change H does not depend on the type of fluid flowing, however, the actual
pressure change will obviously depend on the fluid as follows
p = H (21.13)
518
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
where
Example 21.3 Determine the Joukowsky water hammer head change for an initial steady state velocity of flow
Vo = 1.0 m/s reduced to zero almost instantaneously. Assume the pipe is steel.
A typical wave speed for water in a steel pipe is a = 1000 m/s to 1300 m/s. Use 1300 m/s.
___________________________________________________________________________________
In Example 21.3, the change in velocity is defined as the final velocity after the valve has been moved to
its final position minus the initial velocity that existed prior to the valve being moved
V = V f – V i (21.14)
Thus in Example 21.3, it follows that the change in velocity for the water hammer event of rapidly clos-
ing the valve at the downstream end of the pipe is minus 1 m/s and thus
where
Note the minus sign has now been omitted from the right – hand side of Equation 21.15.
519
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Example 21.4 Determine the Joukowsky water hammer head drop for an initial steady state velocity of flow
Vo = 1.0 m/s in Figure 21.5 that reduces to zero for the fluid just downstream of a valve. Assume the pipe is made of
steel.
As for Example 21.3, a typical wave speed for water in a steel pipe of 1300 m/s will be used.
1300
H = --a- V = --a- V f – V i = ------------ 0 – 1.0 = – 132.5 m
g g 9.81
This assumes the pressure of the fluid remains above the vapor pressure of the fluid as indicated in Figure 21.5.
___________________________________________________________________________________
2
Vo
H ss = K --------
- = Ho (21.16)
2g
• K = the head loss coefficient for the valve (rather than the bulk modulus of elasticity — also
referred to by K) (dimensionless)
• Vo = the initial steady state velocity (m/s or ft/s)
• g = gravitational acceleration (m/s2 or ft/s2)
• Ho = the reservoir HGL (m or ft)
520
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Figure 21.6 Steady state HGL for a reservoir – pipeline – valve system
The fluid layer adjacent to the valve that has had its velocity reduced to zero results in the kinetic energy
of the flowing water being converted into the elastic work. The pressure in the stopped fluid layer
increases. The elastic work goes to the stretching the conduit wall and compressing the water in the fluid
layer (thus increasing the density of the fluid). The fluid is brought to rest by the impulse of the higher
pressure developed at the face of the valve. Once the first fluid layer is brought to rest, the same action is
applied to the next fluid layer. The successive stopping of these fluid layers is actually the propagation
of the water hammer in the upstream direction. Thus a water hammer pressure wave or a positive wave
travels upstream at a propagation wave speed of a as shown in Figure 21.7. The pressure rise at the
water hammer wave applies an impulse to the fluid that is just sufficient to bring the fluid to rest.
The quantity of additional water that enters the pipe during the first L/a seconds (in which the water
hammer wave travels for the valve to the reservoir a shown in Figure 21.7(e)) is
V o AL
-------------- (21.17)
a
21.7.4 At L/a seconds the positive water hammer wave reaches the
reservoir
When the wave reaches the reservoir after a time of t = L/a seconds as shown in Figure 21.7(e) then
H = --a- V o (21.18)
g
521
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
There is an unbalanced head condition at the reservoir just as the positive pressure wave arrives at the
reservoir. The head or pressure in the reservoir remains unchanged with an HGL of Ho as the water ham-
mer reflects from the reservoir.
The HGL in the pipe as the water hammer wave arrives at the reservoir at L/a seconds is at an elevated
level of
H o + H = H o + --a- V o (21.19)
g
The unbalanced head condition between the inside of the pipe and the reservoir at L/a results in a flow
backwards from the reservoir into the pipe with a velocity of – Vo. The resulting backwards flow into the
reservoir returns the head or pressure in the pipeline to the level of the reservoir head of Ho in the fluid
layer adjacent to the reservoir. Thus the head drop is
A water hammer wave now travels downstream from the reservoir towards the valve. s the water ham-
mer now moves away from the reservoir (after L/a seconds), the fluid layer just behind the water ham-
mer wave the pipe wall contracts to normal size and the fluid expands to normal density. A reflected
negative wave now travels downstream towards the valve. Water is discharging out of the pipe back into
the reservoir.
Figure 21.8(f) shows the pipeline at a time of L a + -seconds after the valve closure with the water
hammer wave traveling from the reservoir back towards the valve. Figure 21.8(g) shows the pipeline at
a time of 3L 2a -seconds after the valve closure as the water hammer wave arrives at the mid-point of
the pipeline for the second time. Figure 21.8(h) shows the pipeline at a time of 2L a – -seconds after
the valve closure as the water hammer approaches the valve for the first time.
522
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Figure 21.7 Water hammer waves following instantaneous valve closure [0 < t < L/a]
21.7.6 At 2 L/a seconds the reflected negative wave reaches the valve
When the wave reaches the valve after a time of t = 2L/a seconds as shown in Figure 21.8(i) then
• the fluid velocity in the pipeline is – Vo towards the reservoir along the entire pipe
• the head along the entire pipeline is normal at Ho
• the conduit is of normal size
• the fluid is at normal density
523
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Since the valve is closed when the reflected water hammer wave arrives at 2L/a seconds there then addi-
tional fluid is not available at the closed valve to maintain the negative velocity – Vo towards the reser-
voir. As a result the velocity instantaneously reduces from – Vo to zero in association with a pressure
drop. This occurs in order to stop the flow from detaching from the valve. It is assumed that the head at
the valve does not drop below the vapor pressure head of the fluid at the valve (usually about 10 m or 33
ft below the centerline elevation of the pipe).
For velocity to become zero in the fluid layer just adjacent to the valve as the water hammer wave
reflects from the valve, the head at the valve must drop below the reservoir level by an amount of aVo/g.
Thus an impulse is applied to the fluid due to the pressure drop that just reduces the velocity from – Vo
to zero. The kinetic energy of the reverse flow is converted into negative elastic work of sucking down
the size of the conduit below the initial diameter at the section immediately adjacent to the valve. A
reflected negative water hammer wave now begins to travel from the closed valve towards the reservoir.
The conduit shell behind the negative water hammer wave now contracts to less than the normal size.
The water behind the negative water hammer wave expands to less than the normal density.
Figure 21.8(j) shows the pipeline at a time of 2L a + -seconds after the valve closure with the water
hammer wave traveling from the reservoir back towards the reservoir. Figure 21.8(k) shows the pipeline
at a time of 5L 2a -seconds after the valve closure as the water hammer wave arrives at the mid-point
of the pipeline for the third time. Figure 21.8(l) shows the pipeline at a time of 3L a – -seconds after
the valve closure as the water hammer approaches the reservoir for the second time.
H o – H = H o – --a- V o (21.21)
g
a a a
H = --- V = --- V o – 0 = --- V o (21.22)
g g g
524
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Figure 21.8 Propagation of water hammer waves in the second L/a period [L/a < t < 2L/a]
525
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Figure 21.8(n) shows the pipeline at a time of 3L a + -seconds after the valve closure with the water
hammer wave traveling from the reservoir back towards the valve for the second time. Figure 21.8(o)
shows the pipeline at a time of 7L 2a -seconds after the valve closure as the water hammer wave
arrives at the mid-point of the pipeline for the fourth time. Figure 21.8(p) shows the pipeline at a time of
4L a – -seconds after the valve closure as the water hammer approaches the valve for the second
time.
Figure 21.9 Propagation of water hammer waves in the third L/a period [2L/a < t < 3L/a]
21.7.10 At 4L/a seconds the positive reflected wave reaches the valve
When the water hammer wave reaches the valve after a time of t = 4L/a seconds as shown in
Figure 21.10(q) then the following is true in the pipe
• the fluid velocity is Vo towards the valve along the entire pipe
• the head along the entire pipeline is the normal reservoir level of Ho
• the fluid density is normal
• the conduit size is normal
526
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
The conditions are now identical to those in the pipe at time of zero immediately following the instanta-
neous closure of the valve. The cycle has been completed. This cycle will repeat itself indefinitely every
4L/a seconds.
For a real pipeline, friction and both an inelastic fluid and pipe wall material dissipates energy as heat
and gradually damps down the oscillation to quiescence of zero velocity and normal reservoir head for
the entire pipe.
Figure 21.10 Propagation of water hammer in the fourth L/a period [3L/a < t < 4L/a]
d
F = d t mv = t v dV + v v d A (21.23)
cv cs
527
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
where
m = A a – V o t (21.24)
where
A a – V o t V o + V – V o 2
p s A – p s + p d A = -------------------------------------------------------------------------
- + A V o + V – AV o (21.25)
t
where
2 2 2
– p d A = A a – V o V + A V o + 2V o V + V – AV o (21.26)
2 2 2
– p d = aV – V o V + V o + 2V o V + V – V o (21.27)
2
– p d = aV + V o V + V (21.28)
– p d = V a + V o + V (21.29)
528
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Consider the case of a water hammer event in a pipeline where the velocity change is caused by instan-
taneous closure of the valve from an initial steady state velocity of V o to zero such that
V = V f – V i = – V o (21.30)
2 2
– p d = – a V o – V o + – V o (21.31)
Thus the dynamic pressure increase (or Joukowsky pressure increase) above the steady state pressure ps
is
p d = aV o (21.32)
The change or increase in head or hydraulic grade line is related to the change in pipeline pressure pd as
p p
H = ---------d- = ---------d- (21.33)
g
Combining the Equation 21.32 and Equation 21.33 leads to the basic water hammer or Joukowsky head
change equation
aV
H = ---------o- (21.34)
g
or
H = – aV
----------- (21.35)
g
Recall that this equation applies for no friction and no reflections of water hammer waves that have
returned to the point in the pipeline under consideration.
21.8.1 For a partial valve closure where the velocity change is not V = – Vo
From Equation 21.29
529
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
– p d = V a + V o + V (21.36)
Usually in water hammer flow the wave speed a is much larger than the initial steady state fluid velocity
V o in the pipeline such that
a >> V o + V
– p d = Va (21.37)
or
aV
H = – ----------- (21.38)
g
which again leads to the Joukowsky head change equation for a partial or full valve closure.
Application of the continuity equation to the fluid flow situation during the first L/a seconds following
the instantaneous closure of the valve and combining with the Joukowsky head rise equation gives
2 gH
a = --------------------- (21.39)
A
------- + -------
A
p gH
K = -------------- = ---------------
or
K
gH = ---- ------- (21.40)
K-
--- -------
2
a = --------------------- (21.41)
A
------- + -------
A
or
530
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
K
----
2
a = ------------------------- (21.42)
A
------- ------- + 1
A
- = ------
K-
------ (21.43)
p
Substituting Equation 21.43 into Equation 21.42 and rearranging terms gives
K
----
2
a = -------------------------------- (21.44)
1 A
1 + K --- -------
A p
K-
---
a = -------------------------------- (21.45)
1 A
1 + K --- -------
A p
where
K
a = ---- (21.46)
Thus the wave speed in a pipe conduit will be smaller than the wave speed in an infinite fluid as the term
1 A
K --- ------- will be greater than zero.
A p
The term in the denominator of Equation 21.45 represents the amount of change of area of the pipe for a
change of internal pressure
A
-------
p
Thus the larger the value of the area A for a given change in pressure p due to a water hammer event
1 A
the bigger the term K --- ------- will be, and consequently the smaller the magnitude of the wave speed a.
A p
Imagine a water hammer traveling in a rubber hose. The amount of area change will be relatively large
compared with say a steel pipe (for the same pressure increase due to a water hammer event) and thus
the wave speed in a rubber hose is considerably slower.
531
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
D- 25
---
e
The change in area for a pressure change inside the pipe depends on the restraint condition along the
length of the pipeline. In Equation 21.44 the change in area to change in pressure ratio may be expressed
as
1 A 1D
--- ------- = --- ---- c 1
A p Ee
where
K K
---- ----
2
a = ------------------------------------- = ------------------------ (21.47)
1D K- ---
D- c
1 + K --- ---- c 1 1 + ---
Ee Ee 1
K-
---
a = ------------------------ (21.48)
KD
1 + ---- ---- c 1
Ee
where
532
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
In Table 21.1, = Poisson’s ratio. Poisson’s ratio is the ratio between the contraction at right angles to a
stress and the direct extension. Poisson’s ratio for steel is in the order of 0.3.
Example 21.5 Consider the following pipeline with an internal diameter of 752.5 mm and a pipe wall thickness of
7.94 mm. Assume the pipe has expansion joints throughout. For water assume the bulk modulus of elasticity is
9 2 3
K = 2.2 GPa = 2.2 10 N/m , the fluid density of water is 998.2 kg/m at 20°C, while Young’s modulus of
steel E = 210 GPa = 210 10 N/m2. Compute the wave speed.
9
D 752.5
---- = ------------- = 94.8 > 25
e 7.94
Thus the pipe is thin – walled. Because the pipeline has expansion joints throughout the c 1 value is 1.0.
Thus from Equation 21.48 the wave speed in a thin – walled pipeline is
9
K- 2.2 10 -
--- ------------------
998.2 2203967.1 1484.6
a = ------------------------- = --------------------------------------------------------- = ------------------------------------------------- = ------------------------------
KD 2.2 10 752.5
9 1 + 0.01048 94.8 1 + 0.9935
1 + ---- ---- c 1 1 + --------------------- ------------- 1.0
Ee
210 10 7.94
9
Note the numerator of the last term on the right is the wave speed in an infinite fluid. Thus the wave speed is
a = 1051.5 m/s
___________________________________________________________________________________
E
t eq = t c -----c- (21.49)
Es
where
t s – eq = t s + t eq (21.50)
where
• t Seq = composite equivalent thickness of steel or metal pipe wall plus the cement mortar
lining (m or ft)
• ts = thickness of the steel or metal wall of the pipeline (m or ft)
533
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Example 21.6 Consider the following pipeline with an internal diameter of 752.5 mm and a pipe wall thickness of
7.94 mm (the identical internal diameter and steel pipe wall thickness as in Example 21.5) that has a cement mortar
lining thickness of 12.0 mm. Assume the pipe has expansion joints throughout. For water assume the bulk modulus
of elasticity is K = 2.2 GPa = 2.2 10 N/m2, the fluid density of water is 998.2 kg/m3 at 20°C, while Young’s
9
modulus of steel E = 210 GPa = 210 10 N/m2. Compute the wave speed.
9
Answer – Computation of the wave speed in a thin walled pipeline with a cement mortar lining.
First determine the equivalent thickness of steel as represented by the cement mortar lining thickness from
Equation 21.49 as:
E 25
t eq = t c ------c = 12.0 --------- = 12 0.12 = 1.44 mm
Es 210
Thus the equivalent thickness of steel incorporating the cement mortar lining thickness from Equation 21.50 is
D- = 752.5
--- ------------- = 80.2 > 25
e 9.38
Thus again as for the previous example the pipe is thin – walled. Because the pipeline has expansion joints throughout
the c 1 value is 1.0.
The wave speed in a thin – walled pipeline with a cement mortar lining from Equation 21.48 using t Seq instead of e
for the pipe wall thickness is
9
K 2.2 10
---- -------------------
998.2 2203967.1 1484.6 -
a = ---------------------------------- = --------------------------------------------------------- = ------------------------------------------------
- = -----------------------------
K D -c 2.2 10 - 752.5
9 1 + 0.01048 80.2 1 + 0.8405
1 + ---- ------------- 1 + -------------------- ------------- 1.0
E t Seq 1
210 10 9.38
9
Note the numerator of the last term on the right is the wave speed in an infinite fluid. Thus the wave speed for a cement
mortar lined steel pipe is
a = 1094.4 m/s
Thus compared to Example 21.5 where the steel pipe is unlined, the wave speed increases from a = 1051.5 m/s to
a = 1094.4 m/s by an amount of 4.1% due to the presence of the 12 mm thickness of the cement mortar lining.
Now let us assume the cement mortar lining is now placed on inside the pipe in Example 21.5 thereby
reducing its diameter.
_
Example 21.7 Consider the following pipeline with an internal diameter of 728.5 mm (this is 24 mm less that the
pipe in Example 21.5 due to the presence of the cement mortar lining thickness) and a pipe wall thickness of 7.94
mm that has a cement mortar lining thickness of 12.0 mm. Assume the pipe has expansion joints throughout. For
9 2
water assume the bulk modulus of elasticity is K = 2.2 GPa = 2.2 10 N/m , the fluid density of water is
998.2 kg/m3 at 20°C, while Young’s modulus of steel E = 210 GPa = 210 10 N/m2. Compute the wave speed.
9
Answer – Computation of the wave speed in a thin walled pipeline with a cement mortar lining.
First determine the equivalent thickness of steel as represented by the cement mortar lining thickness from
Equation 21.49 as:
E 25
t eq = t c ------c = 12.0 --------- = 12 0.12 = 1.44 mm
Es 210
Thus the equivalent thickness of steel incorporating the cement mortar lining thickness from Equation 21.50 is
534
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
D- = 728.5
--- ------------- = 77.66 > 25
e 9.38
Thus again as for the previous example the pipe is thin – walled. Because the pipeline has expansion joints throughout
the c 1 value is 1.0.
The wave speed in a thin – walled pipeline with a cement mortar lining from Equation 21.48 using t Seq instead of e is
9
K 2.2 10
---- -------------------
998.2 2203967.1 1484.6
a = ------------------------------------ = --------------------------------------------------------- = ---------------------------------------------------- = ------------------------------
K D 2.2 10 728.5
9 1 + 0.01048 77.66 1 + 0.8139
1 + ---- -------- - c 1 + --------------------- ------------- 1.0
E t 1
210 10 9.38
Seq 9
Note the numerator of the last term on the right is the wave speed in an infinite fluid. Thus the wave speed is
a = 1102.3 m/s
Thus compared to Example 21.5 where there is no cement mortar lining, the wave speed increases from
a = 1051.5 m/s to a = 1102.3 m/s by an amount of 4.9 % due to the presence of the 12 mm thickness of the cement
mortar lining and also because the internal diameter is reduced by 24 mm due to the thickness of the pipe wall lining.
This example is a more realistic comparison than Example 21.6 due to the internal diameter of the steel pipe alone
being kept at the same value.
___________________________________________________________________________________
2e D
c 1 = ------ 1 + + ------------- (21.51)
D D+e
Thus the wave speed for a thick walled pipe becomes from Equation 21.48:
K
----
a = --------------------------------------------------------------------- (21.52)
K- ---
D- 2e D -
1 + --- ------ 1 + + ------------
Ee D D+e
where
535
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Example 21.8 Consider the following pipeline with an internal diameter of 752.5 mm and a pipe wall thickness of
40.0 mm. Assume the pipe has expansion joints throughout. For water assume the bulk modulus of elasticity is
9 2 3
K = 2.2 GPa = 2.2 10 N/m , the fluid density of water is 998.2 kg/m at 20°C, while Young’s modulus of
steel E = 210 GPa = 210 10 N/m2 and the Poisson’s ratio for steel is = 0.3 . Compute the wave speed.
9
D 752.5
---- = ------------- = 18.8 < 25
e 40
Thus the pipe in this case is thick walled rather than thin walled.
Thus from Equation 21.52 the wave speed in a thick – walled pipeline fluid is
9
K- 2.2 10 -
--- ------------------
998.2
a = ---------------------------------------------------------------------- = ------------------------------------------------------------------------------------------------------------------------
K- ---
D- 2e D - 9
1 + --- ------ 1 + + ------------ 2.2 10 752.5 2 40 752.5
1 + --------------------- ------------- -------------- 1 + 0.3 + -------------------------
Ee D D+e
210 10 40 752.5 752.5 + 40
9
Thus
Note the numerator of the last term on the right is the wave speed in an infinite fluid. Thus
a = 1347.3 m/s
Thus compared to Example 21.5, the wave speed increases from a = 1051.5 m/s to a = 1347.3 m/s by an amount
of 28.1 % due to the increase of pipe wall thickness from 7.94 mm to 40.0 mm.
___________________________________________________________________________________
A 0 (21.53)
K K-
---- ---
K
a = ----------------------------------- = ---------------------- = ---- (21.54)
1 A 1 + K 0
1 + K --- -------
A p
Thus:
K
a = ---- (21.55)
where
536
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Example 21.9 Consider the following pipeline with an internal diameter of 752.5 mm that is completely rigid. For
water assume the bulk modulus of elasticity is K = 2.2 GPa = 2.2 10 N/m2 and the fluid density of water is
9
9
K 2.2 10
a = ---- = ------------------- = 1484.6 m/s
998.2
Note the wave speed here is the same for that in an infinite fluid. In addition, it is independent of the pipe material.
___________________________________________________________________________________
1 A
K --- ------- » 1 (21.56)
A p
K- K-
--- ---
Ap-
a= -------------------------------- ---------------------- = ---------- (21.57)
1 A 1 A A
1 + K --- ------- K --- -------
A p A p
Ap
a = ----------- (21.58)
A
where
537
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Figure 21.12 Forces and stresses in a pipe wall due to water hammer
Assume the pressure in a pipeline is increased by p due to the passage of a water hammer wave. The
increase in the resultant force F on the inside of a unit length of the pipe resulting from the pressure
change (p or pd) is
F = pA (21.59)
Now substituting for the area for a 1 m length of pipe and using p = H
Let the increase in circumferential or lateral tensile force per unit length in the pipe wall be T. Thus
F = 2T (21.61)
Thus
F pD
T = -------- = ----------- (21.62)
2 2
T pD
= ---------- = ----------- (21.63)
e1 2e
Thus:
pD
= ----------- (21.64)
2e
where
• = change in normal stress due to a change of pressure in the pipe (N/m2 or lbf/ft2)
• p = change in pressure (N/m2 or lbf/ft2) - and also equivalent to a change in transient
pressure head H (see Figure 21.12)
• D = internal diameter of the pipe (m or ft)
• e = thickness of the pipe wall (m or ft)
21.11 Design Pressure Level
The design pressure level or DPL is the maximum permissible pressure (or head) for a pipeline that it is
designed to withstand. It is the sum of the pumping head, water hammer pressures and a factor of safety.
For a section of main that has both a constant pipe diameter and wall thickness, the DPL is often taken
as the maximum pressure at the worst point in the pipeline profile. This is generally where the maximum
538
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
elevation difference occurs between the ground surface and the maximum hydraulic grade line. The
DPL is often taken to be a horizontal – although in reality there may be points in the pipeline where the
ground surface rises up and the maximum possible pressure does not exceed the worst possible pressure
in the pipeline.
0 = dV + v d A (21.65)
t cv cs
The first term in Equation 21.65 is the change of mass in the control volume while the second term is the
net efflux of mass across the control surface.
Figure 21.13 Control volume for the unsteady flow continuity equation
539
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Expanding, introducing the wave speed and changing from pressure to HGL leads to
2
H H a V
+V – V sin + ----- = 0 (21.67)
t x g x
where
• assuming the Vsin term is small and therefore dropping this term out
• assuming the relative size of the following terms is such that
H >> V H
t x
2
H a V
+ ----- = 0 (21.68)
t g x
540
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
In Equation 21.23 (from the Reynolds theorem) the main forces involved include pressure forces, grav-
ity and shear resistance at the boundary. The two types of pressure forces that are considered are the sur-
face contact normal pressures and the pressure component at the periphery or annular space due to the
diverging pipeline. It is also assumed that unsteady friction may be adequately modeled by steady state
friction.
V V H f V V
+V +g + ------------------ = 0 (21.69)
t x x 2D
where
• Assuming the relative size of the following term (the convective acceleration) is such that
V V
>> V
t x
541
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
V + g H + -----------------
f V V- = 0 (21.70)
t x 2D
The two partial differential equations (PDEs) of Equation 21.68 and Equation 21.70 form a set of
quasi – linear hyperbolic PDEs. The two dependent variables are velocity V (we will replace this by the
discharge Q later on in the Chapter) and hydraulic grade line H or V (x, t) and H(x, t). The independent
variables are distance along the pipeline x and time t.
A summary of the two unsteady flow or water hammer partial differential equations is as follows:
2
H a V
+ ----- =0
t g x
V H f V V
+g + ------------------ = 0
x x 2D
where
An unknown multiplier method may be applied to the two partial differential equations of
Equation 21.68 and Equation 21.70. Let the simplified unsteady continuity equation be represented as
2
H a V
L2 = + ----- (21.71)
t g x
V H f V V
L1 = +g + ------------------ (21.72)
t x 2D
L = L1 + L2 (21.73)
542
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
g
= ---- (21.74)
a-
+
The C pair of ordinary differential equations include the compatibility equation
g dH + dV + --------------
+ ----
fV V
- = 0 (21.75)
a- d t dt 2D
+
that is valid along the C characteristic line of
dx
= a (21.76)
dt
_
The C pair of ordinary differential equations include the compatibility equation
fV V
g dH + dV + ----------------
– ---- - = 0 (21.77)
a- d t dt 2D
_
that is valid along the C characteristic line of
dx
= –a (21.78)
dt
543
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
dx
= a (21.79)
dt
x
------ = a (21.80)
t
where
x
t = ------ (21.81)
a
Note the use of the cross-over grid in Figure 21.15 where every section (even numbered and odd num-
bered sections) are computed at each time step. This is in contrast to the use of a diamond grid where
even and odd reaches are computed sequentially at each alternative time step.
544
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
H t
g P dH + V P dV + P --------------
fV V
+ ----
-
a H - dt = 0 (21.82)
A V t A 2D
A
f t P V V dt = 0
g H – H + V – V + -------
+ ---- (21.83)
2D t
a - P A P A
A
where
a fx
H P – H A + ------- Q P – Q A + ------------------ Q P Q A = 0 (21.84)
gA 2gD A
2
where
545
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
a
B = ------- (21.85)
gA
CHARACTERISTIC IMPEDANCE
where
m
----
s s
B = ---------------------- = ------
m 2 2
----- m m
2
s
fx
R = ------------------ (21.86)
2
2gD A
2
- m - = ------ s
R = ------------------------------- (21.87)
m 2 3
----- m m m
2
s
Substituting Equation 21.85 and Equation 21.86 into Equation 21.84 gives
H P = H A – B Q P – Q A – RQ P Q A (21.88)
H P = H A + BQ A – B + R Q A Q P (21.89)
Recall that point P on the x-t plane is the current time step of L/2a seconds with the values of QP and HP
that are unknown and point A is the previous time step of zero seconds at which values of QA and HA are
known. Assign values in Equation 21.89 that are at the previous time step of point A where conditions
are assumed to be known as
546
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
C pc = H A + BQ A (21.90)
B pc = B + R Q A (21.91)
where
H P = C pc – B pc Q P (21.92)
• C pc = “C” constant for positive characteristic line between Point A and Point P
• H A = known transient head or HGL at point A in Figure 21.15 (m or ft) at a time t earlier
than where H P is being computed
• B = characteristic impedance (s/m2 or s/ft2)
• Q A = known discharge at point A in Figure 21.15 (m or ft) at a time t earlier than where
Q P is being computed
• B pc = “B” constant for positive characteristic line between Point A and Point P
• R = reach resistance (units are given in Equation 21.87)
• H P = unknown transient head or HGL at point P in Figure 21.15 (m or ft)
• Q P = unknown discharge or flow at point P in Figure 21.15 (m3/s or ft3/s)
x
------ = – a (21.93)
t
_ _
Integrating the C compatibility equation along the C characteristic line between points B and P both
on the x-t plane in Figure 21.15 results in
t f
g H P dH + V P dV + P ----------------
– ----
V V
a H
- 2D - dt = 0 (21.94)
B V B t B
g f tP
+ ----- H P – H B – V P – V B – ------- V V dt = 0 (21.95)
a 2D t B
Converting to flow (from velocity) and using an integrating by parts approach for the last term gives
547
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
a fx
H P – H B – ------- Q P – Q B – ------------------ Q P Q B = 0 (21.96)
gA 2gD A
2
Substituting Equation 21.85 and Equation 21.86 for the characteristic impedance B and the pipe reach
resistance R into Equation 21.96
H P = H B + B Q P – Q B + RQ P Q B (21.97)
H P = H B – B Q B + B + R Q B Q P (21.98)
Recall that point P on the x-t plane is the current time step of L/2a seconds with the values of QP and HP
that are unknown and point B is the previous time step of zero seconds at which values of QB and HB are
known. Assign values in Equation 21.98 that are at the previous time step of point B again where condi-
tions are assumed to be known as
C mc = H B – BQ B (21.99)
B mc = B + R Q B (21.100)
where
H P = C mc + B mc Q P (21.101)
• C mc = “C” constant for negative characteristic line between Point B and Point P
• H B = known transient head or HGL at point B in Figure 21.15 (m or ft) a time t earlier
than where H P is being computed
• B = characteristic impedance (s/m2 or s/ft2)
• Q B = known discharge at point B in Figure 21.15 (m or ft) at a time t earlier than where
Q P is being computed
• B mc = “B” constant for negative characteristic line between Point B and Point P
• R = reach resistance (units are given in Equation 21.87)
• H P = unknown transient head or HGL at point P in Figure 21.15 (m or ft)
• Q P = unknown discharge or flow at point P in Figure 21.15 (m3/s or ft3/s)
548
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Thus an interior computational section is governed by the two integrated compatibility equations of
Equation 21.92 and Equation 21.101. Solving for the unknown head HP between these two equations
give
C pc B mc + C mc B pc
H P = ---------------------------------------------- (21.102)
B pc + B mc
and solving for QP between these two equations of Equation 21.92 and Equation 21.101 gives
C pc – C mc
Q P = -------------------------
- (21.103)
B pc + B mc
An example of the calculation of the head at the mid – point of a pipe due to the arrival of a water ham-
mer generated by rapid closure of a valve at the downstream end of the pipe is given in Example 21.10.
See Figure 21.7 (c) for details of arrival of the water hammer wave at the mid – point of the pipeline.
1. Computation at an interior node at the mid-point of the pipeline at Point P2 on the x-t plane
at time L/2a seconds (Section 21.15.5 and Example 21.10). The interior nodes are usually
computed prior to the boundary conditions. This is why Point P2 is presented first before
Point P1.
2. Computation in the pipeline just adjacent to the downstream boundary condition of a closed
valve at Point P1 on the x-t plane at time zero seconds (Section 21.16.2 and
Example 21.11). A significant increase in head occurs at the valve due to the instantaneous
closure of the valve.
3. Computation in the pipeline just adjacent to the upstream boundary condition of a reservoir
at Point P3 on the x-t plane at time L/2a seconds (Section 21.7.2 and Example 21.12). This
point is still at the initial steady state conditions so no change in head or discharge occurs.
The method of characteristics computations verify that this is the case.
549
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
4. Computation in the pipeline just adjacent to the downstream boundary condition of a closed
valve at Point P4 on the x-t plane at time L/2a seconds (Section 21.18.1 and
Example 21.13).
5. Computation in the pipeline just adjacent to the upstream boundary condition of a reservoir
at Point P5 on the x-t plane at time L/a seconds (Section 21.18.2 and Example 21.14). Flow
reversal occurs at the reservoir as the water hammer wave reflects.
6. Computation in the pipeline just adjacent to the downstream boundary condition of a closed
valve at Point P6 on the x-t plane at time L/a seconds (Section 21.18.2 and Example 21.15).
7. Computation at an interior node at the mid-point of the pipeline at Point P7 on the x-t plane
at time 3L/2a seconds (Section 21.19.1 and Example 21.16).
8. Computation in the pipeline just adjacent to the downstream boundary condition of a closed
valve at Point P8 on the x-t plane at time L/a seconds (Section 21.19.2 and Example 21.17).
The head at the valve drops significantly when the water hammer wave reflects from the
closed valve for the first time.
550
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Example 21.10 Consider a reservoir – pipe – valve system in Figure 21.18 with the following characteristics
Compute the head and flow at the mid-point of the pipeline (Point P2 on the x-t plane) at L/2a seconds.
Answer – Computation of the head and flow at the mid-point of the pipeline at L/2a seconds
Computing transient conditions at section 2 at the mid – point of pipe (Point P2 on the x-t plane) at L/2a seconds
+
The conditions at the mid – point of the pipeline P2 at time t = L/2a must be determined from the C characteristic line
_
between Points A2 and P2 and the C characteristic line between Points B2 and P2 as shown in Figure 21.18, all these
points being on the x-t plane. Conditions for head and discharge are needed at Points A and B both on the x-t plane in
Figure 21.18 at the previous time step of zero seconds. The usage of the number 2 in A2, B2 and P2 refers to the second
method of characteristics point computation that is carried out and does not refer to the section numbers at ends of
reaches along the pipeline. The first calculation is actually for Point A1 on the x-t plane as shown in Example 21.11 (as
Point P1 on the x-t plane).
Two reaches are selected for the method of characteristics calculations. Thus the reach length is one – half the length of
the pipeline
x = --L- = 980
--------- = 490 m (21.104)
2 2
Corresponding to the two reaches in the pipeline there are three computational sections — one at the entrance just inside
the pipeline (section 1), one at the mid – point of the pipeline (section 2) and one just upstream of the valve at the
downstream end of the pipeline (section 3).
The time step corresponding to the selected reach length of 490 m must now come from the equation for the character-
istic line (Equation 21.81) in discrete form or
x = 490
t = ------ --------- = 0.5 s (21.105)
a 980
Steady state conditions in the pipeline prior to the closure of the valve at zero seconds
2 2
A = D- = 0.5 - = 0.1964 m 2
--------- ----------------- (21.106)
4 4
The flow along the entire pipeline, before the valve closure, prior to a time of zero seconds is constant and at steady
state conditions. Thus the flow at the mid – point of the pipeline (section 2) is
3
Q 2 = VA = 1.0 0.1964 = 0.1964 m /s
This is the flow at the mid – point of the pipeline until the arrival of the water hammer wave at L/2a seconds.
H 1 = 200.0 m
551
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Figure 21.17 Steady state hydraulic grade line just before the rapid valve closure
The initial steady state hydraulic grade line is given by the head loss from the Darcy – Weisbach equation
(Equation 4.3)
2 2
fL- V = 0.02 980 1.0 =
h f = ----- ------ ------------------------ ------------------ 1.998 m (21.107)
D 2g 0.5 2 9.81
The initial steady state HGL at section 2 (the mid – point of the pipeline – see Figure 21.17) before the arrival of the
water hammer wave at L/2a seconds is
1.998
H 2 = 200.0 – ------------- = 199.001 m (21.108)
2
The HGL at section 3 (just upstream of the valve at the downstream end – see Figure 21.17) prior to the closure of the
valve at zero seconds is
A summary of conditions at the three sections along the pipeline at just prior to zero seconds is given in Table 21.2.
Conditions at section 1 – at the reservoir (Point A2 on the x-t plane) – steady state conditions at zero seconds
The HGL at the reservoir at section 1 or point A2 on the x-t plane at time t = 0 seconds is
H A2 = 200.0 m
The flow in the pipeline at section 1 or point A2 on the x-t plane at time t = 0 seconds is
3
Q A2 = 0.1964 m /s
Conditions at section 3 – at the closed valve (Point B2 on the x-t plane) at zero seconds
+
Conditions at point B2 on the x-t plane at time t = 0 seconds immediately after the closure of the valve are taken from
Example 21.11 (Point P1 on the x-t plane) as
3
H B2 = 298.90 m and Q B2 = 0.0 m /s
Table 21.2 Initial steady state conditions in pipeline just prior to valve closure
552
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Figure 21.18 Calculation of head and flow at the mid-point of the pipe at P2
on the x-t plane at L/2a seconds
Method of characteristics calculations at Point P2 on the x-t plane (or at section 2) at a time of L/2a seconds
The transient was generated by the closure of the valve at the downstream end of the pipeline at zero seconds. In the
first L/2a seconds the water hammer wave has traveled from the valve to the mid – point of the pipeline (Point P2 on
the x-t plane) where it generates a significant head rise and a corresponding velocity reduction.
The water hammer HGL and the discharge at the mid – point are given from the method of characteristics equations of
Equation 21.102 and Equation 21.103 respectively as
C pc B mc + C mc B pc C pc – C mc
H P2 = --------------------------------------------
- and Q P2 = ------------------------
-
B pc + B mc B pc + B mc
a- = -------------------------------
980
B = ------ - = 508.65 (21.110)
gA 9.81 0.1964
0.02 490
fx - = -------------------------------------------------------
R = ----------------- = 25.90 (21.111)
2 2
2 gD A 2 9.81 0.5 0.1964
Note that R depends on the reach length x. Thus if the number of computational reaches is increased the R value will
decrease.
Compute the values of the “constants” of C pc and B pc for the previous time step from Equation 21.90 and
Equation 21.91 as
Now compute the values of the “constants” of C mc and B mc for the previous time step from Equation 21.99 and
Equation 21.100 as
Thus the water hammer HGL at the mid-point of the pipeline at L/2a seconds is
553
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
The corresponding transient flow at the mid – point at L/2a seconds corresponding to the arrival of the water hammer
wave from Equation 21.103 is
C pc – C mc 299.90 – 298.90 3
Q P2 = ------------------------
- = --------------------------------------- = 0.00098 m /s
B pc + B mc 513.74 + 508.65
Figure 21.19 Summary of method of characteristics results for calculation at the mid – point of the pipeline
at Point P2 on the x-t plane at L/2a seconds
___________________________________________________________________________________
554
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
+
The C integrated compatibility equation between point A and P both on the x-t plane in Figure 21.20
+
from Equation 21.92 is used. It is valid along the C characteristic line.
H P = C pc – B pc Q P (21.112)
where the “constants” for the previous time step at point A at L/2a seconds are
C pc = H A + BQ A and B pc = B + R Q A
a fx
B = ------- and R = ------------------
gA 2gD A
2
_
There are two unknowns of HP and QP in Equation 21.112. There is no C equation available on the
downstream side of the closed valve. In actual fact, one of the two unknowns is known with the valve
being fully closed (as long as the pressure in the pipe is above the vapor pressure head) and hence
Q P = 0.0 (21.113)
555
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Substituting Equation 21.113 into Equation 21.112 gives an expression to solve for the HGL at the valve
at section 3 based on conditions at the previous time step at the section immediately upstream
H P = C pc (21.114)
where
21.16.2 An MOC example for the head rise due to instantaneous valve clo-
sure at zero seconds (Point P1 on the x-t plane)
Consider an example to illustrate the head rise at the closed valve immediately after the valve is closed.
See Figure 21.7 (b) for details of generation of the water hammer wave at the valve following instanta-
neous closure.
Example 21.11 Consider a reservoir – pipe – valve system in Figure 21.21 with the same characteristics as the sys-
tem described in Example 21.10: reservoir elevation HR = 200 m, pipe length L = 980 m, pipe diameter D = 0.5 m,
Darcy – Weisbach friction factor f = 0.02, initial velocity V = 1.0 m/s, wave speed a = 980 m/s and gravitational
acceleration g = 9.81 m/s2.
Compute the hydraulic grade line at the valve (Point P1 on the x-t plane) due to instantaneous closure that occurs at
+
zero seconds (t = 0 ). Compare the methods of characteristics head rise with the Joukowsky head rise.
+
Answer – Computation of the HGL at the valve immediately following instantaneous closure at 0 seconds.
Computing transient conditions at section 1 at the valve (Point P1 on the x-t plane)
The conditions at point P1 on the x-t plane immediately after the valve closure must be determined from the character-
istic line between A1 and P1 in Figure 21.21. The usage of the number 1 in A1 and P1 refers to the first method of
characteristics point computation that is carried out and does not refer to the section numbers at ends of reaches along
the pipeline. The characteristic line between A1 and P1 (both on the x-t plane) actually reaches backwards to section 2
or point A1 at time – L/2a seconds where conditions in the pipeline are at steady state — in fact, identical to conditions
along the entire pipeline at a time of t = 0. Steady state conditions for the pipeline prior to the closure of the valve are
given in Table 21.2.
The transient is generated by the closure of the valve at the downstream end of the pipeline at zero seconds. As for
Example 21.10 the reach length x is 490 m or one – half the length of the pipeline as computed in Equation 21.104.
The corresponding time step from the characteristic equation t is 0.5 seconds from Equation 21.105.
556
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
2
From Example 21.10 the area ( A = 0.1964 m ), characteristic impedance ( B = 508.65 ), reach resistance
( R = 25.90 ) for the pipe are given by Equation 21.106, Equation 21.110 and Equation 21.111 respectively.
Conditions at section 2 at the mid – point (Point A1 on the x-t plane) with steady state conditions at – L/2a seconds
The flow along the entire pipeline is constant for steady state conditions prior to zero seconds, thus the flow at the
mid – point of the pipeline is
3
Q A1 = VA = 1.0 0.1964 = 0.1964 m /s
The initial steady state hydraulic grade line is given by the head loss of h f = 1.998 m from the Darcy – Weisbach
equation from Equation 21.107 in Example 21.10. The initial steady state HGL at section 2 or point A1 on the x-t plane
(the mid – point of the pipeline) before the arrival of the water hammer wave at L/2a seconds from Equation 21.108 is
H A1 = 199.001 m
+
Method of characteristics calculations at point P1 on the x-t plane (at section 3) at t = 0 seconds
+
The C compatibility equation from Equation 21.92 is
H P1 = C pc – B pc Q P1
Compute the values of the “constants” of C pc and B pc for the previous time step from Equation 21.90 and
Equation 21.91 as
Note the term BQ A1 has been added to the HGL at section 2 at the mid-point of the pipeline rather than to the HGL at
section 3 at the valve. This leads to an error in the MOC calculation due to the fact that only two reaches are used. For
increased accuracy more computational reaches must be used.
+
The flow at the valve following the instantaneous closure of the valve at t = 0 is
3
Q P1 = 0.0 m /s
The water hammer HGL at the valve following the instantaneous valve closure is
557
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
+
Conditions at the valve just after the valve closure at t = 0 are shown in Table 21.4. Values computed for this time
step are shown in bold. The final results are also shown in Figure 21.22.
Table 21.4 Transient conditions in pipeline just after the valve closure at Point P1 on the x-t plane
at zero seconds
The head rise above the initial HGL just upstream of the valve at section 3 or point P1 on the x-t plane as computed
from the method of characteristics method is
Figure 21.22 Summary of method of characteristics results for calculation at the closed valve
at Point P1 on the x-t plane at zero seconds
This value is in fact correct. The HGL for P1 on the x-t plane should be 297.90 m and not 298.90 m.
The discrepancy of 1.0 m here actually highlights a problem with the MOC method. Using many more reaches would
reduce the error.
If the positive characteristic was applied over a very short distance so that Point A1 on the x-t plane was very close to
P1 such that x 0 then R 0 . For this computation, H A1 becomes 198.002 m instead of 199.001 m, a significant
558
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
change.
Now recompute the values of the “constants” of C pc and B pc for the previous time step from Equation 21.90 and
Equation 21.91 as
The recomputed water hammer HGL at the valve following the instantaneous valve closure is now
Thus the Joukowsy head rise is recomputed water hammer HGL at the valve following the instantaneous valve closure
is now
This now matches the actual Joukowsy head rise computed as Equation 21.115.
___________________________________________________________________________________
_
The C integrated compatibility equation between point B and P (both on the x-t plane) in Figure 21.23
_
from Equation 21.101 is used. It is valid along the C characteristic line. Information may be thought of
as propagating along the characteristic line from B to P from a time zero to time L/2a seconds.
H P = C mc + B mc Q P (21.116)
where
559
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
C mc = H B – B Q B and B mc = B + R Q B
f x
a- and R = -----------------
B = ------ -
gA 2gD A
2
+
There are two unknowns of HP and QP in Equation 21.116. There is no C equation available on the
reservoir side of section 1 or point P (on the x-t plane) at the reservoir. In actual fact, one of the two
unknowns is known and for a stationary reservoir water surface is always specified and constant
HP = HR (21.117)
where
Substituting Equation 21.117 into Equation 21.116 gives an expression to solve for the flow at the reser-
voir at section 1 or point P (on the x-t plane) based on conditions at the previous time step at the section
immediately upstream
H R – C mc
Q P = -----------------------
- (21.118)
B mc
where
Thus to alter the flow at the reservoir then either the head HB or the flow QB must be altered by changing
conditions at the valve at the downstream end of the pipeline.
21.17.2 An MOC example for steady state conditions at the reservoir at L/2a
seconds (Point P3 on the x-t plane)
The calculations in the following Example are not really necessary given an understanding of the wave
travel characteristics of the valve closure. The water hammer wave will take L/a seconds to travel from
the valve to the reservoir. Thus the water hammer wave at L/2a seconds will have only reached the mid-
point of the pipeline and as a result the conditions at the reservoir will be still at steady state flow condi-
tions. However, if the method of characteristics is implemented within a computer code then the follow-
ing calculations will actually be carried out as it will not know that the conditions at the reservoir are at
steady state. The same is true for the reservoir at a time of zero seconds - a computer method of charac-
teristics calculation will also be carried out for this point.
560
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Example 21.12 Consider a reservoir – pipe – valve system in Figure 21.24 with the following characteristics (same
as for Example 21.10): reservoir elevation HR = 200 m, pipe length L = 980 m, pipe diameter D = 0.5 m, Darcy –
Weisbach friction factor f = 0.02, initial velocity V = 1.0 m/s, wave speed a = 980 m/s and gravitational acceleration
g = 9.81 m/s2.
The valve at the downstream end is closed instantaneously at a time of zero seconds. Compute the flow and velocity
at the reservoir (Point P3 on the x-t plane) at L/2a seconds.
Answer – Computation of the flow and velocity at the reservoir at L/2a seconds.
Computing transient conditions at section 1 – at the reservoir (Point P3 on the x-t plane)
_
The conditions at the reservoir at P3 at time t = L/2a must be determined from the C characteristic line from the con-
ditions at the mid – point between B3 on the x-t plane at time zero seconds and P3 or section 1 as shown in
Figure 21.24. The usage of the number 3 in B3 and P3 refers to the third method of characteristics point computation
that is carried out and does not refer to the section numbers at ends of reaches along the pipeline.
The transient was generated by the closure of the valve at the downstream end of the pipeline at zero seconds. In the
first L/2a seconds the water hammer wave has traveled from the valve to the mid-point of the pipeline.
As for Example 21.10, the reach length x is 490 m or one – half the length of the pipeline as computed in
Equation 21.104 of Example 21.10. The corresponding time step x from the characteristic equation is 0.5 seconds
from Equation 21.105.
2
The area ( A = 0.1964 m ), characteristic impedance ( B = 508.65 ), reach resistance ( R = 25.90 ) for the pipe are
given by Equation 21.106, Equation 21.110 and Equation 21.111 of Example 21.10 respectively.
Conditions at section 2 – at the mid – point of the pipeline (point B3 on the x-t plane) at a time of zero seconds
3
H B3 = 199.001 m and Q B3 = 0.1964 m /s
Method of characteristics calculations at point P3 on the x-t plane (or at section 1) at L/2a seconds
H R – C mc
Q P3 = -----------------------
-
B mc
Figure 21.24 Calculation of the flow and velocity at the reservoir (Point P3 on the x-t plane) at L/2a seconds
Compute the values of the “constants” of C mc and B mc for the previous time step from Equation 21.99 and
561
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Equation 21.100 as
H R – C mc 200.0 – 99.10 3
Q P3 = -----------------------
- = --------------------------------- = 0.1964 m /s
B mc 513.74
Q P3
- = 0.1964
V P3 = -------- ---------------- = 1.0 m/s
A 0.1964
Thus the exact initial steady state condition for discharge and velocity have been calculated, which is what one would
expect, as the water hammer wave from the valve closure has only reached the mid-point of the pipeline.
Conditions at the reservoir just after the water hammer wave arrives at the mid-point of the pipeline for the first time
are shown in Table 21.7. Values computed for this time step are shown in bold. The final results are also shown in
Figure 21.25.
Table 21.5 Transient conditions in pipeline just after the valve closure at Point P1 on the x-t plane
at zero seconds
Figure 21.25 Summary of method of characteristics results for calculation at the reservoir
at Point P3 on the x-t plane at L/2a seconds
562
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
___________________________________________________________________________________
Example 21.13 Consider a reservoir – pipe – valve system as shown in Figure 21.26 with the same characteristics as
the system described in Example 21.10: reservoir elevation HR = 200 m, pipe length L = 980 m, pipe diameter
D = 0.5 m, Darcy – Weisbach friction factor f = 0.02, initial velocity V = 1.0 m/s, wave speed a = 980 m/s and gravi-
tational acceleration g = 9.81 m/s2.
The valve at the downstream end was closed instantaneously at a time of zero seconds. Compute the hydraulic grade
line at the valve (Point P4 on the x-t plane) at L/2a seconds.
Computing transient conditions at section 1 at the valve (Point P4 on the x-t plane)
+
The head at P4 needs to be calculated from the C characteristic line from the conditions at the mid – point of the pipe-
line at a time of zero seconds (designated as point A4 on the x-t plane in Figure 21.26).
The transient was generated by the closure of the valve at the downstream end of the pipeline at zero seconds. In the
first L/2a seconds the water hammer wave has traveled from the valve to the mid-point of the pipeline. Conditions at
the valve are recalculated at this time. At the valve at L/2a seconds the discharge remains at zero.
Two reaches are selected as for the previous examples. Thus the reach length x is 490 m or one – half the length of the
pipeline as computed in Equation 21.104 of Example 21.10. The corresponding time step t from the characteristic
equation is 0.5 seconds from Equation 21.105.
2
The area ( A = 0.1964 m ), characteristic impedance ( B = 508.65 ), reach resistance ( R = 25.90 ) for the pipe are
given from Example 21.10 by Equation 21.106, Equation 21.110 and Equation 21.111 respectively.
Conditions at section 2 – at the mid – point (Point A4 on the x-t plane) at zero seconds
Conditions at point A4 on the x-t plane at the mid – point of the pipeline are taken from Example 21.10 as the initial
steady state conditions of
563
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
3
H A4 = 199.001 m and Q A4 = 0.1964 m /s
Method of characteristics calculations at point P4 on the x-t plane (or at section 3) at L/2a seconds
+
The C compatibility equation from Equation 21.92 is
H P4 = C pc – B pc Q P4
Compute the values of the “constants” of C pc and B pc for the previous time step from Equation 21.90 and
Equation 21.91 as
The flow at the valve (assuming the pressure stays above the vapor pressure of the fluid) at t = L/2a is
3
Q P4 = 0.0 m /s
Thus the conditions at the valve are identical to those immediately following valve closure as shown for Point P1 on
the x-t plane in Example 21.11 and as shown in Table 21.4.
Conditions at the valve just after the valve closure at a time of L/2a seconds are shown in Table 21.6. Values computed
for this time step are shown in bold. The final results are also shown in Figure 21.27.
Table 21.6 Transient conditions in pipeline at the closed valve at Point P4 on the x-t plane at L/2a seconds
after the valve closure
564
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Figure 21.27 Summary of method of characteristics results for calculation at the closed valve
at Point P4 on the x-t plane at L/2a seconds
___________________________________________________________________________________
Example 21.14 Consider a reservoir – pipe – valve system in Figure 21.28 with the following characteristics (same
as for Example 21.10): reservoir elevation HR = 200 m, pipe length L = 980 m, pipe diameter D = 0.5 m, Darcy –
Weisbach friction factor f = 0.02, initial velocity V = 1.0 m/s, wave speed a = 980 m/s and gravitational acceleration
g = 9.81 m/s2.
The valve at the downstream end is closed instantaneously at a time of zero seconds. Compute the reversal of both
the flow and velocity at the reservoir (Point P5 on the x-t plane) following the reflection of the water hammer wave
from the reservoir at L/a seconds.
Answer – Computation of the reversal of the flow and velocity at the reservoir at L/a seconds.
Computing transient conditions at section 1 – at the reservoir (Point P5 on the x-t plane)
_
The conditions at the reservoir at P5 on the x-t plane at time t = L/a must be determined from the C characteristic line
from the conditions at the mid – point between B5 on the x-t plane at time L/2a seconds and P5 or section 1 as shown in
Figure 21.28.
The transient was generated by the closure of the valve at the downstream end of the pipeline at zero seconds. In the
first L/a seconds the water hammer wave has traveled from the valve to the reservoir where it reflects. The reflection of
the water hammer wave from the reservoir is being calculated here.
As for Example 21.10, the reach length x is 490 m or one – half the length of the pipeline as computed in
Equation 21.104. The corresponding time step t from the characteristic equation is 0.5 seconds from
Equation 21.105.
565
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Figure 21.28 Calculation of reversal of the flow and velocity at the reservoir (Point P5 on the x-t plane) at L/a seconds
2
The area ( A = 0.1964 m ), characteristic impedance ( B = 508.65 ), reach resistance ( R = 25.90 ) for the pipe are
given by Equation 21.106, Equation 21.110 and Equation 21.111 of Example 21.10 respectively.
Conditions at section 2 – at the mid – point of the pipeline (point B5) at a time of L/2a seconds
3
H B5 = 299.40 m and Q B5 = 0.00098 m /s
Method of characteristics calculations at point P5 on the x-t plane (or at section 1) at L/a seconds
H R – C mc
Q P5 = -----------------------
-
B mc
Compute the values of the “constants” of C mc and B mc for the previous time step from Equation 21.99 and
Equation 21.100 as
H R – C mc 200.0 – 298.90 3
Q P5 = -----------------------
- = ------------------------------------ = – 0.1944 m /s
B mc 508.68
Q P5
- = –------------------
0.1944- = – 0.990 m/s
V P5 = --------
A 0.1964
Thus after the reflection of the water hammer wave at the reservoir, the flow is out of the pipe into the reservoir at a
velocity of negative 0.990 m/s. Just before the arrival of the water hammer wave at the reservoir the velocity was into
the pipe at a velocity of 1.0 m/s. Thus there has been a virtually total reversal of the velocity at the reservoir. Conditions
at the reservoir just after the water hammer wave arrives at the reservoir for the first time are shown in Table 21.7. Val-
ues computed for this time step are shown in bold.
The final results are also shown in Figure 21.29.
566
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Table 21.7 Transient conditions in pipeline at the reservoir at Point P5 on the x-t plane at L/a seconds
after the valve closure
Figure 21.29 Summary of method of characteristics results for calculation at the reservoir at Point P5 on the x-t plane
at L/a seconds - the flow and velocity both reverse
___________________________________________________________________________________
21.18.3 An MOC example for conditions at the closed valve at L/a seconds
(Point P6 on the x-t plane)
As was seen in Example 21.11, the head at the valve (section 1 or point P6 on the x-t plane) is computed
from conditions at the computational section immediately upstream (section 2 or point A6 on the x-t
plane) at the mid – point of the pipeline.
Example 21.15 Consider a reservoir – pipe – valve system as shown in Figure 21.30 with the same characteristics as
the system described in Example 21.10: reservoir elevation HR = 200 m, pipe length L = 980 m, pipe diameter
D = 0.5 m, Darcy – Weisbach friction factor f = 0.02, initial velocity V = 1.0 m/s, wave speed a = 980 m/s and gravi-
tational acceleration g = 9.81 m/s2.
The valve at the downstream end was closed instantaneously at a time of zero seconds. Compute the hydraulic grade
line at the valve (Point P6 on the x-t plane) at L/a seconds.
Computing transient conditions at section 1 at the valve (Point P6 on the x-t plane)
567
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
+
The head at P6 on the x-t plane needs to be calculated from the C characteristic line from the conditions at the mid –
point of the pipeline at a time of L/2a seconds (designated as point A6 on the x-t plane in Figure 21.30).
The transient was generated by the closure of the valve at the downstream end of the pipeline at zero seconds. In the
first L/a seconds the water hammer wave has traveled from the valve to the reservoir. Conditions at the valve are recal-
culated at this time. At the valve at L/a seconds the discharge remains at zero.
Two reaches are selected as for the previous examples. Thus the reach length x is 490 m or one – half the length of the
pipeline as computed in Equation 21.104 of Example 21.10. The corresponding time step t from the characteristic
equation is 0.5 seconds from Equation 21.105.
2
The area ( A = 0.1964 m ), characteristic impedance ( B = 508.65 ), reach resistance ( R = 25.90 ) for the pipe are
given from Example 21.10 by Equation 21.106, Equation 21.110 and Equation 21.111 respectively.
Conditions at section 2 – at the mid – point (Point A6 on the x-t plane) at L/2a seconds
Conditions at point A6 on the x-t plane at the mid – point of the pipeline are taken from Example 21.10 as the transient
conditions of
3
H A6 = 299.40 m and Q A6 = 0.00098 m /s
Method of characteristics calculations at point P6 on the x-t plane (or at section 3) at L/a seconds
+
The C compatibility equation from Equation 21.92 is
H P6 = C pc – B pc Q P6
Compute the values of the “constants” of C pc and B pc for the previous time step from Equation 21.90 and
Equation 21.91 as
The flow at the valve (assuming the pressure stays above the vapor pressure of the fluid) at t = L/a is
3
Q P6 = 0.0 m /s
Note that in comparison to the valve head computed at L/2a seconds the head here has increased from 298.90 m to
299.90 m, a one meter increase. This is a result of the friction or slope of the HGL in the system.
568
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Conditions at the valve just after the valve closure at a time of L/a seconds are shown in Table 21.8. Values computed
for this time step are shown in bold. The final results are also shown in Figure 21.31.
Table 21.8 Transient conditions in pipeline at the closed valve at Point P6 on the x-t plane at L/a seconds
after the valve closure
Figure 21.31 Summary of method of characteristics results for calculation at the closed valve
at Point P6 on the x-t plane at L/a seconds
• At 3L/2a when the water hammer wave reaches the mid-point of the pipeline for the second
time (presented in Example 21.16 at Point P7 on the x-t plane)
• At 2L/a when the water hammer wave reflects from the closed valve for the first time (pre-
sented in Example 21.17 at Point P8 on the x-t plane)
569
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
21.19.1 An MOC example for conditions at the mid – point of the pipeline at
3L/2a seconds (Point P7 on the x-t plane)
Consider the x – t plane and the reservoir – pipeline – valve system in Example 21.16 and Figure 21.32.
See Figure 21.8 (g) for details of arrival of the water hammer wave at the mid – point after it has
reflected from the reservoir for the first time. This corresponds to Figure 21.8 (g).
Example 21.16 Consider a reservoir – pipe – valve system in Figure 21.32 with the same characteristics as the sys-
tem described in Example 21.10: reservoir elevation HR = 200 m, pipe length L = 980 m, pipe diameter D = 0.5 m,
Darcy – Weisbach friction factor f = 0.02, initial velocity V = 1.0 m/s, wave speed a = 980 m/s and gravitational
acceleration g = 9.81 m/s2.
The valve at the downstream end is closed instantaneously at a time of zero seconds. Compute the hydraulic grade
line at the mid – point of the pipe (Point P7 on the x-t plane) at 3L/2a seconds.
Answer – Computation of the head and flow at the mid-point of the pipeline at 3L/2a seconds
Computing transient conditions at section 2 at the valve (Point P7on the x-t plane)
+
The head at P7 on the x-t plane at time 3L/2a needs to be calculated from the C characteristic line from the reservoir
-
at a time of L/a seconds (designated as Point A7 on the x-t plane in Figure 21.32) and from the C characteristic line
from the valve at a time of L/a seconds (designated as Point B7 on the x-t plane in Figure 21.32).
The transient was generated by the closure of the valve at the downstream end of the pipeline at zero seconds. In the
first 3L/2a seconds the water hammer wave has traveled from the valve to the reservoir where it reflects and has trav-
eled back to the mid – point of the pipeline where it generates a significant head decrease and a corresponding velocity
reversal.
Two reaches are selected as for the previous examples. Thus the reach length x is 490 m or one – half the length of the
pipeline as computed in Equation 21.104 of Example 21.10. The corresponding time step t from the characteristic
equation is 0.5 seconds from Equation 21.105.
Figure 21.32 Calculation of head and flow at the mid – point of the pipe at Point P7 on the x-t plane at 3L/2a seconds
2
The area ( A = 0.1964 m ), characteristic impedance ( B = 508.65 ), reach resistance ( R = 25.90 ) for the pipe are
given in Example 21.10 by Equation 21.106, Equation 21.110 and Equation 21.111 respectively.
Conditions at section 1 – at the reservoir (point A7 on the x-t plane) at L/a seconds
Conditions at point A7 on the x-t plane at the reservoir are taken from Example 21.14 as
570
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
3
H A7 = 200.00 m and Q A7 = – 0.1944 m /s
Conditions at section 3 – at the closed valve (point B7 on the x-t plane) at L/a seconds
Conditions at point B7 on the x-t plane at the closed valve are taken from Example 21.13 as
3
H B7 = 299.90 m and Q B7 = 0.0 m /s
Method of characteristics calculations at point P7 on the x-t plane (or at section 2) at 3L/2a seconds
The water hammer HGL and the discharge at the mid – point at Point B7on the x-t plane are given from the method of
characteristics of Equation 21.102 and Equation 21.103 respectively as
C pc B mc + C mc B pc C pc – C mc
- and Q P7 = ------------------------
H P7 = -------------------------------------------- -
B pc + B mc B pc + B mc
Compute the values of the “constants” of C pc and B pc for the previous time step at L/a seconds from Equation 21.90
and Equation 21.91 as
Now compute the values of the “constants” of C mc and B mc for the previous time step at L/a seconds from
Equation 21.99 and Equation 21.100 as
Thus the water hammer HGL at the mid-point of the pipeline at L/2a seconds is
The corresponding transient flow at the mid – point at 3L/2a seconds corresponding to the arrival of the water hammer
wave from Equation 21.103 is
C pc – C mc 101.12 – 299.90 = – 3
Q P7 = ------------------------
- = --------------------------------------
- 0.1944 m /s
B pc + B mc 513.68 + 508.65
Q P5 – 0.1944
V P7 = --------
- = ------------------- = – 0.990 m/s
A 0.1964
A summary of conditions at the three sections along the pipeline at 3L/2a seconds is given in Table 21.9. Values com-
puted for this time step are shown in bold. The final results are also shown in Figure 21.33.
571
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Table 21.9 Transient conditions in pipeline at the mid-point at Point P7 on the x-t plane at 3L/2a seconds
after the valve closure
Figure 21.33 Summary of method of characteristics results for calculation at the mid – point of the pipeline
at Point P7 on the x-t plane at 3L/2a seconds
___________________________________________________________________________________
572
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Example 21.17 Consider a reservoir – pipe – valve system in Figure 21.34 with the same characteristics as the sys-
tem described in Example 21.10: reservoir elevation HR = 200 m, pipe length L = 980 m, pipe diameter D = 0.5 m,
Darcy – Weisbach friction factor f = 0.02, initial velocity V = 1.0 m/s, wave speed a = 980 m/s and gravitational
acceleration g = 9.81 m/s2.
The valve at the downstream end is closed instantaneously at a time of zero seconds. Compute the hydraulic grade
line at the valve (Point P8 on the x-t plane) at 2L/a seconds.
Answer – Computation of the inversion of the HGL at the valve at 2L/a seconds
Computing transient conditions at section 3 at the valve (Point P8 on the x-t plane)
+
The head at P8 on the x-t plane needs to be calculated from the C characteristic line from the conditions at the mid –
point of the pipeline at a time of 3L/2a seconds (designated as Point A8 on the x-t plane in Figure 21.34).
The transient was generated by the closure of the valve at the downstream end of the pipeline at zero seconds. In the
first 2L/a seconds the water hammer wave has traveled from the valve to the reservoir and back to the valve for the first
time where it generates a significant head reduction.
2
The area ( A = 0.1964 m ), characteristic impedance ( B = 508.65 ), reach resistance ( R = 25.90 ) for the pipe are
given by Example 21.10 from Equation 21.106, Equation 21.110 and Equation 21.111 respectively.
Conditions at section 2 – at the mid – point (Point A8 on the x-t plane) at 3L/2a seconds
Conditions at point A8 on the x-t plane at the mid – point of the pipeline are taken from Example 21.16 as
3
H A8 = 201.0 m and Q A8 = – 0.1944 m /s
Method of characteristics calculation at point P8 on the x-t plane (or at section 3) at 3L/2a seconds
+
The C compatibility equation from Equation 21.92 is
H P8 = C pc – B pc Q P8
573
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Figure 21.34 Transient conditions in pipeline at the closed valve at Point P8 on the x-t plane at 2L/a seconds
- the water hammer arrives back at the valve for the first time
Compute the values of the “constants” of C pc and B pc for the previous time step from Equation 21.90 and
Equation 21.91 as
The flow at the valve (assuming the pressure stays above the vapor pressure of the fluid) at t = 2L/a is
3
Q P8 = 0.0 m /s
Just before the arrival of the water hammer wave at the valve for the first time at 2L/a seconds, the head at the valve
was 299.90 m. After the reflection of the water hammer wave at the valve at 2L/a seconds, the head drops to 102.12 m.
Thus the head has dropped almost 200 m from a very high HGL to a low HGL. It has been effectively inverted from a
high head to a low head. Conditions at the valve just after the water hammer wave arrives at the valve for the first time
at 2L/a seconds are shown in Table 21.10. Values computed for this time step are shown in bold. The final results are
also shown in Figure 21.35.
574
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
Table 21.10 Transient conditions in pipeline at the valve at Point P8 on the x-t plane at L/a seconds
after the valve closure
Figure 21.35 Summary of method of characteristics results for calculation at the closed valve
at Point P8 on the x-t plane at 2L/a seconds
575
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
___________________________________________________________________________________
576
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
• surge tanks
• air tanks or air chambers
• pressure relief valves
• additional pump inertia in the form of a flywheel
• a by – pass line around a pump
• wave speed reduction by selection of an alternative pipe material
• slower valve closure
• alteration of the pipeline profile
• increasing the diameter of the pipeline to reduce the velocity
An example of a surge tank is given in Figure 21.37.
Figure 21.37 A surge tank – 40 m (130 ft) high and 6 m (20 ft) diameter on the Mannum –
Adelaide pipeline (South Australia) for an above ground pipeline
Figure 21.38 Neyrtec pressure relief valves for water hammer control to prevent high pressures
577
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
When the pressure in the pipeline suddenly increases, water flows up into the surge tank thus storing
water. For low pressures in the pipeline, the surge tank supplies water for the pipeline. Pressure waves
reflect from the surge tank. The result is that the transient occurs much more slowly with a large reduc-
tion in the maximum pressure in the system.
The surge tank is extremely simple and effective, with no dependence on moving or mechanical parts. A
surge tank should be regarded as an integral part of the pipeline and should be on – line at all times. For
a surge tank on a pumping line a long periodic oscillation will occur in the system following pump fail-
ure. It may take a long time for the oscillations to damp out. Thus a reasonable time interval should be
allowed prior to re – starting the pumps in order to avoid the possibility of overflow of the surge tank.
578
Chapter 21 - File: Chap21-Waterhammer.fm July 6, 2022 Version 7
air from being drawn from the tank into the pipeline during the downsurge portion of a transient event.
An example of a surge tank is on the Mannum – Adelaide pipeline and is 40 m (130 ft) tall and has a
diameter of 6.1 m (20 ft). It is constructed of reinforced concrete and connects to the 1450 mm (57 in.)
diameter pipeline.
Sometimes a surge tank will be designed to accommodate for overflow during the transient event in
order to restrict the height of the surge tank. If a surge tank is not specifically designed to overflow then
an overflow condition usually indicates that there is something wrong. This may be caused by a block-
age or a closed (or partially closed valve) in the pipeline on the downstream side of the surge tank.
Often the inlet to the open surge tank often serves as the outlet. In some cases, both the inlet and outlet
may be separate pipe connecting to the main pipeline. If there is a shutoff valve in the connecting pipe
between the main pipeline and the surge tank – it is extremely important that this valve remains open
when the pumping system is operational.
Extensive coverage of water hammer control devices is given by Wylie and Streeter (1993) and
Chaudhry (2014).
21.21 References
Bonin, C. C., 1960, “Water-Hammer Damage to Oigawa Power Station,” Jour. Engineering for Power,
American Society of Mechanical Engineers., April, 111-119.
Chaudhry, M.H. (2014). Applied hydraulic transients. 3rd ed., Springer, New York.
Lupton, H.R. (1953). “Graphical Analysis of Pressure Surges in Pumping Systems.” Journal of the Insti-
tution of Water Engineers, Vol. 7, 87-156.
Streeter, V. L., Wylie, E. B., and Bedford, K. W. (1998). Fluid mechanics. WCB McGraw–Hill., Boston.
Wylie, E.B. and Streeter, V.L. (1993). Fluid transients in systems, Prentice Hall, Englewood Cliffs, New
Jersey.
579
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
22.1 Introduction
Turbines are used in hydropower generation of electricity. Hydropower plants have been in existence for
almost 140 years. The world's first hydroelectric power plant began operating in the United States along
the Fox River in Appleton, Wisconsin in 1882 (National Geographic 2019). Rotational energy is pro-
duced when flowing fluid strikes the blades of the turbine such that the turbine blades are displaced. The
rotational mechanical energy is transferred by the turbine generator shaft to the electric generator to pro-
duce electrical energy. The USGS (USGS 2019) quotes the Corps of Engineers (USA) in describing the
conversion of energy that occurs in hydropower as “A hydraulic turbine converts the energy of flowing
water into mechanical energy. A hydroelectric generator converts this mechanical energy into electric-
ity.”
Hydroelectric power “supplies 17.5% of the world's electricity (99% in Norway, 57% in Canada, 55% in
Switzerland, 40% in Sweden, 7% in USA)” (Electropaedia 2019). Two types of hydropower plants are
common 1) peaking plants and 2) run-of-river plants. The normal time of day usage of hydropower (for
peaking plants) is at peak-load demand because it can so easily started and stopped (Electropaedia
2019). However, accidents may occur due to transient water hammer pressures induced by fast actions -
so as a result often operators may be reluctant to start and stop turbine generation too frequently. In con-
trast to peaking plants, run-of-river hydropower generating plants provide a continuous supply that con-
tributes to base load generation.
Hydropower has some significant advantages - “Hydroelectric power generation is by far the most effi-
cient method of large scale electric power generation. Energy flows are concentrated and can be con-
trolled. The conversion process captures kinetic energy and converts it directly into electric energy.
There are no inefficient intermediate thermodynamic or chemical processes and no heat losses. The
overall efficiency can never be 100% however since extracting 100% of the flowing water's kinetic
energy means the flow would have to stop” (Electropaedia 2019). Other advantages of hydroelectric
power have been compiled by the USGS(2019) as:
1.© Copyright 2022Jul. Prof. Emeritus Angus R. Simpson, University of Adelaide, Adelaide,
Australia. Part of the book entitled Water Distribution Systems Engineering.
580
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
As coal fired power plants and gas fired power plants are phased out of use over the next 30 to 50 years
due to the impact of climate change and the need to de-carbonize the economy, the importance of hydro-
power and in particular pumped hydropower (pumped hydro) will increase to provide “battery storage”
as a complement to renewable intermittent electrical energy sources of wind and solar photovoltaic.
TERM DEFINITION
BEP Best efficiency point on the turbine efficiency versus flow Q curve
for a particular wicket gate opening
Power curve for turbine Plot of turbine generator shaft power PT versus flow Q. Can be com-
(P – Q) puted from the turbine head curve (HT versus Q) and the turbine effi-
ciency curve ( versus Q).
Turbine head curve Plot of turbine head HT versus flow Q for a turbine at a particular rota-
(HT – Q) tional speed. Usually obtained from the turbine manufacturer.
Turbine flow Q Flow through the turbine
Turbine efficiency Ratio of the turbine generator shaft power PT to the water or hydraulic
power QHT associated with the water passing through the turbine
Turbine efficiency curve Plot of efficiency versus flow Q for a turbine at a particular rota-
( – Q) tional speed and at a particular wicket gate opening. Usually obtained
from the turbine manufacturer.
581
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
Turbine head HT The drop in head across the turbine is taken from the inlet of the spiral
case of the turbine to the outlet of the draft tube on the discharge side
of the turbine (for a Francis or Kaplan turbine). This head is extracted
from the water and transferred to the rotational energy of the turbine
and then into electricity via the generator.
Turbine generator shaft Product of the turbine efficiency, the specific weight of fluid flowing
power PT , the turbine discharge Q and turbine head HT or PT = QHT
Turbine rotational speed N Rotational speed of the turbine
Static head Hs Difference in elevation between the water surface at the upper reser-
voir and the water surface elevation at the lower reservoir where water
is being delivered after passing through the turbine
System curve for penstock The static head Hs minus pipe friction losses and minor losses in pen-
pipework stock/tunnel pipework of the hydropower system
Water or hydraulic power Product of specific weight of fluid flowing , flow Q and turbine head
(IEC 1999). HT or QHT.
• Upstream reservoir
• Penstock or tunnel hydraulic passages (metallic or concrete) - pipelines or conduits that
transport the water to the turbine
• Control valves
• Needle valve (Pelton turbine)
• Spiral case or volute (Francis turbine)
• Stay or diffuser vanes (Francis turbine)
• Wicket gates or guide vanes (Francis and Kaplan turbine -see Figure 22.3)
• Turbine impeller or runner (Pelton (buckets), Francis, Kaplan (blades), bulb, Turgo and oth-
ers - see Section 22.7)
• Turbine generator shaft connecting the runner to the generator -see Figure 22.3
• Generator (with a rotor and a stator) -see Figure 22.3
• Transformer
• Switch yard
• Transmission cables or power lines
• Draft tube (Francis turbine and Kaplan turbine)
• Tailrace
582
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
Figure 22.3 A Kaplan turbine and generator (Wikimedia: Creative Common License)
12
N PT
N s = -------------------
- (22.1)
54
HT
• N s = specific speed of turbine (actual units depend on system of units being used - see
Equation 22.2 and Equation 22.3)
583
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
12
N PT rpm kW 1 2
------------------------------ = ------------------------------------ (22.2)
54 54
HT m
12
N PT rpm HP 1 2
-----------------------------
- = ----------------------------------- (22.3)
54 54
HT ft
Due to the fact that the definition of specific speed for a turbine depends on the units system then the
numeric value of a specific speed for the same turbine expressed in both SI units and US customary
units are in fact different. Note that the turbine specific speed definition differs from that for a pump.
The relationship between specific speed for a turbine in the two sets of units is
A convention is adopted here that whenever the specific speed for a turbine is given then the units
should be specified in square brackets following the number. The reason that this practice should be fol-
lowed is so that it is very clear what the units of the quantities were that were used to calculate the value
of specific speed for the particular turbine. Examples of units are:
• Pelton or impulse turbine (high head, low specific speed - see Section 22.6 for definition).
• Turgo turbine (medium head, low specific speed)
• Francis turbine (moderate head, moderate specific speed).
• Kaplan turbine or propeller turbine (low head, high specific speed).
Both Pelton wheel and Turgo turbines are impulse turbines. Both the Francis and Kaplan turbines are
reaction turbines. More details of these three turbines are given in following sections.
Wikipedia (2019b) lists a number of different types of water turbines as shown in Table 22.2.
584
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
Figure 22.4 Photograph of a Pelton wheel turbine and generator (General Electric 2019a)
585
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
advantages over Francis and Pelton wheel turbines for certain applications. It “provides a unique and
novel solution to increasing the capacity of a hydraulic impulse turbine while maintaining the nozzle
and spear injector system (as used in Pelton turbines) for flow regulation” (Benzon et al. 2016). The
Turgo turbine is a side entry impulse turbine (Gilkes 2019a). “The jet on the Turgo enters the runner at
an acute angle (fixed at 20 degrees), passes through the wheel, and discharges from the other side.
(Gilkes 2019b). “It converts the kinetic energy from the water jet into mechanical energy” (Turbines
Info 2019). The turbine is protected from overspeed conditions using jet deflectors, which also protects
the penstock from surge pressures in a load loss event (Benzon et al. 2016). Typically it runs at twice the
speed of a Pelton turbine when operating at the same head (Gilkes 2019a). It is less expensive than a
Pelton wheel turbine and does not need to be airtight like a Francis turbine. Water leaves the turbine at
atmospheric pressure. Interference of the outflow with the runner and jets is minimized, which is a
known problem for Pelton turbines (Benzon et al. 2016). The specific speed is higher than a Pelton
wheel and thus can handle a greater flow with the same diameter (Wikipedia 2019e). A family Gilkes
company still produces Turgo turbines 100 years after they were invented (Gilkes 2019a). Other
companies also produce Turgo turbines. The Turgo turbine has been installed in thousands of locations
across the globe (Benzon et al. 2016). However, “the current deployment of Turgo turbines is rather
restricted which could be attributed to the more difficult fabrication of its complex runner and the
somewhat lower hydraulic efficiency compared to Pelton turbines” (Benzon et al. 2016).
586
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
Figure 22.7 Photograph of a Francis turbine runner and generator (General Electric 2019c)
587
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
gates to achieve efficiency over a wide range of flow and water level.” (Wikipedia 2019). The efficiency
of a Kaplan turbine is better than a Francis turbine. However, difficulties with cavitation delayed the
first use of the turbine. To avoid cavitation, the Kaplan runner needs to be submerged which can increase
the Civil Works costs for the project.
Figure 22.9 Photograph of a Kaplan turbine runner, wicket gates and turbine generator shaft and
generator (General Electric 2019d)
588
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
Table 22.3 Turbine head and specific speed ranges (SI units) (Wikipedia 2019)
Type of Turbine head Turbine power Rotational speed Specific
turbine range range range *** speed
HT PT N (NS in SI units)
(m) (kW) (rpm)
Kaplan 2 m < HT < 70 m** 75 kW to 330000 70 to 430 rpm 110 < NS < 5500
kW
Francis 40 m < HT < 600 m+ Few kW up to 75 to 1000 rpm+ 17 < NS < 2900
800,000 kW
Turgo 15 m < HT < 300 m Up to 10000 kW
Pelton 80 m < HT < 1600 m Up to 400,000 kW 65 to 800 rpm 8 < NS < 730
wheel
* Encyclopedia Britannica (2019) ** These ranges may vary considerably depending on the source. ***
589
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
Example 22.1 Consider the following hydropower generating systems. Compute the specific speeds and select an
appropriate type of turbine for each. (i) H T = 1000 meters , Q = 2000 L/s , Efficiency = 0.9, N = 600 rpm
(ii) H T = 3280 ft , Q = 71cfs , Efficiency = 0.9, N = 600 rpm (iii) H T = 200 meters , Q = 10000 L/s ,
Efficiency = 0.85, N = 500 rpm (iv) H T = 660 ft , Q = 350cfs , Efficiency = 0.85, N = 500 rpm
(v) H T = 30 meters , Q = 100000 L/s , Efficiency = 0.90, N = 200 rpm (vi) H T = 100 ft , Q = 3500cfs,
Efficiency = 0.90, N = 200 rpm
Answer – (i) Determination of the turbine specific speed. H T = 1000 meters , Q = 2000 L/s , Efficiency = 0.9,
N = 600 rpm
17620200
P T = Q H T = 0.9 9789 2.0 1000 = 17620200 = ------------------------ = 17620.2 kW
1000
12 0.5
N PT 17620 - = 14
N s = ------------------- = 600
----------------------------------
54 1.25
HT 1000
From Table 22.3 the selected turbine is a Pelton wheel. Very high head. Relatively low discharge.
(ii) Determination of the turbine specific speed. H T = 3280 ft , Q = 71cfs , Efficiency = 0.9, N = 600 rpm
12 0.5
N PT 23779 - = 3.6
N s = ------------------- = 600
----------------------------------
54 1.25
HT 3280
From Table 22.4 the selected turbine is a Pelton wheel. Very high head. Relatively low discharge.
(iii) Determination of the turbine specific speed. H T = 200 meters , Q = 10000 L/s , Efficiency = 0.85,
N = 500 rpm
16641300
P T = Q H T = 0.85 9789 10.0 200 = 16641300 = ------------------------ = 16641 kW
1000
12 0.5
N PT 500 16641
N s = ------------------- = ----------------------------------- = 86
54 1.25
HT 200
From Table 22.3 the selected turbine is a Francis turbine. Moderately high head. Moderate discharge.
590
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
(iv) Determination of the turbine specific speed. H T = 660 ft , Q = 350cfs , Efficiency = 0.85, N = 500 rpm
12 0.5
N PT 22277 - = 22.3
N s = ------------------- = 500
----------------------------------
54 1.25
HT 660
From Table 22.4 the selected turbine is a Francis turbine. Moderately high head. Moderate discharge.
(v) Determination of the turbine specific speed. H T = 30 meters , Q = 100000 L/s , Efficiency = 0.90,
N = 200 rpm
26430300
P T = Q H T = 0.9 9789 100.0 30 = 26430300 = ------------------------ = 26430 kW
1000
12 0.5
N PT 200 26430
N s = ------------------- = ----------------------------------- = 463
54 1.25
HT 30
From Table 22.3 the selected turbine is a Kaplan turbine. Low head. Large discharge.
(vi) Determination of the turbine specific speed. H T = 100 ft , Q = 3500cfs, Efficiency = 0.90, N = 200 rpm
12 0.5
N PT 200 35738
N s = ------------------- = ----------------------------------- = 119.6
54 1.25
HT 100
From Table 22.4 the selected turbine is a Kaplan turbine. Low head. Large discharge.
_________________________________________________________________________________
3000
N = ---------------- (22.5)
N Pairs
where
591
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
For the USA or Canada the 3000 value would need to be replaced by 3600 on the right hand of
Equation 22.5. An example (Hydro Quebec 2019) of the computation of the rotational speed is given
below.
Example 22.2 Compute the rotational speed of a turbine that has 32 pairs of poles (or electromagnets) where the tur-
bine is located in Canada (at La Grande-3 generating station.
3600 3600
N = ---------------- = ------------ = 112.5 rpm
N Pairs 32
For the various numbers of pairs of poles see the Table below for the corresponding rotational
speed of a turbine located in Australia.
2 2
p V1 p V2
z 1 + -----1- + --------
- = z 2 + -----2- + --------
- + H T + h f + hL (22.6)
2g 2g
The head across the turbine is the difference in EGL between the inlet to the spiral case (IN) and the out-
let of the draft tube (OUT) or:
2 2
p IN V IN p OUT V OUT
HT = z IN + --------
- + ------------ – z OUT + -------------
- + ----------------- (22.7)
2g 2g
592
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
The penstock/tunnel pipework system curve for a hydropower system depends on the difference
between the elevations of the upstream and downstream reservoirs as well as the losses in the penstock/
tunnel and fittings attached to both sides of the turbine. The static head for a hydropower system is
defined as the difference in elevation between the upper and the lower reservoirs as shown in
Figure 22.10 (or from the upper reservoir to the centerline of the Pelton wheel that discharges to the
atmosphere):
H S = z1 – z2 (22.8)
The static head HS and friction losses in the penstock/tunnel/draft tube pipe work must both be taken
into account in developing the system curve for the penstock/tunnel system. The static head or the eleva-
tion difference between the upstream reservoir and the downstream reservoir is not a function of flow Q
through the system. The friction losses are losses due to pipe friction and minor losses vary approxi-
mately with the square of the flow. These friction losses (and also any minor losses) must be subtracted
from the static head as they will not be available to generate electricity at the turbine. From the Darcy –
Weisbach equation (Equation 4.3) the total friction loss for the pipe work in series in the penstock/tun-
nel of the hydropower generating system is given by
2 2
LV L Q
f = f ---
- ------ = f ---- -----------
D 2g D 2g A
(22.9)
The hydraulic losses in the draft tube may be counted in determining the head across the turbine H T ,
thus they may need to be excluded when computing the system curve.
Minor losses for multiple losses in the system from Equation 5.1 are given by
2
hL= K V
------
2g
The system curve for the pipework associated with hydropower generating system is given as
2 2
fL Q V
penstock/tunnel system curve = H S – ------ ------------- – K ------ (22.10)
D 2g A 2 2g
593
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
Example 22.3 Consider the following hydropower generating system with a penstock passing a flow of
Q = 2500 L/s connecting an upper reservoir to a turbine with a penstock diameter D = 1290 mm , penstock
–6 2
length L = 4000 m , pipe roughness = 0.25 mm and water viscosity = 1.141 10 m /s . The penstock –
turbine system connects two reservoirs with the difference in water surface elevations of the lower and upper reser-
voirs of 105 m (thus the static head is H S = 105.0 meters ).
The turbine head is based on both the static head and the friction loss in the pipeline. The flow is 2500 L/s.
2 2
D 1.290 2
A = ---------- = ------------------------ = 1.3070 m
4 4
VD 1.913 1.29
Re = -------- = ---------------------------------- = 2162813
1.141 10
–6
The Darcy – Weisbach friction factor from the Swamee and Jain equation (Equation 4.61) is
0.25 0.25
f = ---------------------------------------------------------
- = ----------------------------------------------------------------------------------------
- = 0.0142
5.74 2 0.25 5.74 2
log 10 ------------ + ------------ log 10 ------------------------ + -------------------------------
3.7 D 0.9 3.7 1290 0.9
Re 2162813
The head loss based on the Darcy – Weisbach head loss formula (Equation 4.3) is
2 2
fL V 0.0142 4000 1.913
h f = ------ ------ = --------------------------------- -------------------- = 8.213 m
D 2g 1.29 2 9.81
The turbine head is
_________________________________________________________________________________
• turbine head HT usually in meters (m) for SI units (or feet — ft — in US customary units) of
water. This is the head extracted from the water by the turbine to generate electricity.
• turbine flow Q in L/s (or US gpm or cfs)
• efficiency taken as a decimal fraction between 0 and 1 (sometimes referred to as Ep)
• shaft power output from the turbine P in kW (or HP)
• rotational speed N in rpm
22.9.1 Turbine curves
Three curves are important for consideration of turbines:
• HP versus Q — called the turbine curve (often a series of curves each at different wicket gate
openings)
• versus Q — called the efficiency curve
• P versus Q — called the power curve
594
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
These characteristics apply to just one value of the impeller rotational speed N — and this value should
always be specified on the drawings. Generally manufacturers do not provide these curves, however,
characteristic curves are provided in another form which can be transformed into the curves above.
Different classes of turbines (Francis, Pelton or impulse and mixed flow and Kaplan flow) have different
shaped curves.
The point of maximum turbine efficiency is called the best efficiency point (BEP) - similar to the defini-
tion for pumps in Chapter 18. The most common operating point for the turbine should be close to the
BEP to maximize the power output from the generator.
QH T (22.11)
where
PT
= shaft power output from turbine- = ---------------
--------------------------------------------------------------------------- (22.12)
water power QH T
TURBINE EFFICIENCY
where
Note that unlike for a pump, for a turbine, the water power QH P is greater than the turbine shaft output
power P T .
P T = QH T (22.13)
595
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
where
3
N m N-m
1 ------- ------- m = ----------- = watts or W
m
3 s s
P
P T = ------G- (22.14)
EG
where
• P T = power delivered from the turbine shaft to the generator (W or HP); note this is larger
than the electrical power delivered to the electrical grid by the generator P e
• P G = electrical power delivered by the generator (W or HP)
• EG = generator efficiency (usually 0.95 to 0.98) (dimensionless)
E T = P T t (22.15)
where
• E T = energy delivered by the shaft of the turbine (Wh - usually converted to kWh by divid-
ing by 1000)
• P T = shaft power delivered by turbine to the generator (W or HP)
• t = time over which turbine operates (h or hours)
For Equation 22.15 to be valid the turbine power output must remain constant for the entire period t .
In turn this requires the head across the turbine, the flow through the turbine and the upstream and
downstream reservoir levels to remain constant. In many cases, the guide vanes are adjusted by a PID
governor to ensure the power output is kept constant. In order to correctly assess the energy output from
a turbine it would necessitate that an extended period simulation hydraulic model be run at say a time
596
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
step of 5 minutes over the t period. The reservoir levels, the turbine flow and hence the head across
the turbine would be updated every 5 minutes to update the power calculation to be the correct value.
The energy usage would be accumulated for all of the 5 minute periods in t . The process here would
be very similar to that described for pumps in Section 18.6.5.
P T t
EE T = ------------
- (22.16)
EG
where
Benefit = EE T p (22.17)
where
• Benefit = monetary benefit or income of selling the electrical energy from the turbine oper-
ation ($)
• EE T = electrical energy delivered by the generator (Wh - usually converted to kWh by
dividing by 1000)
• p = price of sale of electricity (cents per kWh - converted to $/kWh by dividing by 100)
Example 22.4 Compute the following (i) the shaft power for a turbine head of H T = 170 m , a turbine flow of
Q = 1200 L/s at the operating point and a turbine efficiency of = 0.88 (ii) the electrical energy output from the
generator for 5 hours of continuous operation at constant generating conditions (iii) the monetary benefit of the sale
of electricity for turbine operation assuming the turbine is operating from 4pm to 9pm on an peak electricity tariff of
42 cents/kWh. Assume a generator efficiency of 97%.
597
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
The turbine shaft energy over 5 hours is given from Equation 22.15 as:
The electrical energy output from the generator is given from Equation 22.16 by:
(iii) Computation of monetary benefit from the sale of electricity from the generator.
The monetary benefit of the sale of electrical energy from the generator is given from Equation 22.17 by:
42
Benefit = EE T p = 8521 --------- = $3579
100
___________________________________________________________________________________
There are two considerations in relation for PHS including (IHA 2018):
22.12 References
Benzon, D.S., Aggidis, G.A. and Anagnostopoulos, J.S. (2016). “Development of the Turgo Impulse
Turbine: Past and Present.” Applied Energy, Elsevier, vol. 166(C), pages 1-18.
598
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
Crawford, M. (2019). “Lester Allan Pelton” The American Society of Mechanical Engineers, https://
www.asme.org/topics-resources/content/lester-allan-pelton. Accessed 13 November 2019.
Crewdson E. “Design and performance of a new impulse water-turbine.” In: Minutes of Proceedings of
the Institution of Civil Engineers; 1922. p. 396–407.
Gilkes (2019b). “Gilkes Turgo Impulse Hydro Turbine” pdf downloaded from https://www.gilkes.com/
hydropower-systems-manufacturers/gilkes-turbines/turgo-turbines <http://www.gilkes.com/user_up-
loads/turgo%20paper2.pdf> Accessed 19 November 2019.
Hoes, O.A.C., Meijer, L.J.J, van der Ent, R.J., and van de Giesen, N.C. (2017). “Systematic high-resolu-
tion assessment of global hydropower potential.” PLoS One, 2017, Vol. 12(2), pp.urn:issn:1932-6203
IEC (1999). “Hydraulic Turbines, Storage Pumps and Pump-Turbines—Model Acceptance Tests,” 2nd
ed., International Electrotechnical Commission, Geneva, Switzerland,, Standard No. IEC 60193:1999.
International Hydropower Association -IHA (2018). “The world’s water battery: Pumped hydropower
storage and the clean energy transition.” IHA Working Paper, Dec. 2018.
Krueger, R. E. (1959). Selecting Hydraulic Reaction Turbines, Technical Information Branch, USBR.
Rehman, S. Al-Hadhrami, L.M and Alam, M.M. (2015). “Pumped hydro energy storage system: a tech-
nological review” Renewable Sustainable Energy Review, 44 (2015), 586-598
snowyhydro (2017). “Snowy 2.0 Feasibility Study Report Volume 1.” https://drive.google.com/
uc?id=1pYUvSCuktSxDNDEhxma4j_-mtGtIttZD&export=download
599
Chapter 22 - File: Chap22-Turbines.fm July 6, 2022 Version 6
600
Appendix A - File: AppendixA - New.fm July 6, 2022 Version 6
601
Appendix A - File: AppendixA - New.fm July 6, 2022 Version 6
602
Appendix A - File: AppendixA - New.fm July 6, 2022 Version 6
603
Appendix A - File: AppendixA - New.fm July 6, 2022 Version 6
A.2 References
IEC (1999). “Hydraulic Turbines, Storage Pumps and Pump-Turbines—Model Acceptance Tests,” 2nd
ed., International Electrotechnical Commission, Geneva, Switzerland, Standard No. IEC 60193:1999.
604
Chapter B - File: AppendixB - New.fm July 6, 2022 Version 6
605
Chapter B - File: AppendixB - New.fm July 6, 2022 Version 6
606
Chapter B - File: AppendixB - New.fm July 6, 2022 Version 6
607
Appendix C - File: AppendixC-epsilonvalues - New.fm July 6, 2022 Version 6
608
Appendix C - File: AppendixC-epsilonvalues - New.fm July 6, 2022 Version 6
Table C.1 Collected information on pipe interior surface roughness: values of (based on Skeat —
Manual of British Water Engineering Practice 1969, p. 158)
609
Appendix C - File: AppendixC-epsilonvalues - New.fm July 6, 2022 Version 6
Table C.1 Collected information on pipe interior surface roughness: values of (based on Skeat —
Manual of British Water Engineering Practice 1969, p. 158)
* Average roughness height values of up to 0.064 mm (0.0025 in.) have been recorded in experiments on
commercial PVC pipes as the result of pronounced internal waviness in the extrusion process. Visual
inspection of recently manufactured British PVC pipes (as of 1969 book by Skeat) has confirmed that wav-
iness has now been substantially eliminated by improved extrusion techniques.
610
Appendix C - File: AppendixC-epsilonvalues - New.fm July 6, 2022 Version 6
Table C.2 Values of C in Hazen – Williams formula (based on Skeat — Manual of British Water
Engineering Practice 1969, p.163 and 164)
611
Appendix C - File: AppendixC-epsilonvalues - New.fm July 6, 2022 Version 6
Table C.2 Values of C in Hazen – Williams formula (based on Skeat — Manual of British Water
Engineering Practice 1969, p.163 and 164)
612
Appendix C - File: AppendixC-epsilonvalues - New.fm July 6, 2022 Version 6
Table C.2 Values of C in Hazen – Williams formula (based on Skeat — Manual of British Water
Engineering Practice 1969, p.163 and 164)
NOTES: (1) The above table was compiled from an examination of 372 records (except for 1000 mm diameter pipes
listed), and emphasizes that the Hazen – Williams formula is not suitable for values of the efficient C appreciably below
100. However, the values in the above table are approximately correct at a velocity of 0.9 m/s (3 ft/sec). For other
velocities the approximate corrections shown in Table C.1 should be applied to values of C. (2) For diameters less than
613
Chapter D - File: AppendixD - New.fm July 6, 2022 Version 6
A schematic of the Moody diagram is shown in Figure D.1. Dunlop(2001) also came up with a form of
the Moody diagram where he developed curves to smoothly transition from the laminar region to the
transition turbulent region. This form is useful in the computer simulation of water distribution networks
to enable an appropriate transition occur between laminar flow and turbulent flow. Rossman (2000) used
these curves in the EPANET computer code.
614
Chapter D - File: AppendixD - New.fm July 6, 2022 Version 6
D.1 References
Dunlop, E. (2001). “Computation of Friction Factor,” CCWI Conference - Water Software Systems: the-
ory and applications, Vol. 2, Ed. B Ulanicki, B Coulbeck, J Rance; Research Studies Press Ltd, 203.
615
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
A
abbreviations 12, 15, 17, 605
abrupt contraction 50, 131, 132, 138, 138, 139, 140, 142, 146
head loss coefficient 140, 141
abrupt expansion 131, 132, 134, 135, 136, 137, 140, 146, 147
head loss coefficient 137
absolute (abs) 605
absolute pressure 9, 33, 34, 604
vapor pressure 604
absolute temperature 22
units 604
absolute viscosity 13, 16, 41, 42, 45, 46, 83, 132, 604
acceleration 12, 13, 46, 51, 131, 143, 539, 603
gravity 12
accumulator 576
acre, acre-ft 603
affinity laws
pumps 404
age of pipe 397
aging of pipes 104
air
density 13, 23, 25
gas constant 22
specific gravity 25
specific weight 25
air vessel 576
angular speed 604
area 603
assumptions
continuity equation 47
energy equation 55
Euler equation 60
pipe flow analysis 47
unsteady continuity equation 537
atm 605
units 604
atmosphere 16
absolute pressure 449
barometric pressure 449
local atmospheric 33
pressure 16, 33, 604, 605
atmospheric pressure 11
local 34
axial flow pump 404, 407, 409, 409, 415, 421, 424, 425, 425, 426
B
barometer 35
aneroid 35
barometric pressure 26, 34, 449, 450, 451
bellmouth
614
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
entrance 145
bend 54, 63, 65, 75, 131, 143, 143, 145, 396
forces on 53
Bernoulli equation 39, 56, 60, 61, 62
Bernoulli flow 60
bifurcation 131
body force 52
boundary layer 42, 76, 92, 92
Bourdon gage 35, 406
branch 131, 146
network 474, 477, 478
Buckingham pi theorem 45, 46, 82, 132
bulk modulus of elasticity 14, 27, 397, 510, 512, 514, 518, 528, 535, 599
units 604
butterfly valve loss 147
C
cast iron
fittings 75, 76
cast iron pipe 74, 75, 105, 112
fittings 75, 76
Hazen Williams C 80
roughness height 79
cavitation
pumps 404
cavitation damage
photograph 27
Celsius 605
units 604
centistoke 604
centrifugal pump 404
coefficient
contraction 138
Hazen-Williams C 106, 112
Manning n 128
minor loss 131
Colebrook 80, 98, 104
Colebrook-White formula 98, 99, 158
complete turbulence 77
computer analysis of water distribution systems 3
conservation
energy 64, 218
mass 48, 227, 537
water 402
constant
gas 22, 23
continuity 218, 224, 227
assumptions 47
equation 39
non-uniform velocity distribution 70
615
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
continuity equation 228, 231, 246, 261, 264, 287, 311, 336, 354
contraction 63
abrupt 50, 131, 132, 138, 138, 139, 140, 142, 146
coefficient of 141
gradual 131
contraction coefficient Cc 138
contractions 131
conversion of units 14
conversions 603
critical velocity 91
D
Darcy-Weisbach
comparison to Hazen-Williams coefficient
113
head loss equation 76
Darcy-Weisbach fluid friction factor
laminar flow 87
Darcy-Weisbach friction factor
Prandtl-Nikuradse formula 101
Swamee and Jain equation 93
Darcy-Weisbach head loss equation 86
definition
absolute viscosity 16
delta(QL)-equations 218
demand 228
peak hour 2
demand estimation 1
demands 223
water 1
density 20, 397
air 13, 14, 23, 25
units 603
water 14, 21
design life
water distribution systems 2
determinate networks 223
diameter 397
equivalent 112, 113
unknown for a smooth pipe 171, 173
unknown pipe 149
diameter calculation
fully rough turbulent flow 173
diameter unknown
smooth pipe 171, 172, 173
DICL (ductile iron cement lined) 75
DICL (ductile iron cement mortar lined) 75
dimensional analysis 82, 132
dimensionless parameters 132
discharge
616
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
617
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
enumeration 7
EPANET 248
EPS 2
equivalent pipe diameter 112, 113
equivalent pipe length 147
estimating water demands 1
Euler equations
assumptions 60
Euler’s equation 59
exit loss 147
exits 131
expansion
abrupt 132, 134, 135, 136, 140, 146
abrupt head loss coefficient 137
expansions 131
extended period simulation 2, 4
F
Fahrenheit 604, 605
FCV 453, 454, 467
feet
units 603
fire demands 1
fire loading 398
fittings
cast iron 75, 76
cast iron pipe 75
fixed grade nodes 222
flow
non-uniform 40
flow control valve 398
flow equations 218
flow meters 131
flows
solving as unknowns 245
fluid
definition 10
ideal 42
real 42
force
body 52
definition of 12
surface 52
units 603
Formulation of equations
Q-H 248
formulation of equations
Q-H 250
fps (feet per second) 603
Francis turbine 582, 584
618
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
friction factor
rough turbulent flow 101
friction loss 63
ft (feet) 603
fully rough 87, 166, 169, 173
fully rough turbulent flow 162
G
gage
Bourdon 35, 406
gage pressure 25, 26, 30, 33, 34, 449
pressure
gage 9
gal (gallon) 605
gallon 603, 605
UK 603
US 603
gallon (gal) 605
gas constant 22, 22, 23
air 22
water vapor 22
gas law
perfect 21, 23, 33
gate valve loss 146
genetic algorithm optimization 7
genetic algorithms 2
geographical information systems 1
gigaliter 14
GIS 1
globe valve loss 147
governing equations 218
water distribution systems 2
gpm (gallons per minute) 605
gradual contraction 131, 142
gradual expansion 142
graph 222
graph theory 222
gravitational acceleration 12
H
ha (hectare) 605
Hardy Cross 2, 3
Hazen-Williams coefficient
adjustments to 113
comparison to Darcy-Weisbach 113
typical values 112
Hazen-Williams equation 105
accuracy of 115
head 56
piezometric 68
head equations 218
619
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
620
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
kiloliter 14
kilopascal (kPa) 604
kilowatt 605
kinematic viscosity 19, 397
units 604
kinetic energy 56, 57, 64
kinetic energy correction factor 56, 68, 129, 602, 613
laminar flow 70
turbulent flow 70
km (kilometer) 603
kPa
kilopascal 604
kW 605
kW (kilowatt) 604
kWh (kilowatt-hour) 604
L
L (liter) 603, 605
laminar flow 41, 77, 87
laminar sublayer 78, 92
length 603
linear programming 7
links 222
liter 14
liter (L) 603
loop 218
loop flow correction equations 218
loops
path 222, 234, 249
simple 233, 241, 249
M
m (meter) 603
Manning n coefficient
typical values 129
Manning’s equation 128
Mannum – Adelaide pipeline 575
manometers 36
mass
units 603
weight relationship 12
mass conservation 48, 227, 537
Matrices
symmetric 248
matrices
Jacobian. See Jacobian matrix 248
reservoir node incidence matrix 224, 226, 227
unknown heads node incidence matrix 224, 226
mechanical energy 59
megaliter 14
megaliters (ML) 603
621
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
megawatt 605
megawatt (MW) 604
meter 603
MG (million gallons) 603
MGD (million gallons per day) 603
mile 603
million gallons (MG) 603
minor loss 63
abrupt expansion 134, 146, 147
branch 146
butterfly valve 147
contraction 146
elbow 145
entrance 141, 144
exit 147
exit to a reservoir 137
gate valve 146
globe valve 147
gradual contraction 142
gradual expansion 142
re-entrant entrance 141
reflux valve 147
smooth entrance 141
sudden contraction 138, 139, 142
sudden expansion 135
taper 146
tee 145
valve 146
valves 144
minor loss coefficient 131
abrupt contraction 140
abrupt expansion 137
minor losses 131, 218
bend 143
ignoring 147
mixed flow pump 404
ML (megaliters) 603
mm (millimeter) 603
molecular weight 22
moment of inertia 604
momentum equation 39, 134
momentum flux 50
momentum, equation of 50, 51
Moody 80
Moody diagram 79
MW 605
MW (megawatt) 604
N
net positive suction head (NPSHA, NPSHR) 404
622
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
newton
units 603
Newton’s law of viscosity 18, 41
Newton’s second law 12
Nikuradse 80
node
definition 218
non-linear programming 7
non-uniform flow 40, 131
norm
1-norm 263
2-norm 263
infinity-norm 263, 264
pth-norm 263
normal stress
units 604
numerical solutions
water distribution system equations 2
O
objectives
water distribution system design 2
OD 605
one dimensional flow 56
one-dimensional flow 42
optimization methods 7
optimization of water distribution systems 2
orifice plates 131
outside diameter 605
P
Pa (pascal) 604, 605
pascal (Pa) 604
path 222, 234, 249
definition 223
path. See also loops.
peak hour 1
peak hour analysis 398
peak hour demand 2
Pelton wheel 583
Pelton wheel turbine 582
penstock 580
perfect gas law 21
piezometers
open 36
piezometric head 68
Pilati. See Todini and Pilati
pipe
cast iron 74, 75, 79, 105, 112
ductile iron 75
steel 75
623
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
624
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
625
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
626
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
turbine 590
steady flow 39, 55
steady state analysis 2, 4
steel pipe 75
stopping test 262
storage 398
streamline 56, 59
stress
normal 9, 604
shear 10, 604
sublayer
laminar 78, 92
viscous 72, 92, 92, 93
surface force 52
surge tank 575
surge tanks 576
Swamee and Jain equation 93
switch yard 580
system curve 404
pump 405, 580
turbine 591
T
T junction 131
tailrace 580
tank 398
water tank (photograph) 406
tanks 1
taper 146
Taylor series 258, 261, 286, 310, 335, 353, 373
tee 145
temperature
absolute
units 604
thick walled pipe 73
thin walled pipe 73
Todini and Pilati method 245, 248
tons 603
torque 604
transformer 580
transitional 87, 169
transitional turbulent flow 77, 78, 87, 98, 169
transitions 131
transmission 1
treed 223
trial and error design 3
trial and error design of water distribution systems 6
tuberculation 104
tunnel 580
Turbine
627
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
628
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
629
Chapter E - File: WDSv4IX.fm July 6, 2022 Version 7
mass relationship 12
wetted perimeter 82
White 80, 98, 104
wicket gates 580
work 58
units 604
Y
Young’s modulus of elasticity 28
630