Professional Documents
Culture Documents
net/publication/245296719
CITATIONS READS
33 57
2 authors, including:
D. Sen
Indian Institute of Technology Kharagpur
27 PUBLICATIONS 322 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by D. Sen on 26 April 2017.
ABSTRACT: This paper presents an efficient solution algorithm for one-dimensional unsteady flow routing
through a dendritic channel network system. The finite element method is used to solve the Saint Venant
equations in all branches of the network simultaneously. The maximum active memory required is only 2N X
2N, where N = number of branches in the network. Importantly, the algorithm does not require any special node
Downloaded from ascelibrary.org by Indian Inst Of Technology Library, Kharagpur on 04/26/17. Copyright ASCE. For personal use only; all rights reserved.
numbering schemes, and the nodes or elements can be numbered independently for each branch. The algorithm
is also suitable for programming using a parallel processing computer. The solution technique can also be
extended to finite difference methods.
!O-eijl ~a-ib~
Downloaded from ascelibrary.org by Indian Inst Of Technology Library, Kharagpur on 04/26/17. Copyright ASCE. For personal use only; all rights reserved.
h-eb
@ ®e TYPE OF BRANCH
FIG. 1. Dendritic Network Showing Different Categories of Branches
at the confluences and will be referred to in this paper as the DERIVATION OF ELEMENT MATRICES
Q-ib and h-ib conditions, respectively. The total number of
interior boundary conditions at a confluence is equal to the To demonstrate the basic philosophy and essential steps in-
number of channels meeting at the junction. At each of the volved, the channel network system is discretized into one-
confluences, the downstream ends of the inflow branches are dimensional linear elements. However, the same logic will also
imposed with the h-ib conditions and the upstream end of the remain applicable for the higher order elements. In the pro-
outflow branch is imposed with the Q-ib condition. Other in- posed solution scheme, each branch may be numbered inde-
terior boundary conditions may occur within a single branch, pendently. For example, a three-branched network [Fig. 2(a)]
e.g., due to a weir, constrictions like bridges, etc. However, is discretized as shown in Fig. 2(b). The nodes have been
these conditions are omitted in the present study, because ap- numbered as b· j, the symbol standing for the jth node of the
plication of these is very straightforward and no special mod- bth branch. The branches may be numbered arbitrarily, but the
ification of the algorithms is required. connectivity of the branch at each confluence will be required
At the outlet of a dendritic network, a depth-discharge re- while applying the interior boundary conditions.
lation or a depth-time variation has to be specified (Cunge et The finite element method is used with the Galerkin
al. 1980). Because this condition appears at the exterior of a weighted residual principle to solve (1) and (2). In general, a
channel network system and relates the water depth at a point branch is divided into K number of linear elements with nodes
to some function, it is referred to as an h-eb exterior boundary numbered from b· 1 to b· (K + 1). Th nodes may be numbered
condition. In addition, the discharge values as a function of either from the upstream end proceeding to the downstream
time are also specified at the upstream ends of the dendritic end of a branch or vice versa, but for the present, all branches
tree as a part of exterior boundary condition and will be re- have been numbered proceeding upstream from the down-
ferred to as Q-eb conditions in the present study. stream end.
It may be observed that any branch of the dendritic network Applying the Galerkin technique and solving (1) and (2),
will have either a Q-ib or a Q-eb condition at its upstream end the element equations for an element e, with local nodes 1 and
and either an h-ib or an h-eb condition at its downstream end. 2, can be written as
On the basis of this observation, branches may be classified
into three categories (Fig. 1): [X]' 8<1>}' +
{Sf {Y}' (7)
1. Branches with a Q-eb condition at the upstream end and where {8<1>/8t} is the temporal derivative of the variable vector
an h-ib condition at the downstream end (branch type {<I»} and
"ei" in Fig. 1)
2. Branches with a Q-ib condition at the
an h-ib condition at the downstream
"ii" in Fig. 1)
3. Branches with a Q-ib condition at the
an h-eb condition at the downstream
upstream end and
end (branch type
"ie" in Fig. 1) in which Qi and hi = discharge and depth at the local node i
of element e.
The problem thus requires computation of the dependent As linear shape functions are used, the matrix [X)' will be
variables at specified intervals of time t along the branches. composed of four submatrices, each of size 2 X 2, and matrix
The computations are started by solving (1) and (2) with the {Y}' will be composed of two column submatrices, each of
initial, exterior, and interior boundary conditions. size 2 X 1. It may be noted that {Y}' is nonlinear and will
832 I JOURNAL OF HYDRAULIC ENGINEERING I AUGUST 1998
Branch I
be a function of {4»}. Because the objective of this paper is proved values of the variables {4»} are worked out from the
to develop a methodology to assemble and solve the resulting relationship
finite element equations, the details regarding the derivation
of the element matrices are omitted. The element matrices can {4»lr+1 = {cf)h - {44»} (14)
be derived with or without upwinding schemes, only effecting {4»}r is now replaced by {4»}r+h and (11)-(14) are repeat-
a change in the numerical value of the elements of the matrices edly solved till {44»} decreases below a specified tolerance.
[X]' and {V}'. No changes in the proposed algorithms will be It may be noted that [W] may actually be formed by an
required. assembly of element Jacobian matrices [W)'. Similarly, {F}
may also be fonned by assembling element column vectors
ASSEMBLY OF ELEMENT MATRICES {F}'.
Having formed the element matrices, the next step is to EFFICIENT SOLVER
assemble them. Because the governing equations are applied
branchwise, the element matrices pertaining to the branches Matrix [W] would be banded except for some tenns arising
are assembled independently. A second assembly is then re- out of the implementation of the internal boundary conditions.
quired to combine all the branch matrices into a global matrix. It is difficult to give a suitable node numbering scheme to
It is here that the boundary conditions are applied. The vari- reduce the bandwidth for a general network flow problem.
ables of the different branches become interconnected through However, for the proposed algorithms, the nodes of each
application of the interior boundary conditions. For the three branch can be numbered independently [as shown in Fig.
branched network of Fig. 2(a), the applied boundary condi- 2(b)], and the following paragraphs detail a simple method to
tions are shown in Fig. 2(c). solve the error vector {A4»} from (13). The sample network
After replacing the temporal derivative of {4»} with a dif- (Fig. 2) is used as an example to explain the various steps
ference equation in time, the assembled equations of all involved in the algorithm.
branches can be written as To get a solution, (13) must be solved. To reduce the band-
width, the (Q, h) pairs of equations corresponding to the down-
[R]{4»} + {S} =0 (9) stream nodes of each branch must be separated out and ar-
ranged as shown in Fig. 3. The matrix [W] thus converts into
where R = nonlinear assembled global coefficient matrix; S = a double-bound band fonn of matrix. This fonn is advanta-
nonlinear assembled global right-hand-side vector; and 4» = geous in that a forward elimination may be perfonned for all
unknown vector at time (t + At). the variables corresponding to the nodes of the branches, ex-
It may be noted that [R] and [S] would be nonlinear func- cepting those of the lowest nodes, independently for each
tions of {4»}; therefore, to solve (9), the Newton-Raphson branch.
method is used. Denoting (9) as By doing so, one is left with a 6 X 6 matrix relating to the
!<cf) =0 (10) unknowns of the downstream end nodes of the example prob-
lem. These six equations are solved simultaneously to get the
a Jacobian matrix [W] and a column vector {F} may be error vector {Acf)} corresponding to the downstream node of
fonned such that each branch, Le., nodes 1·1, 2 ·1, and 3·1 of the example
problem. These values are now used in a back substitution
[W] = [o~] (11) phase to obtain the error vector for the remaining nodes of the
branches; this backward substitution phase can also be carried
out independently for each branch.
{F} =/(cf) (12) It may be noted that both the forward elimination and back
corresponding to an initial guess of the variable {cf)} as {cf)h. substitution processes may be carried out for one branch at a
The error vector {4cf)} is then obtained from the following time, the branches being taken in any order, thus requiring
equation: very small active memory at any point in time. There is also
a significant reduction in the solution time because of the re-
[W]{Acf)} = {F} (13) duction in the bandwidth. Because the forward elimination and
backward substitution phases can be carried out independently
From (13), the error vector {44»} is calculated and the im- for each branch, it may be programmed on a parallel processor
JOURNAL OF HYDRAULIC ENGINEERING / AUGUST 1998/833
###### I #
1 o 'e4- 00'e4 (t I
#### I #
#### I
1------
##"
------
#### I ##
**#
# # # # # #1 #
######1 #
I1 O'e4 - 0 Q h4 (t I
# # # #1 #
:# # ----I------I------I#"i---- --It---
1 I 1# 1 h lel-hh'el (0 lei)
1# # I I # # #
-11 I I 1 h 2el - h le4
I 1# # I # # #
I -11 1 1 hhl-h le4
FIG. 3. Global Equations Rearranged after Separating Lowest Node. of Each Branch
machine. Each processor may be given one branch to work branch, which are numbered from b·l through b '(K + 1) for
upon. The solution of a 2N X 2N matrix is found in one a general branch b; this is shown in Figs. 4(a-c) for subse-
operation by the host node of the parallel processors, where N quent use. The node numbering for the three types of branches
= number of branches in the network. already discussed would be similar.
o
t::0 rr.;:;;-n I
~Oddel
eel
be(K+I) ~Q-/I1 ij
be(K+ II
bel 0
O!'SJ
(01 (bl Ie)
FIG. 4. Details of Three Types of Branches Showing Node Numberlngs: (a) Branch Type "el"; (b) Branch type "II"; (c) Branch Type "Ie"
8(b).
element matrices [W)". Also, let {M2} be the assembled
2. Application of boundary conditions and elimination of
column matrix corresponding to column vectors {F}·.
variables corresponding to node b·(K + 1):
The equations corresponding to the downstream node
After incorporating the boundary conditions, the final
b·l are written at the end of the matrices. This arrange-
reduced matrix of Fig. 8(b) will be redefined depending
ment would look like that shown in Fig. 5. This is re-
on the branch type, as described below in the following:
quired because the variables corresponding to the down-
• Branch type "ei":
stream nodes of each branch are not to be eliminated in
The Q-eb condition is applied at the first equation of
a forward elimination process, but rather are to be solved node b· (K + 1), as shown in Fig. 9(a), and will finally
simultaneously after the end of the forward elimination reduce to Fig. 9(b) after eliminating the variables
phase. A double-bounded band matrix solver can be used
.iQb-K+1 and .ihb-K+I' The h equation corresponding to
efficiently to reduce the equations in this phase. The ma-
trix [MI] will look like Fig. 6 for any of the branches
after the end of the forward elimination phase. # # ## 6.0 .... #
The frontal concept can also be used to reduce the # # ## 6.1'1 "•• #
equations. Consequently, it will not be necessary to 6.0 ...,
model the full form of the assembled [MI] and {M2} 6.1'1 lie'
-
matrices. The variables can be eliminated at the element
level; thus, a matrix size of more than 6 X 6 for linear
#tt # tt 6.0"., #
elements will never be required. Because the downstream # # # # 6.1'1 .., #
node will not be eliminated, the element matrices for the
( 0 )
first element are arranged as shown in Fig. 7(a). Next,
#### ## #
###### 6.0 .... #
6. 0 ...
##It# ## 6. h ••• # ###### 6.1'1 "eI #
##ltlt## 6. 0 ••, # #### 6.0 lie, #
#It#### 6. h ••1 #
#### =
###### It 6.1'1"., #
###### # # # ##
###### 1\ 6.0 lie I #
= -## # #
######
######
# 6.1'1 ".1 #
#
It##### #
#### tJ. 0 " # (b)
#### 6. h .., " #
It# ## 6. 0,., # FIG. 7. (a> Arrangement of Element Matrix for Element 1; (b>
#It ## A h •• 1 Assembled Matrix of Elements 1 and 2
**
###### 6.0 ".IC #
[M 1] {M2} ##### 6.1'1 ...1< #
#### 60""1C+1I #
FIG. 5. Arrangement of A..embled Matrices for Branch b
#### 61'1 "',K+IJ -#
#### 60 ..., #
1111## #It '#
# It II # # #
#### 61'1 h i #
#1*## ## '#
### !tit :#
###11 #It (0)
# # It 1* # **
#
~u
#### #It #
;]j
#
""'' j
In
It II It # # It
#####1* It ## (j h ".11<+11
## #**
#1*###
1* # It It
#
110
(jo ... , -
6. a " It
It It # # It
# # # #
6. h
t:, 0",
"
# ## # (jh hi
1* It # 1* t:, h.o ' It
(b)
[M 1]
FIG. 8. (a> Final Reduced Matrix after Aseembly of Laat EI.
FIG. 6. Matrix Structure after End of Elimination Phase 1 ment; (b) Active Matrix for Further Consideration
·
LI h •• ,
like that shown in Fig. lO(a). The variables aQb.K+l and FIG. 11. Storing Final Reduced Equations In Global Matrix of
ahb .K + 1 can now be eliminated, and the matrix would Downstream Nodes
look like that shown in Fig. lO(b). For reasons similar
to those given for branch type "ei," the h equation cor-
responding to node b·1 for branch type "ii" is ignored. boundary condition. Also, the equations corresponding to
For the "ie" type branch, the h equation would obvi- aQc.l and AQd'l will be ignored, because they will be
ously be ignored because of the external downstream considered at appropriate places while applying the Q-ib
conditions at nodes c· (K + 1) and d· (K + 1), respec-
tively. It may be noted that we have assumed only two
1 °
6 .elK+'1 °.. IK+II - OO••IK+II I t I inflow branches at each confluence purely for demon-
stration purposes. For more inflow branches, the matrices
"# # "# # 6 h .elK+1I "#
= of Fig. 10 may be suitably modified incorporating the
# # # # b 0 ••, # boundary conditions.
# At this stage, the highlighted sections of the matrices
# "# # # bh h' shown in Figs. 9(b) or lO(b) (depending upon the type
I Q)
of branch) will be the only remaining active portions to
be appropriately stored. This portion of the matrix, when
kept in the global matrix of downstream nodes, will look
b ° .elK+1I °"111+11 - OO•• 'K+II I t) like that shown in Fig. 11.
# # # b h ••111+11 #
U bO h ,
0 Phase 2: Solution of Lower Node Equations
# # bh hi *I The lower node equations for the example problem (Fig. 2),
kept in the global matrix form, will look like that shown in
Ibl
Figs. 12(a) and (b) respectively before and after incorporating
FIG. 9. Final Reduced Form of Matrix for Branch 'TYpe "el": (a) the outlet boundary condition, e.g., in the form of a rating
Application of Q . .b Condition; (b) Reduction of Variables for curve. Now these equations are solved simultaneously to give
Nodeb·(K+ 1) the nodal unknowns for the downstream nodes of all branches.
-1 -1 A~.III+II ~.IK+II-O",-O,.,
"* ** lIOI·'
"" "* '** 6h"'I1+11
"" ** ** ** **
Llo"., 6 h).) h 1')- hh'·IIO)·I)
1# ** **
~*' llh•• ,
LlO••,
**
**
**
# II ° 2 ,/
**
/=
** 1
**
**
** :1 llh".,
A~.I
c=;] "# ** ** 1 **
# #
LI h2 ' 1
Ll03 ·)
**
**
Ah•• ,
** "" Ib) "" # "# 11
**
LI h3 ./
**
Ib)
FIG. 10. Final Reduced Form of Matrix for Branch 'TYpes "II"
and "Ie": (a) Application of Q-Ib Condition; (b) Reduction of Var- FIG. 12. (a) Global Matrix for Example Problem after Ellmlna-
lables for Node b· (K + 1) tlon Phase; (b) Introduction of Outlet Boundary Condition
'"6Or--------,
~SC
u4C
n
.E
i20~
3C
\ 0 I
\ ~~~~~_:::~~-:.::_:::_:::--
----------~lJ 2
i10 '-----
C O'!:---f.:-~~_=___f..~
------------
"::: ~-:..:::::: ::-:::: 1
o 10 20 30 40 SO I - - b ------I
Tim. in hours
rn
FIG. 13. Layout of Hypothetical Network Problem with Inflow Hydrograph Details
100', . - - - - - - - - - - - - - - . . . ,
Junction A Junction B
.6
..o~
.J::
40
'"
.!!!
c
o so o so
160.-------------,
III
~ 140
§ III
Junction C ~ 10
Junction 0
.='" 120
S
u
90
~ 100
d
.J:: 80
III
o
10 20 30 40 so 10 20 30 40 so
Time in hours
Time in hours
FIG. 14. Computed Outflow Hydrographs at Some Junction Points of Hypothetical Network