Professional Documents
Culture Documents
and Architecture,
American
University
The analysis of a water distribution network requires the solution of a set of nonlinear equations. The current
methods are all iterative and require a good initial estimate to reach the solution quickly without any
convergence problems. In this study a perturbation expansion is applied to the set of nonlinear equations to
obtain a series of linear equations that can be solved easily using matrix methods. The advantage of the
proposed approach is that the solution is obtained directly without iterations, initial estimates, and issues of
convergence. The method of solution is simple and straightforward to implement because it requires only one
matrix inversion and four matrix multiplications. Hence the solution process is fast and efficient, which could
prove useful in the optimization of water distribution systems wherein the network is solved for every trial set
of design parameters. The solution is expressed in an explicit fashion which might be of use for further
mathematical manipulation and implementation in an optimization algorithm. The method has been tested on
various networks and the results obtained show a relatively high degree of accuracy.
Keywords: pipe networks, water distribution systems, perturbation solution, analytical method
1. Introduction
Water distribution network analysis is an important problem in civil engineering. It has gained more importance in
recent years since the optimization
of water distribution
networks has become a focus of current research. The
design of an optimal water distribution system involves an
extensive simulation of the flow in the system for every
trial set of design parameters. An additional concern has
been the modeling of water quality in a distribution system
whose solution also requires an efficient method of pipe
network analysis. Most of the current methods used in the
analysis of water distribution networks are iterative since
the system of equations is nonlinear.
An explicit and
efficient method is therefore beneficial.
The basic hydraulic equations have been expressed in
two principal fashions: either in terms of the unknown
flow rates or in terms of the unknown nodal heads. The
flow equations are expressed in terms of the flow rates in
the links and consist of nonlinear energy equations and
linear continuity equations. The head equations are formed
of nonlinear continuity equations expressing the flow rates
in the links as a function of the nodal heads. Each of them
is a set of nonlinear algebraic equations that cannot be
16 August 1995
0307-904X/96/$15.00
SSDlO307-904X(95)00122-0
Analysis
of water
2. Perturbation
distribution
systems:
0.8491r C HW D2.h3
=F
x=-
LO.54
in S.I. units
(4)
1.85
Darcy-Weisbach
1
x=-
(5)
2
Manning
D8/3
a=---
xc-
453 n6
(6)
solution
h=ho+h,S+h262+h3S3+0(S4)
.i=l,2,...,nj
(1)
6=x-
hX=hhs=hexp(6
;h=AH
k=l,
2,...,1+n,-1
(2)
In h)=h,+(h,+ho
ho
h, + h, + h, In ho + yln2
In ho)6
h,
a2
I
+ h3+h2+$+(hI+h2)
0
I
+:ln2
(7)
we obtain
In ho
ho+ :ln
where, in deriving
were used
equation
2
(8)
ho S3+0(S4)
z3
expansions
z4
el=l+r+s+31+z+...
z2
z3
z4
ln(l+z)=z-1+3_Qf
...
I.2 <I
(10)
The discharge
Q=cxhx
Q=aho+a[hI+hO
from equations
In h,]S
h0
h, + h, + h, In ho + Tln2
(3) and
ho a2
I
291
Analysis
of water distribution
+a
systems:
h:
h,+h2+2h+(h,+h2)
+ ;ln
(11)
ho + ;Ln3
In ho
h, a3 + O( a4)
Q, = a,h;
(12)
where (Y, is a function of the minor loss coefficient k,
which depends on the type of fittings such as valves or
bends. Expanding equation (12) as in equation (8), we
calculate that the discharge through the fitting is
s[hrn~
Qp = -b,
+ a,( $0
is combined
+ c,)
+ a,[
$1 + (h,o
+4
$2 + $1 + h,, ln(h,o
+OS(h,,+c,)
ln(h,o
+ c,)
+ c,)] 8
+ c,>
ln2(h,o+c,)]62+
...
(18)
EMhol=
kl[hol=
+E,l
+[Affl
(19)
First order:
+ h,,
+ h,,
In h,,
+ OSh,,
ln2 h,,]
+ ...
6
(13)
h, = pQ2 + wQ + w2
(14)
and substituting
(15)
into equation
(14) to get
q2v2
h, =pG2 + rq2 - 4P
Using equations
expressed as
(16)
xc-
can be
1
2
(17)
where up = I/ 6,
b, = OSvq/p,
and cp =pb,f - rq2.
Expressing h, as a perturbation series and using equation
292
[A,l[hrl=
Mhl
-[oh,
ln hoI
= + WI
(20)
Second order:
[ A,][ h2] = - [ cr(h, + h, In h, + OSh,
L4Jh21
= + PI
ln2 h,,)]
(21)
Third order:
[A,][h,]=
[(
4
+ yin
MM
h:
cx hZ+~+hlpnho+h2
= + WI
In ho
0
h0
ho + dln3
ho
(22)
Analysis
of water distribution
Q+
*
The discharge
(23)
then becomes
(24)
and the perturbation
solution is as-given
by equations
(1_9)-(22) but with h replaced by h, (Y by (Y, [Cl by
[Cl = [C/Q, I and AH by AH/h,.
The normalizing
variables Q * and h, can be taken as the total demand of
the system and the maximum head difference among the
various reservoirs, respectively. In case there is only one
systems:
3. Application
and results
The perturbation
solution has been tested on many networks of various sizes, some of which have been presented
293
Analysis
of water distribution
.lction
Figure 1.
nurnbar
Hydraulic
systems:
network of Example
I.
+ ash; = 0.1
(26)
qh;
= 0.15
(27)
System characteristics
1
2
3
4
5
Diameter
(mm)
Mannings
300
200
250
150
200
250
200
200
200
250
0.010
0.010
0.010
0.010
0.010
h, + h, - h, = 0
(29)
H,+h,=H,+h,+h,-h,
(30)
cqh, 1 - qh,
from
2 - cz3h, 3 = 0
Q,
1996,
Vol.
20,
(31)
ho,,
ho,, + ho,, = 40
Node
Demand
(I/s)
Head
(m)
10
0
100
150
50
Q,
Q,
Q, - Q,
Q, - Q,
86.26
20.27
65.98
84.02
163.74
85.73
18.77
66.96
83.04
164.27
- 0.69
- 1.39
0.72
- 0.72
0.69
0.82
1.39
0.97
1.66
-0.16
0.11
-0.26
0.26
0.16
0.19
0.26
0.22
0.31
April
equation
(Y2h02-(Yqh04+t(Ygh05=0.1
A
1
2
3
B
Modelling,
(28)
Upon perturbation
expansion, we obtain
(19) the zeroth-order head loss h,
1
85.57
2
18.88
3
66.70
4
83.30
5
164.43
Average difference
Maximum difference
% average difference
% maximum difference
Math.
= a,( h, + cP) - bP
Pipe no.
0,
pump equation
ln ho,,
(32)
Length
(m)
Table 2.
+ qh;
a&,,
Pipe no.
Appl.
a2h, - qh;
aIht
294
(25)
the nonlinear
3.1 Example I
Table 1.
Pump data
h,(m)
40
30
22.8
Q(l/S)
0
100
150
Analysis
Table3.
Link no.
of water distribution
systems:
Diameter
(mm)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
610
944
762
610
610
457
610
914
762
610
30
61
1524
975
valve
valve
356
356
356
356
356
305
356
356
356
356
203
152
406
305
356
356
17
18
valve
valve
152
356
19
pump
n or km
Nodeno.
0.012
0.012
0.012
0.012
0.012
0.012
0.012
0.012
0.012
0.012
0.012
0.012
0.012
0.012
5
8
1
2
3
4
5
6
7
8
9
10
11
12
13
A
B
C
In ho,,)
a,h,,,
+ c,)
= - [ alho,
x 14h.,
h, 2 + hI.4 -h,,,
= 0
h I,P
- hl,l - ht.* + h,,S = 0
Table4.
Link no.
Pump
Head
(m)
h,(m)
0
0
113
113
57
0
57
57
0
0
0
0
0
170.0
165.6
131.9
data
a, (I/s)
0
200
600
3.05
33.53
30.48
10
10
Demand
(I/s)
and so on for the higher orders. The flow rates in the pipes
are calculated for the different orders from equation (ll),
whereby the zeroth-order is Q, = cxho, the first order is
Q, = ahO + c_x(hl+ h, In h,)S, and so on for Q, and Qa.
Table 2 shows the second and third-order flow rates
alongside their differences with the solution as obtained
from the EPANET solver. We notice that in general the
approximate perturbative method gives reasonably accurate solutions. The maximum difference in the second-order
solution is 1.39 l/s which is further reduced to 0.26 l/s
with the third order. The percent average difference, as
Q,
1
271.42
2
147.50
3
- 34.50
4
- 0.65
5
57.65
6
95.87
7
- 140.47
8
-112.66
9
258.80
10
123.92
11
- 62.86
12
18.78
13
530.23
14
- 89.14
15
530.23
16
271.42
17
18.78
18
57.65
19
530.23
Averagedifference
Maximum
difference
% averagedifference
% maximum
difference
network II
Q2
Q,
Q,- Q2
Q,-
284.71
156.15
- 43.15
12.30
44.70
98.76
-147.42
-117.61
265.12
128.56
- 65.27
2.94
549.84
- 90.51
549.84
284.71
2.94
44.70
549.84
275.60
150.15
- 37.15
9.43
47.57
97.24
-140.70
-112.49
261.01
125.44
- 55.42
7.33
536.61
- 91.52
536.61
275.60
7.33
47.57
536.61
-13.29
- 8.65
8.65
-12.95
12.95
- 2.89
6.95
4.95
- 6.32
- 4.64
2.41
15.84
-19.61
1.37
-19.61
-13.29
15.84
12.95
-19.61
10.67
19.61
6.05
11.11
- 4.18
- 2.65
2.65
-10.08
10.08
- 1.37
0.23
-0.17
- 2.21
- 1.52
-7.44
11.45
- 6.38
2.38
- 6.38
- 4.18
11.45
10.08
- 6.38
5.33
11.45
3.02
6.49
Qs
Appl.
Math. Modelling,
295
Analysis
of water distribution
systems:
Junctlsn
Figure 2.
nunh.r
Hydraulic
network of Example
II.
3.2 Example II
The second example is the benchmark network used by
Wood and Rayes* to compare the various iterative methods. It is composed of 14 pipes, three fixed-head reservoirs, four valves, and one pump. The network is shown in
Figure 2, and the system characteristics data are tabulated
in Table 3.
Table 4 compares the second-and third-order perturbation solutions to the EPANET results. The normalizing
variable proved instrumental
in assuring the accuracy of
the solution as the solution of the original problem with
Q .+ = h * = 1 was in error because the condition of equation (10) was not satisfied. The normalizing variables were
chosen as the total demand of the system Q, = 0.4 m3/s
and the maximum head difference among the three reservoirs h, = 30 m. Other values for Q * and h * could have
been used and would have given slightly different flow
rates but with an error of the same order of magnitude.
We see that the largest difference occurs in pipe 12 and
it is, for order 3,6.5% of the average flow rate; whereas the
percent average error is only 3%. The error can be further
reduced by including additional perturbation terms up to
the fifth order. However, the accuracy gained does not
justify the computational effort especially in that the number of terms on the right-hand
side of equation (22)
increases significantly with increasing order. It reaches 11
terms for order 4, 18 terms for order 5, and 30 terms for
order 6. The ratios of Zh, to 2 I h, 1 for the different
loops show that the energy equations are reasonably satisfied in most of the loops using Q3, the maximum error
5.6% being in loop III which includes pipe 12 which also
has the largest error.
296
remarks
Acknowledgments
This work was supported by the University
Board at the American University of Beirut.
Nomenclature
nl
nj
nf
$i
Of
j
L
HA
D
c HW
h
kin
h,
P
4
r
number of links
number of junctions
number of fixed-grade nodes
number of closed loops
flow in
flow out
consumption at junction node j
length of pipe
head loss for reservoir A
diameter
Hazen- Williams roughness coefficient
head loss
pump
curve
curve
curve
Research
Analysis
[A,1
Q,> h,
AH
j
(Y
;
n
6
subscript
of water
References
1. Cross, H. Analysis of flow in networks of conduits or conductors.
Bulletin No. 286, University of Illinois, Engineering Experimental
Station, Urbana, IL, 1936
2. Martin, D. W. and Peters G. The application of Newtons method to
network analysis by digital computers. J. fnsf. Wafer Eng. Sci. 1963,
17, 115-129
3. Shamir, U. and Howard, C. D. D. Water distribution systems analysis. J. Hydraul. Dill. Am. Sot. Cio. Eng. 1968, 94(l), 219-234
4. Nogueira, A. C. Steady-state fluid network analysis. J. Hydr. Eng.
ASCE 1993, 119(3), 431-436
distribution
systems:
Appl.
Math.
Modelling,
297