Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1966
Recommended Citation
Weng, Lih Hsun, "Numerical solution of water hammer analysis including friction losses" (1966). Masters Theses. 2946.
https://scholarsmine.mst.edu/masters_theses/2946
This Thesis - Open Access is brought to you for free and open access by Scholars' Mine. It has been accepted for inclusion in Masters Theses by an
authorized administrator of Scholars' Mine. This work is protected by U. S. Copyright Law. Unauthorized use including reproduction for redistribution
requires the permission of the copyright holder. For more information, please contact scholarsmine@mst.edu.
NUMERICAL SOLUTION OF WAT~ HAMMER
BY
LIH HSUN WENG - t1 ~t,.
A
THESIS
submitted to the faculty ot
THE UNIVERSITY OF MISSOURI AT ROLLA
in partial fulfillment of the requirements tor the
Degree of
MASTER OF SCIENCE IB CIVIL ENGINEERING
Rolla, Mia JOur!
1966
Approved by
.; /, -
tr~ \> (ktaaa (advisor) / ' . . ·>-z._ ..
rfCaL¥ ~
1237 7
ii
ABSTRACT
ACKNOWLEDGMENT
TABLE OF CONTENTS
Page
ABSTRACT ••••••••••••••••••••••••••••••••••••••••••••••• ii
ACKNOWBBDGMENT ••••••••••••••••••••••••••••••••••••••••• · 111
LIST OF FIGURES •••••••••••••••••••••••••••••••••••••••• v
I. INTRODUCTION •••••••••••••••••••••••••••••••••••• 1
II • REV! EW OF LITERA TUBE • • • • • • • • • • • • • • • • • • • • • • • • • • • • 4
III. WATER HAMMER EQUATIONS NEGLECTING FRICTION LOSSES.l4
VITA •• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • .53
v
LIST OF FIGURES
Figure Page
1. Water Hammer Wave Cycle ••••••••••••••••••••••• 5
2. Variation of Water Hammer Pressure with respect
to TLme at the Valva End •••••••••.•••••••••••• 11
3. The Specified Time Interval ••••••••••••••••••• 12
4. Dlfinition Sketch ••••••••••••••••••••••••••••• 16
5. Equilibrium of Momentum for a Water Column •••• 17
6. Condition of Cont~uity ••••••••••••••••••••••• 19
1. Water Hammer Wave Propagation ••••••••••.•••••• 20
8. Physical Meaning of Water Hammer Equations •••• 21
9. Point Network Showing Finite Differences •••••• 23
10. The Right End Boundary Condition •••••••••••••• 25
11. The Right End Boundary Point Network •••••••••• 27
12. The Left End Boundary Point Network ••••••••••• 28
13. Computation Procedure ••••••••••••••••••••••••• 29
14. Computer Flow Chart ••••••••••••••••••••••••••• 31
15. Variation of Water Hammer Pressure with Time at
Valve End. (Slow Valve Closure) ••••••••••••••• 33
16. Variation of Water Hammer Velocity with Time at
Reservoir End and Valve End. (Slow Valve
Closure) • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • 34
17. Variation of Water Hammer Pressure with Time at
Valve End (Rapid Valve Closure) ••••••••••••••• 36
18. Variation of Water Hammer Velocity with Time at
Reservoir End and Valve End. (Rapid Valve
Clos-qre) • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • 37
1
I. INTRODUCTION
equations.
The direct analytical solution of the basic partial
di f ferential equations used in this thesis is one of the
methods capable of distributing the etfect or friction losses
Reservoir Gate
Ho open
1 '----------~
____.,.. v
(a) Initial Steady State Condition
Wave front
~
We.ve front
f~
I
V=•V
1 V=-V
0
2L
(t) Transient Conditions at t=
-a- -e Seconds
Wave front
V=-V0
Wave front
V=-V0 ~ V=O
1
(h) Transient Conditions at 'b= Aa +e Seconds
w. s.
Hydraulic Gradient Line
front
V=O
-
(i) Transient Conditions at t= ~ -€ Seconds
a
w. s. Wave front
Hydraulic Gradient Line 2
w. s.
Hydraulic Gradient Line
Wave front
1 Wave front
1---
V=V0 1 V=O
w. s.
Hydraulic Gradient Line
Wave front
tion of the pipe between the wave front and the closed valve
the velocity is zero and the pressure is below norma1 by an
amount corresponding to the excess pressure of phase 1. At
the end of the phase, when the wave front reaches the reser-
voir, the entire water column is momentarily at rest and
,the hydraulic gradient line is below the reservoir level
over the entire length of the pipe (diagram j).
Phase~. Diagrams (k) to (m). The condition in the
reservoir end of the pipe at the end of the third phase is
~nstable. The pressure head 1n the layer adjacent to the res-
ervoir ris.e s to the reservoir elevation and the pipe expands
to its normal diameter. By doing so it causes water to flow
from the reservoir into the pipe to fill the volume resul~ing
front. At the end of the phase, when the wave front reaches
the closed gate, the entire water column has a velocity V0
and the pressure head in the entire pipe is at reservoir
level (diagram m), as at the beginning or phase 1.
Fig . 2 shows the variation or pressure with respect
to time at the valve for an instantaneous closure of the
valve . (5) Each phase described above extends over a period
or L/a seconds where L is the length of the pipe and a is
the velocity of the pressure wave.
P•
AP
2L 4L
I
"'1["""".
6L t
T a
Po
I API I I
Fig. 2. Variation of Water Hammer
Pressure with respect to Time
at the Valve End.
aH
ax
=-...L(..£!_
at * v
g
av
~X
) (1)
2 av
aH + v a H =- .....!,_ (2 )
~t i}X g ~
It is generally known that the friction factor is function
of Reynolds number Rn, that is
hr or
f= - - - - , . .2 -
L
(""1)
v
2g)
12
2
h-rL v
rrr~ (3)
Victor L. Streeter solved those equations by the method
or characteristics (3), obtaining the characteristic equa-
tions as follows:
dt-~ =0 (4a)
V+-a
f 2
dVt-
t:1
-:-dH+·215 v dt =0
vdx
dt-
dV-
-· = 0
(Sb)
(8)
( t P -ts)-(..-..1-->s (~p-xs> :: o
V-a
(9)
t.
I+ I
8
t.t
Ax AX
0~----------------------~x
J = elongation, in feet;
w. s.
Reservoi
wA(H 0 +A H)
;rr2p-1Cr2(P+ Udx)
ax
= -lt'r 2 fi-dx
According to Euler's equation<6)
17
or w 4' 2P w dV
-g.a.x- ~x =g-at (10)
-(llvdt+LLdt)_!_
- ax at dt
=V~+ a v
ax
qt (11)
and the only external .force is the weight W?& r2dx of the
element of length dx; there is no force component 1n the
x-d1rect1on, that is fx=O, from Eq. (10):
dH
ax=-- _!_(.ll+v
g at av
ax ) <12 >
... a~ vt oH
=-g ~ x
<
13 >
w s.
Reservoir
'
•
I
d(dx) :: -k a
~t
P dtdx
2
•• dr= *d~
the corresponding change in volume is
= 2Ttrdrdx = ~t 2 3 (16)
d?f3 dtdx E/,r
19
dx
v- c'
c- -- -- ___.......,. (V- _adx)
~X
• _ av = __a_p (~ + ~) =w ~Ht ( ~ + ~ )
· · ax --aT K Eb o n. ~
let ~(...!.. + ~) = a~
g K Eb
or (17)
a [F{t - ~)
a - f(t + ...!..)]
(20)
V - V
o = -.A. a
(C) Physical Meaning of Water Hammer Equations
When t = 0,
x = x 1 ; t = t, x = x 1 + a~
then F(t - ..!.) = F(t - XJ + at) = F( ~) = F(c) = constant
a a · a
20
/
.
.,..__f( a:::t+x/a) F(t-x/a)
/ / '
/
I
/
/
-- ---..... ......
~-
~
n' n
/
/
F( t- f-> at time t+dt
/
/
/
/
/
/
/
/
/
w.s. ...........
/
~! + + ~: = - ~ ( :! + v ~! ) (21)
(22)
VR-VL
( all (23)
ax )M = 2 AX
aH I.lR-HL (24)
(
~X
)M = 2AX
Hp -HM
( aH )p = (26)
at At
23
t
• • • •
• • • • •
p
• • • • •
• L. R• •
~-~ +
b a
t.fodt t
Vo t-.- Vl
• PoA t:=plA
a ____...+V
dx +x ..-..
x+-dx
Fig. lO(a)
Wave front~ a
I
(31)
which shows that the head rise is proportional to the ve-
locity reduction.
Referring to Fig. 11, let x = xM• L be the boundary
?7
t
Boundary line
• • • • •
• • • • •
t 0 + £1 t • • • • •
t = to L M X
1. AX .Jx•L
' I
VM -6V =r
Vo P
J HM +LlH
Ho (32)
(33)
and L) V, then
Vp = VM -AV (34)
Hp: HM .f. llH (3$)
For t:>T 0 (= time of closure), Vp • o.
(b) The Lett End (reservoir end): The pressure
bead at reservoir end remains constant during the gate move-
ment time, that is H(O,t)= H0 • Let X•XM=o be the boundary
28
Boundary line
t
• • • • •
• • • •
t 0+.At • • •
~M •
• • • • • • •
• • • • • • • •
.A.t I AX
• • • • • • • • •
(\)
....!)
30
DOES I = N - 1? '--------41
SET INITIAL
VALUES FOR COMPUTE THE LEFT END BOUNDARY
HAND V POINTS (EQ. 37) AND THE RIGHT END
BOUNDARY POINTS (EQS. 34 and 35)
FOR THE PRESENT TIME, t.
DOES t = M'l
/000
400
200
OL_ I I I I I I I I I I ~
0 I 2 .j 4 5 6 7 8 9 10
t in L/a sec.
\.-"
\.-"
Fig. 16. Variation of Water Hammer Velocity with Time
at Reservoir End and Valve End. Tc = 8.0 sec.
v .5
ft;/sec.
4
.3
2.
I I > >J I I ..
-3
w
+=-
35
T = 70°F
Te= 0.1 sec.
• = 4680 ft/sec.
2L/a· = 0.35 sec.
t VRft/sec. H ft. V tt/sec.
in L/2a: sec. v v
H, ft.
800
600
400
eoo
0 I z 3 4 s 6 7 8 9 t in L/2a sec.
.9
v
ft/sec.
7
"
0~--L---L---~--~--~--~--~~~--~--~------------~
0 I 2 3 4 s 6 7 8 8 10 t in L/2a sec.
V. CONCLUSION
p. l-24·
43
APPENDIX A
THE COMPUTER PROGRAM
50 PRINT 200,H(I+l,l),V(I+l,l)
DO 60 1";:1, 19
B(l,:&l)=H(l,K)
45
DX s PL/20 .o
R = DT/DX
I= 2
K =1
10 Y= (2.0~FH*D)/(PL*V(I,K)**2)
DV = V(I+l,K)-Y.(I-l,K)
DH = H(I+l,K)-H(I-l,K)
H(I,~l) = H(I,K)-0.5*R*(V{I,K)*DB+(A**2*DV)/G)
V(I ,Kf.l) = V(I ,K)-0.5-J$-R*(V(I ,K)*DVf.G*OO. (Y*V(I ,K)**2*DX)/D)
PRINT 400,H(I,K+l) ,V(I,K+l)
I=I+1
IF(I-19)10,10,20
20 V(l,K+L)=V(l,K)-2.0*(V(2,K)-V(2,~1))
PRINT 500 I V(l,IQ-1)
0= (H(20,K)+ (A*DVR)/G)/H(20,1)
W=S~TF(C)
B=K
P'D=B*DT
DEN=V(20,K)-((TC-PT)*V(20,l)*WYTC
DEH(20,K)=(A*DEV)/G
DELH(20,l)=O.O
DELH ( 20,91 )=DEH ( 20 ,K) -DELH ( 20 ,K~J
H ( 20, IQ-1 )::H {20 ,K )+ DELH ( 20 I & l)
IF(TC-PT)l4,l4,12
46
14 V( 20 ,IQ-1 )=O.O
GO TO 13
12 V(20,~l)~V(20,K)-DEV
IF(K-20)30,90,90
30 I::::2
GO TO 10
2X3HVR= ,El2.5)
90 CALL EXIT
END
C PROGRAM 2. PRESSURE AND VELOCITY VARIATION IN WATER
C HAMMER ANALYSIS
DIMENSION H(l2,17),V(l2,17),DEH(l2,17),DELH(l2,17)
READ lOO,PL,~,D,G,FH
READ lOO,S(l,l),V(l,l),SH,TC
PRINT lOO,PL,A,D,G,FH
PRINT lOO,H(l,l),V(l,l),SH,TC
DO 50 I::::l,9
ll (I+ 1, 1 )=S (I , l )+ SH
47
50 V (I+ l, 1) = V (I , l)
DO 60 If:=l, 14
60 H ( l,K+ 1 )=H( 1 ,K)
D'D=PL/ ( 2. O*A)
DL=PL/10.0
~DT/DX
1=2
K=l
10 Y= (64.4*FH*D)/(PL*V(I ,K)-)HE-2)
DV=V(I+ l,K) -V(I-l,K)
DH=H(I+l,K)-H(I-l,K)
V(I,~1)=V(I,K)-0.5*R*(V(I,K)*DVtG*DE+(Y*V(I,K)**2*DX)/D)
I=I+1
IF(I-9 )10 ,10 ,20
20 V( 1 1 !9-·1 )=V( l,K) -2.0*(V( 2,K) -V( 2,19-l))
PRINT ,500,V(l,K+l)
DVR=V(9,K)-V(9,K+l)
C=(H(lO,K)+ (Ait-DVR)/G)/H(lO,l)
W=S~TF(C)
B=K
PT=B*DT
DEV=V( 10 ,K)- ( ( TC-PT)·U·V(lO, 1 )*W)/TC
DEH(lO,K)=(A*DEV)/G
I
H(lO,K-l)=H(lO,K)-DELH(lO,K-1)
IF(TC-PT)l4,14,12
14 V(lO,K-1)=0.0
GO TO 13
12 V(10,K-1)=V(lO,K)-DEV
13 PRINT 600,DEH(lO,K),DELH(lO,K-l),H(lO,K-l),V(lO,K-l)
K=K-1
IF(K-15)30,90,90
30 1=2
GO TO 10
100 FORMAT (2X,5Fl4.4)
400 FORMAT (ij.X,3HHP= ,El6.8 ,4JC,3HVP= ,El8.8)
500 FORMAT (6X,3HVL=,El8.8)
600 FORMAT (2X4HDEH=,El2.5,2X4HDLH=,El2.5,2X3~,El2.5,
2X3HVR=,El2.-5)
90 CALL EXIT
END
49
APPENDIX B
a2 ~) = ~:~ (l)
a2
a 2!Jart:l<l e -HtHdt =laO
o o e
-Ht a < a H
at at )dt
F
:Jo e
-Ht a H
C3(at)
X o
a2
0:~ H .. (e-Ht,~~~)J:: H[e-HtHJ +i['"e-HtHdt
d~- - H
H +-HH 0 =02
-
dx2 a2 a2
X X H.
Solving: H= A cosh La + B sinh La + ...2... (2)
H
(3)
.;, .elL= .L 2 l
ax g at
Multiply through Eq. (3) by e-Ht and integrate :from 0 to cu:
50
oR
ax ::: g
l { (
e-
Ht
V o
)O(J + H Jo
(o<.J Ht
e- Bdt
}
V H V
-
_.!..Q+-
g g
v +
=- " ..!.Q... !LY... (4)
g g
(b) When x = L V = 0; so 1 V =0
From Eqs. (2) and (4):
B = .....liiig.!..._Vo
__
H L
H cos~
a
There i = ......i_vo;;__ _ sinh~ + Ho
a H
H cosh HL
a
cosh .1!!...
- Vo a
v = n-< 1 - ----- )
cosh .1!...1!
a
Inverse transform:
H = H 0+ aVn
.-..........
1
• L
...::L. ~ (-.ltn-l
_ (2n-1) 1t'a t·
sin ( 2~lmx
'-
g i t n= 2n- 2L s 1n
1
oe::;- ~ 1 )n-1
O<J _
V = V0 n:!b ~12n-lJ cos -
(2n-l)1l at
-a cos
(2
n2L1)1rx
_ cos (2n-l~(abtx)}
DO
-F( t+ ~) = aVo .Jt Z (-l)n-1
cos
(2n-1)1t'(t + x/a)
2at
a g It' n=l 2( 2n-l)
52
V-V 0 = L[t(t-
e.
...!.) - F(t +
e. a
..!..)]
53
VITA
123707