Professional Documents
Culture Documents
Pipe networks are used for water distribution systems and a variety of other Civil Engineering
applications. Interconnected pipes form a network, however the governing
equations are nonlinear. Consider the pipe network shown below:
1 Q13 3 Q34 4
Qin=1 Qout=1
5 Q23 6
Q12 Q24
Conservation of matter requires that the inflows and outflows balance at each node. Note that we
have arbitrarily assumed a flow direction in each pipe. A negative answer for the flow rate in any
particular pipe would indicate that the assumed direction was incorrect. Applying conservation at
nodes 1, 2, and 3 produce the following three equations:
1 Q 13 Q 12 = 0
Q 12 Q 23 Q 24 = 0
Q + Q Q = 0
13 23 34
Note that applying the conservation equation at node 4 would be of no benefit because that
equation would not be linearly independent of the other three.
A second principle of pipe flow analysis is that the energy loss around any closed loop must be
zero. We will introduce a friction factor, K, to quantify the energy loss in the pipe. The Darcy-
Weisbach formula for pipe friction gives this loss as:
8 fL
K=
2 gD 5
The energy loss is quantified by KQ 2, thus introducing the nonlinearity into the analysis. For the
pipe system shown, K13 = 31.7, K12 = 96.8, K23 = 9.7, K34 = 31.7, and K24 = 442.0.
Writing the energy loss for loops 5 and 6 gives the required two additional equations:
K 13 Q13
2
+ K 12 Q12
2
+ K 23 Q 23
2
=0
K 23 Q 23 K 34 Q34 + K 24 Q 24 = 0
2 2 2
Note that the energy loss terms were introduced algebraically, carrying a plus sign if the pipe
flow direction coincided with the assumed loop flow direction and a minus sign if not.
6
First, we will rewrite these five equations in the required standard form:
f 1 f 1 f 1 f 1 f 1
Q Q13 Q 23 Q 24 Q34
12
f 2 f 2 f 2 f 2 f 2
Q Q13 Q 23 Q 24 Q34
12
f f 3 f 3 f 3 f 3
[K ] = 3
Q12 Q13 Q 23 Q 24 Q34
f f 4 f 4 f 4 f 4
4
Q12 Q13 Q 23 Q 24 Q34
f 5 f 5 f 5 f 5 f 5
Q12 Q13 Q 23 Q 24 Q34
1 1 0 0 0
1 0 1 1 0
[K ] = 0 1 1 0 1
12 Q12
2 K 2 K 13 Q13 2 K 23 Q 23 0 0
2 K 23 Q 23 2 K 34 Q 34
0 0 2 K 24 Q 24
Q12
Q
13
{Q} = Q 23
Q
24
Q34
We will now implement the Newton-Raphson solution using the following starting values for Q:
0.5
0.5
{Qi }= 0.4
0.1
0.9
7
Evaluating {F}:
0.5 0.5 + 1 0
0.5 0.4 0.1
0
{Fi }= 0.5 + 0.4 0.9 = 0
(31.7)(0.5)(0.5) + (96.8)(0.5)(0.5) + (9.7)(0.4)(0.4) 17.827
(9.7)(0.4)(0.4) (31.7)(0.9)(0.9) + (442.0)(0.1)(0.1) 22.809
Evaluating [K]:
1 1 0 0 0
1 0 1 1 0
[K ] = 0 1 1 0 1
2(96.8)(0.5) 2(31.7)(0.5) 2(9.7)(0.4) 0 0
2(9.7)(0.4) 2(442.0)(0.1) 2(31.7)(0.9)
0 0
1 1 0 0 0
1 0 1 1 0
[K ] = 0 1 1 0 1
96.8 31.7 7.76 0 0
0 7.76 88.4 57.06
0
or
8
0.377293 Q12
0.622707 Q
13
{Qi +1 } = 0.134643 = Q23
0.242650 Q
24
0.757350 Q34
These new Qi+1 values are then used as Qi for the next iteration. After four iterations the
solution converges to:
0.362004 Q12
0.637996 Q
13
{Q} = 0.149850 = Q23
0.212154 Q
24
0.787846 Q34