Sunteți pe pagina 1din 12

SPE 9302

SPE
SocIety of PetroIelm EngIneers of AIME

TECHNIQUES FOR FULLY IMPLICIT RESERVOIR SIMULATION

by Anthony D.K. Au, Alda Behie, Barry Rubin, and


Kaz Vinsome, Computer Modelling Group

©Copyright 1980, American Institute of Mining, Metallurgical, and Petroleum Engineers, Inc.
This paper was presented at the 55th Annual Fall Technical Conference and Exhibition of the Society of Petroleum Engineers of AIME, held in Dallas, Texas, September 21-24, 1980.
The material is subject to correction by the author. Permission to copy is restricted to an abstract of not more than 300 words. Write: 6200 N. Central Expwy., Dallas, Texas 75206.

ABSTRACT An efficient iterative solution method is des-


cribed for the sparse block-structured Jacobians.
This paper summarizes the me.thods that have been The method extends the SIP factorization to block
used to develop fully implicit and highly implicit form and uses minimizations and orthogonalizations to
reservoir simulators. accelerate the convergence rate.

The techniques developed emphasize simplicity and Several applications and examples are provided.
clarity. The governing equations, written in fully A water coning example is included to show the
implicit form are treated as functions. These coupled stability and convergence characteristics of the
nonlinear functions are solved by Newtonian iteration, Newtonian iteration. A vertical cross-section oil
th~ derivatives of the Jacobian matrix being evaluated resaturation problem with variable bubble point is
numerically. A procedure is described for the used to illustrate the pseudo solution gas
efficient evaluation of the Jacobian. formulation. The modified Crank-Nicholson method is
applied to a one-dimensional Buckley-Leverett type
A technique is presented for avoiding variable problem.
substitution in variable bubble point problems. This
is accomplished by means of a novel pseudo solution INTRODUCTION
gas formulation.
It is well known that fully implicit methods are
An. efficient method for including two-point up- remarkably stable and can tolerate much larger time
stream into fully implicit simulators, without steps than those used in explicit formulations. How-
increasing the Jacobian bandWidth, is described. The ever, fully implicit methods are not widely applied
scheme is based on a fully implicit upstream mobility in large scale numerical problems such as oil
plus an explicit correction term derived from the two- reservoir simulation. The larger matrix bandwidth
point mobility formulation. In addition a new method associated with fully implicit approach demands more
called centralized upstream is given. The new method computation effort per time step and computer core
has less truncation error then two-point upstream. and memory compared with explicit methods. Other consid-
is little more difficult to implement. erations such as time truncation error associated
with the large time step size and the difficulties in
A modified Crank-Nicholson method is described the implementation of higher order methods to reduce
for reducing the time truncation error associated with spatial truncation have also made the fully implicit
large time steps in implicit models. The modified method less attractive.
version does not exhibit the usual stability problems
associated with the Crank-Nicholson method on non- A collection of techniques for resolving these
linear problems. difficulties in fully implicit simulation is con-
tained in this paper.
A section on well models shows how a simple en-
hancement of conventional well models can be used to GENERAL CHARACTERISTICS OF NEWTONIAN ITERATION
account for the position of a well within a grid block.
It is also shown how to introduce a multib10ck well The Newton algorithm is a well known iterative
completion into an implicit simulator without des- process for the numerical solution of equations. For
troying the block-banded form of the Jacobian. or a given function
without increasing the bandwidth.
f(x) =0 (1)
the solution x is obtained by the iterative procedure
References and illustrations at end of paper.
2 TECHNIQUES FOR FULLY IMPLICIT RESERVOIR SIMULATION SPE 9302

k+1 ~ '" 1 for Sg > £ • •• (5)


x • • • (2)
S
~ =--..8. for S :s: e: • •• (6)
starting from an initial estimate xo. The Newtonian £ g
iteration has second-order convergence characteristics.
Given a proper choice of the initial estimate xo, and E is a small number of order 10-4 • If any gas is
convergence normally o~curs rapidly. present the pseudo function has a value of unity, and
so does nothing. As the gas saturation decreases
In numerical reservoir simulation the solution towards zero the pseudo solution gas-oil ratio sud-
at the previous time step is taken as the initial denly decreases. Further free gas is then prevented
estimate. The convergence is generally obtained in 2 from going .into solution, and a small gas saturation
to 5 iterations. The stability of the Newtonian iter- between 0 and e: is maintained in the system.
ation is maintained even with large changes in the
independent variables. An average saturation or molar A typical black oil simulation would then in-
fraction change of the order of 30% is common in fully volve the solution of three conservation equations;
implicit black oil or thermal simulations. gas, oil, and water conservation in the three primary
variables; pressure, oil saturation, and water
The work involved in the Newtonian iteration is saturation. It is equally possible to solve oil,
quite high. For each iteration the functions and gas, and water conservation equations in the primary
their derivatives have to be evaluated and the matrix variables of pressure, gas saturation, and water
inverted. The complexity associated with the analy- saturation.
tical evaluation of the Jacobian matrix may be greatly
reduced by a numerical approach. The derivative of There is no need for any variable substitution.
the function f(x1' x2' x3) with respect to the In the above procedure there is no unique bubble
dependent variable x2 may be determined by point as it depends on the amount of gas present. Rs
is a monotonic function of pressure P, and the oil
f(x1 ,x2+E,x ) - f(~,x2,x3) formation volume factor should be expressed·as a
3
e: monotonic function of Rsp'

• •• (3) Instead of gas disappearing completely when the


where e: is a small number but large enough to result pressure rises above the bubble point, a small gas
in a non-zero numerator in (3) when the derivative is saturation is maintained. This can be made as small
non-zero. The numerical evaluation of each deriva- as possible by a slight redefinition of the pseudo
tive in the Jacobian matrix requires two function function
evaluations.
~ 1 for S ~ £(l-c) • (7)
g
The computational work required to construct the
Jacobian matrix can be reduced with a special ~ (S + ce:)/e: for S ~ ~(l-c) (8)
g g
Jacobian building technique described in a subsequent
section. The combination of using numerical deriva- Rsi
tives, Jacobian building method and an efficient c = Rs (p i) • •• (9)
matrix inversion procedure makes the Newtonian itera-
tion scheme an effective solution method. where
Two examples to show the stability and conver- R. initial solution gas-oil ratio
gence characteristics of the Newtonian iteration are s~

the oil resaturation problem given in Appendix A and Pi '" initial pressure
the water coning problem given in Appendix B.
c is a number between 0 and 1, and with the above
PSEUDO SOLUTION GAS definitions the gas saturation is identically zero at
the initial bubble point. If the pressure rises
Pseuso solution gas is a technique whereby vari- above the initial bubble point pressure small nega-
able bubble point black oil problems can be handled tive gas saturations will be calculated.
without any variable substitution in the numerical
solution procedure. An example of a variable bubble point problem
using the pseudo solution gas formulation is given in
The technique involves replacing the true solu- Appendix A.
tion gas-oil ratio Rs by a pseudo solution gas-oil
ratio Rsp defined as SPATIAL TRUNCATION
R '" ~(S )'R • •• (4) Fully implicit simulators generally use sing1e-
sp g s
point upstream mobilities. Inclusion of two-point
where upstream mobilities would drastically increase the
bandwidth of the Jacobian matrix, if it were done in
R true solution gas-oil ratio assuming an a fully implicit manner. However, in many cases the
s
unlimited supply of free gas. Rs is a spatial truncation error from single-point upstream
function of pressure, but has no dis- is unacceptable. A compromise is made
continuity in slope at the bubble point.

~(S ) the pseudo function which is defined as • •• (10)


g
SPE 9302 ANTHONY AU, ALDA BEHlE, BARRY RUBIN AND KAZ VINSOME 3

where Equation (17) is only first order correct in time with


truncation error
AU~ = interb10ck mobility
1 a2u a 3u) 1 2 a4u
AU upstream mobility EI = f).T (2 atZ" - ax 2 at - 12 /::;X ax4 +

N time level /::;T


2(1
6" a3u - 21 ~
at3" a4u ) + . . • (18)
The upstream mobility is taken implicitly and the Similarly the standard explicit method for repre-
slope part explicitly. For two-point upstream the senting equation (16) using finite-difference is
slope part is giv~n by

• • • (11)
(~~~r tf:>u N
• • • (19)
Equation (19) is only first order correct in time with
truncation error
where AN is the two-point upstream value.
uu
1 aZu) - -1 /::;x 2
The slope is constrained such that the interb10ck
E
E =·/::;T (-2 ~
at 12
mobility lies between the upstream and downstream 3
2(16" at3"
a u) + •..
mobilities /::;T • •• (20)

For most reservoir simulation purposes using explicit


• •• (12)
techniques, the first order accuracy in time is
adequate. However, when using fully implicit simula-
No problems have been observed with this formula- tors where large time steps are used the time
tion, although part of it is explicit. Updation of truncation can become important.
the slope during each Newtonian iteration gave no
significant difference in results. However it is One method for discretizing equation (16), which
better to leave the slope evaluation at the old time is second order accurate in time, is the Crank-
level as updation can slow down the rate of conver- Nicholson (C-N) method
gence of the Newtonian iteration.

There are other alternatives to evaluating the • •• (21)


slope by two-point upstream. A simple one, which is
better than two-point upstream, is centralized The truncation error for equation (21) is
upstream.
_L
ECN - - 12 /::;X
2 a4u +
~ /::;T
2 (l at3"-
a6
3
u

4
• (13) 1 au ) (22)
4~+···
When using centralized upstream, in addition to the The C-N method is guaranteed to be unconditionally
constraints (12), another set of constraints is re- stable for the linear case; however, stability is not
quired on the opposite face of the upstream block. guaranteed for the nonlinear case. It is primarily
Define for this reason that the C-N method has not been ex-
(A - A ) tensively applied to reservoir simu1ation l •
AN AN trx d uu
u~ u -2· 2f).x • • • (14)
The Crank-Nicholson method can be generalized by
then the slope is constrained such that replacing the 0.5 weighting factors by a variable
factor w
N
min IAUU' Au I :s:. AU~ :s:. max IAUU' Au I (is)
/::;2u)N+1 (/::;2ul N
w (/::;X 2 + (l-w) /::;X2j • •• (23)
An example given in Appendix C showed the trunca-
tion error for centralized upstream to be slightly with the truncation error
less than for two-point upstream. No stability 1 aZu a3u l 1 2 a4 u
problems have been observed with the explicit part of EGCN = /::;T (2 atZ" - w ax2atj- 12 /::;X ~ +
the interb10ck mobility. On all the simulation runs
3 4
performed to date, centralized upstream was better 2(1 a u. w a u )
/::;T 6" at3" - 2 ~ + • • . •• (24)
than two-point upstream.
The truncation error of the generalized Crank-
TIME TRUNCATION Nicholson method reduces to that of the implicit method
when w equals 1 and to that of the C-N method when w
The standard implicit finite-difference repre- 1
sentation of the parabolic equation equals 2.
aZu au For nonlinear problems, stability can be achieved
ai2" = at • •• (16)
by increasing the value of w towards 1. The percent-
is ages of the fully implicit first order time truncation
error associated with each ware
UN+1_UN
(f).2U(+1
2
== • • • (17)
f).X f).T
4 TECHNIQUES FOR FULLY IMPLICIT RESERVOIR SIMULATION SPE 9302

w % First Order Error adopted here


0.50
0.55
0.0
10.0 c - /if e -~/2 - 0.37 • • • (28)
g
0.60 20.0
30.0 In general we shall see that for various geometries c
0.65
is around 0.5. g
0.75 50.0
1.00 100.0
As an example we shall derive the geometrical
Some results on the application of the general- factor for a quarter well at the corner of a grid
ized Crank-Nicholson method are given in Appendix D. block, as shown in Figure l(f}. Such a situation is
common when modelling five-spot symmetry elements.
WELL MODELS
Assuming single-phase radial flow into the well
In most reservoir simulators the injection or (which is a quarter well)
production wells are represented as source and sink _ qjl[ln :/rw + S]
terms in the mathematical formulation. The function P(r} - Pw - 2 ~ k h f • •• (29)
of a well model is to relate the magnitude of the
source and sink term to the we11bore flow and to the At points j and l
flow from surrounding grid blocks. In this section
we shall describe a simple enhancement of the conven- 110 A (30)
rj rl = -2-
tional well models to account for the position of a
well within a grid block. We shall also introduce a
method of modelling mu1tib10ck well completion in a From finite-difference and symmetry, the flow from
fully implicit simulator without increasing the band- the surrounding blocks into the well blocks is given by
width of the matrix. q =2 k h (P. _ p.) •• (31)
jl J ~
Areal Effects
Eliminating P. between these equations gives
J
The well inflow performance is.given by
q '" 2 ~ k h f _ _(.. . :P~=-'_--;P,:.:...w)_ _
2 ~ A k h f (Pi - P ) • • • (32)
b )l 110 e -~f A
q • • • (25) [In 2r + S]
r
w
[ln c ~ + S]
g r
w which is consistent with (25) if

r • • • (26) IlOiTf e -~f


e c 0.64 • • (33)
g 2
A fluid mobility
k - absolute permeability Other geometries can also be calculated. Figure
1 indicates the geometrical factors for some of the
h '" net thickness common cases. To obtain some of these results it is
f well fraction necessary to use the method of images. In Figure 1 it
is assumed that the grid nodes are at the centre of
Pi grid block pressure the blocks. In radial coordinates re is defined as
P we11bore pressure the radius of the first block, the grid node is
b assumed to be at re/2, and c g can be evaluated directly
c geometrical factor from (25) by assuming Pi lies on the logarithmic
g
r effective radius inflow function.
e
r wellbore radius Vertical Effects
w
S skin
When a production well, represented by sink terms
q fractional well rate extends through several grid blocks, the wellbore
problem becomes complex. Firstly, a model is required
Peaceman 2 introduced the geometrical factor c g to to account for the wellbore pressure drop. Secondly,
account for the fact that Pi is not necessarily equal when the overall production rate of the well is
to the pressure at the effective radius. Peaceman 2 specified by external constraints, a model for allo-
only considered a well at the centre of a square grid cating production among grid blocks is required. We
block, and defined the effective radius as shall consider the pressure constrained well and the
rate constrained well separately.
r Ax (27)
e
Pressure Constrained Wells
In equation (26) we have introduced a factor ~ so that
re is more consistent with the idea of using an ef- In order to simplify calculations this model
fective block radius as has been done previously3. In divides the wellbore into two distinct regions.
addition we have introduced the well fraction f, which The first region represents the portion of the
reduces the sensitivity of c to the geometr.ica1 well from the reservoir to the surface, the second
location of the well within ~he grid block. Thus the represents the portion of the well that intersects
definition of Cg used here differs from that of the reservoir. It is assumed the effects of
Peaceman 2 by the factor Irrf. For a well at the centre pressure drop in the first section need not be
of a grid block Peaceman 2 found that the geometrical modelled 4 •
factor was close to e-~/2 or 0.21. For the definition
SPE 9302 ANTHONY AU, ALDA BEHlE, BARRY RUBIN AND KAZ VlNSOME 5

In the second section, it is assumed the An expression for P can be obtained from (38)
pressure drops due to friction and inertial b
losses are negligible compared to the gravity NBW NP
head. The we1lbore pressure distribution is I: I: Tij (Pi + Head i ) - Qmb
then equal to the specific weight contribution or i=l j=l
ap NBW NP
a; = pg • • • (34) I: I: Tij
i=l j=l
where • (39)
p = SgP g + SoP o + SwPw Equation (39) has been used in various
S = we11bore gas saturation simulators. However. the efficient implementation
g of this equation in a fully implicit simulator is
S
o
= we11bore oil saturation not simple.
S we11bore water saturation
w In order to maintain the second order con-
p. = density of phase j vergence' characteristics of the Newtonian iter-
.:....J ~ ation. the flow rate for each phase in each grid
pg we11bore gradient ft
block, Q~1l, which is derived from equation (39)
The bore pressure of block i within a mu1tib10ck
completion well is should be calculated fully implicitly. There
would be contributions to the Jacobian matrix from
all blocks in the mu1tib10ck completion well.
Pi = P _lZi pgdz • •• (35) This would increase the bandwidth of the Jacobian
b
zb matrix and increase computation time. To circum-
vent this problem an approximation to
It is possible to determine p using empirical k+1
mu1tiphase flow ca1culations 5 • However for most Q has been developed which still maintains
ii
we11S~pgdZ is small over the producing zone com- nearly second order convergence in the Newtonian
iteration.
£ared to the drawdown. The assumption of constant
P introduces only minor error. Equation (35) The approximation is based on two assump-
reduces to tions. The first is that
NBW <l k
I: aP" Qii oPm = 0 • • • (40)
m=l m
• • • (36)
where This can be shown to be identically true under the
following conditions:
P = bottom hole pressure
1 oP = pk+1 _ pk .. constant for all
(1)
vertical length of we11bore in m m m
block j m=l ••••• NBW
i.e. pressure change in the well blocks
The pressure gradient along the we11bore can is uniform over a Newtonian iteration,
also be estimated 6 •
and
Rate Constrained Wells
(2) the dependence of transmissibilities on
The algorithm used to distribute a desired pressure, is negligible.
mu1tib1ock well production rate (Qmb) among the
we11bore grid blocks assumes that: The second assumption is that the total flow
from each block is constant over a Newtonian
NBW NP iteration. That is
T. (P - [lZi pg<lz])
~ j (P.1 -
I: I:
i=l j=l 1
b NP
Zb Q .. I: Q h = constant • • • (41)

or
. (37) iT i=l i.(..

k+1
NBW NP The equation for Q now becomes
ii
~b I: I: T •• (P. - (P - Head »
i=l j=l 1J 1 b i k+1
Qit
where
. (38)
Head represents the expression in square
i
brackets
NBW number of blocks along the we11bore •• (42)
NP number of phases Equation (42) has been implemented as follows.

:: ::~b::: ::::.f::,:::u::nsb:;ok(:~\~'
pressure of block i
Pi
Tij transmissibility of phase j in
block i
iT1
ar:' t
6 TECHNIQUES FOR FULLY IMPLICIT RESERVOIR SIMULATION SPE 9302

both calculated for the first n Newtonian A block iterative solution algorithm has been
iterations. For the remaining iterations the developed which encompasses two different options
total rates previously determined are used and depending on the difficulty of the problemS. The
only the phase distributions are calculated. It solution algorithm consists of an approximate factor-
was found that the calculated rates were insensi- ization followed by an acceleration technique. The
tive to the value of n. A value of 2 or 3 is different factorization options are described in
recommended. Furthermore, nearly second order reference 6. The acceleration technique is ORTHOMIN 7 •
convergence rates were obtained indicating that ORTHOMIN is a procedure which involves minimizations
the assumptions are justified. and orthogonalizations. The minimization step in
ORTHOMIN guarantees that the algorithm can never
JACOBIAN CONSTRUCTION diverge. The orthogonalizations mean that the
algorithm should terminate in a finite number of iter-
The construction of the Jacobian matrix with ations. Another advantage of this method is th4t no
numerical derivatives represents a significant portion iteration parameters are required.
of the computing time used in numerical reservoir
simulation. Consider the finite-difference equation The block iterative algorithm has proven success-
for a one-dimensional single-phase system written for ful on a wide variety of problems including steam
block i problems, in situ combustion problems, large black oil
problems, and gas resaturation problems •

.cONCLUSIONS
• (43) The techniques for fully implicit reservoir simu-
lation presented in this paper have been applied to
Each row in the Jacobian matrix includes the deriva-
the in situ combustion, steamflooding and black oil
tive of fi with respect to Pi-I' Pi and Pi +l • The simulators.
derivatives, calculated numerically, require four
function evaluations. If M blocks are used in the
The programming effort required is moderate if
grid system equation (43) and the associated PVT pro-
numerical derivatives are used. ,With proper evalua-
perties must be evaluated 4M times.
tion of the Jacobian and an efficient iterative matrix
solution technique the overhead previously associated
A more efficient method of Jacobian construction
with the fully implicit method can be greatly reduced.
is to make use of the relationship of interb10ck flow
terms for adjacent grid blocks. Consider block j New techniques have overcome the previous problems
which is adjacent to block i, associated with large time steps and spatial truncation
errors in highly implicit simulators.
N+1 N+l N+l
fj '" Tj~(Pj_l - Pj ) + Tj~(Pj+1 - Pj ) - We conclude that the fully implicit method, if
implemented properly, is an effective numerical
[(~jPj)N+1 _ (~jPj)N] _ Q~+1 (44) approach to reservoir simulation.

From Figure 2 it is clear that the derivative of ACKNOWLEDGEMENT


equation (44) with respect to Pj-l is identical to the
derivative of the second flow term in equation (43) This research was supported by the Alberta/Canada
with respect to Pi except the sign. Similarly for Energy Resources Research Fund administered by the
block m the derivative of fm with respect to Pm+1 is Department of Energy and Natural Resources of the
equivalent to the derivative of the first flow term in Province of Alberta.
fi with respect to Pi' Therefore, the off-diagonal
entries in the Jacobian matrix are available by simply NOMENCLATURE
calculating the function and its derivative along the
diagonal entries in parts and adding (or subtracting) B - formation volume factor
the components in the appropriate locations in the C - compressibility
same column of the matrix. The numerical derivatives
are obtained by dividing entries in the matrix by the c - pseudo solution gas constant
appropriate ~P. This procedure is called a column c - geometrical factor
oriented Jacobian construction. Since only two g
functional evaluations are needed, this procedure re- EE - explicit truncation error
quires 50% of the work needed in the conventional row - implicit truncation error
approach to Jacobian construction. The work reduction EI
is 66% and 75% respectively for two- and three- ECN - Crank-Nicholson truncation error
dimensional problems. E - generalized Crank-Nicholson truncation error
GCN
ITERATIVE MATRIX INVERSION E - gas expansion factor
g
f - function, well fraction
In fully implicit, multiphase reservoir simula-
tion, several equations must be solved simultaneously g - gravity
in each grid block. This results in a block-
H,h - thickness
structured Jacobian matrix. An iterative method that
is suitable for inverting this type of matrix and that k - absolute permeability
is also powerful enough to solve difficult problems is P
- pressure
critical to the performance of a fully implicit
reservoir simulator. Q - flow rate
SPE 9302 ANTHONY AU, ALDA BEHlE, BARRY RUBIN AND KAZ VINSOME 7

q - fractional well rate 5. Govier, G.W. and Aziz, K., The Flow of Complex
r - radius Mixtures in Pipes, Van Nostrand Reinhold, New
York (1972).
r - effective radius
e
r - well radius 6. Behie, A. and Vinsome, P.K.W., "Block Iterative
w Methods for Fully Implicit Reservoir Simulation,"
R - solution gas-oil ratio Paper to be presented at the SPE-AlME 55th Annual
s
R - pseudo solution gas-oil ratio Technical Conference and Exhibition, Dallas,
sp September 21-24, 1980.
S - saturation, skin
- transmissibility of phase j in block i 7. Vinsome, P .K.W., "ORTHOMIN, An Iterative Method
Tij for Solving Sparse Sets of Simultaneous Linear
t - time Equations," Paper SPE 5729 presented at the SPE-
u - dependent variable AlME Fourth Symposium of Numerical Simulation
of Reservoir Performance, Los Angeles, February
x - independent variable 19-20, 1976.
W - width
8. Blair, P.M. and Weinaug, C.F., "Solution of Two
z - depth Phase Flow Problems Using Implicit Difference
e: - small constant Equations," Trans. SPE of AlME, Vol. 246 (December
1969), 417-424 (SPEJ).
p - density
j.l - viscosity 9. Settari, A. and Aziz, K., "A Computer Model for
Two-Phase Coning Simulation," SPEJ (June 1974),
A - fluid mobility 221-236.
~ - porosity
10. Grabowski, J.W., Vinsome, P.K.W., Lin, R.C.,
~ - pseudo function Behie, A. and Rubin, B., "A Fully Implicit
w - weighting factor General Purpose Finite-Difference Thermal Model
for In Situ Combustion and Steam," Paper SPE 8396
Subscripts presented at the SPE-AlME 54th Annual Fall
Technical Conference and Exhibition, Las Vegas,
b - borehole September 1979.

d - downstream grid block APPENDIX A


i,j,l,m - grid block index
OIL RESATURATION EXAMPLE
g - gas
mb - multiblock This problem was specifically designed to show the
utility of the pseudo solution gas formulation. Almost
0 -oil every grid block experiences two transitions through
r - rock, relative the (variable) bubble point.

u - upstream grid block The system is a vertical cross-section. Dead oil


uu - two-point upstream grid block is injected into the lower left hand grid block at
constant rate, while production is at constant bottom
w - water hole flowing pressure from the lower right hand. grid
block.
Superscripts
The relative permeability and PVTdata are given
k - iteration index in Table 1. The oil is originally undersaturated.
N - time step index What happens in this run is that at first the produc-
tion rate is larger than the injection rate, and so
REFERENCES the reservoir is depleted. Apart from three grid
blocks around the injector, each grid block experiences
1. K. Aziz and A. Settari, Petroleum Reservoir a transition through the bubble point, and gas is
Simulation, Applied Science Publishers, London evolved. A gas cap i~ then formed by gravity
(1979). segregation.

2. Peaceman, D.W., "Interpretation of Well-Block As the reservoir depletes, the production rate
Pressures in Numerical Reservoir Simulation," decreases so that the total downhole production rate
of oil and gas approximately matches the injection
SPEJ (June 1978), 183-194. rate. Dead oil then sweeps through the reservoir from
3, Coats, K.H., George, W.D. and Marcum, B.E., the injector, and all the grid blocks where gas was
"Three-Dimensional Simulation of Steamflooding," evolved experience a second transition through the
SPEJ (December 1974), 573-592. (variable) bubble point. These second transitions
occur at a much lower pressure than the first.
4. Chappelear, J.E. and Williamson, A.S.,
"Representing Wells in Numerical Simulation - Using maximum saturation changes of 5% this run
Theory and Implementation," SPE paper 7697, took 60 time steps to reach 261 days, at which point
presented at the 5th SPE Symposium on Reservoir all the gas had gone back into solution. This means
Simulation, Denver, Jan. 3l-Feb. 2, 1979. that there were 94 transitions through the (variable)
8 TECHNIQUES FOR FULLY IMPLICIT RESERVOIR SIMULATION SPE 9302

bubble point in 60 time steps. Figure 3 shows the In Figure 5 the results are shown when 0.5 pore
contours of solution gas ratio after 261 days. volumes have been injected. The analytical result is
a 100% shock front at a fractional length of 0.5.
There were an average of 3.4 Newtonian iterations/ The results show that single point upstream exhibits
time step to reach a convergence tolerance of better much more numerical dispersion than the other methods
than 0.001 in saturations in every grid block. After and centralized upstream shows the least numerical
all the gas had redissolved the automatic selector dispersion.
increased the time step rapidly, and the run required
a further 5 time steps to reach 500 days. APPENDIX D

APPENDIX B GENERALIZED CRANK-NICHOLSON EXAMPLE

WATER CONING EXAMPLE The effect of the generalized Crank-Nicholson


method when applied to a very simple problem is shown
The sharp reduction in pore volumes of individual in Figure 6. The problem is a one-dimensional two-
grid blocks around the wellbore and the convergent phase Buckley-Leverett type displacement. Typical
nature of the flow pattern make the coning model values of fluid properties were chosen along with
particularly subject to instability. We have chosen quadratic relative permeability curves with zero
the problem of Blair and Weinaug 8 to test the stability critical saturations. 20 grid blocks were used in the
of our fully implicit black oil model since it has simulation. The figure shows the unit mobility ratio
been studied by many investigators. A summary of most runs with the following parameters:
of the previous work was reported by Settari and Aziz 9 •
w '" 1.0 ~S(t) = 2%
The data used here is identical to those given by
w = 1.0 lIS(t) '" 20%
Settari and Aziz9 and it is not repeated here. Block
·centered grids are used with first grid block radius w '" 0.65 ~S(t) = 20%
of 2.45 feet. The constant rate production well is
located second block from the top of the reservoir~ lIS(t) is the average saturation change with the time
Water is injected at the outer most grid block on the step t. The results show a noticeable reduction in
bottom layer at constant rate to balance the spatial truncation error with the generalized Crank-
production. Nicholson method.

Two simulation runs were conducted with maximum


time steps of 25 days and 100 days. The initial time
step used-in both runs was 5 days. The 25-day time
step was reached and maintained after 36 days in the
first run. In the second run the 100-day time step
was reached at 428 days. Shortly before water break-
through, at 728 days, the time step was reduced to 25
days by the automatic time step selection procedure 10
because the maximum saturation change had exceeded the
20% limit imposed. The 100-day time step was reached
again at 1028 days. Another time step reduction
occurred at 1128 days and the 100-day time step resumed
at 1365 days. The average number of Newtonian itera-
tions to reach a convergence tolerance of less than
0.001 in every grid block was 2.71 and 4.26 respect-
ively for the 25-day and 100-day time steps.

The results of water-oil ratio (WOR) for the two


runs and the result of Settari and Aziz 9 are shown in
Figure 4. The WOR for both of our runs are almost
equal. The data point is shown for the 100-day time
step run only. The WOR at 2000 days for the time
steps of 25 days and 100 days are 28.9% and 29.2%
respectively.

Our results compared very well with those re-


ported by Settari and Aziz9.

APPENDIX C

MOBILITY APPROXIMATION METHODS

The problem is a one-dimensional Buckley-Leverett


type displacement with straight line relative perme-
abilities and unit end point mobility ratio. This
particular example is well known for the large amount
of numerical dispersion exhibited by finite-difference
solutions.
Table 1

Data for Oil Resaturation Problem

Reservoir Description

L 200 ft H = 100 ft W 200 ft


k 200 md <P = 0.3
Swi = 0.3 Soi = 0.7 Sgi = 0.0
).10
5 cp ).Iw = 1.0 cp ).Ig = 0.02 cp
6 psi- l o psi-1 -1
r = 0 psi
C 16- C C
0 w
e: 10- 3 c = 0.952 (for the pseudo function)
P. = 2100 psig R. 1333 sci/stb (i.e. undersaturated oil)
~ s~

Relative Permeabilit1

(So - 0.3~ 2
k
ro 1 - 0.3

(S~ - 0.05) 2
k
rg 1 - 0.05

PVT Data

P R B E Po Pg
s 0 g
~ ~scf/stb) (bb1/s tb 2 (scf/bbl) (lb/ ft 3) (lb/ft 3 )

0 0 1 5.615 49.92 0.0765


3000 2000 2.25 1152

PVT properties assumed linear between ,0 and 3000 psi.

Well Data

Q = 250 stb/day dead oil


I
2TIk khf
r
(P. -
~
Pb)
Qp = ).I [1n c r /r + S]
g e w
where
r / 6X61 r .. 0.5 ft S = 0
e TIf w
P
b
500 psig f = 0.5
h = 20 ft c
g
= 0.543
(

£=1 c =0.37 £=1 c =0.34 f=l c =0.35


g g g
GRID BLOCK LOCATION
(a) centre of square (b) centre of corner (c) centre of edge block
block block

o o
1
f=l c =0.41 f=l c =0.39
g g
ROW m 1 m- I m mtl
(d) centre of rectangular block (e) centre of rectangular block
llx/lly = 2 6x/6y 3/2
ROW i-I i it I

tIt
f=~
1 j

c =0.64
g
(f) corner of square
~
f=l,; c =0.56
g
(g) edge blocks half
<C
f=segment

(h) rad ial segment


C
g
=0.5
ROW j -I j j +I I

block size

L
JACOBIAN MATRIX

f=~ c =0.54 f=~ c =0.47


g g
(i) edge of square block (j) edge blocks half size Fig. 2 - Jacobian Matrix Structure for a One-Dimensional
Problem.

Fig. 1 - Geometrical Factor for Various Common Well Locations.

INJECTOR PRODUCER

Fig. 3 - Contours of Solution Gas/Oil Ratio After 261 Days.


30

- - At • 25 days
0 Ilt • 100 days
25 t::. Settari and Aziz9
(Ilt 25 days)

20

;e
~
a:: 15
0
~

10

o~~~~--~----~----~----~----~
800 1000 1200 1400 1600 1800 2000
TIME (days)

Fig. 4 - Water-Oil Ratio for the Water Coning Problem


of Blair and Weinaug8.

Fig. 5 - Water Saturation after 0.5 PV Injection for Three Mobility


Approximation Schemes.
I

1.0...-------r-------...-------,..-------,..--------.

w· 0.65 ~S(t) =20°4


w=1.0 ~S(t)·2%
O.B w • 1.0 ~S(t) • 20%

Z
0
f;i 0.6
a:
::::>
I-
«
en
a: 0.4
w
I-
~
0.2

O~-----~------~------~--------~------J
o 0.2 0.4 0.6 O.B 1.0
FRACTIONAL LENGTH

Fig. 6 - Water Saturation Profile Showing the Effect of Time Truncation.

S-ar putea să vă placă și