Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Purdue e-Pubs
Computer Science Technical Reports
1978
T. S. Papathedorou
S. A. Dendrou
Report Number:
78-279
Dendrou, B. A.; Houstis, Elias N.; Papathedorou, T. S.; and Dendrou, S. A., "Numerical Methods for Flood Routing Problems" (1978).
Computer Science Technical Reports. Paper 210.
http://docs.lib.purdue.edu/cstech/210
This document has been made available through Purdue e-Pubs, a service of the Purdue University Libraries. Please contact epubs@purdue.edu for
additional information.
CSD-TR 279
July 1978
ABSTRACT
A number of papers have appeared in the past years that use characteristic methods and finite difference schemes to solve the flood routing
problem, [1,4].
La.fayette, IN
w.
47907
Lafayette, IN
47907
Table of Contents
page
1.
Introduction
2.
3.
Boundary conditions.
4.
Collocation Method
5.
Gallerkin Method.
6.
Example of Application
BIBLIOGRAPHY
APPENDIX . .
,,
NUMERICAL METHOOS FOR FLOOO-ROUTING PROBLEMS
1.
Introducti on
It occurs
head and tail races of hydropower schemes in direct response to the changes
of the load on the power station.
two numerical schemes are proposed for the resolution of the St. Venant
The one-dimensional
the channel.
difference scheme),
First,
the physical phenomenon is defined. and the governing St. Venant equations
developed.
2.
(2.1J
CONTINUITY EQUATION
v aA + 1 aA + av - 0
li ax li at axwhere:
v
y
= friction slope
= Bed slope
= Area of the cross
= the
SF
So
(2.2)
section
VaA+VaA+ v .1.Y.=O
Tax
liat
ax
Subtracting from Eq.
~.1
we get
(2.3)
or
The final expressions are
(2.4)
(2.5)
3.
Boundary Conditions
The importance of the boundary conditions in unsteady
open~channel
CO"
(1)
(2)
(3)
(4)
(5)
(6)
(7)
Junctions.
available from records, so that data values of depth at the end of the
channel can be read in at
~t
reading array.
Flood or storm surge upstream conditions are given by the inflow
(3-2)
v2
Ew = yw + ~
is the specific energy just upstream of the weir,
2g
and
First, the
For flows at
follows:
(3-3)
where subscript i denotes i-th channel at junction p, and sign(i) is
conventionally positive if channel -i conveys water to the junction and
is negative otherwise.
s
4.
Collocation
I~ethod
let
0 =
~,
any function in H
A
is expressed as a linear combination of 2N+2 basis functions B , ... , 8 + ,
1
2N 2
For example, if A ;s uniform and h = xi + - xi' then such a basis is
1
given by
B _ (X) = .(X-hX i ),
2i 1
B ;(x) =
2
h~
(x-hx i ) ,
(4-1)
l:::;~N+l,
where:
(I-x)
.(x) =
(1+2x)
(1+x)2 (1-2x)
0
x(1-x)2
.(x) =
x(1+x)2
0
x < 1
-1 < x < 0
othenJise,
0 < x
-1 < x < 0
othenii se.
2i+j
=.5~i+l+Xi+
j=I,2
(4-2)
)).
poin~s,
In the case of
,',
give rise to a
~~uniform
partition
At
G=
where:
s -s
s -s
s -s
S -s
s -s
s -s
s = 1/12
a = 2/23
= .5 + 2/3/9
= .5
- 2/3/9
(4-3)
+ /3/36,
- /3/36 .
(4-4)
where here and in the sequel all summations extend from 1 to 2N+2.
The unknown coefficients (functions of t) Vi' Vi are determined by a
system of ordinary differential equations, as follows:
expressions (4-4)
The
"
~ J
a
Z (t)
G -
= F(~(t))
-
Then,
(4-5)
v2N +2 (t).
.I
, ,k
t=1.o .. 2N.
Note that, in the expression for F , the area A depends on y(t).
21
System (4-5) relates 2(2N+2) unknown functions by 4N equations.
Con-
= va(t)
v(a, t)
(4-6)
y(a, t) = Ya(t)
.I
2M+2
vi Bi(t)
'=1
Ya(t) =
.
.I
,=1
Yi Bi(t)
(4-7)
The coefficients vi
d~
Yi are given by
"a(t i )
Y2i-l = Ya(t i ) ,
a or
w=Y )
a
VO(t)
(4-8)
Yo(O,t) = YO(t)
Substituting (4-4) and (4-7) into (4-8) and taking into account that
B. (0)
1
= a if i 1'0 we fi nd
Vj(t)=vo(t)
(4-9)
Yj (t) = YO(t)
thus eliminating V1" Y1 from the unknown functions.
5.
Gallerkin
THE FINITE
ELE~NT
f1ethod.
"_.
-------_._-------
---
- -..
--_
..
STEP 1
The UNI DIMENS IONAL FLDII FI ELD is di screti zed into n e1e""nts
For each element the following linear SHAPE FUNCTIONS are chosen:
(e) _
Ni
x - xi
J
where:
(s .6)
- "x-.-_-:7x':".
1
-<D-
I -Q)-- J
I--@- J
I-@- J
GEOMETRIC CONFIGURATION
OF THE ELEMENTS
ILLUSTRATION OF THE
LINEAR SHAPE FUNCTIONS
1
STEP 2
Therefore the unknown variables v and y can be approximated as
follows:
n
= I
e
N
(s.7)
e=1
y=
Ne.:i. e
e-l
(s .8)
where: :i.e and ve are the unknown nodal values of the depth and the
vel oci ty.
According to Gal1erkin's procedure the Residual must be orthogonal to the
Shape Functions.
,
I
,~
eave)
at dxN i
IS. 9)
and
~ I~e
{ejdX.N i +
t (~)JNe
e
+1L--l:
(NeVe)~e
We obta1n similar expressions for the function
:e dx.N i +
l}X.N. =0
x
1
~j'
(S.10)
At this stage we
expand term by term the above two equations for the case of the shape
function
~i
3V
x.-x
-x.
J
Xj-X; , xj-x;
Ij
d ataV
xi
at
j
Xj-X;
I~
dx
X.
J
{2
IX - Xi) av.
--l +
Xj-Xi
at
5-X)(X-X')}dx.
(x.-x )2
J i
. (5.11)
Then
- xj-
Ij t
x.-x
~}
a {' -Xi v. +
J
v.
vi + xj-x
x.-x~
ax
Xj-Xi
1
Xj-Xi
J
Vj}
J ,
i
-x.
-X 1) dx
xj-x i
( S. 12)
Also
a
ax
(5.13)
Also
' Xi~X
X
~ ~f
x.
J'
xi
501
5
fj - oj
J f( 1~
x.J
x -x. 2
(x.-x)(x-x.)
(5 f -5.) + J
2' (Sf
xj-x i]
, 0'
(xj-x )
J
i
o
5.j
OJ
dx (".14)
Therefore:
av
n-l
- v
at = --~""t:--- and
n
n-l
Y.. - Y..
~t
and expression (5.11) becomes, having in mind that vn and yn are the
n-l
velocity and depth at time ~, whil e vn-l and yare
the velocity and
depth at time n-l:
dx
V~-1
2
(x - x," -2xx i )dx - -2';-L 6t
J
Xj
xi
~ {~V~-1 +
+ vT
1
}
odx
ax
(xrx)(x-x; )
L3
'='
yn-l
1L
ax
f{
(X-Xi)2
(Xj-x)(x-xi)
}
L2 (Sfi-Soi) + - L2
(SfrSoi)
g L
L (Sfi -Soi)
= g ::z
3L
L
::z
6L
(Sfj-Soj)~
dx
= g L tfi-SOi
3
SfrSOJ~
6
n-1
n-1
L n-1 vi
vj
n
6.t vj
+ --y- + 0 - vi
+ Sfj;SOj]
n-1 n
n-1 n
_V-,-i~3;-V,,-j _ _v ""6~V>Lj +
J,,-'
=0
(5.15)
L n-1
L n
6.t vi -6.t V i +3.t Vj
L
L3
v.n-1 n
, v +
vi - 0
- j
n
n-1
L n !l
+ --y- v +;[
j
n-1 -
{Y i
n-1 }
Yj
(5.16)
',4
n-l
vi
3~t
+ -3-+
n-l
LV.
Ot;f+
n-l
n-l
+- +
v.
v.
v.
6tt -
Vi
n-l
vj
V
j
+-r-
unknown
L
n-l
(Vi
n-l
6t -r-+
V.) - Z (n-l
+
.9.
Yi
n-l
- Yj
) - g L
(5.17)
Y5
the depths.
This is obtained
Fx-x/
[ [2
y~ - y~-1
+ (X-Xi) (xj-x)
L2
6t
n n-1J dx
y. - y.
J
J
6t
xi
(x.
J-X
Hx-x.) All [v n- 1
1
L2
~ L-t- -
+-
n-IJ
dx +
Multiplying
.18 becomes
L n
L n-l
L n-l
(1 Ai
1~) ( n-l - vn-l) +
311t Yi - 311t Yi
+ iii\f Yj
- 3" ilj + b B
vi
j
j
n-l
n-l
n
n
v
n vi
n vi n -tV' n
+
Y+-,,-Y+
Y+
y.=O
1
J
J. ......
J
1
J
+-
n-l
vj
----:r
n-l
n-l
n-l
n vi
n vi
n
n_
Yi + ---0- Yj + ---0- Yi + 3 Yj - 0
(5.20)
n-l
n-l
L
V
v.
Jiit-+-+
L
n-l
Vi
n-l
"6iif - ---0- -
y~-1
----:r
y~-I)
---0-
n-l
n-l
L
611t +
n-l
v;
----:r +
n-l
v;
n-l
v.
n-l
L
311t + ---0- +
..b....l+~+
II t
L IY'
M
++
Yj )
----:r
Y~1
=
+n-l
( v
l1
- Vn-l)
(5.21)
lAo
(v;n 1
~+ ~)
3B
j
- vjn-l)
6.
EXAMPLE OF APPLICATION
The following flood routing problem is considered:
a twenty feet
wide rectangular channel, 10560 feet long, having uniform flow of 6 ft.
oepth is subjected to an upstream increase in flow to 2000 cfs in a
period of 20 min.
flow are provided at each of the twenty-one nodes of the finite element
partition.
~.1
The results of program REWAVE are conformal with our common engineering sense, however the present version needs how to use an economic
subroutine to solve the nonsymmetric system of equations.
The results obtained from program FEWAVE, for the particular example
treated in Section S, are compared with two widely used numerical schemes.
More specifically the Gallerkin Finite Element method is compared with
the method of characteristics as developed by Streeter, V. (g) and a
finite difference explicit scheme suggested by Viessman, W. (10).
Table ;<.: shows the maximum val ues of the computed velocities and
depths.
"',1).
___ f:!.9_.,,_
---------------- -----------
nE"pTtIS
____ 6:?'u_
6.01lu
6.~96
II.OOG
6.0UO
". o~~
6,ouG
'bll
O.oou
~iooil
--------
vEi..urITI5
__.__ '.:Ul"o
6.9' ..
__ _
b.'H6
O[PTtt5
6. b'~
6.4 7 6.
".uuo
".0110
6.0tlll-.
TlME-~
__. __
6!.J!!i~~
4.01666666L
.,.582
".9_6
5 .......,
6.00~ - -
----------_._-_.-._-----
V[LOcl nrs
1.4"'''
,..946
_ ~~i!~B
~,:UllO
6:000
. _ - _.. _----
.__ J~.'H'_.
6:9'6
.
6.91lt"
DEPTHS
..
6 .1~. _-.-6.00ij
6.000
nlll!:. ~ ..
VELUclTiES
__ .7.,b9
6.6Zfl
".000
._:~16_~
6~OOO
!!:JIl6 ...
o:uoo
0.265
..6.181.
6.0~0
6.00!
._.
O:O(J~
~:OOO
!.0166 6 6661
6.9",~
.. _ .. . 6.9106.,_
nEp'HS
6.'iI.~
e..20b
........ 9
0;:000
6.000
O.lIOIl
o:oov.
~-.
REAO INPUT
GEOMETRIC AND
PHYSICAL
CHARACTERISTICS
'">-z
'""'
....
"'
"'
w..
'">-z
'"'""'"'
u
-"''"
>z
....
"'
u
>u
....
"'
u
>-
INITIAL+B. CONDITIONS
T-D
CALL FORMEQ
FORM SYSTEM OF
EQ. FOR VELOCITIES (V)
CALL SOLVE
FIND VELOCITIES AT
NEW TIME INCREMENT
SUBROUTINE FORMEQ
FORM SYSTEM OF EQ.
CALL LINEAR
SUBROUTINE LINEAR
USE OF LINEAR
SHAPE FUNCTIONS
T=T+I>T
'"
"'
'"
....
"'
"'
CALL FORMEQ
FORM SYSTE" OF
EQ. FOR OEPTHS (Y)
SUBROUTINE SOLVE
CALL SOLVE
FINO OEPTHS AT
NEW TIME INCR.
>z
w..
....
"'
u
>-
CHECK NU~IBER
OF THlE INCREMENTS
+
STOP
CALL GAUSS
SUBROUTINE GAUSS
RESOLUTION OF THE
LINEAR SYSTEM
OF EQ UATI ONS
2,0
LOCATION
VARIABLE'S
SPECIFICATION
HETHDD OF
CHARACTERISTICS
FINITE
ELEHENT
SCHEfiE
(ft/sec)
FINITE
DIFFERENCE
SCHEfiE
(ft)
9.42
9.43
9.2
Max. Depth
10.88
10.68
10.87
Time Min.
24.
22.
29.
Max. Velocity
'lax. Veloeity
9.20
9.14
9.18
flax. Depth
10.40
10.21
10.44
Time
30.
31.
39.
f1ax. Veloeity
8.5
8.46
8.74
flax. Depth
10.33
10.16
10.30
Time
36.
35.
48.
Table 6.1
11
UPSTREAM
10-
, I"
f'o
0
0
DDWNSTRE
0
I'" \""",
I'
/
'0"
""
',""
b'J"
" "~
1,1
>-
"W
Q
""
~
'"
-,~,-J.....
.
t;:
MIDDLE
t
7
;,I
i
,0
'
'
'
"0
'\
\,
" ii
,i
61"--"~/~~"=-'_~__~__-.L_'--~
__
10
~_----J
TIME, MIN.
Figure Go<
,,,
-,
II
UPSTREAM
MIDDLE
DDWNSTRE M
,~
10
,~ I
1=
c..
I I.'
I
II I
'"w
'"
I/
10
20
30
40
50
60
TIME, MIN.
Figure 6.:1
'"
II
r--
fl'-----
T = 2 MIN
---
T = 2 MIN
10 r-
~
./'" _.... ... I>""" ........
...
--... ...............
~
.............. 1,
,'" .,...,.,
-- --
-...-r~
..........
~_
r-
---
I---
45 MIN
T 45 MI,N.
..... ......
---..... -..... .....
-----'
...............
I---
~-_
F.E.. "'.
M. c'" ilerE-A, ',it,.:. 'So
r-............
--
'-
r-
1.0
2.1
3.1
4.2
5.3
6.3
7.4
8.4
9.5
Comparlson of Results
"
-F
2'0
RNQ -
--:iiii;;;6ii-- - - "T"T.i'iJoII",.,;iio
g.
i!n.nn
Elf_
,0\)1/100
YO_
'.00
zo __
"TI>_
T... 4~.
360B.Oll
.01';' __ .---2.1\0- __ .. N"'.
\J"'A~"
!~<>.
i~O';.lln
!~~!'
2400'00
l'!IThL U'H I""j:lu nI"ClT>l.
".000';
1<1 IT UL \/!:lOc:1 n_ _
6.9t.!o1l _----lNLt.U,L- nlSCHAROt_ 83." 400;4 ~ _
1I Tll'fCalo4
loIJOPOINT
OOWN'STAtAH
TiHEIMttll.
._ ni<:'~I:I!""F"
nEer"! ._VI':LndT.y
DlsatAHOE __oUJ't:l
YFL0e.t.iv
DISl:i:lAR0r
DEpTH
Y~Sll.Y-_
1.n"
IIClI.A;>"'"
110.1'7'"
..,.;AA'l
A]J.49SI1
I'I.nOOO
6,9t.S."l
BJ3 9!16
6.1)0011
6!94511
2.0,j
00:.;':;"'0;11
:,2""
;'."';2~
__ 1'J33."98,
6.000~_ _ 6.Cl 58
.1!I3J.'95A
6 ..0000 .. __ .6.9458._
J.U~
i~';R~~;'ii
<:.2....
;.!221
A33.6617
... ;000.
6.'iI 7
833.4959
6.0000
~~9"58
".lIa
1 ,,"'6 .., ..",
to. 7'5.'11
.., ,.<:IRQ
__ .835. 7!1.i!3 _ _ 6;0061------6 .. <:Ii76833.41)60 __ -----.6.-0000 __ 6 .9458__
~.~~
~.9q,~
~.n~~~
845.69 4 9
6:n34t
!.On~1
833,4963
6.0000
~!945_
TPHINT.
"o.nr.
"no';';
2iiJ~.on
Ii''':!'I"
.-~::~::..
~.
::~~::
-.'!o42~
--. --::;'~;~
.
:!~~~~-..~~:~-~:::~:
" .
:.-:::~
~;::::-.
.
._,834.105Q
b.OD;JI __ 'h9413_
'l.On
13~A A"~
7.94"1"
_ ~~II
836.252.<1
6 01.0
110.9525
in.oQ
i.i.i,,;:rt.77
8.18A';
_:"''129
_1142,1107 __ 6:0437 __ e.;'6U._
11.11.)
!,,7~:~7;ta
II .... '~!
_.7iq9
1193.41132
6.1013
e.~994J
1?.0t).
. _.I~':t."1QII'
8."7"17 _ _ ,11"19] .
l-125.,l!18.l--3~!07---1,~3a'7Il.o--JQe.J. __ ...6..rIl66
1;0345_
lJ.On
I~aj;!~"1A
A.al~"
".,?57
117A.eJSO
1:1613
A.lj7]
891.9AliIJ
6.2950
'~OIl48
~".O~
!",,:n."~f'I"
9.1"~'
a.~n76
1232,9914. __.",'789_ .. _8.21.31_ .. _.-_11I8.32116 266
r,!H48
I~.O~
'7~1I ,7"1"
'1."""11
"nA6'
1'.<1.<1 806"
1 '0.0
A ] ~
949."711.
6 9821
'.2141
It..uo
f;,,<~a91
9 ..... fn
":'''16
d.~:':2013.
7~q3J3 __ .8:4j82
9A9.313.
6:1579
!!2906
17. lit.
11l;>0; '~;>",
'l."IlI"
.,
l.nZ "'JJ,
II lb6Q
R "I1l7J
102.,9634
69!'i13
1.]724
V'. 'J ~
f 1'I1l:l; ua~
_In. 12 i !
1>: ~~41 _.. _ l..iIo60 :528:1--- II; .0.3:1
8 :1I00311I68.II'IQ"-_--1: ll\09. __ ,I~,,"58"'__
.~.0l!
'~~l.~!"'~
,,,."1~QI
".'711'1
1"ltI.IOZ81'1
A.... 1"1
8.711I1Cl
~11 20O:
7.311I32
'.5"''70
:>fl.Un
~I'I"O.~'':I''
!O.,\I>",~
.... ',1
Ul1.~5~n_ .__
II ....E'~I"I
8 .<1"12
iH.3.2AS.
1.6\62
l~b369
;>].oij
,a",i.~7"'.
io ... Rl>a
"."~14
1~9~.60S7
q~~6J?
9.~~.1
i26~.29~J
8.1063
'~8168
~J. Oil
i912-"'; 2"
1 0 .",114",
;; .0.9'1
1T~2. ~SOL._ .9;,(10005-_9, t1~e
iJ21.1t!141
.8.J599. _
~,905;
24 00
jQIlJ'"oa
10 .... ~0..
A'41
1791 5644
0-'994
9.1~'2
~371.4"'02
8 617.
'~99"3
_~~'~O
~~4:tg6~Or~L?~8~30'
III01~IJ6
9=0276
9 '28
f~~oe
8'8717
8~0713
:>"F Oij
iA1~~:>""
11'I.~ ... o;i
_ ~:l70
11107 3~24
io!028e
Q'nin9
~491.2~T2
9'1:180
8;1596
111.1
17I>S" ... i7
LO.SOn;
<'1~12 _._. _ 1"09; 76,1"---io~Oio. _ _ 8:9'">13
~'4!l.8U!L- 'l:3B.55~_!!:2355_
2A.IJ~
f!"6:~aoi
!~.'~'~
n.ii1'
110 5459
ill:1604
B.4~n3
!'9~.2140
9.5QOI
ij~296;
2?vO
1131."365~__ 10.14"'1
'1.'96'" .~ __ . 1198.3Z94__1.O;.I9,'l1L...--.8.81-76-- __ &2 .0334_ _ 9.7416.~ ~J401_
J1.0~
!1~II:i!~~
!O.:>~Q~
1l.~~SA
17117.0!8J
l~:'lJ1
8.14113
~69J.420A
9.ti697
ti,!J1'l1
-1t.~,l...
...JUq:~uU--...1o...lb1n_~:>1I81
U:rytll:ls
10.182
8
i6'!.ff ..9U.1
q 'i!13'
~"&068-]".~ti
I';'''9:;.R~ 10.n",ao;
!o:n
17'!19. h!9
jn1,oeo
8;-.i94
!69~.6987 1O:04eJ
:~4218
:n.oo
1"';>0 f1 .... n
9.9"7'1
_, 1"1015 __ . _ .,174].2550__] o~8ZI---!.S"l62.......-- -1-10 .4!5Z1-_10,lIl51-- .... ! ."J.5.. _
J"'.u~
l"l>i:!'~.
q.~ ...,..
..~~o'!
17~".918J
1D:1552.
8,4a2"
!71 5342
10.1410
~~4535
"';.1.10
15~2 ~"n~
9.7511.'
.<I.1'IIl96
1.705.8712_1O;..u50_ _8.4' ...
.718..80J7__ 10.l600
58'7 __
1~"0~
I~~''aq:>
9 .... 'a
~.Q'OQ
IbR5.665~
iO:066.
8.31 ..7
~719.8"'24
10.l,,47
ij;.600
1 t....!l8A8
.31.lJy.
!5ii.~?"15~.-52~_--?,8936
1664......50
iO;0099
8,,1.&0
IQ.-1-S!ofl....-~
,A ~ij
,.7~ ~1,a
9.&1""
7.~~7l
1~.l.811l
qa410
A.2518
~713.07.1
10 l34S
ti.4517
J9: 0;;
1445: 'I 1 0"1 _
9. ;9i;
1. ~1'I1I
162(1, 2909 __ ~ l! HZ- ----" .2';22..-..-~~10'.912L__l 0; l027 _... !=4_429._
loll 1.1,1
1'1" ';,77
9.1"QIl
., ;:>~I
1~Q1 4333
0"'01"
8 14A7
~696.1758
100620
ti;.316
41: IJI~
13~7:~1I5i
';I. 04~~
!>,~q...
01h__ J;'I'209_ _ .1I;09",Q
!61J'J.69.l2.-.-..J.O:012L _ _t1 i)11.8 _
,,, ~'I
13~1l'.:>'~
A.9i!"~
..,
t5501511!1
Q""J50
8.0...
1672.9786
99560
8 01"
_ 4J:~1i _ _ .U:?q:;'!i9~'__ a.7.9,~-----i:S'!i8,,"
1.Y.5.:1i359
9~.u7
1 9"6
;-6'~.6
9UZ~3e.1.9u o,i
11iio ftO'7:>
8.".... '
7.""2'"
15013!127
'1,,901
7:114'.
~64J.24"
9'8232
~;J641
,<o~
biG' a,,,..,
r;l.5Jlq
.1.;;46.
1.,6.: ,,"()59 _ _9:J52.2..--!,8.!J3L---.--~-6Zb.S!l6_ . 'l:1"8'1 __ ~ .~;JIt26_
.b.O~
I~~i:1i:>~
A ~'~
~.1A97
14!'i~.2'54
9;"05
'.1'1 3
i60:.1?02
9.6()97
~~JI95
.7.1.1"
1212 ~n9. __ A.2""".
7.3326
.J4Z .8JlQ..-irl.!!B-~50
1"- .01~q__ . ~.5eH _ _ ..l9_4L.
"'II U'l
IIIlJ~U-'1I
II 1l,1>
., 27.~
110 1"2'
a ~Je1.
17459
,570.5199
94067
t1;26e8
~!:U~_.
h~."~!!4:>
7:9na
;'zir>:c:
1'7.'2"'6
1II'9Z111
7U66
i550.222Q
'1'&051
tl;:c:.. t.
~n On
11'~1'1~
'.Il... .,.
.. 1~"'1
1348'2158
etllll!O
1:6.73
:529.2'81'1
9'1103
~;21:C:7
!i< U;,
i~l>l( ~0;'11>
7. 7~'n
I'~I: 971:6
!!:!.O<lO
'.5~16
i'9!..6.'J7,, __ .9:~12' __ I:!:~e2?_ _
~;> Un
In" ... 7q~'
7.~1'I:>'
.. 0,.11
1,9~ 580'
R.828
7 5&76
t.8~.!401
9 1120
d,1!15
"'3: 00
i iiJ7:"'"Ji
1 .... 12
... :li121
... 1269:06U_ _lJ;46'6._ _!:4'172.....H62.91Jq.--9~Q091_ _!;1192
~ Il~
j~51l.~?jj
7.,QGft
A.GOA'
1241.,,"18...
A:'.26
7 ~~2
~.39.90.~
8.9039
~!0858
S5.1J~_-_--a79:'V.!I5--_-t.I!l!\
.......__ eU.9
IU~ ..hl.h
8-,,99
7
~'Jb.4BQ,
e..zuA
tI.0512
~~.IJ~
~~O:i.~8
7.~11!
7!... ~
118~.848J
!:09~7
1:]4~5
!3:i.13'16
8.6817
;:0156
!i7.OIJ
":>0-I>'IJ7
6.8"'''&
".7075
H~1.9_.1__."I';9699 _ _ 1'.2Ag6~__ ._:.3
,6182_. __ 8.5769 __ !9188_
';.<I.IJ~
Al>i:.~~~
6.11~~
~ .... ]7t
IIJ4.9175
7;1II.2t
'.2,5 Q
~3_4.J!5Q
8,.6.6
1,!9411
5Q.1J0
8"';>."~8n
6.57i'1.
".564"
1101.9!l91
1;1141_ 7 le14 _ _ ._1~1~.19~2 __ ~ 8.3508
!.9022
~o.Oo
'1"1"1.1."0;.
" 21~
~ Q03
IG~O.90.5
1:,,843
1,1~59
i295.0372'
e,23S7
7!8&2_
7,"'99~
939.636" ....
Q~O SA29
1';26:7009.__
\07"',7916
",.1421'0 _.7,4974_.
6'.921
1 ~~15
6;"651._1:7n2'0_._.
",.1iI51:?
7 .<1.:19
'3."
;><
u'"
I'h:
"'1'"
!:g964
'OlIo'
-:-<:"I 6i c
>
~~-
..\.:tc:.
?,~~
'.,
~ ~,';:'
r=",.i~
"Ci 'tc.re"H.C
-,..
',:~.
--_.
_6.~1I
_r~
6 .fI~ii
~-
"
4.119
to~~,,~
6.'1"'6
.... ti,;~
7 ...;>S
:r .J1;'
7.1_'
1.n"9
--Y': ____ ",.47) __ ... 2';'.. _,_ "'.121 __ 1..11'9
l! .';l2 __ .:;. hlOl_
-,ila.'l/)
... Ql;>
.... Qa]
7.Q48
7.5)'"
._t.to71
".83J
".<;63
__ l..l6'i'- _
6.Q3:1_
"l""i":3221<i;;~-.""''"'''.C'--"-""'""-"-"'"'""--8;m-~2--'
;a'iil---::1':
i ...,., .,r",,_
--fi:S16-~1"S.1Q
v~
y;
V;
8 93
A.06i
__ t.6.R
.~ i7_.
'!. Oii~
Q.';",,'
R.~Al
8.15'1
9.'11
4.17'
9.nn ..
7.,,,,,
1.711.8
i .. ,,~.,!~.,,!!of
v.
~ '\?!i __ --'!.!'.!~
9.9114
a.S1l1
.~.1~..
_,!_.~l'!~
9.0Q~
8.618
1.426
1'1.'6'\
-I "3'1.111 v..
9.42" ------o:~-----q:?1''i--'.',-I',.,.;;nli'' --___ v': .. _iO.:i... 8
Q.9QQ __ .9.!'j''i-__ 9.I;S.
8.1J8
19.1153
,ia8'i.19 JI~
y..
'!.;Q.I!.
10.0::1,0
~.3"2_ _.9.3:12.
'11.240
--2r~ 76"4
v!
=,1.i7~
y"
10.~~8
.....:t;.
y';'
9.J1'l
9.294---9.;;~'--q.I~J
1o.,io'!_--.. 9.891.
in.fl83 .. __in.710
in.II~'!
_.' ~.Q,i
i".11::o
y';' __ .iO~"'9!L~.i,;.7n..
-2iij':9~4
o.i"l
_ .9.5<1.1.-
A.753
9.171
,_".~?''iI_._..9.io!!l1
lii.11'l7
9.IIAI
211 ij~
a.i"l __ 9.nOo
;11~.lA v~
,.
".~17
i~ .~II'
i71i:4-~-R-";:;1-- 1l.4j,\
__ 'I'';'
.1l1.:1'\8_~3ii.4:\'
_iO.6111'
9.n?R
.IO.l97
9.~O!, __ ..
In.14..
9.144'
i o.... ~'\
lli.!!l<,s
11l.'l1~
A.e;q-" --R~r,i;'4 -'q-;';j;'
io.":,,
10.'i18
1I;.44!1
_ 9.R'i8
9.'''3
in.lol
_ 6.01 0
to.oO o
6.950
6.012
1! 136 ..
6.109
1.0~0
6.05"
6.9~!
6.02':0
6.955
6.023
i'-ii'~--'
'(;;-'Hb"-
,- - 7;321"-";-ie3-
.7.11011
1.579
6.4Ql
T.3AI
6.31'1
1~84j'-
1.61:.---r-;jii-r---j;09Q -
T'08l
6.1811
6.54'" _
fl.371
1.484
~.12S
6.01l~
6.06"i
.. !.02<,
~.16J
6.3'!'! _
6.322
_'1'.203
6.551
7.141
R.1l29
R.3S5
8.621
7.96"
11.990
8.186
8~82Q'
9.;'98
9.187
8.963
1l.822
Q.i50
9.!II.Z
9.ooil
9.211
9.146
9.R36
9.081
1l.401
9.S~1
B.lIIS
1.611
-- -
.t'._OS~
7.J3~
~.49~
7.253
if.5'ge---A" .i!6!--';6f.i
,.7~~
1.681
7.832
8.141
8.040
- -'8.879--- B~56C--T;99Q
8.893
A.65~
8.610_
11.93 8
9.276
8.64~
8.13::!
9.0.'"
9.' 01':>
-'i1'-6 It
r--
9.059
9.8l0
8.94"
9.60 H
Q'4':oU
'1.43'
8.99'"
10.0.:1
8.90tl
9.871
A.70~
1(I.Z17
11.346
9.762
8.1'195
10.309
",.9n3
10.IIJ2
8.fl4"
10.019
9.11112
10270
A.071
;0.110
6.9AJ~qb':o
7.0Z0
.6.020_
_6.150_. __
8.620
7.91 4
9.9ii"
6.Q52
6.lIll
6.262
".7)]
~.l'Il1'1
6.9bO::
6.00--
.6.421
8')45 ---A.~Q'
_._
6.9(',6
6.001
6971
6.002
7;7.i.~---i.5ii
"."51
8.B08
___Y~_9.-'-R3 ___ Q..061 __ .8.6~" __ 11021l _
! ".015
6.950
6.008
6.al0
. 7.(\]"1
",.n)a
_!.~;>1
,,
-.9
6.Q66
".1100
10';06--7.1190
6.1')11.
6'07]
.,;
.'
".nO!
",.in::>
"."nn
.-'
6.95J
".000
.... noO
--- -------------- ._---
a'l1.i:i V~
-,,-
"
"
".Q<;3
__._.J,.ao.o
._
"
~-
0.nn7
9.1 lo "
'-'Il;t>ti-1O.00!
it.2!!li-
g.419
10.013
Ii'
T o. ... I'=..
11.4~J
i~~'.~~
v.
9701
"
jO.'91
i""_(}<'..f''!~;'''__ ~~~~<;
,.~
Q.Cl49
~.l''~
_ _.A.:>:;4
i~.~~~
in.I~"
!I.~~2~_",.4A4
In.264
II. iT'
7.Cl71
_g.7M _ .
iO.D2S
In.313
'7.~I~
Q."'.. 4
'.n.;>~ v~
y';'
--
,.~
1.
,,"n
9."'"
~ __ 1.9i.S
__'_,~!;,I__!. 7';~
oIo<:l.'l;>A
ili:?.7~ v~ -
_v;.
..
'53.'105
110220
9.97S
_I! .1'57
9.1~2
9.~56
7.<;"'0
Q ... 62._.
'i'-~i.0;';
7.7;4
7.613
1.~1l'
9.211.2 __ <:I.,,,,;>
1.9SI1
9.490
A.n27
... 0<:11
9.616
9.128
'l.!J.!!.....--...Z.llit<:I.nJ2
9.1Q,
9.:'139
i.6~9
6. 8 55
9.179
"':"1l7
..7.294
!.~.; ..
_ 1..to~5
A.p .. i
.3~9
1I.27.Q
8.1'39
1.159
8.Q98
.7'''95
8."5B
7'''':16
A.1'I25
i.~o~_
7.A~1
lI.n14
II.2~1
A...71
7.1;'4
1.6\'5_
1.:>i4
7.319
A.{I19
..... ;>8"
1.11;',\
.... 9i~
T.n:>..
1.IQIl
7 .... ~i
__ ".~I'
~.Q;?
.... <1,,;
1.';~
.... 11"
.... ";<1
.... 74 ..
1.1'198
9.322
&.""11
".<:1.19
(-.AR7
7.1120
~.9';4
__1. ?~9
1.871
T.O;~,\_ .. _
7.010'"
7. j:t:?_
".ii",
7."\15
8.412
1' .... 91
10."91
9.S!>1
10.l2:>
_A.~~~
In.31~
_.__ . A.508
10.1311
ii~0I04~
10.2 r :.
6.l43 __ .1I1 40 l! _
10.1<;3
1020:"
8 .... 94
10.296
6 .... 76
10.22'"
10.00:'
R.2":"
. 9.61:111
9."48
8.063
9.55'1
7.913 .
.8. 00f!
7.'iI11
10.190
a.J6B
9.910
6.2~!..
1I.35~
9.16c
9.784
8.315
9.(5)
.8.1'!:!.
9.297
'i.409
9.UI:!'
7.848
9.139
'.945
9.2<;8
... 06:>
6.~29
9.J~~
9.36B
7.6R2
9.091,]
A!OO!:!
8.18S
9.215
9.1~~
1.10A
'.817
1.9010."
8.803
a.93'1
.9.02(
8.131,
9.056
7.432
7.6]4
7.741'1_ .. __ 1~86~,
A.;>~O
9.6"S
6.1,,3
6.8b~
7 51
8.:>7l
7.'!'i!lfl
B.4,,;I
1.677
11.511"
8.MI:!,
1.;06]
7.370
7.'S~
7.961
A.I01'i1
7.41'1
1'.255
'.6n~
7.~1\)
8.4115
A.SI~
8.547
1.""4
1.117<:1
7.i5j1,
7.,,7:>
Ii. "II
10 .213
1.'\9'"
".7 1l 7
.... 0;9<;
7.1'191
7.611
1.,~n
7 .~;Il
"~1il
-'{~-_.- -",~~~_.
"
9.~AI
fl, n91
;iill.~n v~
Ilo;o;.,.~ U;'
8'1~9
R.n;s
1 ... ?1
'1';'
~.~9010
9.77)
9.635
v,,;._........! .,;.!!_'
\I~
e.290
10.01ll
7.~~'
v;'
,;
fl. ?J2
10.001
9.<;n ..
1.ift7
7.844
i .,;,,~
6.3"9
10.177
7.~~~
i,n.4:> \I~.
<>4
fi.316
10.11
".366
1I.~h:>
Q.~76
f1,"5Q _ _ 8.4R7.
10.251
10.21'1 H
~. 4 11
9.,,4
.,.;.
___ 'I'.. .
!!..~22:_.
1 n .20'
".nCo;'
i iH.ll.3_ Y';'---L.2IlS __ . j
.,...:..
__
Q.~'"
i:>;o1.41l. v.
!O.!..~~~._ '~qll"-i.2...
10.147
e.!!>l]
10.Jlu
~."'14
"
__41'1. )'\9._
IIl.iI,.,
;.
Q.971
.",;;~
Q.2""
.Q.;;';8
'I'~
4).71]
_86l'-_
".lQ-
_ _ .7
9.';""
~./)O~
10.2 1l !
fl.SI'iI
9.4i.o,
8.676
10.lll
IO.~81
'l'~61
1110 II~
~.641
A.272
--7~lioiil-
,..:. __
v~
".7,;>
1l'6~11
8. 7"1:1
10.219
10.3;11
10.123
.,.;.
~. 77 0
10. ] ....
7."Al
7.9AI
1.112:"
8.0B3
8.1191
8.1127
B.721
, .52'1
, .907
6 .21 11
8. ]66
Bi b1i ography
1.
2.
3.
4.
5.
Taylor, C., Al-Mashidani, G., and Dvais, J. M., "A Finite Element
Approach to Watershed Runoff," Journal of Hydrology, Vol. 21, 1974,
pp. 231-246.
6.
7.
8.
9.
Streeter, V. L., and Wylie, E. B., "Hydraulic Transients," McGrawHill, 1967, pp. 239, 259.
10.
'
,.
"0
"0
,.,
:z
c
><
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
***
c
c
c
c
c
DriFl.I478
NODES
--------------------------_.------- .---------UCJ)
KCI.J)
FICJ)
'r'CJ)
KLCI,J)
F2CJ)
::I
.------------------------------------------------
10
20
30
A
A
40
50
SO
70
A
A
80
50
A 100
A 1I0
A
120
A
A
A
A
140
150
160
A 130
170
A 180
A 190
A 200
A 210
- MAX. TIME
'" MAXIMUM NUMBER OF NODES
'" MAXIMUM NUMBER OF ELEMENTS
A 220
NODE
'" NODE NUMBER
XCNODE) '" X COORDINATE
YCNODE) 'I' COORDINATE
IDCNODE) 3 INITIAL BOUDARV CONDITION
A 260
A 270
A 280
MAXTIM
NNODE
NEL
N
NI
NJ
SFCN)
ACN)
BCN)
PHCN)
ELEMENT NUHBER
:II NUMBER OF NODE
I
= NUHBER OF NODE J
2
SLOPE FRICTION
'" CROSS SECTION
.. FREE SURFACE tJIDTH
:II HYDRAULIC PERIMETER
a
nT-I.
.
UERSION
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
NNODE"NEL+l
IBCD::Ill
TLCTH-I0560.
DX"'TLCTH/NEL
DY"'O.
XX-OJ
DO 101 r-l.NNODE
XCI)-XX*OX
V(I)=XXOV
XX,..XX+ 1.
101 CONTINUE
00 102 I-l.NNODE
A 230
A 240
A 250
A 250
A
A
A
A
A
A
300
310
320
330
340
350
360
A 370
A 390
A 390
A
A 400
A
410
A 420
A 430
A
440
A 450
A
460
470
A 480
A
A
450
500
A 510
520
A
A
A
540
550
530
A SSO
A 570
A
580
A 550
A
600
A S10
A S20
A 530
A 640
A SSO
A 6SO
A 670
A 680
A
690
A 700
A 710
1.80(1)110
A
A
A
A
A
FlC DelEO.
8(1):=20.
SO(Il=O.0015
102 CONTINUE
IBDe 1)=1
C
DO 103 r"'l,NEL
C
C
C
NHl)=!
NJ(I)::oI+l
103 CONTINUE
INITIALIZE MATRICES
DO 104 I"'l,NNODE
C
C
C
C
KCI.J)-O.
CONTINUE
READ
ELEMENT
INFORMATION
PRINT 142
PRINT 142
UALUE8
VOIIS.
CMal.48G/CMNS~RT(SO(1
QO-CM*S(!)*VO*CB(!).YO/(S(!)+2.*VO.EFF
valleO/CBCI)YO)
PRINT ~QOIUO"'~.QO.UO
DO 105 I~l.NNODE
U(Il"'UO
lOS 'r'(ll=YO
PRINT ~INITIALUALUES_
DO 106 I""l.NNODE
PRINT. -UELDCITIES.DEPTHS.,VCIl.'r'CI)
C
C
C
C
106 CONTINUE
-GHAX.TTP~.GMAX.TTP
~TMAX.TAP~,TMAX,TAP
KOUNT-O
C
C
C
940
A 1020
READ INITIAL.
EFF""2d3.
850
A 960
A 970
A 980
A 880
A 1000
A 1010
CMN=O.02
C
C
A 950
T"O.
IDEBUC-l
PRINT 144
C
C
C
C
770
780
790
800
810
820
830
840
860
A 870
A 880
A 880
A 800
A 810
A 920
A 830
DO 104 J=l,NNODE
104
A
A
A
A
A
A
A
FUe 1)"0.
FDCI)-O.
720
730
740
750
760
TO
DTTP"'SO.
UPRINT..SO.
TPRINT=SO.
107 CONTINUE
T"'T+DT
N'I
DO 108 I=l.NNODE
EF=4.-'3.
A
A
A
A
A
1030
1040
1050
1060
1070
A lOBO
A 1090
A 1100
A 1110
A 1120
A 1130
A 1140
A 1150
A 1160
A 1170
A 1180
A 1190
A 1200
A 1210
A 1220
A 1230
A 1240
A 1250
A 1260
A 1270
A 1280
A 1290
A 1300
A 1310
A 1320
A 1330
A 1340
A 1350
A
A
A
A
1360
1370
1380
1390
A 1400
A 1410
A 1420
A 1430
i
I
I
I
BVFP_CB(I)*VC!)/(B(I)+2.*VCI)EF
CMM_CU(I)2)*CCMN2)/(2.20S*BVFP)
c
c
A 1480
A 1490
A 1500
A 1510
DO 109 1=!.NtiODE
J~l,NNODE
FU(J)=Q.
109 K(!.J)=O.
c
c
C
C
C
MAIN
TIME
A 1520
A 1530
LOOP
110 CONTINUE
c
c
c
A 1460
A 1470
108 SF'Il=CMH
DO 109
A 1440
A 1450
--------.----
A 1540
A 1550
A 15BO
A 1570
A 15BO
A 1590
A ISOO
A ISIO
A IS20
A 1630
c
c
c
c
c
c
c
c
-------------.----------FORMATION OF
GLOBAL
MATRIX
K(II,II)-KCII.II)+KLCl.l)
KCII,JJ)aKCII.JJ)+KL(1.2)
I(CJJ.JJ)aK(JJ,JJ)+KL(2,2)
FUCII)aFUCII)+Fl(l)
FUeJJ)rUeJJ)+Fl(2)
IF (IBD(II).EQ.O) GO TO 112
FUCln-U(II)
DO 111 J"'l.NNODE
K(II.J)=O.
111 CONTINUE
c
c
K(IItIn a 1.
112 IF CIBD(JJ).EQ.O) GO TO 113
K(JJ.JJ)=1.
c
c
c
c
c
c
c
c
c
A 1670
A ISBO
A 1690
A 1700
A 1710
A 1720
A 1730
A 1740
A 1750
A 1760
A 1770
A
A
A
A
A
1780
1750
1800
1810
1820
A 1850
A IBSO
A 1870
A 1880
A 1850
A 1900
113 CONTINUE
A 1910
A 1920
IF (N.EQ.NEL) GO TO 114
NaN+1
GO TO 110
A 1660
A 1830
A 1840
FU(JJ)~FU(JJ)-K(II,JJ)U(JJ)
A 1640
A IS50
114 CONTINUE
A 1930
A 1940
A 1950
A 1960
A 1570
IF (T.GT.1.) GO TO 118
PRINT , _STIFNESSMATRIX~
DO 115 I"1,NNODE
115 PRINT 147, (K(I,J),J-1,NNODE)
11S CONTINUE
A 1980
A 1990
A 2000
A 2010
A 2020
A 2030
A 2040
A 2.050
A 2060
NB-NNODE
A 2070
117 U(l)"'UN(1)
A 2080
A 2090
A 2100
A 2110
A 2120
A 2130
A 2140
A 2150
U-X(2)-X( 1)
A 2160
VCllaY(ll+(DT/Ll'.'UCl).'VC!l-VC2+VCl).'U(!l-UC2)
TDEll-TTP
IF (TO) 118.118,119
118 Q=QO+(QMAX-OO)/TTP*r
GO TO 122
A 2170
A 2180
A 2190
A 2200
A 2210
A 2220
A 2230
A 2240
121 Q=QO
Fl 2250
122 CONTINUE
c
c
A 2260
U(l)~Q/(B(l).V(l
Fl 2270
A 2280
IF CT-UPRINT+O.002) 124,123,123
A 2290
n-T/SO.
A 2310
A 2300
123 UPRINTI:IUPRINT+DTTP
c
c
c
c
C
A 2320
Fl 2330
A 2340
A 2350
PRINT 146
PRINT. -T1ME=_.rT
PRINT -UELOCITIES_
I
A 2360
A 2370
A 2380
A 2390
------------------------
---
A 2400
Fl 2410
124 CONTINUE
A 2420
Nol
C
C
C
C
r-T+OT
Fl 2430
A 2440
A 2450
DO 125 I==l,NNODE
A 2460
DO 125 J=l.NNODE
Fl 2470
A 2480
FDCJ)1I0.
A 2490
A 2500
A 2510
125 KCI,J)=O.
A 2520
126 CONTINUE
------
C
C
cc
c
------
c
c
c
c
c
c
c
A 2540
A 2550
A 2550
A 2570
A 2580
A 2590
C
C
A 2530
A 2500
A 2510
A 2520
A 2630
A 2640
A 2850
A 2660
A 2670
A 2680
A 2680
A 2700
A 2710
IF CIBDCII).EO.O) CO TO 12S
FDC II) ..YC II)
DO 127 J-l,NNODE
127 KCII,J) ..O.
A 2720
A 2730
K(IIdI)"1.
128 IF CIBDCJJ).EO.O) GO TO 129
FDCJJ)cFDCJJ)-KCII,JJ).YCJJ)
KeJJ,JJ)=l.
A 2770
A 2780
129 CONTINUE
IF (N.EO.NEL) GO TO 130
N:::.N+ 1
GO TO 125
A 2740
A 2750
A 2760
A 2790
A 2800
A 2810
2820
A 2830
A
A 2840
A 2850
A 2860
A 2870
c
c
c
130 CONTINUE:
----------------- - - - - - - - - -
c
c
c
c
131
veIl~VNeIl
c
132
c
c
c
c
c
c
TD:::::oT-TTP
IF eTD) 132.132.133
Q~Qo+eQHAX-OO)/TTP.T
c
c
c
c
c
c
c
A 3040
A 3050
A 3060
A 3070
A 3080
A 3050
A 3100
A 3110
A 3120
A 3130
A 3140
A 3150
136 CONTINUE
U-X(2)-Xe 1)
yel)-Q/eBel)VCl
IF eT-TPRINT+0.002) 138.137.137
137 TPRINT:::::oTPRINT+DTTP
PRINT , _DEPTHS_
A 3160
A 3170
A 3180
A 3180
A 3200
A 3210
139 STOP
140
141
142
143
144
145
146
147
FORMAT
FaRHAT
FORNAT
fORMAT
FORMAT
FORMAT
FORMAT
FORMAT
elHl)
eI2.13A6)
C2X. 47H~_~R~ .. a. . . . ~~. . .~. . . . . . . . . . . . .___=__=.~=a. . .a.')
C///)
C2X. 25HELEMENTS CHARACTERISTICS",)
C4F10.0)
C////2X)
C2X.IO(FI0.3.2X)
END
SUBROUTINE FORMEa CNI.NJ.N.X.V.NNODE.U,DT.kL,Fl,Nl,F2,II,JJ.SD,Sf.
lA,B)
A 3030
GO TO 136
133 IF eTD-TAP) 134.134.135
134 Q~QHAX-eaMAX-aO)/TAP.TD
GO TO 136
135 a-ao
C
C
A 2880
A 2890
A 2900
A 2910
A 2920
A 2930
A 2940
A 2950
A 2960
A 2970
A 2980
A 2990
A 3000
A 3010
A 3020
REAL KLC2.2),XCNNODE),VCNNODE),UCNNODE),Fle2).F2C2),SOeNNODE).SFCN
INODE).AeNNoDE),BeNNODE)
INTEGER NIeNNoDE).NJ(NNODE)
II~NJ(N)
JJ-NJ(N)
XI-XC II)
VI-VCII)
XJ..xeJJ)
VJ..yeJJ)
L-XJ-XI
IF CNl.EO.O) GO TO 101
-------------------------.----
-------------------------------
3220
A 3230
A 3240
A 3250
A 3260
A 3270
A 3280
A 3280
A 3300
A 3310
A 3320
A 3330
B
10
8
20
B
30
B 40
B
50
B
60
B
70
B
80
B
80
8 100
B
110
B
8
120
130
150
8
B
170
B 140
B 160
B
B
8
B
180
190
200
210
220
B 230
8
B
240
250
B 260
.
RETURN
c
c
c
c
101 CONTINUE
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
c
2BO
290
B 300
B
B
B
B
B
B
8
B
B
B
C
DO 102 1=1,2
102 F2e!)I:FICI)
RETURN
END
SUBROUTINE LINEAR eKL,II,JJ,L,U.V,SF,SD.A,B,NNODE,DT,Nl.Fl)
...............................................................
G*32.2
KLel,l).eL/e3*OT))-eUeII)/3.)-eUeJJ)/s.)
KL(1.2).eL/eS.*OT)+eueII)/3.)+eUeJJ)/s.)
KLe2,1)=(L/S DT)-eUeII)/s.)-UeJJ)/3.
KLe2,2)=eL/e3 0T))+eueII)/s.)+eUeJJ)/3.)
PRINT,~Fel, F(2~,Flel),F1e2)
RETURN
20
30
40
50
SO
70
80
90
100
110
C
C
150
180
170
C 180
C 190
C
C
C
200
210
220
C
C
C
C
C
C
240
250
2S0
280
290
310
270
C 300
C 320
END
SUBROUTINE SOLUE (BB,KK.NNODE,NB,RN.R)
.....................................................
REAL BBeNNODE).KK(NNODE.NNODE).RNeNNODE),RCNB)
DO 101 I=l.NNODE
101 RN(I)",O.
----------
330
340
C
D
D
D
D
D
D
350
..--------------------------
END
410
10
C 230
Fl(1)=(L/DT)eeV(II)/3.+yeJJ)/s.)+eAeII)/e3. e seII)+AeJJ)/es.*S(JJ)
!)).eueII)-UeJJ))+eU(II)/3.+U(JJ)/6.).eveII)_VeJJ))
F1(2)=eL/DT).(VeII)/6.+Y(JJ)/3.)+eAeI1)/es.*BCII)+AeJJ)/(3BCJJ)
1).eU(II)-UeJJ))+eU(II)/6.+ueJJ)/3.).CVCII)_VeJJ))
RETURN
390
400
C 140
Fl(1)~eL/DT).(UeII)/J.+UeJJ)/s.)+eG/2.).eveII)_veJU)_G.L.eSFeII)/
134+SFeJJ)/6.-S0eII)/3.-S0eJJ)/S.)
Fl(2)=eL/DT).eueII)/s.+ueJJ)/3.)+(C/2.).eveII)_veJU)_c.L.eSFe1I)/
16.+SF(JJ)/3.-S0eII)/S.-SOeJJ)/3.)
102 CONTINUE
370
380
C
C
C
C
DO 102 I=l.NNODE
RN(I)::oR(!l
360
C 120
C 130
IF eN1.EQ.0) GO TO 101
-------
340
350
C
C
C
C
C
REAL KLe2.2),UeNNODE).V(NNODE),SFeNNODE).AeNNODE).BeNNODE).soeNNCD
lE).F'!e2)
RETURN
101 CONTINUE
310
320
330
---------_._------------
c
c
c
c
B 270
B
B
D
D
10
20
30
40
50
SO
70
80
90
100
110
120
D
D
D
D 130
D 140
D 150
D 160
D 170
D 180
D 190
D 200
D 210
D 220