+ All Categories
Home > Documents > 11522_09

11522_09

Date post: 20-Jul-2016
Category:
Upload: getachew-tarekegn
View: 3 times
Download: 0 times
Share this document with a friend
38
CHAPTER 9 HYDRAULICS OF WATER DISTRIBUTION SYSTEMS Kevin Lansey Department of Civil Engineering and Engineering Mechanics University of Arizona Tucson, Arizona Larry W. Mays Department of Civil and Enviromental Engineering Arizona State University Tempe, Arizona 9.1 INTRODUCTION In developed countries, water service is generally assumed to be reliable and utility cus- tomers expect high-quality service. Design and operation of water systems require an understanding of the flow in complex systems and the associated energy losses. This chapter builds on the fundamental flow relationships described in Chap. 2 by applying them to water distribution systems. Flow in series and parallel pipes is presented first and is followed by the analysis of pipe networks containing multiple loops. Water-quality modeling is also presented. Because solving the flow equations by hand for systems beyond a simple network is not practical, computer models are used. Application of these models is also discussed. 9.1.1 Configuration and Components of Water Distribution Systems A water distribution system consists of three major components: pumps, distribution stor- age, and distribution piping network. Most systems require pumps to supply lift to over- come elevation differences and energy losses due to friction. Pump selection and analysis is presented in Chap. 10. Storage tanks are included in systems for emergency supply or for balancing storage to reduce energy costs. Pipes may contain flow-control devices, such as regulating or pressure-reducing valves. A schematic of a distribution system is shown in Fig. 9.1. The purpose of a distribution system is to supply the system's users with the amount of water demanded under adequate pressure for various loading conditions. A loading condition is a spatial pattern of demands that defines the users' flow requirements. The flow rate in individual pipes results from the loading condition and is one variable that describes the networks hydraulic condition. The piezometric and pressure heads are other descriptive variables. The piezometric or hydraulic head is the surface of the hydraulic grade line or the pressure head (p/y) plus the elevation head (z):
Transcript

CHAPTER 9

HYDRAULICS OF WATER

DISTRIBUTION SYSTEMS

Kevin LanseyDepartment of Civil Engineering and Engineering Mechanics

University of ArizonaTucson, Arizona

Larry W. MaysDepartment of Civil and Enviromental Engineering

Arizona State UniversityTempe, Arizona

9.1 INTRODUCTION

In developed countries, water service is generally assumed to be reliable and utility cus-tomers expect high-quality service. Design and operation of water systems require anunderstanding of the flow in complex systems and the associated energy losses. Thischapter builds on the fundamental flow relationships described in Chap. 2 by applyingthem to water distribution systems. Flow in series and parallel pipes is presented first andis followed by the analysis of pipe networks containing multiple loops. Water-qualitymodeling is also presented. Because solving the flow equations by hand for systemsbeyond a simple network is not practical, computer models are used. Application of thesemodels is also discussed.

9.1.1 Configuration and Components of Water Distribution Systems

A water distribution system consists of three major components: pumps, distribution stor-age, and distribution piping network. Most systems require pumps to supply lift to over-come elevation differences and energy losses due to friction. Pump selection and analysisis presented in Chap. 10. Storage tanks are included in systems for emergency supply orfor balancing storage to reduce energy costs. Pipes may contain flow-control devices,such as regulating or pressure-reducing valves. A schematic of a distribution system isshown in Fig. 9.1.

The purpose of a distribution system is to supply the system's users with the amountof water demanded under adequate pressure for various loading conditions. A loadingcondition is a spatial pattern of demands that defines the users' flow requirements. Theflow rate in individual pipes results from the loading condition and is one variable thatdescribes the networks hydraulic condition. The piezometric and pressure heads are otherdescriptive variables. The piezometric or hydraulic head is the surface of the hydraulicgrade line or the pressure head (p/y) plus the elevation head (z):

FIGURE 9.1 Network schematic (from EPANET User's Menual, Rossman, 1994)

h = ?-+z (9.1)

Because the velocity is relatively small compared to the pressure in these systems, thevelocity head typically is neglected. Heads are usually computed at junction nodes.A junction node is a connection of two or more pipes or a withdrawal point from thenetwork. A. fixed-grade node (FGN) is a node for which the total energy is known, suchas a tank.

The loading condition may remain constant or vary over time. A distribution system is insteady state when a constant loading condition is applied and the system state (the flow in allpipes and pressure head at all nodes) does not vary in time. Unsteady conditions, on the otherhand, are more common and hold when the system's state varies with time. Extended-periodsimulation (EPS) considers time variation in tank elevation conditions or demands in discretetime periods. However, within each time period, the flow within the network is assumed tobe in steady state. The only variables in the network that are carried between time steps of anEPS are the tank conditions that are updated by a conservation of mass relationship.

Dynamic modeling refers to unsteady flow conditions that may vary at a point andbetween points from instant to instant. Transient analysis is used to evaluate rapidly vary-ing changes in flow, such as a fast valve closure or switching on a pump. Gradually variedconditions assume that a pipe is rigid and that changes in flow occur instantaneously alonga pipe so that the velocity along a pipe is uniform but may change in time. Steady, extend-ed period simulation, and gradually temporally varied conditions are discussed in thischapter. Transient analysis is described in Chap. 12.

Reservoir 1

Tank 2

Pump 9

9.1.2 Conservation Equations for Pipe Systems

The governing laws for flow in pipe systems under steady conditions are conservation ofmass and energy. The law of conservation of mass states that the rate of storage in a sys-tem is equal to the difference between the inflow and outflow to the system. In pressur-ized water distribution networks, no storage can occur within the pipe network, althoughtank storage may change over time. Therefore, in a pipe, another component, or a junc-tion node, the inflow and outflow must balance. For a junction node,

2Gin - SG0Ut = <7ext (9-2)

where Qm and <2out are the pipe flow rates into and out of the node and gext is the externaldemand or supply.

Conservation of energy states that the difference in energy between two points is equalto the frictional and minor losses and the energy added to the flow in components betweenthese points. An energy balance can be written for paths between the two end points of asingle pipe, between two FGNs through a series of pipes, valves and pumps, or around aloop that begins and ends at the same point. In a general form for any path,

I hu + S hpj =A£ (9-3)%

where hLi is the head loss across component i along the path, hp . is the head added bypump J9 and A£ is the difference in energy between the end points of the path.

Signs are applied to each term in Eq. (9.3) to account for the direction of flow. A com-mon convention is to determine flow directions relative to moving clockwise around theloop. A pipe or another element of energy loss with flow in the clockwise direction wouldbe positive in Eq. (9.3), and flows in the counterclockwise direction are given a negativesign. A pump with flow in the clockwise direction would have a negative sign in Eq. (9.3),whereas counterclockwise flow in a pump would be given a positive sign. See the HardyCross method in Sec. 9.2.3.1 for an example.

9.1.3 Network Components

The primary network component is a pipe. Pipe flow (Q) and energy loss caused byfriction (hL) in individual pipes can be represented by a number of equations, includingthe Darcy-Weisbach and Hazen-Williams equations that are discussed and compared inSec. 2.4.2. The general relationship is of the form

hL = KQn (9.4)

where K is a pipe coefficient that depends on the pipes diameter, length, and material andn is an exponent in the range of 2. K is a constant in turbulent flow that is commonlyassumed to occur in distribution systems.

In addition to pipes, general distribution systems can contain pumps, control valves,and regulating valves. Pumps add head hp to flow. As shown in Fig. 9.2, the amount ofpump head decreases with increasing discharge. Common equations for approximating apump curve are

hp=AQ> + BQ + hc (9.5)

Flow rate

FIGURE 9.2 Typical pump curve

or

hp = hc- CQ- (9.6)

where A, B, C, and m are coefficients and hc is the maximum or cutoff head. A pumpcurve can also be approximated by the pump horsepower relationship (Fig. 9.2) ofthe form

H-&

where Hp is the pump's water horsepower. Further details about pumps and pump selec-tion are discussed in Chap. 10.

Valves and other fittings also appear within pipe networks. Most often, the head lossin these components is related to the square of the velocity by

*•= *•%= K^ (9-8)

where hm is the head loss, and Kv is an empirical coefficient. Table 2.2 lists Kv values fora number of appurtenances.

Pressure-regulating valves (PRVs) are included in many pipe systems to avoidexcessive pressure in networks covering varying topography or to isolate pressurezones for reliability and maintaining pressures. Pressure regulators maintain a con-stant pressure at the downstream side of the valve by throttling flow. Mathematicalrepresentation of PRVs may be discontinuous, given that no flow can pass under cer-tain conditions.

Pump curve

HorsepowercurvePu

mp

head

FIGURE 9.3 Pipe systems. A: Series pipe system (not to scale)B: Branched pipe

9.2 STEADY-STATE HYDRAULIC ANALYSIS

9.2.1 Series and Parallel Pipe Systems

The simplest layouts of multiple pipes are series and parallel configurations (Fig. 9.3). Tosimplify analysis, these pipes can be converted to an equivalent single pipe, that have thesame relationship between head loss and flow rate as the original complex configuration.

Series systems, as shown in the Fig. 9.3A, may consist of varying pipe sizes or types.However, because no withdrawals occur along the pipe, the discharge through each pipeis the same. Since the pipes are different, head losses vary between each segment. Thetotal head loss from a to Ms the sum of the head losses in individual pipes,

^L = IX, = IXen' (9-9)Mp Mp

where Ip are the set of pipes in the series of pipes. Assuming turbulent flow conditions anda common equation, with the same nt for all pipes, a single equivalent pipe relationshipcan be substituted:

hL = KeQ" (9.10)

where Ke is the pipe coefficient for the equivalent pipe. Kt can be determined by combin-ing Eqs. (9.9) and (9.10):

K1 = K1 + K2 + K3 + ... = 2) K1 (9.11)UP

Note that no assumption was made regarding Q, so Ke is independent of the flow rate.

PipelPipe 2

Pipe 3

Pipel

Pipe 2

Pipe 3

Problem. For the three pipes in series in Fig. 9.3, (1) find the equivalent pipe coeffi-cient, (2) calculate the discharge in the pipes if the total head loss is 10 ft, and(3) determine the piezometric head at points b, c, and d if the total energy at the inlet(pt. a) is 95 ft?

Solution. For English units, the K coefficient for the Hazen-Williams equation is

K=c^^ <9-12)

where 0 is a unit constant equal to 4.73, L and D are in feet, and C is the Hazen-Williamscoefficient. Substituting the appropriate values gives K1 = 0.229, K2 = 0.970, and K3 =2.085. The equivalent Ke is the sum of the individual pipes (Eq. 9.11), or K6 = 3.284.

Using the equivalent loss coefficient, the flow rate can be found by Eq. 9.10, or hL =K6Q

1*5. For hL equals 10 feet and K6 equals 3.284, the discharge is 1.83 cfs.This relationship and K6 can be used for any flow rate and head loss. Thus, if the flow

rate was 2.2 cfs, the head loss by Eq. 9.10 would be hL = 3.284 (2.2)1-85 = 14.1 ft.The energy at a point in the series pipes can be determined by using a path head-loss

equation of the form of Eq. (9.3). The total energy at Point, b is the total energy at thesource minus the head loss in the first pipe segment, or

Hb = Ha~ hL,i = 95- K1Q1-*5 = 95 - 0.229(1.83)!85 - 94.3 ft

Similarly, the head losses in the second and third pipes are 2.97 and 6.38 ft., respec-tively. Thus, the energy at c and d are 91.33 and 84.95 ft, respectively.

Two or more parallel pipes (Fig. 9.3B) can also be reduced to an equivalent pipe witha similar K6. If the pipes are not identical in size, material, and length, the flow througheach will be different. The energy loss in each pipe, however, must be the same becausethey have common end points, or

hA~hB = hL>l = ̂ 2 = hL. (9.13)

Since flow must be conserved, the flow rate in the upstream and downstream pipesmust be equal to the sum of the flow in the parallel pipes, or

G = d + G2 + - = S Qm (9-14>meMp

where pipe m is in the set of parallel pipes, Mp. Manipulating the flow equation (Eq. 9.4),the flow in an individual pipe can be written in terms of the discharge by Q = (hL/K)1/n

Substituting this in Eq. (9.14) gives

(Hr 1 V«1 (hj O VS (hr -I VS2 HIT + hr + hr +- <9-15)( K l ) ( K 2 j (Kl)

As is noted in Eq. (9.13), the head loss in each parallel pipe is the same. If the same n isassumed for all pipes, Eq. (9.15) can be simplified to

\( \ \/n ( 1 Vn ( 1 Vn 1 ^r-, ( 1 Vn ( 1 Vn

o-Hfe) +(il nil +-H" sji) -"-(T] «"">

Dividing by hLl/n isolates the follwing equivalent coefficient:

,̂ ( 1 \ln ( 1 \ln

SJsJ =ra №n)

Because the K values are known for each pipe based on their physical properties,K6 can be computed, then substituted in Eq. (9.10) to determine the head loss across theparallel pipes, given the flow in the main pipe.

Problem. Determine the head loss between points A and B for the three parallel pipes.The total system flow is 0.2 m3/s. Also find the flow in each pipe.

Solution. The head-loss coefficient K for each pipe is computed by Eq. (9.12), with </>equal to 10.66 for SI units and L and D in meters, or K1 = 218.3, K2 = 27.9, and K3 =80.1. The equivalent Ke is found from Eq. 9.17:

( 1 ^T85 ( 1 ^T85 ( 1 ^L85 ( 1 "p5hr + hr + hr = hr =a313

1*1 J (K2j (K3j (Ke)

or Ke = 8.58. By Eq. (9.10), the head loss is hL = K6Q^5 = 8.58*(0.2y•** = 0.437 m.The flow in each pipe can be computed using the individual pipe's flow equation and

K. For example, Q1 = (V^i)17185 = (0.437/218.3)1/185 = 0.035 mVs. Similarly, Q2 and Q3

are 0.105 and 0.060 m3/s, respectively. Note that the sum of the flows is 0.2 m3/s, whichsatisfies conservation of mass.

9.2.2 Branching Pipe Systems

The third basic pipe configuration consists of branched pipes connected at a single junc-tion node. As shown in Fig. 9.4, a common layout is three branching pipes. Under steadyconditions, the governing relationship for this system is conservation of mass applied atthe junction. Since no water is stored in the pipes, the flow at the junction must balance

Reservoir 1H = 100 m

Reservoir 2H- 60m

PipelPipe 2

Junctionwith

pressure, P

Pipe 3

Reservoir 3H = 40m

FIGURE 9.4 Branched pipe system.

G1 + Q2 ~ G3 = O (9.18)

where the sign on the terms will come from the direction of flow to or from the node. Inaddition to satisfying continuity at the junction, the total head at the junction is unique.

Given all the pipe characteristics for each system in Fig. 9.4, the seven possibleunknowns are the total energy at each source (3), the pipe flows (3), and the junctionnode's total head P(I). Four equations relating these variables are available: conservationof mass (Eq. 9.18) and the three energy loss equations. Thus, three of the seven variablesmust be known. Two general problems can be posed.

First, if a source energy, the flow from that source and one other flow or source ener-gy is known, all other unknowns can be solved directly. For example, if the flow andsource head for reservoir 1 and pipe 1 are known, the pipe flow equation can be used tofind P by the following equation (when flow is toward the junction):

HA-? = hu = K1Qi" (9-19)

If a flow is the final known (e.g., Q2), Q3 can be computed using Eq. (9.18). The sourceenergies can then be computed using the pipe flow equations for Pipes 2 and 3, in the formof Eq. (9.19), with the computed P.

If the final known is a source head, the discharge in the connecting pipe can be com-puted using the pipe equation in the form of Eq. (9.19). The steps in the previous para-graph are then repeated for the last pipe.

In all other cases when P is unknown, all unknowns can be determined after P iscomputed. P is found most easily by writing Eq. 9.18 in terms of the source heads.From Eq. (9.19),

Qj = sign(Hsl-p{}-^^}/n (9.20)I Ki J

where a positive sign indicates flow to the node. Substituting Eq. (9.20) for each pipe inEq. (9.18) gives

F(P) = sign(Hsl - P/^V^f + sign(Hs2 - Pf^f^+I Kl J I K2 J

( I H , - P l ^ f <9-21)sign(Hs3-P)\ *3 T = O

V Ki )If a pipe's flow rate is known, rather than the source head, the flow equation is not sub-

stituted; instead the actual flow value is substituted in Eq. (9.21). The only unknown inthis equation is P and it can be solved by trial and error or by a nonlinear equation solu-tion scheme, such as the Newton-Raphson method.

The Newton-Raphson method searches for roots of an equation F(X). At an initial esti-mate of x, a Taylor series expansion is used to approximate F:

O = F(JC) + ̂ L Ax + ̂ L Ac2 +.... (9.22)dx dx2

where Ax is the change in x required to satisfy F(x). Truncating the expansion at the first-order term gives a linear equation for Ax:

A*=--^ (9.23)/̂3x1,

The estimated x is updated by x = x + Ax. Since the higher order terms were droppedfrom Eq. (9.22), the correction may not provide an exact solution to F(JC). So several iter-

ations may be necessary to move to the solution. Thus, if Ax is less than a defined criteria,the solution has been found and the process ends. If not, the updated x is used in Eq. (9.23)and another Ax is computed. In the three reservoir case, x=P and the required gradient3F/3P is:

& = - L rp^i-^n ' - - 1 ' , P^ 2 -PI i ' -" 1 ' , ri/^-pn'--1'"!3P n[( K1 } + ( K2 J +[ K3 } \

= -( \ + 1 + I (924)InJT1IGiI11-1 ^2IG2I"-1 W^3IG3I--

1 J ^ }

F(P) is computed from Eq. (9.21) using the present estimate of P. AP is then computedusing AP = -F(P)/(dF/dP), and P is updated by adding AP to the previous P. The itera-tions continue until AP is less than a defined value. The Newton-Raphson method also canbe used for multiple equations, such as the nodal equations (Sec. 9.2.3.3). A matrix isformed of the derivatives of each equation and the update vector is calculated.

Problem. Determine the flow rates in each pipe for the three-pipe system shown in Fig.9.4. The friction factors in the table below assume turbulent flow conditions through aconcrete pipe (e = 0.08 cm).

Solution. Using the Darcy-Weisbach equation (n = 2), the K coefficients are computed using

K_ 8/L^2D5g

Pipe 1 2 3D (cm) 80 40 40L(m) 1000 600 700/[] 0.0195 0.0235 0.0235K 4.9 113.8 132.7

Reservoir elevation, H (m) 100 60 40

Iteration 1In addition to the three discharges, the energy at the junction P also is unknown. To

begin using the Newton-Raphson method, an initial estimate of P is assumed to be 80 m,and Eq. (9.21) is evaluated as follows:

F(P = 80.) = L(IOO - 8O)(Ii^f) + L(60 - 8O)MfII ^ 4.y ) ype\ i ^ 113.8 ) ypei

( ^+ (40 - 80)f l 4^~^Q if = 2.020 - 0.419 - 0.549= 1.052 mVs

^ I 132.7 ) J,ipe3

which states that flow enters the node at more than 1.052 m3/s, than leaves through pipes2 and 3 with P = 80 m. Therefore, P must be increased. The correction is computed byEq. (9.23) after computing 3F/3P using Eq. (9.24):

aF ( i i i ^3P = " |V2*4.9*I2.020K2-1) + 2*113.8*I-0.419K2-1) + 2*132.7*I-0.549|(2-1)J-

-(0.0505 + 0.0105 + 0.0069) = -0.0679

The correction is then

F(P) 1.052AP =~W7= -TT00679 = 15'5m-

3P/P

The P for the next iteration is then P = 80 + 15.5 = 95.5 m.The following iterations give

Iteration 2: F(P = 95.5 m) = -0.247; ^F/^pP = 955 = -0.120; AP = -2.06 m,P = 93.44 m

Iteration 3:F(P = 93.44 m) = -0.020; ̂ /3^ = 9344= -0.102; AP = -0.20 m,P = 93.24 m.

Iteration 4: F(P = 93.24 m) = 7.xlO~4; ^F/^PP = 9324 = -0.101; AP = -0.006 m,P = 93.25 m.

Stop based on F(P) or AP, with P = 93.25 m.

Problem. In the same system, the desired flow in pipe 3 is 0.4 m3/s into the tank. What arethe flows in the other pipes and the total energy required in Tank 3?

Solution. First, P is determined with Q1 and Q2 using Eq. 9.21. Then H53 can be calcu-lated by the pipe flow equation. Since Q3 is known, Eq. (9.21) is

j_ j_

F(P) = Q1 + Q2 + G3 = sign(Hsl - P)P1"*! + si&*H* - P)PV-^F ~0-4 = °\ ^l J \ K2 J

Iteration 1Using an initial trial of P equal to 90 m, F(P) = 0.514 mVs. When evaluating Eq.

(9.24), only the first two terms appear since the flow in pipe 3 is defined, or

3F _ _( * , 1 I _ _Q QOQ3P U^iIGiI nK2\Q2\) P = wm

The correction for the first iteration is then - (0.514/-0.080) = 6.42 m, and the newP is 96.42 m. The next two iterations are

Iteration 2: F(P = 96.42 m) = -0.112; ^F/3p|P = 9642m = -0.127; AP = -0.88 m,P = 95.54 m

Iteration 3: F(P = 95.54 m) = -0.006; ̂ /3P P = 9554. = -0.115; AP = -0.05 m,P = 95.49 m

To determine Hs3, the pipe flow equation (Eq. 9.20) is used with the known discharge, or

(\Ha - 95.49Iy2Q3= -0.4 = sign(Ha - 95.49)1 ^ J =» HA = 74.26 m

9.2.3 Pipe Networks

A hydraulic model is useful for examining the impact of design and operation decisions.Simple systems, such as those discussed in Sees. 9.2.1 and 9.2.2, can be solved using ahand calculator. However, more complex systems, require more effort even for steadystate conditions, but, as in simple systems, the flow and pressure-head distributionthrough a water distribution system must satisfy the laws of conservation of mass andenergy (Eqs. 9.2 and 9.3). These relationships have been written in different ways to solvefor different sets of unknowns.

Using the energy loss-gain relationships for the different components, the conservationequations can be written in three forms: the node, loop, and pipe equations. All are non-linear and require iterative solution schemes. The form of the equations and their commonsolution methods are described in the next four sections. Programs that implement thesesolutions are known as network solvers or simulators and are discussed in Sec. 9.5.

9.2.3.1 Hardy Cross method. The Hardy Cross method was developed in 1936 by Crossbefore the advent of computers. Therefore, the method is amenable to solution by handbut, as a result, is not computationally efficient for large systems. Essentially, the methodis an application of Newton's method to the loop equations.

Loop equations. The loop equations express conservation of mass and energy interms of the pipe flows. Mass must be conserved at a node, as discussed in Sec. 9.2.2 forbranched pipes. For all Nj junction nodes in a network, it can be written as

2 Qi = «« (9-25>Uj

Conservation of energy (Eq. 9.3) can be written for closed loops that begin and end atthe same point (AE = O) and include pipes and pumps as

E KG" ~ S CAfrC*. + BtPQiP + Clp) = O (9.26)

ie/L ip*Jp

This relationship is written for N1 independent closed loops. Because loops can be nest-ed in the system, the smallest loops, known as primary loops, are identified, and each pipemay appear twice in the set of loops at most. The network in Fig. 9.1 contains 3 primaryloops.

Energy also must be conserved between points of known energy (fixed-grade nodes). IfNfFGNs appear in a network, A^-I independent equations can be written in the form of

E K& - S (**<% + BiPQiP + <V = AEFGN (9-27)ieIL ip*Ip

where A£"FGN is the difference in energy between the two FGNs. This set of equations issolved by the Hardy Cross method (Cross, 1936) by successive corrections to the pipeflows in loops and by the linear theory method by solving for the pipe flows directly (Sec.9.2.3.2).

Solution method. To begin the Hardy Cross method, a set of pipe flows is assumedthat satisfies conservation of mass at each node. At each step of the process, a correctionAQL is determined for each loop. The corrections are developed so that they maintain con-servation of mass (Eq. 9.25), given the initial set of flows. Since continuity will be pre-served, those relationships are not included in the next steps.

The method then focuses on determining pipe flows that satisfy conservation of ener-gy. When the initial flows are substituted in Eqs. (9.26) and (9.27), the equations are not

likely to be satisfied. To move toward satisfaction, a correction factor AQL is determinedfor each loop by adding this term to the loop equation or for a general loop

2 K1(Q1 + AQ1)" - 2 (Aip(Qip + AQLy + Bip(Qip + AQ1) + Cip) = AE (9.28)ieIL ipelp

Note that AE equals zero for a closed loop and signs on terms are added as described inSec. 9.1.3. Expanding Eq. 9.28 and assuming that AQ1 is small so that higher order termscan be dropped gives

2 K1Q1 + n^ K1Qr1 &QL - £ &„,<% + B!pQlp + Cip) +/e/L *e/L ip*Ip

X dAipQipAQL + BlpAQL) = AE (9.29)ipeip

Given Qik the flow estimates at iteration k, Eq. (9.29) can be solved for the correctionfor loop L as

AO = - &K>Ql- S C-V&* + B»Q»,* + cip} - AE)L 1^ '̂ (9.30)

« !*£""« I + Sk2^e**+ **)|*>£/;,

In this form, the numerator of Eq. (9.30) is the excess head loss in the loop and shouldequal zero by conservation of energy. The terms are summed to account for the flow direc-tion and component. The denominator is summed arithmetically without concern fordirection. Most texts present networks with only closed loops and no pumps. Equation(9.30) simplifies to this case by dropping the pump terms and setting AE to zero, or

-S K0U -2 hu -F(ft)

WL = -TT = —— =~aW (9-31>»!,*,<&-' n^hu/Qa '*Q °u

'C L /e/^

Comparing Eq. (9.31) with Eq. (9.23) shows that the Hardy Cross correction is essen-tially a Newton's method.

The AQ1 corrections can be computed for each loop in sequence and can be appliedbefore moving to the next loop (Jeppson, 1974) or corrections for all loops can be deter-mined and applied simultaneously. Once the correction has been computed, the estimatesfor the next iteration are computed by

Q*+i = Qi* + ^QL (9-32)

Qk+l is then used in the next iteration. The process of determining corrections andupdating flows continues until the AQL for each loop is less than some defined value. Afterthe flows are computed, to determine the nodal heads, head losses or gains are computedalong a path from fixed-grade nodes to junction nodes.

The Hardy Cross method provides an understanding of principles and a tool for solv-ing small networks by hand. However, it is not efficient for large networks compared withalgorithms presented in the following sections.

Problem. List the loop equations for the network shown in Fig. 9.5 using the direction offlow shown. Then determine the flow in each pipe and the total energy at Nodes 4 and 5.

Solution The loop equations consist of conservation of mass at the five junction nodesand the loop equations for the two primary loops and one pseudo-loop. In the mass bal-ance equations, inflow to a node is positive and outflow is negative.

Node 1. Q1 - Q2 - Q5 = ONode 2. Q2 + Q3 - Q6 = 2

NodeS. -Q3 + Q4 -Q7 = ONode 4. Q5 - G8 = 1Node 5. Q6 + Q1 + Q, = 2Loop I. \2 + hL 6 - hLi8 - hL>5 = O = K2Qi + K6Ql - K8Qi - K5QiLoop II. hLJ - hL>6 - hL 3 = O = K1Qt - K6Ql - K3QI

Pseudo-loop. hL4 - hp + hL3 - hL2 - hLl - EFGN2 + EFGN, = O

= K4Ql - (ApGJ + BpQ4 + Cp + K3QI -K2Ql - K1Gf

~ EpGN,2 + EFGNJ

Because the Darcy-Weisbach equation is used, n equals 2. The loop equations assumethat flow in the clockwise direction is positive. Flow in Pipe 5 is moving counterclock-wise and is given a negative sign for loop I. Flow in pipe 6 is moving clockwise relativeto loop I (positive sign) and counter clockwise relative to Loop II (negative sign).Although flow is moving clockwise through the pump in the pseudo-loop, hp is given anegative sign because it adds energy to flow. To satisfy conservation of mass, the initialset of flows given below is assumed, where the values of K for the Darcy-Weisbach equa-tion are given by

K - ^ - 8^ »33)KDW ~ TtDg ~ VD^; (933)

The concrete pipes are 1 ft in diameter and have a friction factor of 0.032 for turbulentflow.Pipe 1 2 3 4 5 6 7 8K 1.611 2.417 2.417 1.611 3.222 3.222 4.028 2.417Q 2.5 1.0 1.5 2.5 1.5 0.5 1.0 0.5

Also, A^ = -6, Bp = O, and Cp = 135'.

Iterahtion 1. To compute the correction for the pseudo-loop, the numerator of Eq. (9.30) is

K,® - (ApQl + Cp + K3Gi - K2Gi - K1G? - EFGN,2 + EFGNJ =

1.611(2.5)2 - (-6(2.5)2 + 135) + 2.417(1.5)2 - 2.417(1.O)2 - 1.611(2.5)2 - (10 + 100)= -4.48

FIGURE 9.5 Example network (Note all pipes have diameters of 1 ft and friction factors equal to 0.032).

The denominator is

TiK4Q4 + 2ApQ4 + nK3Q3 + nK2Q2 + TiK1Q1

= 2 (1.611(2.5))+I2(-6)2.5I + 2(2.417(1.5)) + 2 |2.417(1.0) +2 1.611(2.5) = 58.20.

Thus, the correction for the pseudo-loop AQPL is

*.--%£-»»>

The correction for Loop I is computed next. The numerator of Eq. (9.30) is

K2Ql + K6Gi - K8Gi - K5Q52 =

2.417(1.O)2 + 3.222(0.5)2-2.417(0.5)2-3.222(1.5)2 = -4.63

and the denominator is

nK2Q2 + UK6Q6 + nK8<28 =

2(2.417(1.0))+ 2(3.222(0.5))+2(2.417(0.5))+2(3.222(1.5)) = 20.14

Thus, the correction for Loop 1, AQ1 is

Ag1 = -1^f1 = 0.230

Finally to adjust loop II from the numerator of Eq. (9.30) is

K7G72 - K6Ql - K3Ql =

4.028(1.O)2 - 3.222(0.5)2 -2.417(1.5)2 = -2.22

and the denominator is

nK7Q7+ nK6Q6 + nK3Q3 = 2(4.028(1.O)) + 2(3.222(0.5)) + 2(2.417(1.5)) = 18.53

Thus, the correction for the loop II, AQ11, is

«.--*££-<»»

The pipe flows are updated for Iteration 2 as follows:

Pipe 1 2 3 4 a n d pump 5 6 7 8A<2 -0.077 0.230 0.077- 0.077 -0.230 0.230- 0.120 -0.230

-0.077 0.120 0.120Q 2.42 1.15 1.46 2.58 1.27 0.61 1.12 0.27

Because the flow direction for Pipe 1 is counterclockwise relative to the pseudo-loop,the correction is given a negative sign. Similarly, Pipe 2 receives a negative correction forthe pseudo-loop. Pipe 2 is also in Loop I and is adjusted with a positive correction for thatloop since flow in the pipe is in the clockwise direction for Loop I. Pipes 3 and 6 alsoappear in two loops and receive two corrections.

Iteration 2. The adjustment for the pseudo-loop is

__ _ K4Qj - (AnQl + C0) + K3Qj - K2Q* - K,g + (EfCM2 -E^1) _A(^ nK4<24 + 2Apg4 + nK3g3 + nK2Q2 + nK.fi!

1.611(2.58)2 - (-6(2.58)2 + 135) + 2.417(1.46^ - 2.417(1.15)^ - 1.611(2.42)^ -10+100

2(1.611(2.58)) + 2| - 6(2.58)1 + 2(2.417(1.46)) + 2(2.417(1.15)) + 2(1.611(2.42))

--&£)"»«»

In the correction for loop I, the numerator of eq. (9.30) is

K2Gi + K6Gi - K8Gi - K5Gi =

2.417(1.15)2 + 3.222(0.61)2 -2.417(0.27)2 - 3.222(1.27)2 = -0.978

and the denominator is

nK2G2 + nK6G6 + nK8G8 + nK5G5 =

2 (2.417(1.15)) + 2 (3.222(0.61)) + 2 (2.417(0.27)) + 2(3.222(1.27)) = 18.98

T^us the correction for loop, AG1 is

AG1 = - ( ~8°99878) = 0.052

Finally, to correct loop II, the numerator of Eq. (9.30) is

K7Q? - K6Gi ~ K3Gi = 4.028(1.12)2 - 3.222(0.61)2 -2.417(1.46)2 = -1.30

and the denominator is

nK7Q2 + HK6Gi + nK3Gi =

2*[4.028(1.12)] + 2[3.222(0.6I)] + 2[2.417(1.46)] = 20.01

Thus, the correction for the pseudo-loop, AGn is

AQ» ~ Solf1 = °-065

The pipe flows are updated for iteration 3 as follows:

Pipe 1 2 3 4 a n d pump 5 6 7 8A0 -0.030 0.052+ 0.030- 0.030 -0.052 0.052- 0.065 -0.052

(-0.030) 0.065 0.065Q 2.39 1.17 1.43 2.61 1.22 0.60 1.18 0.22

Iteration 3. The corrections for iteration 3 are 0.012, 0.024, and 0.021 for the pseu-do-loop, loop I and loop II, respectively. The resulting flows are as follows:

Pipe 1 2 3 4 a n d pump 5 6 7 8AQ -0.012 0.024+ 0.012- 0.012 -0.024 0.024- 0.024 -0.024

(-0.012) 0.024 0.024Q 2.38 1.18 1.42 2.62 1.20 0.60 1.20 0.20

After two more iterations, the changes become small, and the resulting pipe flows areas follows. Note that the nodal mas balance equations are satisfied at each iteration.

Pipe 1 2 3 4 and pump 5 6 7 8Q 2.37 1.19 1.41 2.63 1.18 0.60 1.21 0.18

The total energy at Nodes 4 and 5 can be computed by path equations from either FGNto the nodes. For example, paths to Node 4 consist of Pipes 1 and 5 or of pipes 4 (with thepump), 7, and 8. For the path with pipes 1 and 5, the equation is

100 - K1Q12- K5Q5

2= 100 - 1.611(2.37)2 - 3.222(1.19)2 = 100 - 9.05 - 4.56 - 86.39m

For the path containing pipes 4, 7 and 8 the result is

10 + (135 - 6(2.63)2) - 1.611(2.63)2 - 4.028(1.22)2 + 2.417(0.19)2 =

10 + 93.50 - 11.14 - 6.00 + 0.09 = 86.45m

This difference can be attributed to rounding errors. Note that pipe 8 received a posi-tive sign in the second path equation. Because the flow in Pipe 8 is the opposite of the pathdirection, the energy along the path is increasing from Nodes 5 to 4. The total energy atNode 5 can be found along pipes 4 and 7 or 86.36 m or along the path of Pipes 1-2-6, giv-ing (100 - 9.05 - 3.42 - 1.16 = 86.37m).

9.2.3.2 Linear theory method. Linear theory solves the loop equations or Q equations(Eqs. 9.25 to 9.27). Np equations (Nj + N1 + Nf -1) can be written in terms of the Npunknown pipe flows. Since these equations are nonlinear in terms of Q, an iterative pro-cedure is applied to solve for the flows. Linear theory, as described in Wood and Charles(1972), linearizes the energy equations (Eqs. 9.26 and 9.27) about Qi>k+1, where the sub-script k+\ denotes the current iteration number using the previous iterations Q1k as knownvalues. Considering only pipes in this derivation, these equations are

Ea*+i = *« far all Nj nodes (9.34)^J

^ K1QIk1 Qi,k+i = ° f°r al1 N\ dosed lo°Ps (9-35)<e/L

and

2^ KiQi kl Qik+i = ^EFGN for all Nf — I independent pseudo—loops (9.36)™L

These equations form a set of linear equations that can be solved for the valuesof Q1-^+1. The absolute differences between successive flow estimates are computed andcompared to a convergence criterion. If the differences are significant, the counter k isupdated and the process is repeated for another iteration. Because of oscillations in theflows around the final solution, Wood and Charles (1972) recommended that the aver-age of the flows from the previous two iterations should be used as the estimate for the

next iterations. Once the pipe flows have been determined, the nodal piezometric headscan be determined by following a path from a FGN and accounting for losses or gainsto all nodes.

Modified linear theory Newton method. Wood (1980) and his collaborators at theUniversity of Kentucky developed the KYPIPE program but essentially modified theoriginal linear theory to a Newton's method. However, rather than solve for the change indischarge (AQ), Qk+l *

s determined.To form the equations, the energy equations (Eq. 9.3) are written in terms of the

current estimate of Qk, including pipes, minor losses and pumps, as

/(ft) - E KQi+ E Kim Ql + E <A*G?+ B*& + CP - AE (9-37>ie/L <me/m ip^p

where for simplicity the subscripts /, /m, and ip denoting the pipe, minor loss component,and pump, respectively, are dropped from the flow terms and k again denotes the iterationcounter. This equation applies to both closed loops (AE = O) and pseudo-loops (AE =A£"FGN), but, in either case, f(Qk) should equal zero at the correct solution.

To move toward the solution, the equations are linearized using a truncated Taylorseries expansion:

f(Qk+l) =f(Qk) + ̂ Qk (G^+I - G4) =№k) + G4(G4+I - ft) (9-38)

Note that/and Q are now vectors of the energy equations and pipe flow rates, respec-tively, and Gk is the matrix of gradients that are evaluated at Qk. Setting Eq. (9.38) to zeroand solving for Qk+l gives

0=f(Qk) + Gk(Qk+l-Qk)or (9.39)

GkQk+v = GkQk+f(Qk)

This set of (N1 + Nf-l) equations can be combined with the Adjunction equations inEq. (9.34) that also are written in terms of Qk+l to form a set of Np equations. This set oflinear equations is solved for the vector of Np flow rates using a matrix procedure. Thevalues of Qk+1 are compared with those from the previous iteration. If the largest absolutedifference is below a defined tolerance, the process stops. If not, Eq. (9.39) is formedusing Qk+l and another iteration is completed.

9.2.3.3 Newton-Raphson method and the node equations. The node equations are theconservation of mass relationships written in terms of the unknown nodal piezometricheads. This formulation was described in Sec. 9.2.2 for branching pipe system. In Fig. 9.4,if P and the pipe flows are unknown, the system is essentially a network with one junc-tion node with three FGNs. In a general network, Nj junction equations can be written interms of the Nj nodal piezometric heads. Once the heads are known, the pipe flows can becomputed from the pipe's head-loss equation.

Other network components, such as valves and pumps, are included by adding junc-tion nodes at each end of the component. Node equations are then written using the flowrelationship for the component.

Solution method. Martin and Peters (1963) were the first to publish an algorithmusing the Newton-Raphson method for solving the node equations for a pipe network.Shamir and Howard (1968) showed that pumps and valves could be incorporated andunknowns other than nodal heads could be deternined by the method. Other articles havebeen published that attempt to exploit the sparse matrix structure of this problem.

At iteration k, the Newton-Raphson method is applied to the set of junction equationsF(hk) for the nodal heads hk. After expanding the equations and truncating higher orderterms, the result is

3FF(hk) + _ AJi4 = O (9.40)

where F is the set of node equations evaluated at hk, the vector of nodal head estimates atiteration k. dF/dh is the Jacobian matrix of the gradients of the node equations withrespect to the nodal heads. This matrix is square and sparse because each nodal headappears in only two nodal balance equations. The unknown corrections A/^ can be deter-mined by solving the set of linear equations:

r)FF(hk)= -^- AA4 (9.41)

The nodal heads are then updated by:

A4+1 = hk + Uik (9.42)

As in previous methods, the magnitude of the change in nodal heads is examined todetermine whether the procedure should end. If the heads have not converged, Eq. (9.41)is reformulated with hk+l and another correction vector is computed. If the final solutionhas been found, the flow rates are then computed using the component relationships withthe known heads.

As in all formulations, at least one FGN must be hydraulically connected to all nodesin the system. Some convergence problems have been reported if poor initial guesses aremade for the nodal heads. However, the node equations result in the smallest number ofunknowns and equations of all formulations.

Problem. Write the node equations for the system in Fig. 9.5.

Node 1:

• /1AA ,/'100-/I1Il^ . n ; /l/*2 -^lO" _L • n I NP^-^l ' l" n,WgAi(IOO - /J1) —M + SIgH(H2 - /I1) 2^ 1 + sign(h4 - /I1) * = O

V K\ J \ K2 J (. K5 )Node 2 (note that the right-hand side is equal to the external demand):

sign(hl - /J^f + ***> - 41 f̂ + ***> - 4^f = 2( K2 ) ( K3 ) ( A6 )

Node 3:

Sign(h2 - />3fv^f + ̂ 5 - jyf^f + -^v - 414V^f= o( K3 ) ( K7 J ( K4 )

Node 4:

sign(hl - J^f + Si8n(H5 - J^V^l" = 1(. K5 J ( As ;

Node 5:

sign(/,2 - hf^f + sig*/, - /yf^f + sign^ - J^f = 2( K6 J ( A8 ) ( K1 )

New node for the pump:

<*-.-v(^H^«):=o

The first term in the pump node equation is the outflow from the pump toward Node3 in Pipe 4. The second term is the discharge relationship for the pump, written in termsof the total energy at the outlet of the pump hpd.

Because the pump relationship is different from that for Pipe 4, this new node withzero demand was added at the outlet of the pump (assuming that the pump inlet is thetank). This type of node must be added for every component (valve, pipe, or pump); there-fore, one must know the precise location of the component. For example, if a valveappears within a pipe, to be exact in system representation, new nodes would be added oneach side of the valve, and the pipe would be divided into sections upstream and down-stream of the valve.

In summary, six equations can be written for the system to determine six unknowns(the total energy for Nodes 1 to 5 and for the pump node). Using the solution from theHardy Cross method gives the following nodal heads, the values of which can be con-firmed to satisfy the node equations:

Node 1 2 3 4 5 PumpTotal head (m) 90.95 87.54 92.35 86.45 86.38 103.50

Pipe 1 2 3 4 5 6 7 8 Pump

Pipe flow 2.37 1.19 1.41 2.63 1.18 0.60 1.22 0.18 2.63(mVs)

9.2.3.4 Gradient algorithm Pipe equations. Unlike the node and loop equations, thepipe equations are solved for Q and h simultaneously. Although this requires a larger setof equations to be solved, the gradient algorithm by Todini and Pilati (1987) has beenshown to be robust to the extent that this method is used in EPANET (see Sec. 9.5.3).

To form the pipe equations, conservation of energy is written for each network com-ponent in the system in terms of the nodal heads. For example, a pipe equation is

ha-hb = KQn (9.43)

and, using a quadratic approximation, a pump equation is

hb-ha = AQ* + BQ+ C (9.44)

where ha and hb are the nodal heads at the upstream and downstream ends of the compo-nent. These equations are combined with the nodal balance relationships (Eq. 9.2) to formTV7 + Np equations with an equal number of unknowns (nodal heads and pipe flows).

Solution method. Although conservation of mass at a node is linear, the componentflow equations are nonlinear. Therefore, an iterative solution scheme, known as the gra-dient algorithm, is used. Here the component flow equations are linearized using the pre-vious flow estimates Qk. For pipes,

KQi~l QM + (ha - A4) = O (9.45)

In matrix form, the linearized equations are

A12/* + A11G + A10A0 = O (9.46)

andAnQ - qm = O (9.47)

where Eq. 9.46 is the linearized flow equations for each network component and Eq. 9.47is the nodal flow balance equations. A12 (= A21

7) is the incidence matrix of zeros and onesthat identify the nodes connected to a particular component and A10 identifies thefixed grade nodes. A11 is a diagonal matrix containing the linearization coefficients(e.g.,\KQs-i D-

Differentiating eqs. 9.46 and 9.47 gives:

[JVA11 A12IFdBl JdEl[A21 O JUJ [dq\ *'-™>

where dE and dq are the residuals of equations 9.2 and 9.43-44 evaluated at the pre-sent solution, Qk and hk. N is a diagonal matrix of the exponents of the pipe equation(n). Eq. 9.48 is a set of linear equations in terms of dQ and dh. Once solved Q and hare updated by

Gft+i = Qk + dQ (9.49)and

hk+l = hk + dh (9.50)

Convergence is checked by evaluating dE and dq and additional iterations are completedas necessary.

Todini and Pilati (1987) applied an alternative efficient recursive scheme for solvingfor Qk+l and hk+l. The result is

Vi = -(A2A-1Al1 A1^1{A17N^(Qk+^Al^ + (qat-A2lQl)} (9.51)

then using hk+l, Qk+l by is determined:

G4+1 = (l-tf-OG* -tf-1 AT1 (A1A+1 +A10H0) (9.52)

where A11 is computed at Qk. Note that N and A11 are diagonal matrices so the effort forinversion is negligible. Yet, one full matrix must be inverted in this scheme.

Problem. Write the pipe equations for the network in Fig. 9.5.

Solution. The pipe equations include mass balance equations for each node in the sys-tem. The network contains five junction nodes plus an additional node downstream of thepump. The pump is considered to be a link and is assumed to be located directly after theFGN.

Conservation of energy equations are written for each pipe and pump link. Eight pipeequations and one pump equation are written. The total number of equations is then 15,which equals the 15 unknowns, including 8 pipe flows, 1 pump flow, and 6 junction nodeheads, including the additional nodal head at the pump outlet hp.

Node 1: Q1 - Q2 - Q5 = O Pipe 1: 100 -H1 = K,Q>{

Node 2: Q2 + Q3 - Q6 = 2 Pipe 2: H 1 - H 2 = K2Qi

Node 3: - Q3 + Q4 - Q1 = O Pipe 3: H 3 - H 2 = K3Q]Node 4: £5 - G8 = 1 Pipe 4: hp-H3 = K4Q4

Node 5: S6 + C7 + G8 = 2 Pipe 5: H 1 - H 4 = K5Qn

5

Pump Node: Gp - G4 = O Pipe 6: H 2 - H 5 = K6Ql

Pump: fcp - 10 = 135 - 6Q2p Pipe 7: H 3 - H 5 = K1Qf1

Pipe 8: /I4 - /I5 = K,Ql

9.2.3.5 Comparison of solution methods. All four methods are capable of solving theflow relationships in a system. The loop equations solved by the Hardy Cross method areinefficient compared with the other methods and are dropped from further discussion. TheNewton-Raphson method is capable of solving all four formulations, but because the nodeequations result in the fewest equations, they are likely to take the least amount of per iter-ation. In applications to the node equations, however, possible convergence problems mayresult if poor initial conditions are selected (Jeppson, 1974).

Linear theory is reportedly best for the loop equations and should not be used for thenode or loop equations with the AG corrections, as used in Hardy Cross (Jeppson, 1974).Linear theory does not require initialization of flows and, according to Wood and Charles(1972), always converges quickly.

A comparative study of the Newton-Raphson method and the linear theory methodswas reported by Holloway (1985). The Newton-Raphson scheme was programmed in twocodes and compared with KYPIPE that implemented the linear theory. For a 200-pipe net-work, the three methods converged in eight or nine iterations, with the Newton-Raphsonmethod requiring the least amount of computation time.

Salgado, Todini, and O'Connell (1987) compared the three methods for simulatinga network under different levels of demand and different system configurations. Fourconditions were analyzed and are summarized in Table 9.1. Example A contains 66pipes and 41 nodes but no pumps. Example B is similar to Example A, but 6 pumps areintroduced and a branched connection has been added. Example C is the same networkas in Example B with higher consumptions, whereas Example D has the same networklayout but the valves are closed in two pipes. Closing these pipes breaks the networkinto two systems. The results demonstrate that all methods can simulate the conditions,but the gradient method for solving the pipe equations worked best for the conditionsanalyzed.

All comparisons and applications in this chapter are made on the basis of assumingreasonably sized networks. Given the speed and memory available in desktop comput-ers, it is likely that any method is acceptable for these networks. To solve extremelylarge systems with several thousand pipes, alternative or tailored methods are neces-sary. Discussion of these approaches is beyond the scope of this chapter. However,numerical simulation of these systems will become possible, as discussed in Sec. 9.5on network calibration, but good representation of the system with accurate parame-ters may be difficult.

9.2.3.6 Extended-period simulation. As noted earlier, time variation can be consideredin network modeling. The simplest approach is extended-period simulation, in which asequence of steady-state simulations are solved using one of the methods described earli-er in this section. After each simulation period, the tank levels are updated and demandand operational changes are introduced.

TABLE 9.1 Comparison of solution methods

Example Special conditions Solution method:Node equations Loop equations Pipe equations

A Low velocities Converged Converged ConvergedIterations = 16, Iterations =17, Iterations =16,T = 70 s T = 789 s T = 30 s

B Pumps and branched Converged Slow convergence Convergednetwork Iterations =12, Iterations =13, Iterations =10,

T = 92 s T = 962 s T = 34 s

C Example B with high Converged Slow convergence Convergeddemand Iterations =13, Iterations =15, Iterations =12,

T = I O O s T = I I l O s T = 39 s

D Closed pipes Converged Converged ConvergedIterations = 21, Iterations = 21, Iterations =19,T = 155 s T = 1552 s T = 57 sSome heads not Some heads notavailable available

Source: Modified from Todini and Pilati (1987).

Tank levels or water-surface elevations are used as known energy nodes. The levelschange as flow enters or leaves the tank. The change in water height for tanks with con-stant geometry is the change in volume divided by the area of the tank, or

J. = QI&T AT AT

where QT and VT are the flow rate and volume of flow that entered the tank during the peri-od, respectively; A? is the time increment of the simulation; AT is the tank area; and AHris the change in elevation of the water surface during period T. More complex relation-ships are needed for noncylindrical tanks. With the updated tank levels, the extended-peri-od simulation continues with these levels as known energy nodes for the next time step.The process continues until all time steps are evaluated. More complex unsteady analysisare described in the next section.

9.3 UNSTEADY FLOW IN PIPE NETWORK ANALYSIS

In steady state analysis or within an extended-period simulation, changes in the distribu-tions of pressure and flow are assumed to occur instantaneously after a change in externalstimulus is applied. Steady conditions are then reached immediately. In some cases, thetime to reach steady state and the changes during this transition may be important.Recently, work has proceeded to model rapid and gradual changes in flow conditions.Rapid changes resulting in transients under elastic column theory are discussed in Chap.12. Two modeling approaches for gradually varied unsteady flow under a rigid-columnassumption are described in this section.

9.3.1 Governing Equations

In addition to conservation of mass, the governing equations for unsteady flow under rigidpipe assumptions are developed from conservation of momentum for an element(Fig. 9.6). Conservation of momentum states that the sum of the forces acting on the vol-ume of fluid equals the time rate of change of momentum, or

2F = F1-F2-F7=^l (9.54)

where F1 and F2 are the forces on the ends of the pipe element, Ff is the force caused byfriction between the water and the pipe, and m and v are the mass and velocity of the fluidin the pipe element.

The end forces are equal to the force of the pressure plus the equivalent force causedby gravity or for the left-hand side of the element:

F1 = jA^+z] = JAh1 (9.55)

The friction force is the energy loss times the volume of fluid, or

Ff=jAhL. (9.56)

The change of momentum can be expanded to

/yALvlJ(UiV) _ d(pVv) _( 8 ) = yLd(Av±=yLc®

dt dt dt g dt g dt

ywhere the mass is equal pV = -AL, in which all terms are constants with respect to timeO

and can be taken out of the differential. Note that under the rigid-water-column assump-tion, the density is a constant as opposed to elastic-water-column theory. Substitutingthese terms in the momentum balance gives

FIGURE 9.6 Force balance on a pipe element

JA(H1 - H 2 - H 1 ) = ̂ -^ (9.58)

Assuming that a steady state friction loss relationship can be substituted for hL and divid-ing each side by ^A,

*.-*,-*? = £§ (9-59)With conservation of mass (Eq. 9.2), this ordinary differential equation and its exten-

sions for loops have been used to solve for time-varying flow conditions.

9.3.2 Solution Methods

9.3.2.1 Loop formulation. Holloway (1985) and Islam and Chaudhry (1998) extendedthe momentum equation (Eq. 9.59) to loops as follows:

2 (*«-*»>-S ̂ =S ̂ f1 (9-60)i€/p ie/p ielp $ 'Separating variables and integrating over time gives

P+^IV. 1 P+AT^ 1 f^+Ar^ L.1 [s (*«-**>}*-i g/4H |^de' (9-6i)

At any instant in time, the head loss around a closed loop must equal zero, so the firstterm can be dropped. Dropping this term also eliminates the nodal piezometric heads asunknowns and leaves only the pipe flows.

One of several approximations for the friction loss term can be used:

KQ+"\Q\*-lbt (9.62)

K[(Q^ + Q)\Q+* + 01"-!/2"JAf (9.63)

K[(Qt+*> IQ*+*!"-1 + Q\Q\»-*) /2»]Af (9.64)

Holloway (1985) obtained results using Eq. (9.62), known as the integration approxi-mation that compared favorably with the other two nonlinear forms. Using this form inEq. (9.61),

^-^T &-^, K&+"\Q\*-i Ar = X ^T W (9'65)

MP 8 l Mp Mp 8Ai

This equation is written for each loop and is used with the nodal conservation of massequations to given Np equations for the Np unknown pipe flows. Note that these equationsare linear in terms of Qt+At and can be solved at each time step in sequence using the pre-vious time step for the values in the constant terms.

9.3.2.2 Pipe formulation with gradient algorithm. An alternative solution methoddeveloped by Ahmed and Lansey (1999) used the momentum equation for a single pipe(Eq. 9.59) and the nodal flow balance equations to form a set of equations similar to thosedeveloped in the gradient algorithm. An explicit backward difference is used to solve theequations. The right-hand side of Eq. 9.59 is written in finite difference form as

£f -3;*^

The left-hand side of Eq. 9.9 is written in terms on the unknowns h and Q at time stept + At. After substituting and rearranging a general algebraic equation for pipe betweentwo nodes results in

\Kt\Q^ I"-1 Ar - -^U <2rA'+ №iTA'~ ^TA'] & = \ - -^r] Qi (9-67)L &A'J L £A'J

Np equations of this form can be written for each pipe or other component. With the Njnodal flow balance equations, a total of Nj + Np equations can be written in terms of anequal number of unknown pipe flows and nodal heads. Given an initial condition at timet, the pipe flows and nodal heads at time t + At by solving Eq. 9.67 and Eq. 9.2 The newvalues are then used for the next time step until all times have been evaluated. Unlike theloop formulation, in the form above, Eq. 9.67 is nonlinear with respect to the unknowns.In addition, like the loop equation, the time step will influence the accuracy of the results.

9.4 WATER-QUALITY MODELING

Interest in water quality in distribution systems heightened with the passing of the 1986amendment to the Safe Drinking Water Act. This amendment required that standards mustbe developed for chlorine levels not only at the point of disinfection but also at the mostdistant point of withdrawal. Thus, modeling the fate and transport of dissolved substancesin networks with emphasis on chlorine became necessary. As a result, methods of analy-sis and computer programs implementing these methods, such as EPANET (Rossman,1994), have been developed.

Since the velocity in pipes is relatively high, constituents in the water are assumed tomove completely with the flow, that is, by advective transport. This assumption allows theuse of explicit numerical modeling schemes to solve for constituent movement within thesystem. As in hydraulic analysis, steady and unsteady transport models have been devel-oped. Both models use conservation of mass as the basic governing equation describingmixing and movement. Because advective transport dominates, the pipe flow rates arecritical in estimating transport in the system. In most unsteady water-quality models,extended-period simulation has been used to account for demand and operational changes(Sec. 9.2.3.6) Although water quality analysis considering slow transients using rigid-water-column theory for the flow analysis has been performed by Chaudhry and Islam(1998), it will not be discussed here.

As water moves through the network, constituent (with emphasis on chlorine) decay isgenerally assumed to follow first-order kinetics, or

ct = c0e-V (9.68)

where CQ and ct are the constituent concentrations at times O and t, respectively, t is timeand kt is the first-order decay coefficient, which is defined by

"--[^+ScWl <*">where RH is the hydraulic radius of the pipe, and kb, kw, and kf are the bulk flow-decay con-stant, the wall reaction rate constant, and a mass transfer coefficient that is dependent onthe Reynold's number, respectively.

9.4.1 Steady State Modeling

Given a steady flow distribution, the contribution from different sources or the concen-tration of a constituent at withdrawal nodes can be determined by solving a set of linearalgebraic equations. Under the assumption that complete mixing occurs at a junctionnode, the general conservation of mass equation under these conditions states that themass of constituent entering the junction equals the mass leaving the junction, or

2 QfI. + Q8C= 2 Qf0 (9.70)Jelk iele

where CI- is the constituent concentration in incoming pipey, C0 is the concentration in alloutgoing pipes, and Cs is the constituent concentration in the incoming source water. Qj isthe volumetric flow rate in incoming pipe j and Qs is the external-source flow rate. Q. isthe outgoing flow from the node in pipe i. If the junction is a demand node, the externaldemand is included in set I6. Given steady flow, the total inflow must equal the total out-flow. Substituting the flow balance and solving for the concentration in all flows leavingthe node, C0 gives

2 QPt + QSCS

C0 = J^ (9.71)

Ea™e

One constituent mass balance equation can be written for each node. Since the flowrates are defined by the hydraulic relationships, C8 is known, and the CI for one node isthe outflow from another node, the system of equations can be solved for the Af unknownc;s.

A steady-state model provides the concentrations at all points in the network understeady flow and concentrations. By modeling each source concentration independentlyin a series of simulations, the model also can be used to determine the relative sourcecontribution at any point under the same conditions.

9.4.2 Dynamic Analysis

Steady flow conditions for water quality provide information regarding movement of dis-solved substances but are likely to be less useful for predicting point concentrations undernormal operations. Unsteady analysis, also known as dynamic modeling, provides a morerealistic picture and better estimates of constituent movement under time-varying flowconditions.

Dynamic modeling can solve several types of problems. In addition to determining thevariation in concentration at a point over time, it can be used to determine the age of oraverage travel time for water at some location and time. Finally, as with steady models,the relative source contributions providing flow to a point can be computed.

9.4.2.1 Governing equations. To determine the fate and transport of dissolved sub-stances under unsteady conditions, the primary governing equation is the one-dimension-al advection equation that is solved in conjunction with the assumption of complete mix-ing at a node. The advection equation is

§=-i,§ + *(C'.) (9.72)

where C1 is the constituent concentration in pipe / at location x and time t\ U1 is the veloc-ity in pipe z, and R(C1) is the reaction/decay function. The decay relationship for first-order kinetics R = ktc is used when modeling chlorine and possibly other nonconserv-ative substances. For conservative substances, such as fluoride, the reaction relationshipis simply zero. Finally, when modeling water age, R is equal to one and the concentra-tion C is interpreted as the water age with new water entering the system having con-centration equal to zero.

Tanks act as sources or sinks in the system with variable water quality, depending onthe history of inflow and outflow as well as on the reactions in the tank. The simplestwater-quality relationship for a tank assumes that the water is mixed completely. In thiscase, the variation in constituent concentration is

^^ = 2 G1-CE1. - 2 QjC7 + R(C1) (9.73)01 ieIT j*0T

where VT and CT are the storage volume and constituent concentration within the tank attime r, respectively. Pipes in the set of 1T provide inflows Q1 to the tank, and pipes in theset OT receive flows Q. from the tank. CE is the concentration at the exit of the pipe as itenters the tank. R is the reaction relationship for water in the tank.

9.4.2.2 Solution methods Eulerian methods. Rossman and Boulos (1996) comparedthe different solution methods for solving the unsteady water-quality problem. This sec-tion generally follows their notation and terminology. Dynamic models can be classifiedspatially as Eulerian or Lagrangian models and temporally as time driven or event driven.Eulerian methods define a grid of either points or volume segments within a pipe. Flowand the associated constituents are tracked through this fixed grid. Chaudhry and Islam(1998) used a finite-difference method with a fixed-point grid, and Grayman et al. (1988),and its extension by Rossman et al. (1993), have developed the discrete-volume method(DVM). The following discussion focuses on the DVM as it has been implemented in theEPANET model (Rossman, 1994).

For a given hydraulic condition, the DVM divides each pipe into equally sized,completely mixed, volume segments. The number of segments for a particular pipe iscomputed by

n = J^ = ^L (9.74)' u£t Ar '

where L1 and u( are the length of and flow velocity in pipe z, respectively; tti is the travel timefor water to pass through pipe /; and Ar is the duration of the water quality time step. A smallAr provides the highest numerical accuracy at the expense of higher computation times.When the flow conditions change in the network (i.e., u changes), the grid must be redefined.

At each water-quality step, four operations are completed, as shown in Fig. 9.7. First,the present constituent masses are reduced to account for the decay reactions. Next, theelements from each segment are advanced to the next downstream segment. Third, if thesegment is the most downstream in a pipe, the flow is mixed with the flow from otherpipes that enter the node using Eq. (9.71). Finally, the flow from the node is passed to thefirst segments of pipes leaving the node.

These operations are repeated for each water-quality time step until the flow distributionchanges. Pipes are then resegmented, and the process is repeated for that hydraulic condi-

FIGURE 9.7 Computational steps of discrete volume method (From Rossman and Boulos (1996))

tion. When the pipes are divided for different flow conditions, the number of segments maybe different and some numerical blending occurs. As a result, the accuracy of DVM andfinite difference methods depends on the selection of the water-quality time step Af.

Lagrangian methods. Unlike Eulerian methods which use a fixed grid, Lagrangianmethods track segments of water as they move through a network. As the front or leadingedge of the segment reaches a node, it is combined with other incoming segments. Thesegments leaving the node are developed with constituent levels determined by Eq. (9.71)(Fig. 9.8). Two approaches have been used to define when segments are combined andtransported through a pipe.

Liou and Kroon (1987) applied this type of model using a defined time step todetermine when to combine segments. During each time step, the total mass of constituentand volume of water that reaches a node is computed. The average nodal concentration iscomputed, and new segments emanating from the node are introduced. To avoid addingtoo many new segments, they are created only when the concentration difference betweenthe new and the previous segment in a link is above a threshold. When more than one seg-ment in a link reaches a downstream node in one time step, artificial mixing will occur.

Rather than combine segments at defined time intervals, the second Lagrangianapproach is an event-driven method (Boulos et al., 1994, 1995; Hart et al., 1987;El-Shorbagy and Lansey, 1994; and Shah and Sinai, 1985). Event methods combine seg-ments each time a front reaches a node, thus avoiding artificial mixing. Since definedtimes are not used, the projected times when a front reaches a downstream node are corn-

Original mass

After reaction

Transport to downstream node

Transport along link

Transport out of node

FIGURE 9.8 Water quality transport for the Lagrangian methods for a conservative substance atthree different times. The flowrates in the two inflow pipes are equal and the flowrate in the out-going pipe is then twice the flow in either inflow pipe. A: water quality at time t: flow is to the left,and the constituent level equals the average of the inflow concentrations, or (4+l)/2 = 2.5 B: Thewater quality at time t + At some time after the front concentration 2 in the vertical pipe reachedthe node. For some time, the inflow concentrations were 2 and 4, or an average outflow concentra-tion of 3, C: Water quality at some later time: Two elements have developed downtream. The ele-ment with a concentration of 3.5 developed when the inflows of 3 and 4 mixed at node. The finalelement closest to the node with concentration 4 developed when the inflow with concentrations of3 and 5 mixed at the node.

puted for the present flow condition. The water-quality conditions at nodes remain con-stant until the next segment front reaches a node. At that time, new segments are generat-ed in pipes that carry flow from the node that the first front reaches. The concentration inthese segments is computed by Eq. (9.71) and is recorded with the transition time.Projection times are then updated, and the process continues when the next closest frontreaches a node or the hydraulic condition changes. If the flow condition changes, new pro-jection times are computed. Event-driven models avoid numerical dispersion; however,the method can result in a large number of segments. To save computer memory, segmentscan be combined according to the difference in concentration between adjacent segments.Further error may result during flow reversals for reactive constituents.

Comparison of methods. Rossman and Boulos (1996) conducted numerical experi-ments comparing the alternative methods described in the previous sections, and reachedthe following conclusions:

1. The numerical accuracy of all methods is similar, except that the Eulerian methods hadoccasional problems. All methods can represent observed behavior adequately in realsystems.

2. Network size is not always an indicator of solution time and computer memoryrequirements.

3. Lagrangian methods are more efficient in both time and memory requirements thanEulerian methods when modeling chemical constituents.

4. The time-dependent Lagrangian method are most efficient in computation time formodeling water age, whereas the Eulerian methods are the most memory efficient.

Overall, Rossman and Boulos concluded that the time-based Lagrangian method wasthe most versatile unless computer memory was limiting for modeling water age for largenetworks. In which case, Eulerian methods were preferable.

9.5 COMPUTER MODELING OF WATERDISTRIBUTION SYSTEMS

Because the numerical approaches for analyzing distribution systems cannot be complet-ed by hand except for the smallest systems, computer-simulation models have been devel-oped. These models solve the system of nonlinear equations for the pipe flows and nodalheads. In addition to the equation solver, many modeling packages have sophisticatedinput preprocessors, which range from spreadsheets to tailored full-page editors, and out-put postprocessors, including links with computer-aided drafting software and geograph-ic information systems. Although these user interfaces ease the use of the simulation mod-els, a dependable solver and proper modeling are crucial for accurate mathematical mod-els of field systems.

An array of packages is available, and the packages vary in their level of sophistica-tion. The choice of a modeling package depends on the modeling effort. Modeling needsrange from designing subdivisions with fewer than 25 pipes to modeling large water util-ities that possibly involve several thousand links and nodes. Users should select the pack-age that best suit their objectives.

9.5.1 Applications of Models

Clark, et al. (1988) identified a series of seven steps that are necessary to develop andapply a water distribution simulation model:

1. Model selection: Definition of modeling requirements including the model'spurpose. The desired use of a model imprtant must be understood when selecting one(hydraulic or water quality) because the necessary accuracy of the model and the levelof detail required will vary, depending on its expected use.

2. Network representation: Determination of how the components of a system will berepresented in the numerical model. Step 2 includes skeletonizing the piping systemby not including some pipes in the model or making assumptions regarding the para-meter values for pipes, such as assuming that all pipes of a certain type have the sameroughness value. The degree of model simplification depends on what problems themodel will be used to help address.

3. Calibration: Adjustment of nonmeasurable model parameters, with emphasis on thepipe roughness coefficients, so that predicted model results compare favorably withobserved field data (see Sec. 9.5.2). This step also may require reexamination the net-work representation.

4. Verification: Comparison of model results with a second set of field data (beyond thatused for calibration) to confirm the adequacy of the network representation and para-meter estimates.

5. Problem definition: Identification of the design or operation problem and incorpora-tion of the situation in the model (e.g., demands, pipe status or operation decisions).

6. Model application: Simulation of the problem condition.7. Display/analysis of results: Presentation of simulation results for modeler and other

decision-makers in graphic or tabular form. Results are analyzed to determinewhether they are reasonable and the problem has been resolved. If the problem is notresolved, new decisions are made at step 5 and the process continues.

9.5.2 Model Calibration

Calibration, step 3 above, is the process of developing a model that represents field con-ditions for the range of desired conditions. The time, effort, and money expended for datacollection and model calibration depend on the model's purpose. For example, a modelfor preliminary planning may not be extremely accurate because decisions are at the plan-ning level and an understanding of only the major components is necessary. At the otherextreme, a model used for engineering decisions regarding a system that involves pressureand water-quality concerns may reguire significant calibration efforts to provide precisepredictions. All models should be calibrated before they are used in the decision-makingprocess.

The calibration process consists of data collection, model calibration, and modelassessment. Data collection entails gathering field data, such as tank levels, nodal pres-sures, nodal elevations, pump head and discharge data, pump status and flows, pipe flows,and, when possible, localized demands. These data are collected during one or more load-ing conditions or over time through automated data logging. Rossman et al., (1994) dis-cussed using water-quality data for calibration. To ensure that a calibration will be suc-cessful, the number of measurements must exceed the number of parameters to be esti-mated in the model. If this condition is not satisfied, multiple sets of parameters that

match the field observations can be found: that is, a unique solution may not be deter-mined. Each set may give dramatically different results when predicting under other con-ditions.

During model calibration, field data are compared with model estimates and modelparameters are adjusted so that the model predictions match the field observations. Twostages of model calibration are desirable. The first stage is a gross study of the data andthe model predictions. The intent is to insure that the data are reasonable and that majormodeling assumptions are valid. For example, this level would determine if valvesassumed to be open are actually closed or if an unexpectedly high withdrawal, possiblycaused by leakage, is occurring. Walski (1990) discussed this level of calibration.

[TITLE]EPANET Example network 1[JUNCTIONS]

Elevation DemandID ft gpm10 710 O11 710 15012 700 15013 695 10021 700 15022 695 20023 690 15031 700 10032 710 100

[TANKS]Elev. Init. Min. Max. Diam

ID ft Level Level Level ft2 850 120 100 150 50.59 800

[PIPES]Head Tail Length Diam. Rough

ID Node Node ft in. Coeff.""To To ii io53o""i~8 Too""

11 11 12 5280 14 10012 12 13 5280 10 10021 21 22 5280 10 10022 22 23 5280 12 10031 31 32 5280 6 100110 2 12 200 18 100111 11 21 5280 10 100112 12 22 5280 12 100113 13 23 5280 8 100121 21 31 5280 8 100122 22 32 5280 6 100

[PUMPS]Head Tail Design H-Q

ID Node Node ft gpm9 9 10 250 1500

[CONTROLS]Li^~9~6pEiiWN6DE2~Bl^wn6LINK 9 CLOSED IF NODE 2 ABOVE 140

[PATTERNS]ID Multipliers1 1.0 1.2 1.4 1.6 1.4 1.21 1.0 0.8 0.6 0.4 0.6 0.8

[QUALITY]Initial

Nodes Concen. mg/12 32 059 1.02 1.0

[REACTIONS]GLOBAL BULK - .5 ; Bulk decay coeff.GLOBAL WALL -1 ; Wall decay coeff.

[TIMES[DURATION 24 ;24 hour simulation

periodPATTERN TIME STEP ;2 hour pattern time

period

[OPTIONS]QUALITY Chlorine ; Chlorine analysisMAP Net !.map ; Map coordinates file

[END]

FIGURE 9.9 EPANET input file for example network (Figure 9.1)

EPANETHydraulic and Water QualityAnalysis for Pipe Networks

Version 1.0

EPANET Example Network 1Input data File net 1. inpVerification FileHydraulics FileMap File Net 1. mapNumber of Pipes 12Number of Nodes 11Number of Tanks 2Number of Pumps 1Number of Valves OHeadloss Formula Hazen-WilliamsHydraulic Timestep 1.00 hrsHydraulic accuracy 0.001000Maximum Trials 40Quality Analysis ChlorineMinimum Travel Time 6.00 minMaximum Segments per Pipe 100Specific Gravity 1.00Kinematic Viscosity l.lOe-005 sq ft/secChemical Diffusivity 1.3e-008 sq ft/secTotal Duration 24.00 hrsReporting Duration

All NodesAll Links

Node Results at 0.00 hrs:Elev. Demand Grade Pressure Chlorine

Node ft. gpm ft psi rng/L10 710.00 0.00 1004.50 127.61 0.5011 710.00 150.00 985.31 119.29 0.5012 700.00 150.00 970.07 117.02 0.5013 695.00 100.00 968.86 118.66 0.5021 700.00 150.00 971.55 117.66 0.5022 695.00 200.00 969.07 118.75 0.5023 690.00 150.00 968.63 120.73 0.5031 700.00 100.00 967.35 115.84 0.5032 710.00 100.00 965.63 110.77 0.502 850.00 765.06 970.00 52.00 1.00 Tank9 800.00 -1865.06 800.00 0.00 1.00 Reservoir

FIGURE 9.10 EPANET output file for example network (figure 9.1)

Link results at 0.00 hrs.Start End Diameter Flow Velocity Headloss

Link Node Node in gpm fps /1000ft10 10 11 18.00 1865.06 2.35 1.8211 11 12 14.00 1233.57 2.57 2.8912 12 13 10.00 129.41 0.53 0.2321 21 22 10.00 190.71 0.78 0.4722 22 23 12.00 120.59 0.34 0.0831 31 32 6.00 40.77 0.46 0.33

110 2 12 18.00 -765.06 0.96 0.3511 11 21 10.00 481.48 1.97 2.61

112 12 22 12.00 189.11 0.54 0.19113 13 23 8.00 29.41 0.19 0.04121 12 31 8.00 140.77 0.90 0.79122 22 32 6.00 59.23 0.67 0.65

9 9 10 1865.06 96 hp -204.50 Pump

Node Results at 1.00 hrsElev. demand Grade Pressure Chlorine

node ft gpm ft psi mg/110 710.00 0.00 1006.92 128.65 1.0011 710.00 150.00 988.05 120.48 0.4512 700.00 150.00 973.13 118.35 0.4413 695.00 100.00 971.91 119.98 0.4421 700.00 150.00 974.49 118.94 0.4322 695.00 200.00 972.10 120.07 0.4423 690.00 150.00 971.66 122.04 0.4531 700.00 100.00 970.32 117.13 0.4132 710.00 100.00 968.63 112.06 0.402 850.00 747.57 973.06 53.32 0.97 Tank9 800.00 -1847.57 800.00 0.00 1.00 Reservoir

Link Results at 1.00 hrs.Start End Diameter Flow Velocity Headloss

Link Node Node in gpm fps /1000ft10 10 11 18.00 1847.49 2.33 1.7911 11 12 14.00 1219.82 2.54 2.8312 12 13 10.00 130.19 0.53 0.2321 21 22 10.00 187.26 0.76 0.4522 22 23 12.00 119.81 0.34 0.0831 31 32 6.00 40.42 0.46 0.32110 2 12 18.00 -747.49 0.94 0.34111 11 21 10.00 477.68 1.95 2.57

FIGURE 9.10 (Continued)

Link Results at 1.00 hrs (continued)Start End Diameter Flow Velocity Headless

Link Node Node in gpm fps /1000ft112 12 22 12.00 192.14 0.55 0.20113 13 23 8.00 30.19 0.19 0.05121 21 31 8.00 140.42 0.90 0.79122 22 32 6.00 59.58 0.68 0.66

9 9 10 1847.49 97 hp -206.92 Pump

Node Results at 2.00 hrsElev. Demand Grade Pressure Chlorine

Node ft gpm ft psi mg/L10 710.00 0.00 1008.43 129.31 1.0011 710.00 180.00 989.77 121.22 0.8712 700.00 180.00 976.09 119.63 0.8113 695.00 120.00 974.02 120.90 0.3721 700.00 180.00 975.41 119.34 0.7622 695.00 240.00 973.81 120.81 0.3823 690.00 180.00 973.33 122.77 0.4031 700.00 120.00 969.96 116.98 0.3432 710.00 120.00 968.13 111.85 0.312 850.00 516.44 976.06 54.62 0.94 Tank9 880.00 -1836.44 800.00 0.00 1.00 Reservoir

Link results at 2.00 hrs.Start End Diameter Flow Velocity Headless

Link Node Node in gpm fps /1000ft10 10 11 18.00 1836.44 2.32 1.7711 11 12 14.00 1163.77 2.43 2.5912 12 13 10.00 173.00 0.71 0.3921 21 22 10.00 150.47 0.61 0.3022 22 23 12.00 127.00 0.36 0.0931 31 32 6.00 42.20 0.48 0.35

110 2 12 18.00 -516.44 0.65 0.17111 11 21 10.00 492.67 2.01 2.72112 12 22 12.00 294.33 0.83 0.43113 13 23 8.00 53.00 0.34 0.13121 21 31 8.00 162.20 1.04 1.03122 22 32 6.00 77.80 0.88 1.08

9 9 10 1836.44 97 hp -208.43 Pump

FIGURE 9.10 (Continued)

After the model representation is determined to be reasonable, the second stage ofmodel calibration begins with the adjustment of individual model parameters. At thislevel, the two major sources of error in a model are the demands and the pipe roughnesscoefficients. The demands are uncertain because water consumption is largely unmoni-tored in the short term, is highly variable, and because the water is consumed along a pipe,whereas it is modeled as a point of withdrawal. Because pipe roughnesses vary over timeand are not directly measurable, they must be inferred from field measurements.

Adjustment of these terms and others, such as valve settings and pump lifts, can bemade by trial and error or through systematic approaches. Several mathematical model-ing methods have been suggested for solving the model calibration problem (Lansey andBasnet, 1991).

Once a model is believed to be calibrated, an assessment should be completed. Theassessment entails a sensitivity analysis of model parameters to identify which parametershave a strong impact on model predictions and future collection should emphasizeimproving. The assessment also will identify the predictions (nodal pressure heads or tanklevels) that are sensitive to calibrated parameters and forecasted demands. Model assess-ments can simply be plots of model predictions versus parameter values or demand levels,or they can be more sophisticated analyses of uncertainty, as discussed in Araujo (1992)and Xu and Coulter (1998).

9.5.3 Model Results

Water-distribution simulation models require the model parameters, such as pipe andpump characteristics, nodal demands, and valve settings, to solve the appropriate set ofequations and display the nodal peizometric heads, pipe flow rates water quality predic-tions, and other results, such as pipe head loss and pipe velocities. No standard format isused between models. Abbreviated input and output files are shown in Figs. 9.9 and 9.10for a sample system shown in Fig. 9.1. These files are for the EPANET code and are usedbecause the EPANET program is in the public domain and it models both flow and waterquality in an extended-period simulation format.

The constituent, chlorine, is reactive and results are shown for a selected subgroup ofnodes. As in most models, the constituent levels along a pipe are not provided. Finally,tank concentrations, although not shown directly, can be found by examining the concen-tration closest to the tank node when flow is exiting the tank.

REFERENCES

Ahmed, L, Application of the gradient method for analysis of unsteady flow in water networks,Master's thesis (Civil Engineering), University of Arizona, Tucson, 1997.

Araujo, J.V., A statistically based procedure for calibration of water systems, Doctoral dissertation,Oklahoma State University, Stillwater, 1992.

Ahmed, L, and K. Lansey, "Analysis of unsteady flow in networks using a gradient algorithmbased method," ASCE Specialty Conference on Water Resoures, Tempe, AZ, June, 1999.

Boulos, P. E, T. Altman, P. A. Jarrige, and F. Collevati, "An event-driven method for modeling con-taminant propagation in water networks," Journal of Applied Mathematical Modeling, 18(2): 84-92, 1994.

Boulos, P E, T. Altman, P. A. Jarrige, and E Collevati, "Discrete simulation approach for networkwater quality models," Journal of Water Resources Planning and Management, 121(1): 49-60,1995.

Clark, R., Grayman, W. and R. M. Males, "Contaminant propagation in distribution systems" J. ofEnvironmental Eng., 114(4): 1988.

Cross, H. "Analysis of flow in networks of conduits or conductors," Bulletin No. 286, Universityof Illinois Engineering Experimental Station, Urbana, IL 1936.

El-Shorbagy, W, and K. Lansey, "Non-conservative water quality modeling in water systems,"Proceedings of the AWWA Specialty Conference on Computers in the Water Industry, LosAngeles, April 1994.

Grayman, W. M., R.M. Clark, and R.M. Males, "Modeling Distribution System Water Quality:Dynamic Approach," Journal of Water Resources Planning and Management, 114(3),: 295-312, 1988.

Hart, F. L., J. L. Meader, and S.-M. Chiang, "CLNET—A simulation model for tracing chlorineresiduals in a potable water distribution network," AWTK4 Distribution System SymposiumProceedings, American Water Works Association, Denver, CO, 1987.

Holloway, M. B., Dynamic Pipe Network Computer Model, Doctoral dissertation, Washington StateUniversity, Pullman, WA, 1985.

Islam R., and M. H. Chaudhry, "Modeling of constituent transport in unstead flows in pipe net-works,"/. of Hydraulics Division, 124 (11): 1115-1124, 1998.

Jeppson, R. W., Analysis of Flow in Pipe Networks, Ann Arbor Science, Ann Arbor, MI, 1974.Lansey, K., and C. Basnet, "Parameter Estimation for Water Distribution Systems," Journal of

Water Resources Planning and Management, 117(1): 126-144, 1991.Liou, C. P., and J. R. Kroon, "Modeling the Propagation of Waterborne Substances in Distribution

networks," Journal of the American Water Works Association, 79(11): 54-58, 1987.Martin, D. W., and G. Peters, "The Application of Newton's Method to Network Analysis by

Digital computer," Journal of the Institute of Water Engineers, 17: 115-129, 1963.Rossman, L. A., "EPANET—Users manual," EPA-600/R-94/057, U.S. Environmental Protection

Agency, Risk Reduction Engineering Laboratory, Cincinnati, OH, 1994.Rossman, L., and P. Boulos, "Numerical methods for modeling water quality in distribution sys-

tems: A comparison," Journal of Water Resources Planning and Management, 122(2): 137-146, 1996.

Rossman, L. A., P. F. Boulos, and T. Altman, "Discrete Volume Element Method for NetworkWater Quality Models," Journal of Water Resources Planning and Management, 119(5): 505-517,1993.

Rossman, L. A., R. M. Clark, and W. M. Grayman, "Modeling Chlorine Residuals in Drinking-Water Distribution Systems," Journal of Environmental Engineering, American Society of CivilEngineers, 120(4): 303-320, 1994.

Salgado, R., E. Todini, and P. E. O'Connell, "Comparison of the gradient method with some tradi-tional methods for the analysis of water supply distribution networks," Proceeediigs InternationalConference on Computer Applications for Water Supply and Distribution 1987, LeicesterPolytechnic, UK, September 1987.

Shah, M. and G. Sinai, "Steady State Model for Dilution in Water Networks." Journal ofHydraulics Division, 114(2), 192-206, 1988.

Shamir, U., and C. D. Howard, "Water Distribution System Analysis," Journal of Hydraulics.Division, 94(1). 219-234, 1965.

Todini, E., and S. Pilati, "A gradient method for the analysis of pipe networks," InternationalConference on Computer Applications for Water Supply and Distribution 1987, LeicesterPolytechnic, UK, September 1987.

Walski, T., "Hardy-Cross meets Sherlock Holmes or model calibration in Austin, Texas," Journalof the American Water Works Association, 82:34-38, March, 1990.

Wood, D. J., User's Manual—Computer Analysis of Flow in Pipe Networks Including ExtendedPeriod Simulations, Department of Civil Engineering, University of Kentucky, Lexington,KY, 1980.

Wood, D., and C. Charles, "Hydraulic Network Analysis Using Llinear Theory," Journal ofHydraulic Division, 98, (HY7): 1157-1170, 1972.

Xu, C., and I. Goulter, "Probabilistic Model for Water Distribution Reliability," Journal of WaterResources Planning and Management, 124(4): 218-228, 1998.