Professional Documents
Culture Documents
February 2015
Which is written linking conditions at point 1 to conditions at point 1 in a flow (specifically along a streamline). H
is the total head which does not change. When applied to a pipeline we must also take into account any losses (or
gains) in energy along the flow length.
Consider a pipeline as shown below linking two reservoirs A and B with a pump followed by a pipe that expands
before reaching the downstream reservoir.
Examining the energy (head) losses, there will be a loss as the fluid flows into the pipe, the Entry Loss (hL entry),
then the pump put energy into the fluid in terms of increasing the pressure head (hpump). As the pipe expands the
is an expansion loss (hL expansion), then a second expansion loss, labelled Exit loss(hL exit), as the fluid leaves the pipe
into the reservoir. Along the whole length of the pipe there is a loss due to pipe friction (hf).
The Bernoulli equation linking reservoir A with B would be written thus:
2 2
pA uA pB uB
z A h pump z B h L entry h L expansion h L exit h f
g 2g g 2g
(Where pA, uA, zA are the pressure, velocity and height of the surface of reservoir A. The corresponding terms are
the same for B)
This is the general equation we use to solve for flow in a pipeline. The difficult part is the determination of the
head loss terms in this equation. The following sections describe how these are quantified.
Before continuing it is useful to note that the above general equation can be quickly simplified to leave on
expressions for head. Remember that the points A and B are surfaces of reservoirs they moves very slowly
compared to the flow in the pipe so we can say uA = uB = 0. Also the pressure is atmospheric, pA = pB = pAtmospheric. zA
- zB is the height difference between the two reservoir surfaces. So
z A z B h pump h L entry h L expansion h L exit h f
Lu
2 2
4 fLu
h f
2 gd 2 gd
This is known as the Darcy-Weisbach equation for head loss in circular pipes
(Often referred to as the Darcy equation)
This equation is equivalent to the Hagen-Poiseuille equation for laminar flow with the exception of the empirical
friction factor f introduced.
It is sometimes useful to write the Darcy equation in terms of discharge Q, (using Q = Au)
4Q
u
d
2
LQ
2 2 2
64 fLQ fLQ
h f
2 g d
2 5 5 5
3 . 03 d 12 . 1 d
Or with a 1% error
LQ
2 2
fLQ
h f
5
5
3d 12 . 1 d
f American = 4 f
Consequently great care must be taken when choosing the value of f with attention taken to the source of that
value. If you look for "darcy friction factor" on Wikipedia it uses the f American , but does not use this terminology,
just f. To be certain you must go back to check the original definition of f in the Darcy equation.
Which shows that there are three general regions, laminar, smooth and rough turbulent. Rough turbulent
increases in roughness as the relative roughness value ks/d (mean height of roughness over pipe diameter)
increases. Most water pipe flow will be in the rough turbulent region and we need to find values for roughness
coefficient in this region.
Moody Diagram.
He also developed an equation based on the Colebrook-White equation that made it simpler to calculate f (or)
:
1/3 1/3
200 k s 10
6 6
ks 10
f 0 . 001375 1 0 . 0055 1 20000
d Re d Re
This equation of Moody gives f correct to +/- 5% for 4< Re < 1and for ks/d < 0.01.
Barr presented an alternative explicit equation for f in 1975
1 ks 5 . 1286 1 ks 5 . 1286
4 log 2 log 0 . 89
10 3 . 71 d 0 . 89 10
f Re 3 . 71 d Re
or
2 2
ks 5 . 1286 ks 5 . 1286
f 1 4 log 10 0 . 89
1 2 log 10 0 . 89
3 . 71 d Re 3 . 71 d Re
Here the last term of the Colebrook-White equation has been replaced with 5.1286/Re0.89 which provides more
accurate results for Re > 105.
Water Resources Management and Supply Pipe Network Analysis 5
The problem with these formulas still remains that these contain a dependence on ks. What value of ks should be
used for any particular pipe? Fortunately pipe manufactures provide values and typical values can often be taken
similar to those in table 1 below.
Pipe Material ks (mm)
Brass, copper, glass, Perspex 0.003
Asbestos cement 0.03
Wrought iron 0.06
Galvanised iron 0.15
Plastic 0.03
Bitumen-lined ductile iron 0.03
Spun concrete lined ductile iron 0.03
Slimed concrete sewer 6.0
Typical ks values
A general theory for local losses is not possible; however rough turbulent flow is usually assumed which gives the
formula
2
u k
hL k k LQ
2 2
2
Q
2g 2 gA
or
Where hL is the local head loss and kL is a constant for a particular fitting (valve or junction etc.)
For the entrance use kL = 25 and the exit kL = 50. For friction use = 0.04.
Total head loss for the system H = height difference of reservoirs
hf = head loss for 200mm diameter section of pipe
hL entry = head loss at entry point
hL exit = head loss at exit point
So
H = hf + hL entry + hL exit = 25m
All losses are, in terms of Q:
LQ
2
10330 Q
2
h f 5
12 . 1 d
25 Q
2
h Lentry
h Lexit 50 Q
2
We are now going to look at how to determine flows and pressures pipe networks, in particular water
distribution networks. Piped water distribution systems are widespread. In a city there may be millions of pipes
and interconnects that need to be accounted for if the flow and pressures in the system are required. These
networks connect large storage reservoirs via water treatment plant to houses and businesses. On the way the
water will encounter pumps, valves, smaller storage reservoirs, flow measuring devices etc.
Water demand is quite variable both between day and night, but also from season to season, the supply
reservoir volumes and levels on the other hand are relatively stable. To maintain sufficient water and pressure
for the varying demand means a distribution system must include small reservoirs to maintain constant pressure
lower down the system and the whole systems must be flexible capable of switching supply to and from
different sources. It is usually aimed to keep water pressure at a maximum of 70m head and minimum of 20m
head. These levels ensure that demand can be met, yet are not too high so that too much leakage would occur.
The understanding of the network flows and pressures are essential if any improvement or changes are to be
made to an existing system. Traditionally this analysis has split the networks in to manageable sections one
perhaps that can be separated by reservoirs or connections of relatively constant pressure or flow. Then
subsequent analysis of this smaller sub-network would be done by hand. Nowadays this is more likely to be done
on a computer. We will see in this section of the module how the hand calculations are performed then how
computer simulations differ. This approach will demonstrate how the governing equations are used and what
solution techniques are necessary. A clearer physical understanding of the problem and appreciation of sensible
solutions will results from undertaking these hand calculations.
There are essentially two types of network to analyse (although most are in reality a combinations of both) they
are a looped system and a branched system as shown.
qi 0
i 1
Note how this implies a direction and a sign convention e.g. flow into the junction is positive, out is negative.
The second equation we have already seen is that for head loss in a pipe i.e. the Darcy-Weisbach equation:
Lu
2 2
4 fLu
hf
2 gd 2 gd
LQ
2 2
fLQ
hf 5
5
3d 12 . 1 d
We will assume a constant f or now, but it is simple to include this as a variable dependent on the flow and be
calculated by an appropriate equation e.g. Colebrook-White at each step of the solution.
Assuming constant f or it is convenient to gather the (constant) terms other than Q on the right-hand-side and
label them k. So which ever friction value we are using we get a form of equation:
h f kQ
2
Continuity at a junction and the head loss for each pipe are the basic equations we have available.
Energy conservation: Head loss round any loop is zero. For any loop in a system then the sum of the head
losses around that loop is zero. For a loop such as that shown here, with 4 pipes (m=4), then
hf
j
0
j 1
Note again how this implies a direction head is lost in the direction of flow. Care must be taken to write the
equations such that hf is calculated according to the direction of flow in the pipe.
To do this we will normally write the head loss equation as
h f kQ Q
(where Q means the absolute value of Q) this ensures negative flows give a negative hf.
Another way of stating this energy conversation is that head loss between any two junctions (not necessarily
adjacent ones) is the same whatever the path taken between the junctions.
Summary:
For any network we can write out our continuity equations for each junction and head losses for each pipe and
we will have a large number of non-linear equations to solve. Their solution is not trivial. A systematic approach
must be defined to solving them. There are several methods that have been proposed. We will look at a few.
Where qj is the estimate of the flow in the jth pipe in a loop and q is a correction required to make it the true
value.
k q j q
2
So the true head loss in pipe j will be H f j
Expanding the term in the brackets using the binomial theorem gives:
2
q 2 2 1 q
H kq j 1 2
2
...
f j
qj 2! q
j
As q is very small compared to q, the third term in the brackets will be small and we can ignore it, giving
H f j
kq
2
j
1 2 q / q j
H f i
0 kq
2
j
2 q kq 2
j
/q j
j 1 j 1 j 1
m m
0 hf
j
2 q h f
j
/q j
j 1 j 1
hf
j
q
2 h f j
/q j
Note, had we chose the Hazen-Williams equation as our starting point for representation of head loss i.e.
h f j
h f kQ our update equation in the Hardy-Cross method would be: q
1 . 85
1 . 85 h f j
/q j
From Continuity of the whole system, flow in = flow out. Inflow to junction A = 20+40+40 = 100 litres/s
The loop is indicated on the figure. Note the direction of flow relative to the loop. For pipe 3 and pipe 4 it is in the
opposite direction to the clock-wise loop, so head losses will be negative for that loop.
You are free to choose any set of initial flows as long as they satisfy continuity at each node. In this example
selecting a flow of 70 litres/s in pipe 1 (A-B) then the others follow:
Pipes 1 2 3 4
Q (litres/s) 70 50 -10 30
Note how in pipe 3 the flow is negative; this is in the opposite direction to the direction of flow chosen (the thick
arrow on the diagram).
To perform the Hardy Cross step you should organise all calculations into a table. The first step for this network
would give:
2 92 . 51
The correction of flow q = -0.0206 m3/s is added to each estimated flow in the loop to give a new flow, as shown
in the last column. This correction, 20 litres/s, is quite large, around 20% of inflow, so a second iteration step of
Hardy Cross should be performed. The table would look like this:
The correction this time is 2.2 litres/s, which is much smaller than the previous step. So we can stop here. Had this
been larger we would simply carry on performing Hardy Cross steps until the correction reduced to a sufficiently
small value. If it does not reduce it is likely that a mistake has been made.
b) Head calculation.
To calculate the heads at each node we need to calculate he head losses n each pipe with these final flows:
Pipe k q (m/s) q2 hf
1 578.2 0.0471 0.0022 1.285
2 578.2 0.0271 0.0007 0.426
3 578.2 -0.0129 -0.0002 -0.096
4 578.2 -0.0529 -0.0028 -1.615
The known head at A is 70.0m so the head at each node can be calculated:
Node Head (m) Head (m) A check can be made to see if the head at A is that started with.
A 70.000 70.000
B HA - hf1 68.715
C HB - hf2 68.289
D HC - hf3 68.385
A HD - hf4 70.000
(The calculation is much the same as the previous examples, but you will need more columns in the table
to take account of the variable .)
3. Use the hardy Cross method to calculate the flow in each pipe in the network below that contains two
loops. Assuming a head of 100m at junction A, what would be the head at the other 5 junctions.
inflow A B 60 litres/s C
40 litres/s
D 30 litres/s
F E
50 litres/s
40 litres/s
Use a constant value of = 0.018 for all pipes.
Pipes AB BC CD DE EF AF BE
length (m) 600 600 200 600 600 200 200
Diameter (mm) 250 150 100 150 150 200 100
Note: The solution is performed as described in the example of a single loop above, but there are two
loops. The pipe BE will be in both loops, but it will be in the opposite direction for each loop. This means
that the q must be added during one loop update and subtracted during the other.
4.
If in the pipe network below the flows and head losses for a particular demand are:
Pipe AB BC CD DA
3
Q (m /s) 0.2 0.05 0.05 0.13
Head loss (m) 7.0 2.0 2.0 7.0
a) Calculate the demands at B, C and D
b) If the demands were as shown in the diagram, perform two iterations of Hardy Cross to calculate the new
flows and head losses in each pipe. (As a starting point assume that the inflow splits half and half down pipes
1 and 4).
200 litres/s
B
inflow A 1
2
4
D
3 C
140 litres/s
100 litres/s
This quantity balance analysis takes the continuity equation for each junction qi 0 and head loss equations
i 1
2 qi
i 1
H n
q i
/hf
i
i 1
Note how the summations in this formula are summations of the pipes connecting at a junction. The H is applied
to that particular junction only. (Though not worked through here, the formula is derived in a similar way to
Hardy Cross)
Steps:
1. Assume a value of head (Hj) at each junction
2. Calculate the flow, qi, in each pipe using the Darcy-Weisbach equation i.e. for this pipe
Lq
2 2
fLq
hf H H kq
i i 2
A B 5 5 i
3d 12 . 1 d
qi HB
HA
1/2
H H
qi A B
k
Note that care must be taken with this formula. (HA HB) must be positive else no solution is
1/ 2
H H
possible. To avoid this problem it could be written as q i sign H
A B
H . In
A B
k
this form the sign of the flow will indicate the direction of the flow: A to B if qi is positive, B to A if
negative
n
n
2 qi
i 1
4. If qi 0 for each junction calculate the correction to the heads using H n
q
i 1
i
/hf
i
i 1
ZA 800 m 1 J 2
ZB 780 m C ZB
ZC 700 m ZA
3
ZJ 720 m
ZJ
ZC
An initial value HJ is required. You could choose any suitable value, anything between zA and zC would be normally
be fine. In this case as we know the height of J is 720m, we should choose a H just above this, say 750m.
Care must again be taken with the direction of flow. A sign convention must be adopted. e.g. If the flow into the
junction it is positive, and away from the junction negative.
For the first step a table of calculation may look like:
HJ 750 m
2 0 . 0598
Thus H would be H 14 . 22 m ,
0 . 0084
As this H correction is small at 18cm, we can stop iterating. (If you were to perform one more iteration the next
H would be 0.01mm; definitely not worth the extra calculation!)
Notice that with this method you do not have to calculate a balanced flow to start with (i.e. continuity at nodes is
not necessary.) You are reasonably free to choose you own initial values of unknown heads - if you were to
choose values wildly different from the solution the system may not converge to an answer.
Pipe AB BC BD BE EF EG
Length (m) 10000 3000 3000 6000 3000 3000
A
Diameter (mm) 500 300 300 400 300 300
C
Level (m)
zA 150
D
B zC 100
F zD 80
zF 75
G zG 60
We have seen the quantity balance method that combined continuity and the head loss equation for each pipe. In
a similar way it is possible to write out all continuity equations and head loss equations for any network and solve
them as a set of (non-linear) simultaneous equations. This solution method is not usually possible by hand but
relatively straight forward for a computer when the equations are written in matrix form.
However, because the equations are non-linear it is still an iterative process requiring the matrix solution of the
large set of equations and at each step the flows and heads are updated and the solution recalculated until the
updates are small. qC
HC
Consider the simple two pipe network shown. HB
It consists of 2 unknown flows in the pipes and
HA
3 unknown heads at the junctions.
qA q2
q1
From Darcy-Weisbach we have for each pipe:
H kq 1
2
H A B
H kq
2
H B C 2
or
kq 1 H H 0
2
A B
H H 0
2
kq 2 B C
This formulation and matrix forms the basis of the Gradient Method. The Gradient Method further manipulates
this matrix to get it into a form for easier solution with computer based matrix solvers.
Actually the set of equations / matrix as it stands cannot be solved. There must be in any network solution a fixed
head. We saw this in the head calculation of the hand calculations above. In this case we need to adjust the above
matrix, fixing one head which results in one equation being removed.
This method can easily be expanded to include local losses and pumps, valves etc. The resulting matrix can be
solved quite easily for large complex networks. For example a 1000 pipe network would only take a few seconds
to solve with the appropriate matrix solver.
Commercial programs for network analysis use this method - some still use the Hardy-Cross method but the
Gradient Method seems more robust and more suited to computer implementation than Hardy-Cross.
A popular solver for complex pipe networks is EPANET (http://www.epa.gov/nrmrl/wswrd/dw/epanet.html)
This is available free and is very comprehensive in the range of features it will solve for on large water networks.
The basis of the solution method in this software is the Gradient Method.