Petsoc 68 01 07
Petsoc 68 01 07
., ;
" \-
1:'-.
,
Numerical Methods for Three-Dimensional
,..i
j
, Reservoir Models
,
j
~""-
.j By K. AZIZ" [: ;'
:?J , (18th Annual Technical Meeting, The Pet"a/en'" Society of elM, Banff. Alta" May, 1967)
J,\
."" linear and even some linear problems are based on finite-
,.j
:~;
difference approximations for the derivatil·es. This paper
presents finite-difference methods which are most suitable
DOMAIN
R
w.hen ch~nge~ are taki~g place in all three space coor-
dmate directions and In the time direction. The main
, concern here is '\-'ith physical systems - such as petroleum
"I" res~rvoirs - whic!I are often described by a set of para-
", bohc and/or elliptIc partial differential equations.
~1
BOUNDARY r
INTRODUCTION Figun~ l.-Hypothetical Physical System_
IN THE LAST FIVE YEARS OR SO) a great deal has hap- Note: (1) Laws of conservation of mass, momentum and
energy must be satisfied in R.
pened on the technological front. The engineer has be- (2) l~t,eraction with surroundIng, S. must be spe,
come more and more sophisticated in the use of mathe- cifled by a set of boundary conditions on r
matical tools, and the computers have become faster
and bigger to satisfy engineers' evel'-increasing de-
mands. As a result of these significant changes, the all three space dimensions with or without transient
partnership between engineer and computer is now effects wiII be referred to in this paper as three-di=-
perhaps stronger than the traditional partnership of mensional models. Often changes in one or two of the
engineer and slide rule. Engineers are more than mere space dimensions may be neglec.ted and we are left
,users of this new technology. Their contributions in with' a simplified one- or two-dimensional problem.
the areas of computer hard\'mre, software and numer- For example, changes in the z-direction are often
ical techniques are monumental. It is interesting to ne.glected to give a two-dimensional model of the
note that some of the greatest numerical analysts of reservoir_ Even simpler models are employed in the
our age received their first degree in engineering. analysis of build-up analysis or back pressure tests
These people were motivated by the need for the solu- where only changes in one direction (r-direc.tion in a
c~..lindrical coordinate system) are considered.
tion to difficult practical problems and not just by
mathematical beauty. Their efforts have resulted in
giant, put in some cases crude, steps_ The mathemati- BASIC STEPS FOR MODELING
~'
cians have made contributions of their own and in Regardless of the problem being stUdied, certain
addition, in many cases have tied up the loose ;nds steps are alwa}'s necessary in constructing mathemat- "
, left b}r the engineer regarding mathematical rigour. ical models of physical systems. Let us consider a
This is not intended to underrate the work of mathe- hypothetical system, as shown in Figure 1. The steps
maticians, but to put engineering contributions in to be followed in modeling are: '
their rightful place. , '
The computers of this generation are now at a stage (1) Gather as much information about the system
where engineers may no longer have to assume that as is practically possible and economically justi-
their physical system is one- or two-dimensional when fied.
in fact this assumption is not justified. All petroleum (2) On the basis of (1). make assumptions which are
reservoirs are three-dimensional in space, and phe- justified on physical grounds. For example, one "
"
* A cartesian coordinate system is employed in this dis- ;~ Associate Professor) Dept. Of Che1nical Engineer-
cussion. ing, The UniveTsity of CalgaTJI, Calgary, Alta.
Technology, Jonuary-March, 1968, Montreal 41
(3) "\Vrite the equations that describe the laws of The number of equations to be solved will be equal
consenration of momentum, energy and mass for to the number of independent variables. Usually, in
the system. Also, determine the phenomenological the solution of a transient problem, the s:~rstem of
relations (for example) shear stress - shear rate equations will include parabolic, elliptic and algebraic
relations) and necessarJr equations of state for equations. In certain problems) hyperbolic equations
the fluids in the system. Make the equations di- may also be encountered. Some convenient notation
mensionless and reduce the number of parameters will be introduced before presenting typical partial
to a minimum_ differential equations for systems involving more than
(4) Describe the interaction of the system with its one dependent variable. Let Lm be an operator defined
surroundings for all times, specif.y the initial con- by
ditions and make these relations dimensionless.
(5\ Make the assumptions that must be made in
order to get a solution for the problem. The ne-
cessanr assumptions will depend upon (a) the
competence of the person solving the problem and ••• (2)
(b) the accuracJ' desired.
(6") Solve the problem bJ· the "best"-suited method. Then equation (1) may be written as
All of the steps given above are important and L (Ul =
;;~
t - ~• • (3)
often difficult_ No attempt will be made here to an-
The most general form of the equation used in iso- The first s equations (:ja) are parabolic and the re-
thermal, single~component, single-phase studies in maining M-s equations (.5b) are elliptic. The equations
porous media is are coupled if any of the coefficients
b
~
;j
-
~,
(I.,
..
~u
-) - to
are complicated, except for some highly simplified on r must be specified. The function of fm may also
cases. The analytical solution of the corresponding invoh'e any of the derivatives of U I. U\ ... V'R-I, ...
non-linear problem is impossible b~r kno\\'n mathemat- U"'- " ... UOI or it could be a constant. Here ii is n
ical techniques. direction normal tu the surface. In addition, for the
parabolic equation we must also spedfy, in R values
I b) Comple:t: Plow of all independent variables at some specified time,
t = O.
The system is described by a system of partial dif-
ferential equations if the problem involves
(i) non-isothermal flow, ... (.')
[ .
ul.\
tions_ This suggests that the alternating direction
methods developed for the linear diffusion equation
could be extended for use with the parabolic problems
of this investigation. Similarly, all of the iterative
methods used for the Laplace equation or Poisson
The value of anyone component of this vector at a equation could be extended for the solution of the more
grid point is given b)r c9mplicated elliptic equations being considered here.
This is precisely the method that has had the greatest
t '" 71 tl 1
Lf'l(x.v,~,t), x'" i tl x amount of success in several problems investigated
V ~ j tl Y by the author (of. Aziz and Hellums, 1967).
z " k tl z
nx o., •
x 0,
,
(2) The problem is solved implicitly in the y-direc-
Note that in the above definitions, indices i,1.: and n tion and an intermediate solution, u**, is ob-
have been sllpressed from each term, i_e., instead of tained: <,
}\.. point 'Worth noting here is that the Q" operator (Be)
involves the use of only three points, (i-l,i 1 k,u)J (i,j,
H ••
"" as an approximation for (~). An ADI scheme similar
to the one proposed for the parabolic equation mll~'
':1-.' be derived for the .solution of equation (12):
'-1-1
"'' ..,,', . .,
Ii, - " I ,
"i "i,~, "t I
y
" u.rJ,},v+1 y u .. ,.i.!r, "
" " 'OJ
co , -
"" I , -:.. "I,' _'+1
, , ".~,.1, ;', v
u
I,.i. ,
~.
. " " I
._'- .L.-......J.-
- - - " - - ' , -,-~.. , .',
be written as
+ B••
"I.,J- , ,. . I k+ B7.,.1,i'.
k"'"I.,J-, . • k + Ii . . I k'
. . , u1"J,' 1,~.7+,
u •• , k
1, •.1+, TIME STEP COUNTER
MAXIMUM VALUE "'N
'" <!: • • ,
7.,.1,i'.
OUTER INTERATION
(III) COUNTER
wherE!
'--YL.!E""S,-o-( "< N ~
)"
'~.,.
.'
-
~: .
NO .,' ~
;\, ..
+
~.;!:
b (k k ) STOP
Zi,j,k Zi,j,k_lJ Zi,j,k+~
.' -.
Figm'e 8.-Logic Flow Cha1't.
Note that the above notation may be convenient in the The selection of iteration parameter w is relatively
solution of both equations (9) and (18). simple for a rectangular prism and a linear problem
Let (,) indicate the iteratio'n level ss in (13). Equa- (cf. Young, 1955):
tion (14) may then be solved by
." ,;:~.
w '" I + [ --'-I'
I +.rr+P"z • , _ (17)
, I
[(li"xl 1 eos
~
<l;I )2 cos (L I +
y y
••• (I S)
L", Ll • and L" are lengths in the x, Y, and z directions
respectively.
For 6x = 6Y 6Z and L" = Ly
1"
SYSTEMS OF EQUATIONS
=_3- Now that methods for a single parabolic and a
h'
single elliptic equation have been developed, methods
for systems of equations may be proposed. The order
in which the equations are solved will depend upon
~-,. '.
For this simple problem, equation (15) becomes the problem being considered_ One such example where
seven simultaneous partial differential equations are
solved is discussed by Aziz and Hellums (1967). Ideal-
l}~, equations should be ordered in increasing degree " ~'
tion, mathematical ability and 'a real feel for the ;<I'·r.·'o)" ';,10',
physical phenomena being investigated are important u·. ,," ;,,1, rr, Ii ,', ",'"
;.,1,-,
S(',I,-
It,- , .. " , "
"
,I, ", • ,,,,,'"
~" ,
REFERENCES
(1) Aziz, K., and Hellums, J. D., "Numerical Solution of
the Three-Dimensional Equations of Motion for La-
minar Nautral ConYedion," Physics of FLUids, 10, Dr, Khalid Aziz: IS assistant professor
314, (1967). of chemical engineering at the Univers-
(2 ) Brian, P. L. T., HA Finite Difference Method of High ity of Calgary, He wos born in Pakistan
Order Accuracy for the Solution of Three-Dimensional and received his engineenng education
Transient Heat Conduction Problem," A.l,Ch,E..!.• 7, ot the University of Michigan, the Uni-
367, (1961). versity of Alberto ond Rice University.
(3 ) Douglas, J., Jr., "Alternating Direction Method for He has worked for the Korochi Gas Co,
Three SpaC'.e Variables I" Nll'nz. Ma.th .• .4, 41, (1962). in Pakiston in various ;;apacities. in-
(4 ) "\Vachspress, E. L., Ucra.tive Solllti.on of Elliptic cluding thot of chief engineer, and has
EquutioHS, Prentice Hall, N.J., (196G). taught at the University of Alberto for
(5 ) Young, D .• "Iterative Methods fOl" Solving' Partial three years.
Differential Equations of Elliptic T,,\'pe," T1·UHS.
A me?·. MaUL. Soc., 76, ~12, (1954).