Sei sulla pagina 1di 115

GENERALIZED WATER HAMMER ALGORITHM

FOR PIPING SYSTEMS WITH UNSTEADY


FRICTION
by

Jaime Suárez Acuña

A thesis submitted in partial fulfillment of the requirements for the degree of

MASTER OF SCIENCE

In

MECHANICAL ENGINEERING

UNIVERSITY OF PUERTO RICO


MAYAGÜEZ CAMPUS
2005

Approved by:

________________________________ __________________
Nellore S. Venkataraman, PhD Date
Member, Graduate Committee

________________________________ __________________
Vikram Raj Pandya, PhD Date
Member, Graduate Committee

________________________________ __________________
Walter Silva Araya, PhD Date
President, Graduate Committee

________________________________ __________________
Andres Calderon, PhD Date
Representative of Graduate Studies

________________________________ __________________
Paul Sundaram, PhD Date
Chairperson of the Department
 
ABSTRACT 

Unsteady flow in pipe networks is usually analyzed by means of one-dimensional


models, in which the energy dissipation is computed assuming the friction factor
dependent on the local and instantaneous Reynolds Number (quasi-steady model). This
model underestimates the friction forces and overestimates the persistence of oscillations
following the first one. Unsteady friction has great importance in pipe networks because
the maximum oscillation may occur after the first one.

Silva-Araya and Chaudhry developed (1993) a model to simulate unsteady friction in


transient flow which was tested in simple pipe – valve systems only. The model
approximates the velocity profiles during the transient flow and computes the actual
energy dissipation. The ratio of the energy dissipation at any instant and the energy
dissipation obtained by the quasi-steady approximation is defined as the Energy
Dissipation Factor. This is a time-varying, non-dimensional parameter that is
incorporated in the friction term of the transient flow governing equations.

The objective of this study is to extend Silva-Araya and Chaudhry’s unsteady friction
model for water hammer analysis to series and branching pipe systems. The conduits at
these systems may have different diameters, wall thickness, wall material, and/or friction
factors.

For the computation of the initial steady state conditions a subroutine that solves the

network flow equations using the Hardy Cross linear analysis is used. The subroutine

allows for the input of minor losses, use of either the Darcy-Weisbach or Hazen-Willians

pipe frictional loss. Either SI or English units are permissible.

ii
To create a “user friendly” Windows interface, the extended application was

developed using VBA (Visual Basic for Applications) in Excel for general program

applications.

The model was tested for three cases: single, series and branching piping systems.

The computed pressures are compared with the experimental data obtained for Silva

Araya (1993) for a single piping system case. For a series and a branching piping system

the computed results obtained by using unsteady friction are compared with the data

obtained by using steady friction model.

iii
RESUMEN 

El flujo no permanente en redes de tuberías se analiza generalmente por medio de

modelos unidimensionales, en que la disipación de energía se calcula asumiendo el factor

de fricción dependiente del Número de Reynolds local e instantáneo (modelo cuasi-

permanente). Este modelo subestima las fuerzas de la fricción y sobreestima la

persistencia de las oscilaciones que siguen a la primera. La fricción en flujo no-

permanente tiene gran importancia en redes de tuberías, porque la oscilación máxima

puede ocurrir después de la primera.

Silva-Araya y Chaudhry desarrollaron (1993) un modelo para simular la fricción no

permanente en flujo transitorio, el cual se probó solamente en sistemas de tubo sencillo –

válvula. El modelo aproxima los perfiles de velocidad durante flujo transitorio y calcula

la disipación de energía verdadera. La relación entre la disipación de energía en

cualquier instante y la disipación de energía obtenida por la aproximación cuasi-

permanente se define como el Factor de Disipación de Energía. Este es un parámetro no-

dimensional que varia en el tiempo que se incorpora en el término de la fricción de flujo

transitorio que gobierna las ecuaciones.

El objetivo de este estudio es extender a sistemas de tuberías en serie y ramificadas,

el modelo de fricción no permanente de Silva-Araya y Chaudhry para el análisis de Golpe

iv
de Ariete. Las tuberías en estos sistemas pueden tener diferentes diámetros, espesor de

pared, material de pared, y/o factores de fricción.

Para el cómputo del estado permanente inicial se utiliza una subrutina que resuelve

las ecuaciones de flujo de la red, usando el análisis lineal de Hardy Cross. La subrutina

tiene en cuenta las pérdidas menores de entrada, el uso de las perdidas por fricción en

tuberías de Darcy-Weisbach o la de Hazen-Willians. Son permisibles tanto el sistema

internacional como las unidades inglesas.

Para crear una comunicación “amigable” con Windows, la aplicación extendida se

desarrolló utilizando VBA (Visual Basic for Applications) en Excel para las aplicaciones

generales del programa.

El modelo fue probado para tres casos: sistemas de tubería sencillos, en serie y

ramificados. Las presiones computadas se comparan con los datos experimentales

obtenidos para Silva Araya (1993) para el caso de sistemas de tubería sencillos. Para

sistemas de tubería en serie y ramificados los resultados calculados, obtenidos utilizando

fricción en flujo no-permanente se comparan con los datos obtenidos utilizando el

modelo de fricción permanente.

v
 

To my mother Amanda and my wife Lilibeth.

vi
ACKNOWLEDGEMENTS 

I want to express a sincere acknowledgement to my advisor, Dr. Walter Silva for his

motivation, time, and support during my research.

I wish to thank the Department of Mechanical Engineering at University of Puerto

Rico, Mayagüez Campus for giving me the opportunity to carry out my master studies.

I wish to express my gratitude also to the Department of General Engineering at

University of Puerto Rico, Mayagüez Campus for the financial assistance.

I would like to thank my mother and my wife, for their support, inspiration and love.

vii
Table of Contents
ABSTRACT .................................................................................................................................................II

RESUMEN ................................................................................................................................................. IV

ACKNOWLEDGEMENTS ....................................................................................................................VII

TABLE OF CONTENTS........................................................................................................................ VIII

TABLE LIST ................................................................................................................................................X

FIGURE LIST ............................................................................................................................................ XI

1 INTRODUCTION .............................................................................................................................2
1.1 MOTIVATION .................................................................................................................................3
1.2 LITERATURE REVIEW ....................................................................................................................3
1.3 SUMMARY OF FOLLOWING CHAPTERS ..........................................................................................8
2 GOVERNING EQUATIONS...........................................................................................................9
2.1 CLOSED CONDUIT TRANSIENT FLOW GOVERNING EQUATIONS ....................................................9
2.1.1 Continuity Equation.................................................................................................................9
2.1.2 Momentum Equation ...............................................................................................................9
2.2 ENERGY DISSIPATION FUNCTION..............................................................................................11
2.3 MOMENTUM EQUATION FOR AXISYMMETRIC PIPE FLOW .......................................................14
2.4 METHOD OF CHARACTERISTICS ................................................................................................15
2.4.1 Characteristics Equations .....................................................................................................16
2.4.2 Boundary Conditions.............................................................................................................23
3 SYSTEM SPECIFICATION ...........................................................................................................37
3.1 SCHEMATIC DIAGRAM...............................................................................................................37
3.2 NUMBERING OF NODES .............................................................................................................38
3.3 NODE TYPES...............................................................................................................................40
3.4 NUMBERING OF CONDUITS .......................................................................................................41
4 METHODOLOGY ...........................................................................................................................42
4.1 COMPUTATION OF THE INITIAL STEADY STATE CONDITIONS ...................................................42
4.1.1 Generalized Network Equations............................................................................................43
4.1.2 Linearization of System Energy Equations............................................................................49
4.1.3 Hardy Cross Method .............................................................................................................50
4.2 GENERATION OF THE COMPUTATIONAL GRID ..........................................................................53
4.3 TURBULENCE MODELING ...........................................................................................................55
4.3.1 Turbulence Model for the Inner Region ................................................................................57
4.3.2 Outer Region Model and Blending Relation..........................................................................58
viii
4.4 INITIAL VELOCITY PROFILE ........................................................................................................61
4.5 COMPUTATION OF THE PRESSURE GRADIENT ...........................................................................63
4.6 SHEAR STRESS DISTRIBUTION .....................................................................................................64
4.7 COMPUTATION OF THE VELOCITY PROFILE ...............................................................................65
4.7.1 Predictor Step........................................................................................................................66
4.7.2 Corrector Step .......................................................................................................................67
5 VERIFICATION...............................................................................................................................69
5.1 SINGLE PIPING SYSTEM ..............................................................................................................69
5.2 SERIES PIPING SYSTEM ...............................................................................................................82
5.3 BRANCHING PIPING SYSTEM .....................................................................................................89
6 CONCLUSIONS ..............................................................................................................................94

APPENDIX A. VALUES OF T VS.  TAU FOR DIFFERENT TYPES OF VALVES........................99
APPENDIX A1. BUTTERFLY VALVES...................................................................................................99
APPENDIX A2. CIRCULAR VALVES....................................................................................................101
APPENDIX A3. BIPLANES VALVES.....................................................................................................103

ix
Table List

Tables Page

Table 3-1. Node Types..................................................................................................... 41


Table 5-1. Parameters for Single Piping System. ............................................................ 71
Table 5-2. Node type for Single Piping System. ............................................................. 71
Table 5-3. Node type for Series Piping System............................................................... 83
Table 5-4. Parameters for Series Piping System.............................................................. 83
Table 5-5. Characteristics of the Pipes for Series Piping System.................................... 83
Table 5-6. Node type for Branching Piping System. ....................................................... 90
Table 5-7. Characteristics of the Pipes for Branching Piping System............................. 90

x
Figure List 
 
 
Figures                     Page

Figure 2-1. Coordinate System. ........................................................................................ 14


Figure 2-2. Characteristic Lines in x-t Plane. ................................................................... 19
Figure 2-3. Single Pipeline. .............................................................................................. 19
Figure 2-4. Regions of Validity for a Single Pipeline. ..................................................... 20
Figure 2-5. Constant-level Upstream Reservoir. .............................................................. 25
Figure 2-6. Constant-level Downstream Reservoir. ......................................................... 28
Figure 2-7. Dead End........................................................................................................ 29
Figure 2-8. Valve at Downstream End. ............................................................................ 31
Figure 2-9. Series Junction. .............................................................................................. 33
Figure 2-10. Branching Junction....................................................................................... 35
Figure 2-11. Intermediate Valve ....................................................................................... 35
Figure 3-1. Notation.......................................................................................................... 37
Figure 3-2. Schematic Diagram of a Series System. ........................................................ 38
Figure 3-3. Schematic Diagram of a Branching System................................................... 40
Figure 4-1. Representative piping network: (a) assumed flow directions and numbering
scheme: (b) designated interior loops; (c) path between two fixed-grade nodes.
(From [14])................................................................................................................ 44
Figure 4-2. Two piping networks: (a) tree watering system: P = 17, L = 0, j = 8, F = 10;
(b) water distribution system: P = 17, L = 4, J = 12, F = 2. (From Wood, 1981.).... 48
Figure 4-3. Non-uniform grid. .......................................................................................... 53
Figure 4-4. Regions of a Boundary Layer ........................................................................ 56
Figure 4-5. Eddy Viscosity Distribution........................................................................... 60
Figure 5-1. Schematic of Experimental Setup (Silva Araya, 1993) ................................. 70
Figure 5-2. Characteristic Curve for Valve in Single Piping System. .............................. 71
Figure 5-3. Pressure Head Histories for a Single Piping System Using Steady Friction. 73
Figure 5-4. Pressure Head Histories for a Single Piping System Using Unsteady Friction.
................................................................................................................................... 76
Figure 5-5. Velocity Profile in transient Flow at the Middle of the Pipe ......................... 78
Figure 5-6. Energy Dissipation Factor in Transient Turbulent Flow................................ 81
Figure 5-7. Schematic of Series Piping System................................................................ 82
Figure 5-8. Characteristic Curve for Valve in Series Piping System. .............................. 84
Figure 5-9. Geometrically Expanding Grid Spacing for Series Piping System................ 85
Figure 5-10. Eddy Viscosity distribution for Series Piping System. ................................ 85
Figure 5-11. Initial Velocity Profile for Series Piping System......................................... 86
Figure 5-12. Pressure Head Histories for a Series Piping System Using Steady and
Unsteady Friction...................................................................................................... 87
xi
Figure 5-13. Schematic of Branching Piping System....................................................... 89
Figure 5-14. Eddy Viscosity distribution for Branching Piping System. ......................... 91
Figure 5-15. Initial Velocity Profile for Branching Piping System. ................................. 91
Figure 5-16. Pressure Head Histories for a Branching Piping System Using Steady and
Unsteady Friction...................................................................................................... 92

xii
1 INTRODUCTION
If sudden velocity and pressures variations are caused in a pipe system, for example

when pumps are shut off or valves are closed, a pressure wave develops which is

transmitted in the pipe at a certain velocity that is determined by fluid properties and the

pipe wall material. This phenomenon, called water hammer, can cause pipe and fittings

rupture. The intermediate stage flow, when the flow conditions are changed from one

steady state condition to another steady state, is called transient state flow or transient

flow; water hammer is a transient condition caused by sudden changes in flow velocity or

pressure.

Generally friction losses in the simulation of transient pipe flow are estimated by

using formulae derived for steady state flow conditions, this is known as the quasi-steady

approximation. The head loss during transient flow is equal to the head loss obtained for

steady uniform flow with an average velocity equal to the instantaneous transient velocity.

Although this approximation is enough to calculate the maximum pressures in the

absence of vapor cavitations or column separation, this is not accurate for the prediction

of the time history of pressure oscillations and the attenuation of pressure waves. An

accurate calculation of the damping effect due to unsteady friction losses is important for

long time simulations and for systems having multiple operations.

2
1.1 Motivation

Water hammer analysis tools of the past have been noted for being difficult to use and

requiring extensive specialized knowledge. As a result, this critical aspect of piping

system design and operation has often been overlooked. Recently, pressure oscillations

caused serious damage in the important pipe conduction called the North Coast Super

aqueduct of Puerto Rico.

The present research extended Silva-Araya and Chaudhry’s (1997) unsteady friction

model to series and branching pipe systems. The extended application was developed

using a Windows interface with VBA in Excel for general program applications. The

original research was tested in simple pipe – valve systems only.

Piping systems engineers typically are not specialists in water hammer modeling.

With this work and fundamental knowledge they would be equipped with the proper tools

to design and analyze for water hammer transients in liquid systems.

1.2 Literature Review

Several researchers have proposed analytical and numerical approaches to model

energy losses in unsteady pipe flows. Historically, the most common method of

representing frictional resistance in unsteady flows has been the use of Darcy-Weisbach

steady-flow equation based on the mean velocity, considering that the shear stress at the

3
wall is the same in steady-state flow condition than in transient condition. These models

fail to correctly predict the transient pressure head field beyond the first wave cycle.

Ohmi et al. (1980) studied the flow behavior in turbulent oscillatory flow and found

that the shear stress depends on the ratio of frequency of oscillation and the time-

averaged Reynolds number throw each cycle. When this ratio is small, the pressure

gradient and the wall shear stress are in phase with the mean velocity and the quasi-

steady approximation is applicable. As this ratio increases, the mean velocity delays from

the shear stress and the pressure gradient. Then the friction factor is different from its

values in quasi-steady conditions.

Experimental studies by Ramaprian and Tu (1979) showed that the turbulent structure

in oscillatory flow is different from that in equilibrium conditions, thereby increasing the

time-mean shear stress and the friction losses. Therefore, the energy dissipation in

oscillatory flow is greater than that computed by the quasi-steady approximation.

Vardy and Hwang (1991) adopted a five-region turbulence model to compute the

eddy viscosity distribution using empirical relations. In each region a different expression

was used to compute the eddy viscosity. This turbulence model is used to solve the

transient governing equations including axial and radial velocity components. The

equations are transformed by the method of characteristics and solved simultaneously.

4
The equations must be solved at every time step at every cross section to obtain the

pressure head and the axial velocity. It was reported that this model is very time

consuming.

Giuseppe Pezzinga (1999) developed a quasi-two dimensional model for

axisymmetry unsteady-flow analysis in a pipe system. Taking into account the velocity

profile in the cross section, he used a two layer turbulence model, which divides the flow

into a viscous sub-layer and a turbulent sublayer, based on the mixing length hypothesis

in the turbulent zone and on Newton’s law in the viscous sublayer.

Eichinger and Lein (1992) developed a numerical model to compute an unsteady

friction factor with the help of the turbulence model, developed by Nagano and Hishida

(1987), to compute the eddy viscosity and solve the transient pipe flow governing

equations.

Silva-Araya and Chaudhry (1993) developed an energy dissipation model for the

computation of laminar and turbulent unsteady friction losses and obtained instantaneous

velocity profiles to compute the Reynolds stresses in transient pipe flow. The energy

dissipation factor incorporated in the momentum equation is defined as the ratio of the

energy dissipated in transient flow to the energy dissipated according to the steady-state

approximation. This is a non-dimensional, time-varying parameter that modifies the

5
friction term in the transient flow governing equations. For transient turbulent pipe flow a

mixing length eddy viscosity turbulence model proposed by Granville (1989) was chosen

for the inner region of the boundary layer and a constant eddy viscosity model proposed

by Kita et al., (1980) was used for the outer region.

Peralta Cooper (2001) replaced the mixing length model in Silva-Araya and

Chaudhry’s model by the two-equation k - ω turbulence model proposed by Wilcox

(1988a, 1993b). The results were very similar to those obtained by using Granville’s

mixing length model. As a general conclusion, for most transient conditions, the use of

simple turbulence models provides similar results to two-equation models. The use of

steady-state turbulence models for unsteady flow is supported by physical measurements

of pressure oscillation. However, unsteady turbulence models are still an area where

research must be done.

Arangoitia Valdivia (2001) developed a mathematical model for the calculation of

water hammer considering the energy dissipation. He studied the water hammer produced

by the instantaneous closure of a valve, located at the end of a pipe line connected to a

constant head reservoir. The model consists of linearizing the equations of transient flow,

to establish an equation similar to the corresponding to an oscillatory mechanical system

and to use this equation as a boundary condition, in the method of characteristics.

6
Zhao and Ghidaoui (2004) formulated, applied, and analyzed first and second order

explicit finite volume Godunov-type schemes for water hammer problems. The finite

volume formulation ensures that both schemes conserve mass and momentum and

produce physically realizable shock fronts. The implementation of boundary conditions,

such as, valves, pipe junctions, and reservoirs, within the Godunov approach is similar to

that of the method of characteristics approach. The schemes were applied to a system

consisting of a reservoir, a pipe, and a valve and to a system consisting of a reservoir, two

pipes in series, and a valve.

Trikha (1975) developed a procedure for simulating frequency-dependent friction in

transient laminar liquid flow by the method of characteristics. The procedure consists of

determining an approximate expression for frequency-dependent friction such that the use

of this expression requires much less computer storage than the use of the exact

expression proposed by Zielke (1967).

Schohl (1993) used a new approximation to the weighting function in Zileke’s (1967)

equation in an improved implementation of Trikha’s (1975) method for including

frequency dependent friction in transient laminar flow calculations. The new, five-term

approximation was fitted to the weighting function using a nonlinear least squares

approach.

7
Vardy and Brown (2004) presented a method for evaluating wall shear stress from

known flow histories in unsteady pipe flows. The method builds on previous work by

Trikha, but has two important differences. One of these enables the method to be uses

with much larger integration time steps than are acceptable with Trikha’s method. The

other, a general procedure for determining approximations to weighting functions,

enables it to be used at indefinitely small times. The method is applicable to both laminar

and turbulent flows.

Most of unsteady flow models with unsteady friction have been tested in simple pipe

systems, typically a valve-reservoir system. Recently, some attempts have been done to

apply then in pipe networks. The present work has extended the application of a quasi-

bidimensional model to branching and series systems.

1.3 Summary of Following Chapters

We first develop the necessary background theory in Chapter 1. Chapter 2 describes

the governing equations of the phenomenon. Chapter 3 explains how to describe the

system you are analyzing, how many components the system has, and of what type and

size they are. Chapter 4 describes the procedure followed to obtain the energy dissipation

factor as an integrated part of the transient analysis. Chapter 5 shows the verification of

the generalized algorithm, with the results obtained by using the unsteady friction model

for piping systems. Conclusions are presented in Chapter 6.

8
2 GOVERNING EQUATIONS 

2.1 Closed Conduit Transient Flow Governing Equations

The dynamic equations in transients-state flow in closed conduits are the equations

for the conservation of mass and the momentum equation. These equations are a set of

hyperbolic partial differential equations. Using the Reynolds Transport Theorem and

assuming one-dimensional flow and elastic conduit with slightly compressible fluid,

which stretch or contracts with respect to time; these equations become (Chaudhry, 1987)

2.1.1 Continuity Equation

∂p ∂p ∂V
+ V + ρa 2
= 0 2.1
∂t ∂x ∂x

Where: p = pressure intensity, V = mean flow velocity, a = wave speed, ρ = fluid

density, t = time, x = coordinate axis along conduit length.

2.1.2 Momentum Equation

∂V ∂V 1 ∂p fV V
+V + + g sin θ + =0 2.2
∂t ∂x ρ ∂x 2D

Where: g = acceleration due to gravity, θ = pipe angle with respect to the horizontal,

9
D = pipe diameter, f = Darcy-Weisbach friction factor.

In most engineering applications, the convective acceleration terms, ( V∂p / ∂x ) and

( V∂V / ∂x ), are very small compared to the others terms and may be neglected. Therefore

by dropping these terms Equation 2.1 becomes:

∂p ∂V
+ ρa 2
= 0 2.3
∂t ∂x

Equation 2.2 becomes:

∂V 1 ∂p fV V
+ + = 0 2.4
∂t ρ ∂x 2D

Expressing pressures in the pipeline in terms of the piezometric head, above a

specified datum as, and using the discharge, Q = VA, instead of the flow velocity and

considering the energy dissipation factor in the equation of momentum. Equation 2.3

becomes:

∂H a 2 ∂Q
+ = 0 2.5
∂t gA ∂x

10
Equation 2.4 is modified as:

∂Q ∂H fQ Q
+ gA + ef =0 2.6
∂t ∂x 2 DA

Where: Q = flow discharge, ef = energy dissipation factor, A = pipe cross sectional

area, H = piezometric head. f = Darcy- weisbach friction factor.

ef is a non-dimensional and time dependent parameter to compute the variation of the

friction losses in space and time. This parameter is set equal to one if the quasi-steady

approach in transient pipe flow is used. The term in the energy equation that involves the

viscous and turbulent stresses is commonly called the dissipation function. A procedure

to compute the energy dissipation factor is described in the following paragraphs.

2.2 Energy Dissipation Function 

For boundary layer planar or axisymmetric flow, the expression to compute the

energy dissipation function, denoted by Φ, is given by (White, 1991):

∂u ⎛ ∂u ⎞
Φ = ⎜μ − ρ u 'v ' ⎟ 2.7
∂r ⎝ ∂r ⎠

Where: u = axial velocity of the fluid particle along the conduit length, r = radial

11
coordinate measured from the pipe centerline, ∂u/∂r = velocity gradient in the radial

direction, μ = dynamic viscosity of the fluid, ρ = fluid density, ρ u ' v ' = Reynolds

stresses. Equation 2.7 accounts the total shears stresses, viscous and turbulent stresses

and represents the energy dissipation per unit volume and per unit time.

Integration of Equation 2.7 across the conduit area from the wall to the pipe

centerline and multiplying by two can be estimated the dissipation integral. This result

accounts for the rate of energy dissipation per unit length in the conduit area.

Therefore:

R
D I = 2π ∫ 0
Φ rdr 2.8

Where DI = dissipation integral. The dissipation of energy in transient flow can be

computed by integration the dissipation function across a pipe section. Evaluating

Equation 2.8 during an interval of time gives:

t2 R

E t = 2π ∫ ∫ Φ rdrdt 2.9
t1 0

Silva Araya (1993) demonstrated that for steady-state the energy dissipation is given

by:

12
fV 3
D Is = ρA 2.10
2g

Where DLs = steady state dissipation integral, f = Darcy- weisbach friction factor,

V = mean velocity, ρ = fluid density, A = pipe flow cross sectional area.

If Equation 2.10 is considered by an interval of time it becomes:

fV 3
E s = ρ A (t 2 − t 1 ) 2.11
2D

Equation 2.9 can be used to compute the unsteady energy dissipation integral if the

velocity profile at any time during the computation and the Reynolds stresses are known.

Division of Equation 2.9 by Equation 2.11 gives the ratio, called the energy

dissipation factor, as defined by Silva Araya and Chaudhry (1997), of the energy

dissipated during the transient flow to that in the steady flow.

Et
e f = 2.12
Es

The energy dissipation factor is a function time-varying velocity gradient and the

Reynolds stresses for turbulent flow. To solve Equation 2.12 requires a procedure to

compute the instantaneous velocity distribution in transient flow condition and also a

13
turbulence model. The next section describes the procedure implemented to find the

velocity distribution during the transient flow.

2.3 Momentum Equation for Axisymmetric Pipe Flow 

The velocity distribution in transient flow process for an axisymmetric

incompressible pipe flow is given by (White, 1991):

∂u ∂u ∂u 1 ∂p ⎛ ∂ 2u 1 ∂u ⎞
+ ux + ur = − +ν ⎜⎜ + ⎟⎟ 2.13
∂t ∂x ∂r ρ ∂x ⎝ ∂ r 2
r ∂ r ⎠

Where ν = kinematics viscosity of the fluid. The coordinate directions are defined in

Figure 2-1.

Figure 2-1. Coordinate System.

14
Thus after time averaging the axisymmetric equation of motion, the following

assumptions were considered:

1. Incompressible flow and constant viscosity

2. The convective terms are not considered

3. The second order spatial derivative term ∂ 2 u / ∂x 2 is not considered.

4. The velocities in the radial direction can be neglected

With these assumptions the momentum equation becomes, see appendix A.

∂u ∂ u 'v ' 1 ∂p ⎛ ∂ 2u 1 ∂u ⎞
+ = − + ν ⎜⎜ + ⎟ 2.14
∂t ∂r ρ ∂x ⎝ ∂r
2
r ∂ r ⎟⎠

Where u = time averaged velocity in the axial direction, ρ u ' v ' = Reynolds stress.

Equation 2.14 is the equation to compute the velocity distribution in turbulent transient

pipe flow.

2.4 Method of Characteristics 

The equations describing the transient-state flow in closed conduits are quasi-linear,

hyperbolic, partial differential equations. A closed-form solution of these equations is not

available. However, by neglecting or linearizing the nonlinear term, various graphical and

analytical methods have been developed.

15
The method of characteristics has become quite popular and is extensively used. For

the solution of one-dimensional, hydraulic transient problems (especially if the wave

speed is constant), this method has proven to be superior to other methods in several

aspects, such as correct simulation of steep wave fronts, illustration of wave propagation,

ease of programming, and efficiency of computations.

2.4.1 Characteristics Equations

Let us rewrite the momentum and continuity equations (Eqs. 2.5 and 2.6) as:

∂Q ∂H
L1 = + gA + RQ Q = 0 2.15
∂t ∂x

∂Q ∂H
L 2 = a 2
+ gA = 0 2.16
∂x ∂t

In which R = f/(2DA). Let us consider a linear combination of Eqs. 2.15 and 2.16:

L = L1 +λL2

Or

⎛ ∂Q ∂Q ⎞ ⎛ ∂H 1 ∂H ⎞
⎜ + λa 2
⎟ + λ gA ⎜ + ⎟ + RQ Q = 0 2.17
⎝ ∂t ∂x ⎠ ⎝ ∂t λ ∂x ⎠

16
If H = H(x,t) and Q = Q(x,t), then the total derivative

dQ ∂Q ∂Q dx
= + 2.18
dt ∂t ∂x dt

and

dH ∂H ∂H dx
= + 2.19
dt ∂t ∂x dt

By defining the unknown multiplier λ as:

1 dx
= = λa 2
2.20
λ dt

i.e.,

1
λ = ± 2.21
a

And by using Equations. 2.18 and 2.19, Equation 2.17 can be written as

dQ gA dH
+ + RQ Q = 0 2.22
dt a dx

If

dx
=a 2.23
dt

17
and

dQ gA dH
− + RQ Q = 0 2.24
dt a dx

If

dx
= −a 2.25
dt

Note that Equation 2.22 is valid if Equation 2.23 is satisfied and that Equation 2.24 is

valid if Equation 2.25 is satisfied.

In the x – t plane, Equations 2.23 and 2.25 represent two straight lines having slopes

± 1/a. These are called characteristic lines. Mathematically, these lines divide the x – t

plane in two regions, which may be dominated by two different kinds of solution, i.e., the

solution may be discontinuous along these lines. Physically, they represent the path

traversed by a disturbance. For example, a disturbance at point A (Figure 2-2) at time to

would reach point P after time Δt.

18
dt

Figure 2-2. Characteristic Lines in x-t Plane.

Considering a single pipeline (Figure 2-3) Equations 2.22 and 2.24 are valid along the

pipe length (i.e., for 0 < x < L) and special boundary conditions are required at the ends

(i.e., at x = 0 and at x = L) (Figure 2-4).

Figure 2-3. Single Pipeline.

19
dt

Figure 2-4. Regions of Validity for a Single Pipeline.

Referring to Figure 2-2, knowing the values of Q and H at points A and B, their

values at point P can be determinates by solving Equations 2.22 and 2.24 as follows:

By multiplying the left-hand side of Equation 2.22 by dt and integrating, we obtain:

P gA P P
∫A
dQ +
a ∫
A
dH + R ∫ dQ Q dt = 0
A
2.26

The first two integral forms of Equation 2.26 are easily evaluated; however, the third

term is not, representing the friction losses, because the variation of Q with respect to t is

not explicitly known. By using a first-order approximation, the integral of the third term

is evaluated as:

20
P
R ∫ dQ Q dt ≅ RQ A Q A ( t p − t A ) = RQ A Q A Δ t 2.27
A

In other words, we are saying that for the evaluation of this term, Q remains constant

form point A to point P. Hence, Equation 2.26 becomes:

gA
QP − QA + ( H P − H A ) + R Δ tQ A Q A = 0 2.28
a

Note that Equation 2.28 is exact except for the approximation of the friction term.

This first-order approximation usually yields satisfactory results for typical engineering

applications.

By proceeding similarly, we may write Equation 2.24 as:

gA
QP − QB − ( H P − H B ) + R Δ tQ B Q B = 0 2.29
a

By combining the known variables together, we may write Equation 2.28 as:

QP = CP − CaH P 2.30

21
And Equation 2.29 as:

QP = Cn − Ca H P 2.31

gA
CP = QA + H A − R Δ tQ A Q A 2.32
a

gA
Cn = QB − H B − R Δ tQ B Q B 2.33
a

And

gA
Ca = 2.34
a

Note that Equation 2.30 is valid along the positive characteristic line AP and Equation

2.31 along the negative characteristic line BP (Figure 2-2). The value of the constants CP

and Cn are known for each time step, and the constant Ca depends upon the conduit

properties. We will refer to Equation 2.30 as the positive characteristic equation and

Equation 2.31 as the negative characteristic equation. In Equations 2.30 and 2.31, we

have two unknowns, namely, HP and QP. The values of these unknowns can be

determined by simultaneously solving these equations.

22
2.4.2 Boundary Conditions

Special boundary conditions are required to determine the transient-state head and

discharge at the boundaries. These are developed by solving Equations 2.22 or 2.24, or

both, simultaneously with the conditions imposed by the boundary. These conditions are

in terms of special relationships that define, at the boundary, the discharge, the head, or a

relation between them. Equation 2.22 is used for the downstream boundaries and

Equation 2.24 for the upstream boundaries.

We shall designate the upstream and downstream ends with reference to the initial-

flow direction even though the flow may reverse during the transient state. A section at

the upstream end of a conduit shall be numbered section 1 and the one at the downstream

end as section n + 1, assuming the conduit is divided in n reaches. To specify variables at

different sections, we shall use two subscripts: The first subscript designates the conduit

number, and the second indicates the section number. For example, Qi,j represents flow at

the jth section of the ith conduit. For variables that have the same value at all sections of

a conduit, only one subscript will be used. For example, Cai refers to constant Ca

(Equation 2.34) for the ith conduit. Although CP and Cn may have different values at

different sections of a conduit, only one subscript will be used with them to indicate the

conduit number.

23
2.4.2.1 Constant-Level Upstream Reservoir

In this case, it is assumed that the water level in the reservoir remains constant during

the transient-state conditions.

Let the entrance losses be given by the equation:

kQ P2i ,1
he = 2.35
2 gA i2

In which k is the coefficient of entrance loss. Then, referring to Figure 2-5, we obtain:

Q P2i ,1
H Pi ,1 = H res − (1 + k ) 2.36
2 gA i2

In which Hres = height of the reservoir water surface above the datum.

24
Figure 2-5. Constant-level Upstream Reservoir.

To develop the boundary condition, we have to solve this equation simultaneously

with the negative characteristic equation (Equation 2.31). Elimination of HPi,1 from

Equations 2.31 and 2.36 and simplification of the resulting equation yield:

k 1Q P2i ,1 + Q Pi ,1 − ( C ni + C a i H res ) = 0 2.37

In which:

C a i (1 + k )
k1 = 2.38
2 gA i2

By solving Equation 2.37 and neglecting the negative sign with the radical term, we

obtain:

25
−1+ 1 + 4 k 1 ( C n1 + C a1 H res )
Q Pi ,1 = 2.39
2 k1

If the entrance losses as well as the velocity head are negligible, then:

H Pi ,1 = H res 2.40

In which Hres = height of the reservoir water surface above the datum. Equation 2.31

for the upstream end thus becomes:

Q Pi ,1 = C ni + C a i H res 2.41

2.4.2.2 Constant-Level Downstream Reservoir

If the head losses at the entrance to the reservoir are:

kQ P2i , n +1
he = 2.42
2 gA i2

Then referring to Figure 2-6:

Q P2i , n +1
H Pi , n +1 = H res − (1 − k ) 2.43
2 gA i2
26
Elimination of Hpi,n+1 from Equations 2.43 and 2.30 yields:

k 2 Q P2i , n +1 − Q Pi , n +1 + C pi − C a i H res = 0 2.44

In which:

C a i (1 − k )
k2 = 2.45
2 gA i2

By solving equation 2.44 and neglecting the positive sing with the radical term:

1 − 1 − 4 k 2 ( C p1 − C a1 H res )
Q Pi , n +1 = 2.46
2k2

If the exit loss and the velocity head are negligible, then:

H Pi , n +1 = H res 2.47

Hence it follows from Equation 2.30 that:

Q Pi , n +1 = C p i − C a i H res 2.48

27
Figure 2-6. Constant-level Downstream Reservoir.

2.4.2.3 Dead End at Downstream End

At the dead end (Figure 2-7), QPi,n+1 = 0. Hence, from the positive characteristic

equation (Equation 2.30), it follows that:

C pi
H Pi , n +1 = 2.49
C ai

28
Figure 2-7. Dead End.

2.4.2.4 Valve at Downstream

Steady-state flow through a valve can be written as:

Q oi , n +1 = ( C d Av ) o 2 gH oi , n +1 2.50

In which subscript o indicates steady-state conditions, Cd = coefficient of discharge,

Hoi,n+1 = head upstream of the valve, and Av = area of the valve opening.

If we assume that the transient-state flow through a valve may be described by an

equation similar to the steady-flow equation, then:

Q Pi , n + 1 = ( C d A v ) 2 gH Pi , n + 1 2.51
29
Dividing Equation 2.51 by Equation 2.50, taking square of both sides and defining the

relative valve opening τ = (CdAv)/(CdAv)o, we obtain:

Q 2
=
(Q oi , n +1 τ )
2

H Pi , n +1
Pi , n + 1 2.52
H oi , n +1

Substitution for Hp from the positive characteristic equation (Equation 2.30) into

Equation 2.52 yields:

Q P2i , n + 1 + C v Q Pi , n + 1 − C p i C v = 0 2.53

In which Cv = (τQoi,n+1)2/(CaHoi,n+1). Solving for Qpi,n+1 and neglecting the negative

sign with the radical term:

(
Q Pi , n +1 = 0 . 5 − C v + C v2 + 4 C p i C v ) 2.54

Now Hpi,n+1 may be determined from Equation 2.30.

To compute the transient-state conditions for an opening or closing valve, τ versus t

curves (Figure 2-8b and c) may be specified either in a tabular form or by an algebraic

expression. Note that τ = 1 corresponds to a valve opening at which the flow through the

valve is Qoi,n+1 under a head of Hoi,n+1. Values of t versus τ for different types of valves

30
are given in Appendix A.

(a)

t t

1 1

0 0
t
(b) (c)

Figure 2-8. Valve at Downstream End.

31
2.4.2.5 Orifice at Lower End

For an orifice, the opening remains constant. Therefore, the above equations may be

used with τ = 1.

2.4.2.6 Series Junction

A series junction is a junction of two conduits having different diameters, wall

thicknesses, wall materials, and/or friction factors. If the difference in the velocity heads

at sections (I, n+1) and (i+1, 1) (Figure 2-9) and the head losses at the junction are

neglected, then it follows from the energy equation that:

H Pi , n +1 = H Pi +1 ,1 2.55

The positive and negative characteristic equations for sections (I, n+1) and (i+1, 1)

are:

Q Pi , n +1 = C p i − C a i H Pi , n +1 2.56

Q Pi +1 ,1 = C n i +1 − C a i +1 H Pi +1 ,1 2.57

The continuity equation at the junction is:

Q Pi , n +1 = Q Pi +1 ,1 2.58

32
It follows from Equations 2.55 through 2.55 that:

C p i − C ni +1
H Pi , n +1 = 2.59
C a i + C a i +1

Now Hpi+1, 1, Qpi, n+1, and Qpi+1, 1 can be determined from Equations 2.55 through

2.57.

Figure 2-9. Series Junction.

2.4.2.7 Branching Junction

For the branching junction shown in Figure 2-10, the following equations can be

written:

1. Continuity equation:

Q Pi , n +1 = Q Pi +1 ,1 + Q Pi + 2 ,1 2.60

33
2. Characteristic equations:

Q Pi , n +1 = C p i − C a i H Pi , n +1 2.61

Q Pi +1 ,1 = C ni +1 + C a i +1 H Pi +1 ,1 2.62

Q Pi + 2 ,1 = C n i + 2 + C a i + 2 H Pi + 2 ,1 2.63

3. Equation for total head:

If the head losses at the junction are neglected and it is assumed that the velocity

heads in all conduits are equal, then it follows from the energy equation that:

H Pi , n +1 = H Pi +1 ,1 = H Pi + 2 ,1 2.64

Simultaneous solution of Equations 2.60 through 2.64 yields:

C p i − C ni +1 − C ni + 2
H Pi , n +1 = 2.65
C a i + C a i +1 + C a i + 2

Now Hpi+1, 1 and Hpi+2, 1 can be determined from Equation 2.64; Qpi, n+1, Qpi+1, 1, and

Qpi+2, 1 can be determined from Equations 2.61 through 2.63.

34
Figure 2-10. Branching Junction.

2.4.2.8 Intermediate Valve

Figure 2-11 illustrates a valve positioned at the junction of two pipes that may have

different diameters, wall thicknesses, wall materials, and/or friction factors.

Figure 2-11. Intermediate Valve

35
The positive and negative characteristic equations for sections (I, n+1) and (i+1, 1)

are given for Eqs. 2.56 and 2.57 respectively. The continuity equation at the junction is

given for Eq. 2.58.

It follows from Eqs. 2.56 through 2.58 that

C pi − C ai H p i , n +1 − C ni +1
H p i +1 ,1 = 2.66
C a i +1

from Equation 2.30

C p i − Q p i , n +1
H pi , n +1 = 2.67
C ai

And Qpi,n+1 is computed for Eq. 2.54 for a valve at downstream. Values of t versus τ

for different types of valves are given in Appendix A.

36
3 SYSTEM SPECIFICATION 

This chapter describes how to specify the pipe system in the computer program.

3.1 Schematic Diagram 

Figure 3.1 shows a system configuration. Liquid-conveying structures, such as pipes,

conduits or tunnels are conduits and the storage facilities, devices or appurtenances, such

as reservoirs, tanks, valves or pipe junctions are the boundaries. The conduit cross

sections at the boundaries will be called nodes.

A square is used for a node and a circle for a conduit. The node number is written

inside the square and the conduit number inside the circle. The type of each node will be

indicated by a numeral written inside a triangle (see Fig. 3-1). Each node type is

explained in this chapter.

Figure 3-1. Notation.


37
3.2 Numbering of Nodes 

To identify the nodes in the system, they are numbered in a sequence starting at the

upstream end and, number the upstream node as one. Then, proceeding in the

downstream direction, the other nodes are numbered 2, 3, and so on. Fig. 3-2 illustrates

this procedure. The junction of two conduits is a node called a series junction. The

conduits joining at a series junction may have different diameters, wall thickness, wall

material, and/or friction factors. In a branching piping system having a tree-like structure

(Fig. 3-3), designate one pipeline as the main line, and the remaining pipelines as the

branch lines. The branch lines may have sub-branches and the sub-branches may be

further branched out.

Figure 3-2. Schematic Diagram of a Series System.

38
Nodes on the main line are numbered like a series system, i.e., we start at the

upstream end and then proceed in the downstream direction. The nodes on each branch

line are then numbered one branch at a time. The numbering on the branch line starts at

the upstream end of the branch and then proceeds in the initial-steady-state-flow

direction. No particular sequence has to be followed to number the branches, i.e., you

decide which branch you want to number as branch no. 1, 2, 3, and so on.

Fig. 3-3 illustrates this numbering procedure for a branching system. We have

arbitrarily called one line as the main line and the remaining lines as branch lines. We

number the upstream node of the main line as 1 and number the remaining nodes on this

line proceeding in the downstream direction. The last node on the main line is 8. Then,

we select one of the branch lines as number 1 and number the nodes on this line as 9 to

11. Of the remaining two branch lines, we call one of them as branch number 2 and

number the nodes on this line as 12 to 14. Branch number 3 provides inflow to the main

line as compared to the other two lines in which flow is from the main line. We number

the upstream node on this line as 15 and the remaining two nodes on this line as 16 and

17.

39
Figure 3-3. Schematic Diagram of a Branching System.

3.3 Node Types 

Assign numbers to designate the type of a node. For example, an upstream reservoir

is node type 1, downstream reservoir as node type 2, and so on. Table 3-1 lists various

types of nodes and numbers to designate their type. Write in a triangle the number

designating the type of a node, i.e., the number in the triangle refers to the type of the

node, and the number in the square represents the number of the node.

40
Node Type Node
1 Upstream Reservoir
2 Downstream Reservoir
3 Series Junction
4 Branching Junction
5 Dead End
6 Downstream Valve
7 Orifice at Lower End
8 Intermediate Valve

Table 3-1. Node Types

3.4 Numbering of Conduits 

Different nodes are connected by conduits, and number these conduits to distinguish

them from another. It is not necessary to follow any particular sequence in numbering the

conduits as long as each conduit in the system in numbered once and the numbering of

the conduits starts at one. For example, the conduit between nodes 1 and 2 may be

numbered 1, 3, or any other number as long as it is not greater than the local number of

conduits in the system. The numbering of conduits should start at 1 and then continue

consecutively to the total number of conduits in the system. It does not matter if conduit

number 1 is located at the downstream end of the system, conduit no. 2 is located ate the

upstream end of the system, and conduit no. 3 is located as some intermediate location.

41
4 METHODOLOGY 

This chapter describes the procedure followed to obtain the energy dissipation factor

as an integrated part of the transient analysis in piping systems. The methodology

includes the application of the Hardy Cross method for the computation of the initial

steady state conditions and the use of a technique to generate the computational grid

without having an excessive number of grid points. The turbulence model is described

and details on the computation of the initial steady state velocity profile. The

approximation of the time dependent pressure gradient and the numerical scheme to solve

the axisymmetric momentum equation are also included.

4.1 Computation of the initial steady state conditions 

For the computation of the initial steady state conditions a subroutine that solves the

network flow equations using the Hardy Cross linear analysis (adapted from [14]) is used.

The subroutine allows for the input of minor losses, use of either the Darcy-Weisbach or

Hazen-Willians pipe frictional loss, and the provision of rated power for pumps. Either SI

or English units are permissible.

It is necessary to know the flow direction in each pipe element at all times because

the required head summations depend on that flow direction. This process is handled by

42
initially designating an assumed flow direction in each pipe element. As the calculations

proceed, the direction of the flow rate is positive if it is in the initial assumed direction

and negative if it reverses direction. Input geometric data require signs based on the

initial assumed flow directions. The subroutine requires input data specifying assigned

pipe numbers for the paths of pipe sections making up primary loops and pipe sections

between fixed-grade nodes. The pipe numbers are input with a positive sign if the

assumed flow direction is in the path direction and with a negative sign if it is opposite.

4.1.1 Generalized Network Equations

Networks of piping such as those shown in Figures 4.1 and 4.2 can be represented by

the following equations.

1. Continuity at the jth interior node:

∑ (± ) j Q j − Qe = 0 4.1

In which the subscript j refers to the pipes connected to a node, and Qe is the

external demand. The algebraic plus or minus sign convention pertains to the

assumed flow direction. Use the positive sign for flow into the junction, and the

negative sign for the flow out of the junction.

43
Figure 4-1. Representative piping network: (a) assumed flow directions and
numbering scheme: (b) designated interior loops; (c) path between two fixed-
grade nodes. (From [14])

2. Energy balance around an interior loop:

∑ (± ) Wi i =0 4.2

In which the subscript i pertains to the pipes that make up the loop. There will be

44
a relation for each of the loops. Here it is assumed that there are not pumps

located in the interior of the network. The plus sign is uses if the flow in the

element is positive in the clockwise sense; otherwise, the minus sign is employed.

3. Energy balance along a unique path or pseudo loop connecting two fixed-grade

nodes:

∑ ( ± ) [W
i i − (H )
p i ]
+ ΔH = 0 4.3

Where: ΔH is the difference in magnitude of the two fixed-grade nodes in the path

ordered in a clockwise fashion across the imaginary pipe in the pseudo loop. The term

(Hp)i is the head across a pump that could exist in the ith pipe element. If F is the

number of fixed-grade nodes, there will be (F – 1) unique path equations. The plus and

minus signs in Eq. 4.3 follow the same argument given for Eq. 4.2.

Let P be the number of pipe elements in the network, J the number of interior nodes,

and L the number of interior loops. Then the following relation will hold if the network is

property defined:

P=J+L+F–1

In Fig. 4.1, J = 4, L = 2, F = 2, so that P = 4 + 2 + 2 – 1 = 7.

An additional necessary formulation is the relation between discharge and loss in

45
each pipe; it is:

W = RQ x
+
∑k Q2 4.4
2
2 gA

In which R is the resistance coefficient, given by:

8 fL
R = 4.5
gπ 2 D 5

x = 2 for Darcy-Weisbach pipe frictional loss or x = 1.85 for Hazen-Willians pipe

frictional loss, and ∑ K are the minor loss components associated with each pipe

element.

If the minor losses can be defined in terms of an equivalent length, Eq. 4.4 can be

replaced by:

W = RQ x 4.6

In which the modified pipe resistance coefficient R is given by

8 f [L + (L e )]
R = 4.7
gπ 2 D 5

46
Where: Le is the equivalent length.

An approximate pump head-discharge representation is given by the polynomial:

H p (Q ) = a o + a 1Q + a 2 Q 2 4.8

The coefficients ao, a1, and a2 are assumed known; typically, they can be found by

substituting three known data points from a specified pump curve and solving the three

resulting equations simultaneously. In place of defining the pump head-discharge curve,

an alternative means of including a pump in a line is to specify the useful power the

pump puts into the system. The useful, or actual, power W f is assumed to be constant

and allows Hp to be represented in the manner:

.
Wf
H (Q ) = 4.9
p
γQ

This equation is particularly useful when the specific operating characteristics of a

pump are unknown.

47
Figure 4-2. Two piping networks: (a) tree watering system: P = 17, L = 0, j =
8, F = 10; (b) water distribution system: P = 17, L = 4, J = 12, F = 2. (From
Wood, 1981.)

48
4.1.2 Linearization of System Energy Equations

Equation 4.3 is a general relation that can be applied to any path or closed loop in a

network. If it is applied to a closed loop, ΔH is set equal to zero, and if no pump exists in

the path or loop, (Hp)i is equal to zero.

Define the function Φ(Q) to contain the nonlinear terms W(Q) and HP(Q) in the form:

φ (Q ) = W (Q ) − H P (Q ) = RQ x − H P (Q ) 4.10

Equation 4.8 can be expanded in a Taylor series as:

dφ d 2φ
φ (Q ) = φ (Q o ) + (Q − Q o ) + 2 (Q − Q o )2 + ... 4.11
dQ Qo
dQ Qo

In which Qo is an estimate of Q. To approximate Φ(Q) accurately, Qo should be

chosen so that the difference (Q - Qo) is numerically small. Retaining the first two terms

on the right-hand side of Eq. 4.11, and using Eq. 4.10, yields:

⎡ dH P ⎤
φ (Q ) ≅ RQ ox − H P (Q o ) + ⎢ x RQ ox −1 − ⎥ (Q − Q o ) 4.12
⎢⎣ dQ Qo ⎥

Note that the approximation to Φ(Q) is now linear with respect to Q.

49
The parameter G is introduced as:

dH P
G = x RQ ox −1 − 4.13
dQ Qo

Substituting Eq. 4.13 into Eq. 4.12 gives:

φ (Q ) = R Q ox − H P (Q o ) + (Q − Q o )G

= W o − H Po + (Q − Q o )G 4.14

In which Wo = W(Qo) and Hpo = Hp(Qo). Finally, Eq. 4.14 is substituted into Eq. 4.3 to

produce the linearized loop or path energy equation:

∑ ( ± ) [(W ) − (H ) + ∑ [Q
i o i po i i ]
− (Q o )i ]G i + Δ H = 0 4.15

4.1.3 Hardy Cross Method

The Hardy Cross method of analysis is a simplified version of the iterative linear

analysis. In Eq. 4.15, let (Qo)I be the estimates of discharge from the previous iteration,

and let Qi be the new estimates of the discharge. Define a flow adjustment ΔQ for each

50
loop to be:

Δ Q = Q i − (Q o )i 4.16

The adjustment is applied independently to all pipes in a given loop. Hence Eq. 4.15

can be written as

∑ ( ± ) [(W ) − (H )
i o i po i
+ Δ Q ∑ G i +Δ H = 0 ] 4.17

Solving for ΔQ, one has:

ΔQ =
− ∑ (± )[(W ) − (H ) ] − Δ H
o i po i
4.18
∑G i

For a closed loop in which no pumps or fixed-grade nodes are present, Eq. 4.18

reduces simply to the form:

ΔQ =
− ∑ (± )(W ) o i
4.19
∑G i

The hardy Cross iterative solution is outlined in the following steps:

1. Assume an initial estimate of the flow distribution in the network that satisfies

continuity, Eq. 4.1. The closer the initial estimates are to the correct values, the

51
fewer will be the iterations required for convergence. One guideline to use is that

in a pipe element as R increases, Q decreases.

2. For each loop or path, evaluate ΔQ with Eq. 4.18 or 4.19. The numerators should

approach zero as the loops or paths become balanced.

3. Update the flows in each pipe in all loops and paths, that is, from Eq. 4.16

Q i = (Q o )i + ∑ ΔQ 4.20

The term ∑ ΔQ is used, since a given pipe may belong to more than one loop;
hence the correction will be the sum of corrections from all loops to which the

pipe is common.

4. Repeat steps 2 and 3 until a desired accuracy is attained. One possible criterion to

use is

∑ Q i − (Q o )i
≤ε 4.21
∑ Qi

In which ε is an arbitrarily small number. Typically, 0.001< ε <0.005.

52
4.2 Generation of the computational grid 

The skin friction in turbulent flow is greater than in laminar flow; therefore, the

velocity gradient is greater at the wall. To assure a good resolution of the velocity

gradient close to the wall it is very important to have small grid steps in this region. A

geometrically expanding grid spacing proposed by Cebeci and Smith (1974) was used in

this study. Figure 4.1 shows a typical grid. This was the same grid adopted by Silva-

Araya and Chaudhry (1997) to compute the velocity distribution during the transient

flow.

x Pipe Center Line


r=R

r=0
Pipe Wall

Figure 4-3. Non-uniform grid.

53
This technique is a geometric progression, in the radial direction, which have the

property that the ratio of lengths of any two adjacent intervals is a constant; that is:

h j = Kh j −1 4.22

Where h j −1 the size of the jth -1 interval is, h j is the size of the jth interval, K is the

ratio of two successive intervals. The distance to the position in the radial direction is

given by the following formula:

η j = h1 ( K j − 1) /(K − 1) j = 1, 2, ...,J 4.23

Where: h1 the length of the first cell and K is equal to the ratio of two successive

steps. The total number of points J was calculated by the following formula:

ln [1 + ln( K − 1)( R / h1 ) ]
J = 4.24
ln K

Where: k = ratio of two successive steps, R = pipe radius, h1 = length of the first

interval. The implementation of this grid generation technique was based in knowing the

length of the first interval, the pipe radius and the number of grid points (N).

The constant expansion rate was computed using Newton’s iteration method, which

54
starts with an initial guess; the convergence is quadratic. Then the grid growth in the

radial direction until the grid points is equal to the pipe radius. In order to compare the

model results, it is important to have a similar grid; therefore this grid was similar to the

grid used by Silva-Araya and Chaudhry (1997).

4.3 Turbulence modeling 

The turbulent boundary layer can be considered as composed of an inner and outer

region. The inner region characteristics are strongly dependent on the conditions near the

wall and are affected by the pressure gradient and the shear stress distribution. This

region is subdivided into a very thin region near the wall, called the viscous sublayer,

where, where the flow is dominated by viscous effects. Farther from the wall the

turbulent stresses become more important. The transition between the viscous sublayer

and the fully turbulent region is called the buffer layer. Beyond this transition the

turbulent stresses dominate the flow and the average velocity profile can be estimated

using a logarithmic equation. In pipe flows the inner region includes most of the pipe

cross section. Figure 4.4 shows the regions of a turbulent boundary layer.

55
25
Viscous Buffer Logarithmic
Sublayer Region Region
20

15 Outer
Region
+
u

10

0
0.1 1 10 + 100 1000 10000
Y

Figure 4-4. Regions of a Boundary Layer

As a general expression for the Reynolds stresses, Prandtl proposed the mixing length

theory (1925). According to this theory, the Reynolds shear stress is calculated as:

∂u ∂u
− ρ (u ' v ' ) = ρ l 2 4.25
∂r ∂r

Where: l is the mixing length. The “bar” symbol on the velocity was dropped in the

previous equation.

The Reynolds stresses can also be modeled by using the eddy viscosity concept

56
introduced by Boussinesq (1877). The basic assumption is that the turbulent stresses are

proportional to the velocity gradient. The same assumption is made in the mixing length

model. The coefficient of proportionality, ε, was called “eddy viscosity” and is defined as

⎛ ∂u ⎞
− ρ ( u ' v ' ) = ρε ⎜ ⎟ 4.26
⎝ ∂r ⎠

The close relation between the mixing length and the eddy viscosity concepts allows

converting mixing length into eddy viscosity in many cases. A mixing-length model was

used for the inner region of the boundary layer. An eddy viscosity model was selected for

the outer region. The mixing-length values are converted into eddy viscosity to make

both models compatible.

4.3.1 Turbulence Model for the Inner Region

The following mixing length model, proposed by Granville (1989), and normalized

by using the wall variables, is used for the inner region of the boundary layer.

l + = ky +
τ +
(1 − e − y + / λ1+
) 4.27

Where l + = uτ l / v , y + = uτ y / v , τ + = τ / τ w , λ1+ = mixing length damping parameter

57
(for flows with zero pressure gradient), uτ = friction velocity given by uτ = τ w / ρ ,

τ w = wall shear stress, l = mixing length, v = kinematics viscosity, k von Karman’s

constant and y = radial distance measured form the wall.

Granville (1990) derived the relation between the mixing length model (Eq. 4.27) and

the eddy viscosity as

ε+ =
1⎛
( )
+ 2
⎜ 1 + 2l τ
2⎝
+
− 1 ⎞⎟ 4.28

Where ε + = ε / v is the ratio of the eddy viscosity and the kinematics viscosity.

4.3.2 Outer Region Model and Blending Relation

For the outer region the eddy viscosity is computed using a model proposed by Kita

et al. (1980). This is a constant eddy viscosity values across the outer region given by

ε out
+
= CcR + 4.29

Where Cc is slightly dependent on the Reynolds number.

58
For the range 1 X 104 < Re < 2 X 106 the value of Cc is given by (Silva Araya and

Chaudhry, 1993).

C c = 0 . 4095 − 0 . 1390 log (Re ) + 0 . 0137 log (Re )


2
4.30

If Re < 1 X 104 then Cc = 0.07, if Re > 2 X 106 then Cc = 0.075.

According to the criterion given by Kita et al (1980). the outer region starts when the

following condition if fulfilled

0 . 154 Re + ⎛ Cc ⎞
y +
= ⎜1 + 1− ⎟ 4.31
lim
k ⎜ 0 . 077 ⎟
⎝ ⎠

Where Re+ = u+R / v and R is the pipe radius.

A smoother transition between the inner and outer eddy viscosities can be achieved

by using a blending relation. This merging is accomplished by an exponential function

given by:

e b (y )
+ +
ε + = ε out
+ − y out
4.32

59
Where the exponent b is computed as

b=
Ln ε out
+
( / ε c+ )
+
(
y out − y c+ ) 4.33

The value of ε c+ is linearly interpolated between the beginning of the falling limb of

the eddy viscosity distribution and ε out . y c+ is the value of y+ corresponding to ε c+ . Also

+
y out +
is linearly interpolated between y lim and R+ = uτR/v. The corresponding value of ε

is ε out
+
. Figure 4.5 shows a typical eddy viscosity distribution with the inner, transition and

outer regions.

Inner Region Transition Outer


Region
+
ε

+
Y

Figure 4-5. Eddy Viscosity Distribution.


60
4.4 Initial velocity profile 

For laminar flow the velocity profile is computed using the following expression

(White, 1991)

1 ⎛ − ∂p ⎞
u = ⎜
4 μ ⎝ ∂x ⎠
⎟ R ( 2
− r2 ) 4.34

Where R = pipe internal radius, ∂p / ∂x = pressure gradient, µ = dynamic viscosity.

No eddy viscosity computation is required.

For turbulent flow, the initial mean velocity distribution can be written in the form:

u+ = f (y+) 4.35

Where f(y+) is the profile across the pipe, including the sublayer, buffer, logarithmic

and outer regions.

If the shear stress, τ+, and the eddy viscosity distribution, ε+, are known, the velocity

profile can be obtained by the following equation (Silva Araya and Chaudhry, 1993).

y+ τ +
u+ = ∫
+
dy 4.36
0 1+ ε +

61
Where u+ = 0 at y+ = 0. For a fully develop steady-state flow, the shear stress τ+,

varies linearly across the pipe section from 0 at the wall to 1 at the pipe centerline.

The gradients of the velocity profile are computed by using a forward-time, central-

spaced explicit scheme modified for a geometrically expanded grid. The partial

derivatives can be approximated as (Hoffman, 1989)

∂u u
≈ i +1
( )
+ α 2 − 1 u i − α 2 u i −1
4.37
∂r α (α + 1 )Δ r −

Where α = Δri −1 / Δri is the ratio of two successive grid spaces and Δr − = ri −1 − ri .

In the previous expressions the subscript i refer to the i-th position inside the pipe

cross section. A second-order backward approximation is used for the gradient at the wall

∂u α 2 u N − 2 − (1 + α )2 u N − 1
≈ 4.38
∂r w α (1 + α ) (r N − 1 − r N − 2 )

Where N is the number of grid lines (the grid line at the wall is number N).

Prior to the initiation of the transient flow, the dissipation integral is computed

substituting the derivatives of the initial flow profile into Equation 2.8. The integrated

62
value is compared with the initial steady-state value given by Equation 2.10.

4.5 Computation of the pressure gradient 

The computation of the pressure gradient needed in the Equation 3.14 is time

dependent and must be estimated from the local conditions. Given an approximation of

the velocity profile, for example the velocity profile at the previous time step, the

pressure gradient can be estimated from the momentum equation, expressed in a compact

form (Silva Araya and Chaudhry, 1997) as:

r ⎛ ∂p ⎞ ∂u ∂ ⎛ ∂u ⎞
⎜ ⎟ = r − ⎜ rν ⎟ 4.39
ρ ⎝ ∂x ⎠
t
∂t ∂r ⎝ ∂r ⎠

Where: ν t = ν + ε , ν = kinematics viscosity, ε = eddy viscosity. Multiplying

Equation 3.50 by 2π and integrating with respect to r and expressing it in a compact

form yields:

1 ∂p ΔQ 2ν ⎛ ∂u ⎞
= − t
⎜ ⎟ 4.40
ρ ∂x Δ tA R ⎝ ∂r ⎠ r=R

63
where ΔQ / Δt can be approximated by the change in discharge from the previous

time step. Adjustments in the value of the pressure gradient may be required if the flow is

reduced drastically; but Equation 3.51 is a good initial approximation (Silva Araya and

Chaudhry, 1997).

4.6 Shear stress distribution 

Equation 2.14 can also be expressed in terms of the shear stress as:

∂u ∂p 1 ∂ (r τ )
ρ = − + 4.41
∂t ∂x r ∂r

Where τ is the shear stress at a distance r from the pipe centerline.

Multiplying Equation 4.32 by r and integrating with respect to r, we obtain:

r ∂u r 2 ∂p
ρ ∫
0 ∂t
rdr = −
2 ∂x
+ rτ 4.42

Dividing by the shear stress at the wall, the following non-dimensional for results:

64
ρ r ∂u r ∂p
τ ∫
+
= rdr + 4.43
rτ w 0 ∂t 2τ w ∂ x

The time derivative is approximated as:

∂u u − ut
≈ t+Δt 4.44
∂t Δ tMOC

Where ΔtMOC is the time step chosen to solve the characteristic equations.

For steady state flow this expression reduces to:

R ∂p
τ w = 4.45
2 ∂x

Equation 4.34 is used to update the shear stress distribution after every time step.

4.7 Computation of the velocity profile 

This research adopted the procedure to compute the axisymmetric momentum

equation for the velocity profile across the unequally spaced grid, developed by Silva

Araya and Chaudhry, (1997). This procedure is reference as the McCormack scheme

predictor-corrector where is second order accurate in space and time scheme (Anderson

et al., 1984). In the predictor a step forward finite-differences approach is used for the

65
spatial derivatives, and a backward finite differences is used in the corrector step. This

sequence was alternated during the computations from one time step to the next; as

reported by these researchers. Therefore:

4.7.1 Predictor Step

The approximations for the partial derivatives in this step are:

∂u u * − u in
= i 4.46
∂t Δt

∂u un − un
= i +1 + i 4.47
∂r Δr

∂ 2u 2 ( u in+ 1 − (α + 1) u in + α u in− 1 )
= 4.48
∂r 2 α (α + 1)( Δ r − ) 2

Where: Δr + = ri +1 − ri , Δr − = ri − ri −1 and α = Δri +1 / Δri . The superscript n refers to

the time level, the subscript i refers to the grid point, and the asterisk indicates a predicted

value.

Thus, the momentum equation is solved for u i* (Silva Araya and Chaudhry, 1997) as

n +1
⎛ 1 ∂p ⎞ ⎛ε d ε ⎞ u in+ 1 − u in
u = u + ⎜⎜
* n
⎟⎟ Δt + ⎜ + ⎟ Δt
⎝ ρ ∂x ⎠
i i
⎝ r dr ⎠ Δr+
4.49
u in+ 1 − ( α + 1 ) u in + α u i − 1
+ 2εΔ t
α ( α + 1 )( Δ r − ) 2
66
4.7.2 Corrector Step

The predicted values are used in a backward finite-difference approximation for the

first spatial derivative and are also used for the second spatial derivative. The

approximations are

∂u u * * − u in
= i 4.50
∂t Δt

∂u u * − u i*− 1
= i 4.51
∂r Δr −

∂u 2 2 ( u i*+ 1 − (α + 1 ) u i* + α u i*− 1 )
= 4.52
∂r 2 α (α + 1 )( Δ r − ) 2

Where (**) indicates a corrected value. Therefore, the corrected velocity is:

n +1
⎛ 1 ∂p ⎞ ⎛ ε d ε ⎞ u i − u i −1
* *
u = u + ⎜⎜
** n
⎟⎟ Δ t + ⎜ + ⎟ Δt
⎝ ρ ∂x ⎠
i i
⎝r dr ⎠ Δ r +
4.53
u * − (α + 1) u i* + α u i*−1
+ 2 ε Δ t i +1
α (α + 1)( Δ r − ) 2

Finally, the velocity for the next time step is given by:

u i** − u i*
u in +1 = 4.54
2

The derivative of the eddy viscosity is obtained (Silva Araya, 1993) as:

67
dε ε + (α 2 + 1)ε i − α 2 ε i −1
= i +1 4.55
dr α (α + 1)( ri −1 − ri )

The velocity distribution is computed at every section of the pipe. At the end of the,

method of characteristic (MOC) and for every time step the velocity profile is integrated

across the pipe section to compute the flow discharge. If the integrated discharge differs

from the one predicted by the MOC, the pressure gradient is slightly adjusted to satisfy

the continuity equation. The adjustment is done until both discharges differ by less than

5%.

68
5 VERIFICATION 

This chapter presents the results obtained by using the unsteady friction model for

piping systems. The generalized algorithm was analyzed for three cases: single, series

and branching piping systems. The computed pressures are compared with the

experimental data obtained for Silva Araya (1993) for a single piping system case. For a

series and a branching piping system the computed results obtained by using unsteady

friction are compared with the data obtained by using steady friction model.

5.1 Single Piping System 

The experimental data obtained by Silva Araya (1993) was used for the verification

of the generalized algorithm in a single piping system. The experimental apparatus used

is shown in Figure 5.1. The system was built at the Albrook Hydraulics Laboratory at

Washington State University.

The arrangement consists of a constant-head tank open to the atmosphere connected

by a horizontal pipe to a motorized butterfly valve located 32 m downstream of the tank.

A pump supplies water from the sump to the tank. At the valve, the water discharges into

another open tank and returns to the pump. Four pressure transducers were used to record

the pressure fluctuations for the valve closure in each section. These were located at X =

69
L / 4, X = L / 2, X = 3L / 4 and X = L from the reservoir.

1 2

1 6

Figure 5-1. Schematic of Experimental Setup (Silva Araya, 1993)

The pipe material is commercial steel with an internal diameter of 0.101 m and a wall

thickness of 0.00635 m. The initial steady-state discharge was 0.0165 m3/s. This

corresponds to an average velocity of 20.02 m/s and an initial Reynolds number of 2.06

X 105. The relative roughness for this simulation was 0.001. Other parameters are listed

in Table 5.1. Table 5.2 shows the different types of nodes present in this system.

The transient conditions for this case were produced by a gradual closure of the

downstream valve. The valve closed completely in 1.085 sec. The curve of the effective

valve opening versus time curve used in the simulation is given in Figure 5.2

70
Parameter Value
Initial Discharge 0.0165 m3/s
Upstream Tank Head 2.65 m
Entrance Loss Coefficient 1.44
Friction Factor 0.0223
Initial Valve Position τ0 = 0.62
Wave Speed 1125 m/s
Density 999.1 Kg/m3
Dynamic Viscosity 1.06 X 10-3 m2/s

Table 5-1. Parameters for Single Piping System.

Node Number Node Type


1 (1) Upstream Reservoir
2 (6) Downstream Valve

Table 5-2. Node type for Single Piping System.

Effective Valve Opening

0.9

0.8
Effective Opening, TAU

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0
0 0.2 0.4 0.6 0.8 1 1.2
Time (s)

Figure 5-2. Characteristic Curve for Valve in Single Piping System.


71
Figures 5.3 (a) to 5.3 (d) compare the measured pressures with the computed results

obtained by using steady friction. The maximum pressure is predicted accurately without

the unsteady friction model. The oscillations damp much more rapidly than the predicted

values. The shift in the frequency of the oscillations is due to the reduction of the wave

speed caused by the low pressures after the valve closure.

72
H Vs T (Valve)
Experimental Data
Steady Friction
60

50

40
Pressure Head (m)

30

20

10

-
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
(10)

(20)
Time (s)

(a) At the Valve


H Vs T (x = 3L/4)
Experimental Data
Steady Friction
60

50

40
Pressure Head (m)

30

20

10

-
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
(10)

(20)
Time (s)

(b) At x = 3L / 4
Figure 5-3. Pressure Head Histories for a Single Piping System Using Steady
Friction.

73
H Vs T (x = L/2)
Experimental Data
Steady Friction
60

50

40
Pressure Head (m)

30

20

10

-
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
(10)

(20)
Time (s)

(c) At x = L / 2
H Vs T (x = L/4)
Experimental Data
Steady Friction
60

50

40
Pressure Head (m)

30

20

10

-
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

(10)
Time (s)

(d) At x = L / 4
Figure 5-3. Pressure Head Histories for a Single Piping System Using Steady
Friction (Cont.)

74
Figures 5.4 (a) to 5.4 (d) compare the measured pressure heads with the pressure

heads obtained by the unsteady friction model. The maximum and the minimum

pressures as well as the damping rate are predicted accurately at the four locations along

the pipe.

The effect of the passage of a strong pressure wave created during a transient flow

condition in the velocity profiles is observed in Figure. 5.5.

Figure 5.5 (a) correspond to the initial steady-state velocity profile. Figure 5.5 (b)

through 5.5 (d) present several instantaneous velocities profiles. Figure 5.5 (e) shows that

during transient flow, the average velocity across the section could be almost zero;

however, local velocities could be significant. Figure 5.8 (f) presents a profile during a

complete flow reversal (negative velocities).

The energy dissipation factor as a function of time for different points of the pipe is

shown in figure 5.6.

75
H Vs T (Valve) Experimental Data
Unsteady Friction
60

50

40
Pressure Head (m)

30

20

10

-
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

(10)

(20)

Time (s)

(a) At the Valve


H Vs T (x = 3L/4)
Experimental Data
Unsteady Friction
60

50

40
Pressure Head (m)

30

20

10

-
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
(10)

(20)
Time (s)

(b) At x = 3L / 4
Figure 5-4. Pressure Head Histories for a Single Piping System Using
Unsteady Friction.

76
H Vs T (x = L/2)
Experimental Data
Unsteady Friction
60

50

40
Pressure Head (m)

30

20

10

-
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

(10)
Time (s)

(c) At the x = L / 2
H Vs T (x = L/4)
Experimental Data
Unsteady Friction
60

50

40
Pressure Head (m)

30

20

10

-
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2

(10)
Time (s)

(d) At x = L / 4
Figure 5-4. Pressure Head Histories for a Single Piping System Using
Unsteady Friction (Cont.)

77
Velocity Profile (t = 0s)
0.06

0.05
Distance from Centerline (m)

0.04

0.03

0.02

0.01

0
0 0.5 1 1.5 2 2.5
Velocity (m/s)

(a) At t = 0 s

Velocity Profile (t = 1s)


0.06

0.05
Distance from Centerline (m)

0.04

0.03

0.02

0.01

0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6
Velocity (m/s)

(b) At t = 1 s
Figure 5-5. Velocity Profile in transient Flow at the Middle of the Pipe

78
Velocity Profile (t = 1.5s)
0.06

0.05
Distance from Centerline (m)

0.04

0.03

0.02

0.01

0
-0.04 -0.02 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14
Velocity (m/s)

(c) At t = 1.5 s

Velocity Profile (t = 1.56)


0.06

0.05
Distance from Centerline (m)

0.04

0.03

0.02

0.01

0
-0.04 -0.02 0 0.02 0.04 0.06 0.08
Velocity (m/s)

(d) At t = 1.56 s
Figure 5-5. Velocity Profile in transient Flow at the Middle of the Pipe (Cont.)

79
Velocity Profile (t = 1.625s)
0.06

0.05
Distance from Centerline (m)

0.04

0.03

0.02

0.01

0
-0.05 -0.04 -0.03 -0.02 -0.01 0 0.01 0.02 0.03 0.04 0.05 0.06
Velocity (m/s)

(e) At t = 1.625 s

Velocity Profile (t = 2s)


0.06

0.05
Distance from Centerline (m)

0.04

0.03

0.02

0.01

0
-0.08 -0.07 -0.06 -0.05 -0.04 -0.03 -0.02 -0.01 0
Velocity (m/s)

(f) At t = 1.75 s
Figure 5-5. Velocity Profile in transient Flow at the Middle of the Pipe (Cont.)
80
Energy Dissipation Factor Vs Time (x = L / 2)

9000

8000
Energy Dissipation Factor (ef)

7000

6000

5000

4000

3000

2000

1000

0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (s)

(a) At x = L / 2

Energy Dissipation Factor Vs Time (x = L / 4)

4500

4000
Energy Dissipation Factor (ef)

3500

3000

2500

2000

1500

1000

500

0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (s)

(a) At x = L / 4

Figure 5-6. Energy Dissipation Factor in Transient Turbulent Flow

81
5.2 Series Piping System 

A case study presented by Chaudhry M. Hanif, (1987) in his book “Applied

Hydraulics Transients” was used to apply the generalized algorithm in a series piping

system

Transient conditions in the piping system shown in Figure 5.7 were determined using

steady and unsteady friction. The arrangement consists of a constant-head tank open to

the atmosphere connected by two horizontal pipes located in series to a valve located

1000 m downstream of the tank. The conduits at these systems have different diameters,

wall material, and friction factors. Table 5.3 shows the different types of nodes present in

this system.

Reservoir
1 2 Valve
Qo

3
2
1
6
3
1

Figure 5-7. Schematic of Series Piping System


82
Node Number Node Type
1 (1) Upstream Reservoir
2 (3) Series Junction
3 (6) Downstream Valve

Table 5-3. Node type for Series Piping System.

The initial steady-state discharge was 1 m3/s. This corresponds to an average velocity

of 2.26 m/s and an initial Reynolds number of 1.69 X 106 for pipe number 1 and an

average velocity of 3.53 m/s and an initial Reynolds number of 2.12 X 106 for pipe

number 2. Other parameters are listed in Table 5.4 and characteristics of the pipes are

listed in Table 5.5.

Parameter Value
Initial Discharge 1 m3/s
Upstream Tank Head 67.7 m
Number of Pipes 2
Valve Operation Time 6s
Initial Valve Position τ0 = 1
Final Valve Position τf = 0
Density 1000 Kg/m3
Dynamic Viscosity 1.06 X 10-3 m2/s

Table 5-4. Parameters for Series Piping System.

Parameter Pipe Number 1 Pipe Number 2


Initial Discharge 1 m3/s 1 m3/s
Diameter 0.75 m 0.6 m
Length 550 m 450 m
Wave speed 1100 m/s 900 m/s
Friction Factor 0.010 0.012

Table 5-5. Characteristics of the Pipes for Series Piping System.

83
Transient conditions were caused by closing the valve according to the τ – t curve

shown in Figure 5.8. Seven points on this curve were stored in the computer, and the τ

values at the intermediate times were parabolically interpolated.

Effective Valve Opening

0.9

0.8
Effective Opening, TAU

0.7

0.6

0.5

0.4

0.3

0.2

0.1

0
0 1 2 3 4 5 6 7
Time (s)

Figure 5-8. Characteristic Curve for Valve in Series Piping System.

Figure 5.9 shows the geometrically expanding grid spacing used for each pipe. Small

grid steps were used near the wall to assure a good resolution of the velocity gradient.

Figure 5.10 shows the initial eddy viscosity distribution in each pipe, and Figure 5.11

shows the initial velocity profiles.

84
DISTANCE FROM CENTER LINE

0.4 Wall
0.35
Wall
0.3

0.25
ETA

0.2

0.15

0.1
PIPE1
0.05 PIPE2

0
0 10 20 30 40 50 60 70 80
GRID LINE NUMBER

Figure 5-9. Geometrically Expanding Grid Spacing for Series Piping System.
Eddy Viscosity Distribution

4500

4000 PIPE1
PIPE2
3500

3000

2500
ε+

2000

1500

1000

500

0
0 5000 10000 15000 20000 25000 30000 35000 40000
Y+

Figure 5-10. Eddy Viscosity distribution for Series Piping System.


85
Initial Velocity Profiles
0.4
PIPE1
0.35 PIPE2
Distance from Centerline (m)

0.3

0.25

0.2

0.15

0.1

0.05

0
0 0.5 1 1.5 2 2.5 3 3.5 4
Velocity (m/s)

Figure 5-11. Initial Velocity Profile for Series Piping System.

Figures 5.12 (a) to 5.12 (d) compare the computed results obtained by using steady

and unsteady friction. The maximum pressure is predicted similarly by both models.

However the oscillations damp much more rapidly using unsteady friction than the results

obtained using steady friction.

86
H Vs T (Valve)
Steady Friction
Unsteady Friction
180

160

140
Pressure Head (m)

120

100

80

60

40

20

0
0 5 10 15 20 25 30
Time (s)

(a) At the Valve.

H Vs T (Middle Pipe 2) Steady Friction


Unsteady Friction
180

160

140

120
Pressure Head (m)

100

80

60

40

20

0
0 5 10 15 20 25 30
Time (s)

(b) At the middle of Pipe Number 2.


Figure 5-12. Pressure Head Histories for a Series Piping System Using Steady
and Unsteady Friction.
87
H Vs T (Junction)
Steady Friction
Unsteady Friction
180

160

140
Pressure Head (m)

120

100

80

60

40

20

0
0 5 10 15 20 25 30
Time (s)

(c) At the Junction.

H Vs T (Middle Pipe 1)
Steady Friction
Unsteady Friction
180

160

140
Pressure Head (m)

120

100

80

60

40

20

0
0 5 10 15 20 25 30
Time (s)

(d) At the Middle of Pipe Number 1.


Figure 5-12. Pressure Head Histories for a Series Piping System Using Steady
and Unsteady Friction (Cont.).
88
5.3 Branching Piping System 

The researcher modified the previous system to convert it into a branching system.

The modification, shown in Figure 5.13, consists of adding a new pipe exactly at the

junction of the previous case study, and thus to convert a series piping system in a

branching piping system. The boundary condition downstream of the new pipe is a node

type 2 (downstream reservoir) as it is indicated in Table 3.1. The other boundary

conditions continue is the same of the previous case.

Reservoir

3
Reservoir
1 4

2
2
Valve
2
1
3
4
1
6

Figure 5-13. Schematic of Branching Piping System

Table 5.6 shows the different types of nodes presents in this system.

89
Node Number Node Type
1 (1) Upstream Reservoir
2 (4) Branching Junction
3 (6) Downstream Valve
4 (2) Downstream Reservoir

Table 5-6. Node type for Branching Piping System.

The diameter, length, wave speed and friction factor for pipes number 1 and 2 are the

same listed in Table 5.5. Characteristics for pipe number 3 are listed in Table 5.7.

Parameter Pipe Number 3


Diameter 0.6 m
Length 1100 m
Wave speed 1100 m/s
Friction Factor 0.012

Table 5-7. Characteristics of the Pipes for Branching Piping System.

Transient conditions were caused by closing the valve at the end of pipe number 2

according to the τ – t curve shown in Figure 5.8.

Figure 5.14 shows the initial eddy viscosity distribution in each pipe, and Figure 5.15

shows the initial velocity profile. Figures 5.16 (a) to 5.16 (d) compare the computed

results obtained by using steady and unsteady friction.

90
Eddy Viscosity Distribution

4500
PIPE1
4000 PIPE2
PIPE3
3500

3000

2500
ε+

2000

1500

1000

500

0
0 5000 10000 15000 20000 25000 30000 35000 40000
Y+

Figure 5-14. Eddy Viscosity distribution for Branching Piping System.

Initial Velocity Profile


0.4
PIPE1
PIPE2
0.35
PIPE3
Distance from Centerline (m)

0.3

0.25

0.2

0.15

0.1

0.05

0
0 0.5 1 1.5 2 2.5 3 3.5
Velocity (m/s)

Figure 5-15. Initial Velocity Profile for Branching Piping System.

91
H Vs T (Valve) Steady Friction
Unsteady Friction
110

100

90

80
Pressure Head (m)

70

60

50

40

30

20

10

0
0 5 10 15 20 25 30
Time (s)

(a) At the Valve

H Vs T (Junction) Steady Friction


Unsteady Friction
110
100
90
80
Pressure Head (m)

70
60
50
40
30
20
10
0
0 5 10 15 20 25 30
Time (s)

(a) At the Junction


Figure 5-16. Pressure Head Histories for a Branching Piping System Using
Steady and Unsteady Friction.

92
H Vs T (Middle Pipe No 1) Steady Friction
Unsteady Friction
110

100

90

80
Head Pressure (m)

70

60

50

40

30

20

10

0
0 5 10 15 20 25 30
Time (s)

(c) At the Middle of Pipe Number 1

H Vs T (Middle Pipe No 2) Steady Friction


Unsteady Friction
110

100

90

80
Head Pressure(m)

70

60

50

40

30

20

10

0
0 5 10 15 20 25 30
Time (s)

(c) At the Middle of Pipe Number 2


Figure 5-16. Pressure Head Histories for a Branching Piping System Using
Steady and Unsteady Friction (Cont.).
93
6 CONCLUSIONS 

1. A computer algorithm to extend Silva and Chaudhry unsteady friction model for

water hammer oscillations in piping systems to series and branching pipe systems

was developed. The conduits may have different diameters, wall thickness, wall

material, and/or friction factors.

2. Boundary conditions for upstream and downstream reservoir, series and

branching junction, dead end, downstream and intermediate valve, and orifice at

lower end are included.

3. The generalized water hammer algorithm was developed using Visual Basic for

Applications in Excel, creating a “user friendly” windows interface. The program

is an excellent tool to design and analyze fluid transients in liquid systems and no

compilers or interpreters are required because VBA is part of the Excel and MS

Office suite.

4. Commercial programs for transient analysis generally are very costly. This

investigation developed an economic form to analyze this phenomenon, since no

installation of additional programs, is necessary as long as you have installed

Microsoft Excel in your computer.

94
REFERENCES

[1] Arangoitia Valdivia, Víctor, (2001). “Disipación de Energía en Flujo Transitorio


en Conductos Cerrados”, M. Sc. Dissertation, University of Puerto Rico,
Mayagüez Campus.

[2] Cebeci, T., Smith, A.M. 1974. Analysis of Turbulent Boundary Layers,
Academic Press, New york.

[3] Chaudhry M. Hanif, (1987). “Applied Hydraulics Transients”, Vann Nostrand


Reinhold Company, New York.

[4] Eichinger, P. and Lein G., (1992). “The Influence Of Friction Unsteady Pipe
Flow”, Unsteady Flow and transients, Betless and Watts. Balkema, Rotterdam.

[5] Hoffman, K.A. 1989. Computational Fluid Dynamics for Engineers, Texas:
Engineering Education System.

[6] Granville, P.S. 1990. A Near-Wall Eddy Viscosity Formula for Turbulent
Boundary Layers in Pressure Gradients Suitable for Momentum, Heat or Mass
Transfer, Journal of Fluids Engineering ASME. 112: 240 – 243.

[7] Granville, P.S. 1989. A modified Van Driest Formula for the Mixing Length of
Turbulent Boundary Layers in Pressure Gradients, Journal of Fluids Engineering
ASME. 111: 94 – 97.

[8] Huddleston, D. Alarcon, V. and Chen, W. (2004). “Water Distribution Network


Analysis Using Excel”. J. Hydr. Eng., Vol. 130, (10), 1033 – 1035.

95
[9] Larock Bruce E., Jeppson, Roland W. and Watters, Gary S. (2000). “Hydraulics
of Pipelines Systems”, CRC, Boca Raton, Florida, USA.

[10] Libby, Paul A. (1996). “Introduction to Turbulence”. Washington, D. C. Taylor


& Francis.

[11] Ohmi, M. Iguchi, M. and Hinami H., (1980). “Flow Pattern and Frictional
Losses in Pulsating Pipe Flow”. Part 1. Effect of Pulsating Frequency on the
Turbulent Flow Pattern, Bulletin of the JSME 23, No. 186, 2013 – 2020.

[12] Peralta Cooper, Eddy, (2001). “k-ω Two-equation turbulence model in the
Computation of the Energy Dissipation in Transient Flow”, M. Sc. Dissertation,
University of Puerto Rico, Mayagüez Campus.

[13] Pezzinga, G. (1999). “Quasi-2D Model for Unsteady Flow in Pipe Networks.” J.
Hydraul. Div., Am. Soc. Civ. Eng., Vol. 125 (7), 676 - 685.

[14] Potter, Merle C. and Wiggert, David C. (1997). “Mechanics of Fluids”, Second
Edition, Prentive Hall, Inc. USA.

[15] Ramaprian, B.R. and Tu, S.W. (1979). “Experiments on Transitional Oscillatory
Pipe Flow”, Report No. 221, Iowa Institute of Hydraulic Research, August 1979,
115 p.

[16] Roberson, Jhon A. and Crowe Clayton T. (1997). “Engineering Fluid


Mechanics”, Sixth Edition, John Wiley & Sons. Inc. USA.

96
[17] Schetz, Joseph A. (1993). “Boundary Layer Analysis”, Prentice Hall,
Englewood Cliffs, New Jersey, USA.

[18] Shames, Irving H. (1992). “Mechanics of Fluids”, 3rd ed., New York, Mc Graw
Hill Co.

[19] Silva-Araya, W. (1993). “Energy Dissipation in Transient Flow”, Ph.D.


Dissertation, Washington State University, Washington.

[20] Silva-Araya, Walter, and Chaudhry, M. Hanif, (1997). “Computation of Energy


Dissipation in Transient Flow”, J. Hydr. Eng., Vol. 123, (2), 108 - 115.

[21] Silva-Araya, Walter, and Chaudhry, M. Hanif, (2001). “Unsteady friction in


Rough Pipes”, J. Hydr. Eng., Vol. 127, (7), 607 - 618.

[22] Streeter, Wylie, Bedford (1998). “Fluid Mechanics”. Ninth edition, USA, WCB/
Mc Graw Hill Co.

[23] Schlichting, H. (1979). “Boundary Layer Theory”, McGraw-Hill, New York.

[24] Schohl, G. A. (1993). “Improved approximation method for simulating


frequency-dependent friction in transient laminar flow.” J. Fluids Eng., Vol.
115, 420 – 424.

[25] Swaffield J. A. and Boldy A. P. (1993). “Pressure Surge in Pipe and Duct
Systems”, Avebury Technical, England.

97
[26] Trikha, A. K. (1975). “An efficient method for simulating frequency-dependent
friction in liquid flow” J. Fluids Eng., Vol 97(1), 97 – 105.

[27] Vardy, A. E., and Brown, J. M. B. (2004). “Efficient Approximation of


Unsteady Friction Weighting Functions”, J. Hydr. Eng., November 2004, 1097 –
1107.

[28] Vardy, A.E. and Hwang, K. (1991). “A Characteristics Model of Transient


Friction”, Journal of Hydraulics Research 29, No. 5: 669-684.

[29] White, F.M. (1991). “Viscous Fluid Flow”, 2nd ed., New York, Mc Graw Hill
Co.

[30] Wood, Don J., Lingireddy, Srinivasa and Boulos Paul F. (2005). “Pressure
Wave Analysis of Transient Flow in Pipe Distribution Systems”, MWH Soft,
Pasadena California, USA.

[31] Zhao, M. And Ghidaoui. M. (2004). “Godunov-Type Solutions for Water


Hammer Flows”. J. Hydr. Eng., Vol. 130, (4), 341 – 348.

98
 APPENDIX  A.  VALUES  OF  T  VS.    TAU  FOR  DIFFERENT 
TYPES OF VALVES 

APPENDIX A1. BUTTERFLY VALVES


t/tc Opening t/tc Close θ° TAU
1.00 0.00 0 1.00
0.94 0.06 5 0.95
0.89 0.11 10 0.87
0.83 0.17 15 0.75
0.78 0.22 20 0.62
0.72 0.28 25 0.49
0.67 0.32 30 0.39
0.61 0.39 35 0.30
0.56 0.44 40 0.23
0.50 0.50 45 0.17
0.44 0.56 50 0.125
0.39 0.61 55 0.1
0.32 0.67 60 0.07
0.28 0.72 65 0.055
0.22 0.78 70 0.036
0.17 0.83 75 0.021
0.11 0.89 80 0.01
0.06 0.94 85 0.005
0.00 1.00 90 0.000

Table B- 1. t/tc Vs. TAU values for Butterfly valves.

99
BUTTERFLY VALVES

0.9

0.8

0.7

0.6
TAU

0.5

0.4

0.3

0.2

0.1

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
t/tc

(a)

(b)

Figure B- 1. (a) t/tc Vs. TAU for Butterfly valves, (b) valve scheme.
100
APPENDIX A2. CIRCULAR VALVES
t/tc Close t/tc Opening (Z/D)·100 TAU
1.00 0.00 0 0.00
0.95 0.05 5 0.05
0.90 0.10 10 0.10
0.85 0.15 15 0.15
0.80 0.20 20 0.20
0.75 0.25 25 0.25
0.70 0.30 30 0.30
0.65 0.35 35 0.35
0.60 0.40 40 0.40
0.55 0.45 45 0.45
0.50 0.50 50 0.50
0.45 0.55 55 0.55
0.40 0.60 60 0.60
0.35 0.65 65 0.65
0.30 0.70 70 0.70
0.25 0.75 75 0.75
0.20 0.80 80 0.80
0.15 0.85 85 0.85
0.10 0.90 90 0.90
0.05 0.95 05 0.95
0.00 1.00 100 1.00

Table B- 2. t/tc Vs. TAU values for Circular valves.

101
Circular Valves

0.9

0.8

0.7

0.6
TAU

0.5

0.4

0.3

0.2

0.1

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
t/tc

(a)

(b)
Figure B- 2. (a) t/tc Vs. TAU Circular valves, (b) valve scheme.

102
APPENDIX A3. BIPLANES VALVES

t/tc Close t/tc Opening θ° TAU


1.00 0.00 0 1.00
0.94 0.06 5 0.68
0.89 0.11 10 0.51
0.83 0.17 15 0.37
0.78 0.22 20 0.29
0.72 0.28 25 0.22
0.67 0.32 30 0.19
0.61 0.39 35 0.15
0.56 0.44 40 0.125
0.50 0.50 45 0.098
0.44 0.56 50 0.078
0.39 0.61 55 0.062
0.32 0.67 60 0.048
0.28 0.72 65 0.038
0.22 0.78 70 0.029
0.17 0.83 75 0.022
0.11 0.89 80 0.016
0.06 0.94 85 0.011
0.00 1.00 90 0.000

Table B- 3. t/tc Vs. TAU values for Biplane valves.

103
Biplane Valves

0.9

0.8

0.7

0.6
TAU

0.5

0.4

0.3

0.2

0.1

0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
t/tc

(b)

Figure B- 3. (a) t/tc Vs. TAU for Biplane valves, (b) valve scheme.

104

Potrebbero piacerti anche