Comparisonof Alternating Ixrection Explicit and Implicit Procedures in Two-Dimensionalflow Calculations
Comparisonof Alternating Ixrection Explicit and Implicit Procedures in Two-Dimensionalflow Calculations
534
INTRODUCTION
+q= o,.......(2)
SeveraI recent papers 1-3 discuss an altemating-
direct;on expIicit difference approximation (ADEP) and at even time steps by:
to the diffusion equation. Example applications
of ADE P an? ADIP4 were reported to support
conclusions that ADEP is comparable in accuracy
to ADIP and requires one-fifth to one-third the
computing time of ADIP. Applications of ADEP in
calculation of two-phase flow in reservoirs was
also proposed. 3
This study was performed to compare further the
relati-, e merits of ADEP and ADIP in simulation of
two-dimensional fIow of one and two tluid phases
in reservoirs. Since two-phase flow equations are
often essentially elliptic rather than parabolic, the +-q =0,.............(3)
efficiency of ADEP in solving the elliptic equation
was ako examined.
where
ADIP AND ADEP DIFFERENCE EQUATIONS
= U(ti> JAY, WM)
The diffusion equation: ‘; j
u ~+u+q=u . (1) Ax U“ n
YY t“””’’””” ij 5 ‘~1-l., j - ‘ij
governs heat conduction, molecular diffusion and
slightly compressib~e fluid flow through porous
n=n
media for the case of homogeneous, isotropic media.
~y ‘ij - ‘i, j+l - ‘;j
The ADEP procedure 1-3 involves replacement of
2rn-2 - u2n+l
IJ
‘ii i.j EA2U =().... . . (8)
. +q=o”(s) z
ij
i=l j=l
at even time steps, where to preserve the no-flow condition at the boundaries.
If a grid of type shown in Fig, lb is empIoyed, the
~2 Un n side points must be weighted in Eq. 8 by a factor
x ij = ‘i+l, j - ‘U;j + U;-l, j of one half and corner points by one fourth.
As shown in Appendix A, ADIP satisfies Eq.
8 exactly for either type of grid. ADEP, however,
~2 Un yields an error term of order (At)z on the right side
of Eq. 8 for grids of type shown in Fig. la. This
Y ij = ‘;,j+l - 2u~j + ‘;, j-l
error will cause the material balance in ADEP
,
Each of Eqs. 4 or 5 implicitly relates” three un-
known (new time step) u vaIues at each grid point
and leads to a set of simultaneous equations J ● ● ● ● ● ●
6
easily solved by Gaussian eli&ination.
TRUNCATION ERRORS ● ● ● ● ● ●
[L ‘1 9
2*JU) + L2*2 (0
t ● ● ● ● ●
is: I s— t
-,
Al u + At2
+QA$ +OA$
AX Xtt Ay ‘ytt
()()
. . . . . . . . . (6)
The ADIP truncation error, defined as
[R2M1(u) + R2N2(u)
is:
2
At2 U Uttt + u(At3) . (7)
yytt “ ~+ {81
Ml
$ - ‘: - (Uo uql) -’ ‘ “ “ “ (g) The analytical solution to this problem is:
H
ADIP.
Figs. 7 and 8 correspond to Case 3 ADEP treat- 2[1+5 ]
ment where the question of difference form at
insulated boundaries is avoided by solving the or At== [(0.1 )2]/4 = 0.~02~ for this problem. Thus,
larger probIem of a 2 x 2 square with all sides the above comparisons of the two methods were
maintained at zero potential. These figures again made for time increments up to 0.02/0.0025 or
show the superior AIXP accuracy at the 0.02 time eight times rhe critictd.
step. Relative accuracies of merhods such as ADIP
Figs. 3 through 8 show the erroneous conclusions and ADEP at the critical time step are of little
rhat can be reached by simply comparing errors at practical interest since the sole advantage of
the single time t = 0.08. The critical time increment these techniques is their provision of stability
ia defined as the maximum At at which the normal at considerably larger than critical At’s and
explicit method (u%% + ~Y@ A:= (~ ‘+1 - ~n)/At attendant reduced computing time requirements.
is stable. This increment Is:
ANALYSIS OF QUON ET AL.. 2
RESERVOIR EXAMPLE
,, ----- ----
~.- ti-- ‘*
. .
./’ ml.
- ,.
~
1
.,
\
! -.,
t!
* *
Y -
1’
OS
.,. % r“,
- M
: ,
-..- 1
I
-., I
-,
tad.!
FIG. 5 — COMPARISON OF ADIP AND ATIEP ERRORS
FIG, 3 — COMPARISON? OF ADIP AND ADEP ERRORS (CASE 2)0
(CASE 1).
10
,Q
Q
I
j-, ‘u I
- c
- 1. #
I
. .*W *,*
“i’.,
m I*RN
FIG. 4 — COMPARISON OF ADIP AND ADEP ERRORS FIG. 6 — COMPARISON OF ADIP AND ADEP ERRORS
(CASE 1). (CASE 2).
Thus, one time step of 15 days represents about P=+ Py>, =p~ . . . . . ..(W
30 per cent of the time necessa.y for a quasi-
steady - state regime to occur. A comparison with px=Oatx=Oandl, and py=Oaty=O and
between ADIP and ADEP at a time corresponding 1. Initially, p is zero and fluid Injection occurred
to 96 of these increments (1,440 days) thus has at x = y = O. The injection rare used in the numerical
quesriona ble solution was normalized so that the analytical
significance. A more meaningful
comparison would be one at times !ess than 48 soIucion:
days, using time increments considerably less
()
than 15 days. 2
, The critical time incremeni for this problem is P =J-Ei4:
41?
. . ..o .(19)
given by
m
I I I I I L<-
,/ ‘-+’ ‘-. ---, --
/
#
I ,,,,
i\
f
-t-
I
,,.
c+,, . ... . I
*4
OM
Ill
aon: m ** 1*
I
.*
I ,, , .* ,.,. ,
!,,4SI0 ,, *
..’:. ,
,,- . !
FIG, 7 — COMPARISON OF ADIP AND ADEP ERRORS FIG; 8 — COMPARISON OF ADIP AND ADEP ERRORS
(CASE 3). (CASE 3).
I
0.!37
0.217 2,9 1,308
0.257 3,5 1,283
(1,0 t ‘it
WELL
o -0.001 0.0005
FIG, 9 — WELL PROBLEM CONFI~JRATION. 0,001-0,005 0.001
0,005-0.017 0,002
P 0.o1- -0.037 0,005
wpii- each point r = ~ x 2 + yz for times
at at 0.037-0.097 0.01
which the effect of the exterior boundary is 0.097 -0.657 0.02
negligible. The effect of the exterior boundary is 0.657-0.857 0.05
negligible at the well for times up to: 0.857- 1.457 0.1
1.457 - 1.957 (),1>
2.957-5.457 0.25
$0
‘\. —
d r \
\
Is
‘\ &DC*
!0
\ \
.L-----LrLu-74- I ‘
.\
‘\}
““ET*. /“ , T- I
.15 .5
,01 .* .1
.m, .005
‘“’~ .
= ,mo - ,24
,01
TIMIK - t
FIG, I l—COMPARISON OF. ADIP AND ADEP MATERIAL BALANCES (WELL PROErLEbO.
As previously mentioned, the 0.06 time increment approach will succeed only for a limited rime step
is about 100 times the criticai At. Since increments size; the Imitation on time increment is far less
of the order of 20 times the critical are more severe if iteration is employed. As shown below,
reasonable, a fairer comparison of ADEP and the limitation on time step in the noniterative
ADIP errors might be obtained by using a At approach is generally so severe that fireater
value of 20 (0.0006) or 0,012. These errors are’ computing efficiency in two-phase flow problems
given in Table 3 for the point z = 0.~5) Y = o. The is attained by iterating ac each time step.
ADEP results were again obtained from the square The question considered here is not whether
of side 2 with the well pIaced in the center. The .ADEP is superior or inferior to ADIP in noniterative
ADEP material balance is also given in Table 3; solution of two-phase fIow problems, The question
ADIP material balance was 1.00000 over all time. is whether the two-phase f!ow problem is essentially
parabolic (i. e,, subject to ncniterative solution
UTILITY OF NONI~ERATfVE ADIP OR with reasonably large time steps) or elliptic (i. e.,
ADEP IN TWO-PHASE FLOW PROBLEMS requiring iteration for use of a reasonable time
step). In either case, the use of ADIP is indicated
QuorI et al.3 proposed a noniterative application since, as shown above, ADIP is clearly superior to
of ADEP in solution of the two partial differential ADEP in the parabolic case and, as shown in
equations governing two-phase flow in reservoirs. Appendix C, in the elliptic case ADEP becomes
ADEP or ADIP can be employed in noniterative identical to the extrapolated Lkbrnann method that
solution of these equations only if fluid compress- has been proven inferior 4 to iterative ADIP for
ibility is not zero. If compressibility is zero, then unit k, ~ and c.
iteration is required at each time step. Even if In earlier work the authors attempted to apply
compressibility is not zero, the noniterative ADIP in noniterati ve solution of two- and three-
60.
.
40
, 20
~“
*
AK?
// ‘--
4 -
-*O . /--
OH
-4 0.
7/-
/ “
/ P
-s0 %Wml
TIME -t
2Mp +&) 1 a i\~ of about 50 ft which gives, from Eq. 25, ,ltc =
- 0.005 days. In this case, 50 Atr is only 0.25 da~s, . .
@: Ax’ and a noniterative sioIution using this At is far more
3D flow: At. = expensive than an actually performed iterative
(&}2] solution which employed a 30-day time step.
The above two cases indicate the applicability
.. . . . . . .(24) of the noniterative
areal cases with sufficiently
method in two-dimensional
large Ax. The iterative
,,
method is far more efficient even for reservoirs of
large areaI extent, however; if a two-dimensional
4 cross-section or three-dimensional simulation is
‘a f \\ performed. For the three-dimensional case with
.\z << Ax, Eq. 24 gives Atc S 4 x 10-6 & 2 and
/\ for a h of 10 ft, AtC = 0.0004 day. The tolerable
!s- I increment of 50 Atc or 0.02 day is so small that
j ‘\, the iterative method is two orders of magni tu~ie
~,, I \,
cheaper than the noniterative.
To repeat, the above analysis simply indicates
;
:
1
1
I
“&,, why in the writers’ opinions, the noniterative
is generally inferior to the iterative solution,
method
The
\\ analysis in no sense constitutes a proof of this
,!
‘\ conclusion. The validity of the conclusion rests
I ‘\\ on the writers’ experience in a ctuaIly soIving
-.
.O,* ‘-. ___ _ two- and three-dimensional two-phase flow problems
,*
by both techniques.
CONCLUSIONS REFERENCES
1. Larkin, B, K.: Math. of Corn@ (1964) vol. 1S, No, 86,
1. ADEP is nonconservative in that it fails to 196.
preserve no-flow conditions at exterior boundaries.
2, Quon, D., Dranchuk, P. M., Allads, S. R. and Lmuw,
This causes errors in peter.tial and in material P. K,: ~~Astable, Explicit, Computationally Efficient
balance which can become extremely severe if wells Method for Solving Two - Dimensional Mathematical
are near the insulated bounda::ies. hlodels of Petroleum Reservoirs”, paper presented at
Petroleum end Natural Gas Div., CIM, Calgary, Alberta,
2. ADIP accuracy is cor,siderab!y superior to
Canada (May, 1965),
ADEP for Larkin’s example problem of fluid flow or
3. Quon, D., Dranchuk, P, M., Allada, S. R. and Leung,
diffusion in a unit square. P, K,: ‘ ‘Application of the Alternating Direction Explicit
3. ADIP accuracy was found to be considerably Procedure to Two-Dimensional Natural Gas and Reaer-
superior to that of ADiZP in a closed-reservoir type voira}}, Sot. Pet. Eng, ,Jow. (June, 1966) 137-142.
of problem, even when the well was located as far 4, Peaceman, D. W. and Rachford, H. H., Jr.: “The
from the boundary as possible in the ADEP case. Numerical Solution of Parabolic and Elliptic Differen-
tial Equations”, Jaur. SOC. [ndust. Appi. Math (1955)
4. Two-phase flow problems are mcme efficiently
Vol. 3, 28-41.
treated by iteration except for cases of very large
s. Peaceman, D. W.: Computitrg Reviews (Nov. -Dee., 1964)
two-dimensional areal cases. The iterative adapta-
vol. 5, No. 6, 389.
tion of ADEP is identical to tbe well-known
6, Richtmyer, R, D.: Dif/eretme Methods for Initial-Value
extrapolated Liebmann technique which has been Problems, Interscience Publishers, Inc., New York,
proven inferior to ite~ative ADIP. N. Y. (1957) 103.
5. ADIP requires about 60 per cent more comput- 7. Craft, B, C. and Hawkins, M. F., Jr,: Applied Petroleum
ing time than ADEP. Resetvoir Etrgineering, Prentice-Hall, Inc., Englewood
Cliffs, N, J, (1959).
*The f tgures for the different computers bear no relation to 8. young, D,; ~{Iterative Methods fOr solving Pafiial
each other; i.e,, a multiplication on the IBM 7040does not require
Diffe&tial Equations of Elliptic Type $~, Tmtzs.,
4.5/ 10the time for a multiplication on the IBM 7044.
American Mathematics Society (1954) Vol. 76, 92-111.
DECEMBER, 1966 a69
APPENDIX A 2n+2 2n+l
- (Ul - 2U1 -t up)
REPRESENTATION OF INSULATED
BOUNDARY WITH ADEP
TIME STEP SIZE FOR Let a dimensionless time increment AtD for the
SINGLE-PHASE FLOW CALCULATIONS numerical -solution be chosen so that the maximum
pressure change in one rime step is a fraction /
A useful criterion for time step size in two- of the ultimate pressure difference P ~ - Pe. Then
dimensional, single-phaae flow calculations might for 25 ~ tD < N2, Eq. B-6 gives
be the ratio between the critical rime increment and
a At sufficient to give a desired maximum change
in pressure over the grid.
An estimate of a practical time increment for
42=
fkD
Ju.HM4L 70.7
‘“p L
kb tD
two-dimensional single-phase reservoir problems is
developed here by analyzing the case of a single
well producing from a bounded reservoir. Consider or
the case of a weII producing from a well in the
center of a square reservoir of side 2L. If 2N
AtD ~ 2f (lnR - ~) CD . . . . . .(B-7)
spatial increments on a side are employed and the
well is Iocated at x = y = 0, then the critical
and from Eq. B-i
dimensionless time increment is:
(
k+l k ~k
‘ij = ‘lij + a ii-l, j + ‘i., j+l . . . . . . . . .(C-4)
362
SOCIETY OF PETROLEUM ENGINEERs JOURNAL
Further Discussion of a Paper Published in %ciety of
Petroleum Engineers Journd9 December, 1966
I
K. H. COATS ESSO PRODUCTION RESEARCH CO,
MEMBER AIME HOUSTON, TEX.
AMERICAN AIRLINES, INC.
M. H. TERHUNE TULSA, OKLA,
DISCUSSION
R, D, CARTER
MEMBER AIME
I PAN AMERICAN
TULSA, OKLA.
PETROLEUM CORP.
The diffusion equation dealt with by K, H, Coats the material balance error was sufficiently smail
and M. H. Terhune is similar to the equation (less than or equal to about 0, 3 per cent of the
governing isothermal flow of gas in porous media. original gas conrenr after 75 per cent of the gas
Because of the similarity of diffusion problems and had been removed) that the results could be of
gas flow problems a discussion of the writer’s practical value. The writer has found that the
experience ~: aPPIYing ADEP (or Saul’ev) 1 and material balance error tends to be reduced as the
ADIP 2 methods to the solution of reservoir-type combination of reservoir condition S, time srep
gas flow problems seems appropriate. In summary, size and mesh spacing approach that in which a
this experience indicates: (1) that ADEP extends conventional explicit-type difference equation
the range of conditions for which explicit methods could be employed. Useful ADEP solutions to gas
may be used in practice to obtain gas flow solutions; flow problems have been obtained for heterogeneous
(2) ADIP is a method of more general utility than reservoir problems in which rr;~ch of the reservoir
ADEP; and (3) the additional storage and com- has a sufficiently large critical time step size
puter time required by ADIP over ADEP should that a conventional explicit difference equation
normally be of little concern with present could be used, but that also contained some areas
day computers. These latter two conclusions of high permeability in which the conventional
are at variance with an earlier speculation by expIicit equation (Eq. l-A, Ref. 1) could not be
Carter 1 regarding the relative merits of ADIP and employed because the critical time step for the
ADEP for two-dimensional gas reservoir calcula- high permeability area was too small to be practical.
tions. Some problems of considerable practical interest
The gas flow equation can be put in a form have been encountered for which the ADEP mcrhod
which is the same as the diffusion equation has proven unusable. These are problems that are
except for a coefficient of the rime derivative characterized in general by a requirement of small
which varies slowly with the dependent variable grid point spacing coupled with large areas of
(Eq. 5-A, Ref. 1). If this coefficient is evaluated high permeability and/or reservoir pressure. This
at the beginning of each time step in a numerical results in a very small critical time step size for
solution, a non-iterative diffusion equation approach these large areas. Use of ADEP with practical
can be employed to obtain solutions to gas flow time step sizes in such cases has resulted in
problems. unacceptably high material balance errors, For
Coats and Terhune point out that the ADEP example, a material balance error of about 1 psr
method does not preserve material balance in cent of the original gas content has resulted after
diffusion equation, closed boundary, reservoir- 12,5 per cenr of the gas had been produced in a
type problems. The writer has obtained several case in which the ratio of critical time step size
solutions to two-dimensional gas reservoir problems to practical time step size was about 0,02 over
using an ADEP method (Eqs. 1O-A and 11-A, Ref. the entire region, A non-iterative ADIP method
1). In none of these solutions was materiai balance has been applied to some of these problems with
strictly preserved, but in many of these solutions success, and ADIP marerial balance errors have
been negligible. This ADIP method has also been
l~eferences given at end of dlscussimh
successfully applied to some of the problems for
MARCH, 1967 \’
which usable ADEP solutions were obtained, and gas content for a case in which the ratio of
( could probabIy have been applied to alI of the critical time step size to actuaI time step size
problems for which usable ADEP solutions were was about 0.02 and more than 31 per cent of the
obtained. (
original gas had been produced.
The ADIP equations referred to above are, This discusser has found that, with the ADIP
I
[
Mtn+l/2, n (@tn+I,ti - @n,z) - &-I/2, n @m,
n method, it is convenient
additional dependent
to maintain storage of an
variable array over that
required by ADEP. With present day computers,
I - @rIJ-l,
J1[~+ ‘m,n+l/2 (Qtn, n+l - ‘fa, tz) this will not normally constitute an objection to
I the use of ADIP. The ADIP program required about
-M tm,n-1/2 (Qm,n - ‘m,n-l fli+l five fourths as much computing time per time step
as dte ADEP program, but neither be ADEP nor
d~ the ADIP program had been optimized. Both programs
(L) make repeated use of interpolation subrouti~.es.
= Cm,w~–—
~~ ~,n,i (@i+l - @i)m,n . . (1-A)
All of the problems discussed above were for
)
regions which had irregular (non-rectangular)
boundaries.
Mm+l/2, n (@m+l, z - C$m,n) - Mm-1/2, n(@m, n
[
- @m#n)
NOMENCLATURE
-@ m-l, n)] i+l + ‘m, n+l/2 (“m, tz+l
[
AdA
(0 m,n -@m,n-~ )] i @ (p) = flow potential defined as ]
- ‘m, n+l/2 PC p(A)z(A)