Piping Engineering: Fluid Flow Course
Piping Engineering: Fluid Flow Course
on
PIPING ENGINEERING
June 26 - July 6, 2019
Prof. A. S. Moharir
IIT Bombay
Organized by
This module deals with fluid transients. The origin of fluid transience, i.e.
dynamic change in pressure and velocity profiles along a pipe route, otherwise designed
for steady state behaviour, impact of these transient values on pipe integrity and methods
to mitigate harmful fluid transients are discussed qualitatively as well as quantitatively.
fluid. A fluid is defined as a substance which when in static equilibrium cannot sustain
shear forces. The term ‘fluid’ encompasses ‘liquids’ and ‘gases’.
Bernoulli’s Equation
P1 v2 P v2
Z1 + + 1 = Z2 + 2 + 2
g 2 g g 2 g
h f is the head loss which accounts for the loss of energy due to fluid friction
and/or turbulence. In fact, this energy gets converted into heat, marginally increasing the
fluid temperature which gets dissipated and is ‘lost’ for all practical purposes as it cannot
be employed to do any useful work. Pumps and compressors are provided in the process
plant essentially to sustain this ‘loss’. This ‘loss’ constitutes a significant portion of
operating cost. This constituent of the operating cost can be reduced by opting for a larger
bore pipe for a given service. This, however, increases the capital investment. Pipe sizing
is thus a balance between capital and operating costs. Reliable estimate of frictional
losses is thus important from process economics point of view. Some basic concepts and
calculations are covered here.
Frictional Losses
2
v2
2g
2
v1 2 g
P2
g
P1 g
Z2
Z1
P1 P2
hf
g g
or P1 P2 h f g
The fluid plug within the pipe between the points 1 and 2 experiences a differential
pressure at its two ends. This causes a forces acting on the plug which is equal to
P1 P2
d 2
Where is the pipe cross-sectional area (= ).
4
d 2
h f g
4
However, since the fluid plug is moving at a constant velocity (i.e. no acceleration), there
can be no net force acting on the plug. The above force due to pressure differential is seen
as negated by an equal and opposite frictional force between the fluid and the pipe wall in
contact with the fluid. If this shear force per unit contact area (shear stress) is denoted as
f , one can write an overall force balance as
d 2
h f g f dL
4
The shear stress depends on fluid velocity (v), fluid properties ( , ), and pipe properties
( d , ). is a measure of pipe roughness and is expressed as an average height of
‘roughness’ mounds on the pipe surface. It is also called as ‘equivalent sand roughness’.
Thus
f f (v, d ,, , )
One can apply dimensional analysis to this qualitative functionality and arrive at the
following relationship in dimensionless numbers.
f dv
f ,
v d
2
For a given flow of a given fluid in a given pipe, one can thus write
f
= constant = X (say)
v 2
or f Xv 2
4 XLv 2 8 XLv 2
hf = =
gd 2 gd
This in the fundamental relation used to calculate frictional head loss for flow through
pipes. X or its multiples are termed as friction factors (f). Three common definitions of
the friction factor are as follows:
8 f Lv 2
I. Churchil fC = X hf C
2 gd
4 f Lv 2
II. Fanning f F = 2X h f F
2 gd
f Lv 2
III. Darcy f D = 8X h f D
2 gd
The use of three friction factors (without a subscript) is a source of confusion and often
calls for care on the part of the user. Over- or under – estimation of pressure drop can be
caused leading to erroneous pipe sizing or rating of pumps/compressors etc. if this point
is overlooked.
The friction factor ( f C , f F or f D ) is a function of two dimensionless numbers,
Reynold’s number ( dv / ) and roughness factor ( d ). The dependence is normally
presented graphically as friction factor vs Reynold’s number plots with roughness factor
as a parameter. Familiarity with these f vs R e plots and a quick identification of which
friction factor a given plot refers to is very important for all hydraulic system rating and
design.
= 2 log Re
f D - 0.8
Blasius Equation
0.316
fD = for Re > 10 5
Reo.25
The above procedure is applicable only for straight pipelines. The actual pipe
routing would have several piping elements (elbows, tees, expanders, reducers, etc.)
along its route as well as regulation, control valves etc. These cause extra turbulence and
energy loss. For simplicity of engineering calculations each element is assigned
equivalent length. This is the straight pipe length which would cause same pressure drop
as the element for same flow rate. The piping element/valve can thus be replaced in
calculation by the equivalent (hypothetical) length. Total effective length of a pipe route
is thus calculated. Frictional pressure drop for a given route is thus calculable.
Some Examples:
Pressure drop in straight horizontal pipe
Pressure drop in pipe with fittings
Pressure drop in a complex pipe route
Pipe in series, parallel, series-parallel
Pipe Network
Reserviors and pumps in network
Steady state analysis (pressure drop due to fluid friction, Bernoulli’s equation) can
be applied to a complex pipe route or network to arrive at pressure and velocity at each
node. A node is where there is a change of direction and/or diameter and/or flow.
Normally, one would define a node each on either side of a straight, uniform cross-
section pipe segment as well as on either side of a piping element or valve.
time. The transient behaviour of the system from the point of application of disturbance
to return to steady state is of interest in transient analysis. In other cases, the deviation
may be permanent. The system will then reach another steady state after going through a
transient phase. The transient phase is thus straddled by steady state on either side. These
steady states serve as initial/ boundary conditions in the transient analysis. The steady
state analysis is thus important from the point view of transient analysis as well.
The transient phase could take the system monotonically from one steady state to
another or take the system through over-,under-, or critically damped oscillations. Some
simplified situation could be analysed to appreciate the mathematics and behaviour of
fluid transients.
In the following examples, the fluid has been assumed to be incompressible. Also,
the changes in pressure are assumed not to cause change of phase. For example, consider
a liquid in the piping system well above its vapour pressure throughout.
Example 1 :
1 2
At steady state, a force balance over the pipe section between two points ‘1’ and ‘2’ was
written earlier as
2
f Lv
P1 P2 = D 0 g
2 gd
The term on the left hand side is force on the liquid plug due to pressure difference at its
two ends. The term on the right hand side is the shear force (frictional force) between the
moving fluid and the stationary pipe wall. ‘’ is the cross-sectional area of the pipe. v 0 is
the steady state velocity.
2
fLv 1
P1 P2 1
= g
2 gd
The velocity will change from v 0 to v 1 during the transient phase and one would
like to get a measure of that and also the governing mathematical model.
fLv 2
g .
2 gd
The net force must be equal to mass of the fluid plug between points ‘1’ and ‘2’
multiplied by acceleration dv
dt
at that instant.
Expressed in an equation
P1 P21
fLv 2
2 gd
g = L
dv
dt
1
dv P P 1
= 1 2 fv 2
dt L L 2d
(Remember that the friction factor ‘ f ’ itself is a function of v ). This nonlinear first
order ordinary differentical equation is subject to the initial condition.
v = v 0 at t = 0
The solution gives a v vs time profile. Without solving the equation, one can
qualitatively say here that the velocity will monotonically change from v 0 to v 1 . The rate
of change will be high initially and gradually taper.
One can extend this to a pipe which is not horizontal as well as a piping systems
with several piping elements as well as valves. For a simple case of laminar flow, one
could even attempt and get an analytical expression. Also the perturbation which sets up
fluid transients could be due to different causes and of different temporal nature. Some
such exercises can lead to a better appreciation of Bernoulli’s equation extended to
transient behaviour.
Oscillating Transience
1 length of liquid
column = L
h
steady state level
-h
For simplicity, let us assume that there is negligible frictional loss as the fluid
(manometric) moves through the limbs. Let the pressure be same in both the limbs. This
would mean that the manometric fluid level in both the limbs is same. Let that level be
the datum level.
Let at time zero, the column in the right limb be pushed down below the datum by
height h 0 (thereby also raising the column in the left limb by h 0 above the datum) and
released. This perturbation sets up an interesting dynamics in the systems, which can be
modeled as follows:
Let the fluid column be at position h at time t as shown. Applying the Bernoulli’s
equation modified for transient behaviour earlier, we get
2 2
P1 v1 P v L dv
h = 2 2 h
g 2 g g 2 g g dt
As P1 = P2 and v1 = v 2 = v
L dv
h = h
g dt
dh dv d 2h
Also v = =
dt dt dt 2
d 2 h 2 gh
+ =0
dt 2 L
h (t ) = c1 cos c2 t
we get c1 = h0
and c2 = 2g
L
We thus observe the liquid column oscillating with an amplitude of h 0 and a frequency of
2g 1 2g 1
radians/s. The frequency in cycles/s (i.e. Hz) is = g 2 L . The
L 2 L
period of vibration is 2 L .
g
Can we make a statement as to when a perturbation can lead to this kind of oscillatory
response in a system ?
H
2
L
At any time ‘t’ after the tube exit at point ‘2’ is opened, Bernoulli’s equation modified for
transient flow is :
2 2
P1 v1 P v L dv
Z1 = 2 2 Z 2 h f
g 2 g g 2 g g dt
v1 = 0
v2 = v
P1 = P2
Z1 Z 2 = H
fLv 2
hf =
2 gd
Therefore,
v2 fLv 2 L dv
H =
2 g 2 gd g dt
Let the velocity at steady state be v 0 . Then, from steady state Bernoulli’s equation,
2 2
v fLv 0
H = 0
2g 2 gd
Subtracting the steady state equation from the unsteady state equation, one gets
L dv
g dt
=
1 fL 2
1 v 0 v
2g d
2
This is subject to the initial condition
v = 0 at t = 0
1 fL
v t
dv
v
0
2
v2
= 1 dt
2L d 0
0
1 v v 1 fL
ln 0 = 1 t
2v 0 v0 v 2L d
OR
v0 v v fL
= exp 0 1 t
v0 v L d
v0 fL
Abbreviating 1 as c , one can write
L d
v0 v
= exp ct
v0 v
or
v e ct 1
= ct
v0 e 1
One can thus see that the fluid velocity v reaches steady state velocity monotonically.
Time to reach a certain percentage of value of the steady state velocity can be found out
easily from above.
v 1
1. What is ct for = ?
v0 2
v
2. What is ct for = 0.99, 0.999 ?
v0
3. What mistake did we make in the above derivation?
6. What happens if the tube is vertical and drawn from bottom of the tank?
7. What happens in the reverse case when the flow is established and then the exit is
closed suddenly at t = 0 . Stretch this as L .
Water Hammer
The mass of fluid plug in the horizontal pipe (length L, cross-sectional area ) is L .
This has to be brought to a zero velocity from a velocity v 0 over a period of seconds.
It thus needs to be imparted a deceleration (negative acceleration). Its magnitude can be
found by using the instantaneous velocity vs acceleration formula.
v = v0 at
Where v is velocity at time ‘t’ and ‘a’ is acceleration. For v to be zero at t=,
acceleration should be
v0
a =
A mass (m) of fluid in the horizontal pipe m L can be imparted this acceleration
(a) if a force F (= ma) acts on it in a direction opposite to the flow direction.
v
F = L 0
Or
F L v 0
= = P
F is the pressure that would be generated at the exit end of the pipe. This pressure
which is generated due to sudden closure of a valve is called water hammer. Water
hammer effect can be severe if the length of the pipe upstream of the valve is larger,
and/or the density of the liquid is large, and/or the velocity of the fluid prior to valve
closure is high, and/or the valve closure time is small. Excessive pressure can lead to
system failure. While L , , v 0 are dependent on layout, service and pipe selection, the
closure time ( ) can be suitably planned through valve selection, design and operation.
Valve choice is thus crucial from the point of view of mitigation of water hammer effects.
The above is a highly simplified picture of water hammer. It none the less
provides a quick conservative estimate of pressure levels that could be expected to
develop due to sudden valve closure. The actual pressure developed will be somewhat
less than this estimate as the liquid is not totally incompressible nor is the pipe rigid.
Compression of the liquid and elastic expansion of pipe cross-section due to heightened
pressure help mitigate the water hammer effect to some extent.
Other complications are 3-D layout of piping systems in reality, to and fro travel
of pressure wave and possibility of its reflection, thermodynamic behaviour of the
flowing medium at different pressures which may cause phase change (evaporation,
condensation). Applied mechanics, fluid mechanics and wave mechanics all get together
to decide the pressure-velocity profiles with time and space in a piping system subject to
sudden closure (or opening) of a valve or a failure, restarting of a pump. The mathematics
is quite complicated and calls for numerical solutions of the governing partial differential
equations with numerous boundary conditions. Competent s/w tools are available which
expect the user to ‘define’ the system. Setting up of equations and boundary conditions as
well as solving these to generate pressure-time-space and velocity-time-space profiles in
the piping system is the job of the s/w. The user then analyzes the results and suggests
remedial measures (surge vessel, pressure relief valve, valve closure pattern, control
valves, etc.) to safeguard the piping system in the event of happenings leading to water
hammer effects.
The following sections deal with water hammer analysis with the aim to develop a
feel for physics so that educated use of such computer aided analysis is possible.
Here, P is the maximum expected pressure rise due to sudden valve closure, is fluid
density, v is the effected change in fluid velocity and c is the velocity of pressure wave
in the medium. It is related to the fluid properties as follows.
c = Ef
Consider for example a case where water in a pipe flowing at 2 m s velocity is brought to
halt by closing a valve instantaneously.
E f = 2.2 gPa .
1 1 D
= 0
Ec E f tE P
E f and E P are modulus of elasticity for fluid and pipe respectively. E c is the
composite modulus of elasticity. E c is used in place of E f in calculating pressure wave
velocity in the medium. An equivalent definition of this velocity can be shown to be as
follows.
Ef
c =
E f DO
1
Ep t
The numerator is the pressure wave velocity in the fluid in a rigid pipe and the
denominator can be viewed as a correction for pipe elasticity. DO is pipe OD and t is
pipe thickness.
One can thus generate a feel for the sensitivity of the water hammer effect.
Why is the length of the pipe not involved in any of these calculations?
Consider the earlier example with the only change that the pipe is made of three
sections of different diameters (say 6”, 4”, 2” SCH 40 pipes). Let the lengths be 10m
each for each section and velocity be 2m/s in the 2” section. Repeat the calculations for
the cases where liquid is incompressible and pipe is rigid, liquid is compressible and the
pipe rigid, liquid and pipe are both elastic.
6” 4” 2”
Consider the earlier case of an infinitely large reservoir connected to the discharge
pipe. The only difference being the pipe runs in 2-D, still horizontally. A plan of the
scheme is shown below.
In this case also, maximum pressure is generated at the point of application of sudden
closure, i.e. at the valve end of the pipe. The pressure wave generated thus will travel
upstream and hit the first elbow/bend. This would create a pounding effect and the wave
will be reflected downwards. It will hit the next elbow/bend, create a pounding effect and
get reflected towards the source. The source being a large, relatively stagnant mass would
reflect the wave back. It will travel back, create pounding effect on the two elbows and
reach the valve end. It will then get reflected again and so on. The pounding creates the
audible water hammer effect. The fluid in the pipe also senses the local-temporal pressure
gradients and moves helter-skelter. The pressure attenuates due to continuous loss of
energy due to friction between fluid and pipe wall as well as minor losses in the piping
elements (elbows, entry from tank to pipe). Rigorous water hammer calculations are done
to generate these pressure and velocity profiles at important locations with time. The
water hammer effect can also be seen as creating vibrations in a piping system. These
need to be taken into account in dynamic analysis as occasional load.
The reflection of the pressure wave can be advantageous in the sense that it
further reduces the peak pressure that can get generated in a system. To what extent the
maximum pressure (as calculated by Joukowski formula) is affected by pressure wave
reflection depends on the layout and the distance to be travelled from the peak pressure
location to the point of possible reflection. Although the formula (Joukowski) is for
instantaneous closure, real life valve (even if they fail closed unintentionally) take finite
time to close. Relation of the magnitude of this time to the time required for wave
reflection is an important factor that decides the maximum pressure that gets generated.
If the distance between the point of closure and reflection is L, the above can be
expressed as follows:
2L
If pressure surge is maximum.
c
2L
If > pressure surge will reduce.
c
2L c
P = cv
2L c
= Pmax
Joukowski
The reflected and the original waves can cause periods and locations of high and
low pressure. Periods of low pressure can cause degassing of liquids or even evaporation.
Similarly, high pressures can cause re-condensation etc. High and low pressures also can
cause periodicity of stresses in the pipe and eventual fatigue failure.
Fluid transients can occur due to several other reasons apart from sudden valve
closure. The other reasons could be sudden opening of valves, starting or stopping of
pumps, changing elevation of reservoir, change in power demand of turbine,
reciprocating pumps, tube rupture in an heat exchanger, etc.
Anything that suddenly changes the steady state behaviour by changing one or
more flow parameters sets up transient response. This could take the pressures to reach
levels beyond the range confined by initial and eventual steady state. Measures need to be
taken to ensure that these levels do not damage the systems.
Flow transience in any piping system or its section is captured in the following
two simultaneous partial differential equations.
P v
c 2 =0
t x
v 1 P fv v
=0
t x 2 D
The two dependent variables are the pressure and the velocity of fluid. The two
independent variables are time and space.
P (x = 0, t) = gh
P (x = L, t) = Pressure drop across valve
P (x, t = 0) = Steady state pressure
v (x, t = 0) = Steady state velocity
v (x = L, t) = Valve discharge rate/ pipe
For pipe routes with different diameters and other valves en-route, similar conditions may
be required over each section.
These equations are solved with powerful solvers using method of characteristics,
finite difference method, orthogonal collocation etc. Accuracy and convergence of the
solution depends on suitable choice of space-time ( x t ) grid. Choice of grid must
observe certain logical restriction such as
x ct
That grid size which gives grid-size-independent solution is desired. Finer the grid, more
accurate could be the solution and larger the computational effort. One needs to strike a
balance between accuracy and solution time.
It may be helpful to derive the basic model from first principles. No new concept
is actually involved other than conservation of mass and energy. The equations are
actually statements of mass conservation and Bernoulli’s equation.
It is also useful to mull over the reasons for a product v v appearing in one of the
equations. What physical statement is one making in this term?
The occurrence of pressure surge has been discussed so far in relation to the
sudden shutting down of the valve. In general, pressure surges would occur as a
consequence of any event which causes rapid change in the velocity of the fluid. Rapid
closing or opening of the valve or start or shut down of a pump could cause such a
change in velocity and hence pressure surges. The role of pumps and valves in the piping
system is discussed here further.
R2
P1
P2
Comment on the possible happenings and pressure surges that could develop in the
system for a rapid and not so rapid valve closure.
Compile a list of data that you would collect to be ready for transient analysis.
Discuss qualitatively worst case scenario (very rapid closure)
Discuss instructions/ measures to avoid abnormal pressures.
Control Valves
If there is a pressure/ flow control valve on the line experiencing surge, the
control valve dynamics would modify the surge characteristics. A knowledge of control
valve characteristics and control law is important. Some basic background of the types of
control valves and control strategies as well as dynamics of valve-pipe systems is
important for transient analysis.
*******************