Reserrvoir Simulation - SPE
Reserrvoir Simulation - SPE
Introduction
Reservoir simulation is based on well known reservoir Basic Analysis
engineering equations and techniques — the same If a reservoir is fairly homogeneous, average values
equations and techniques the reservoir engineer has of the reservoir properties, such as porosity, are ade-
been using for years. quate to describe it. The average pressure, time, and
In generai, sirmukition .e.w.. .- Lie representation
.-f m-c tO production behavior of such a reservoir under a solu-
. .
of some process by either a theoretical or a physical tion gas drive, for ---+
~Acwy.-,
nre
--
MNTI-MUycalculated
model. Here, we limit ourselves to the simulation of by the familiar methods’ of Tamer, Muskat, or Tracy.
petroleum reservoirs. Our concern is the development All of these methods use the material balance equa-
and use of models that describe the reservoir perform- tion normally referred to as the MBE. A simple ex-
ance under various operating conditions. pression for the oil MBE is the following
Reservoir simulation itself is not really new. Engi-
(cumulative net withdrawal in STB) = (original
neers have long used mathematical models in per-
oil in place in STB) — (oil remaining in place
forming reservoir engineering calculations. Before the in STB)
development of modem digital computers, however,
the models were relatively simple. For example, when The cumulative net withdrawal is the difference be-
calculating the oil in place volumetrically, the engi- tween the oil that leaves the reservoir and the oil that
neer simulated the reservoir by a simple model in enters it. In this basic analysis, there is no oil entering
which average values for the porosity, saturation, and the reservoir since the boundaries are considered im-
thickness were used. permeable to flow. Thus, the MBE reduces to its
Although simulation in the petroleum industry is simplest form. Such a reservoir model is called the
not new, the new aspects are that more detailed reser- tank model (Fig. 1). It is zero dimensional because
voir features, and thus more accurate simulations, rock, fluid properties, and pressure values do not vary
have become practical because of the capability af- from point to point. Instead, they are calculated as
forded by the computers now available. The more de- average values for the whole reservoir. This tank
tailed description, however, requires complex mathe- model is the basic building block of reservoir simu-
matical expressions that are difficult to understand, lators.
and this difiicuhy has caused some engineers to shy Now let us consider a reservoir represented by a
away from using simulators, and others to misuse sandbar. Let the two halves of the sandbar vary in
them. lithology. The sandbar as a whole cannot be repre-
We in the petroleum industry are in the reservoir sented by average properties, but each half can. Thus,
simulation revolution. As time goes on, simulators will the sandbar consists of two tank units, or cells, as they
be used more and more, so a basic understanding of are normally called. The MBE describes the fluid
. ..
reservolr modelmg is esseiitia,. “ ‘ The engineer! espe- behavior in each ceU as in the previous tank model.
.,M. . . . ~] te~ of the MBE is
cially, must become competent in setting up simula- However, the net wl,,,d,~.v-. .+...-
tion problems, in deciding on appropriate input data, more complicated because there can be migration of
and in evaluating the results. fluid from one cell to another, depending on the aver-
. 7-Z3t- 1383
age pressure values of the two cells. This fluid transfer several two-dimensional geometries, the most popu-
between the two cells is calculated by Darcy’s law. lar of which is the horizontal (x-y) geometry; but the
The MBE, together with Darcy’s law, describes the vertical (x-z) and the radial (r-z) geometries are also
behavior of each cell. This model is not a zero-dimen- used quite often.
sional reservoir simulator since reservoir parameters Simulators can be classified also according to the
may vary between the two cells. Instead it is a one- type of reservoir or process they are intended to simu-
dimensional model, because it consists of more than late. There are, for example, gas, black oil, gas con-
one cell in one direction and of only one cell in the densate, end miscible displacement reservoir simulat-
other two directions (Fig. 2). ors. Moreover, there are one-, two- and three-phase
This analysis can be extended to reservoirs where reservoir models. Furthermore, any of these simula-
properties as well as pressure values vary in two tors may or may not account for gravitational or
dimensions, and to others where the variation occurs capillary forces. It is not enough to choose the proper
in three dimensions. The simulators representing these simulator with respect to dirnensionality; the simu-
reservoirs are called, respectively, two-dimensional lator must represent the type of hydrocarbon and the
and three-dimensional simulators, as illustrated in fluid phases present.
Figs. 3 and 4. Thus, a two-dimensional reservoir simu-
lator consists of more than one cell in two dimensions Simulation Steps
/
Flow
5TY?l--
Fig. 24ne-dimensional simulator.
Flow
Qout
Flow
Qin
. 1385
from left to right as shown in Fig. 5, average value for @o—i.e., at the (n+ %2 )-time level—
while the forward difference method uses @. at the
beginning of the time step — i.e., at the n-time level.
The implicit method is the most stable of the three.
and The time at which hkJBop~ is evaluated was left un-
specified. Most authors use the n-time level, but some
use the (n+ 1)-time level. This will be discussed later.
Similar derivations can be made for the water and
gas. The water and gas equations in vector notation
where Ayh is the cross-sectional area of the cell, Ax
form are, respectively,
is the length of the cell, 00 is the flow potential in the
oil phase, i refers to the cell of interest, 1—1 refers to
the left-hand neighbor, and i+ 1 refers to the right-
hand neighbor. The flow potential @oequals pressure
and
plus capillary pressure plus gravitational potential,
and its Id$eat the (n+ 1)-time level is explained later.
Substituting Eq. 2 in Eq. 1 and dividing through by v ‘ (Afv@g) + v “ O&AJv%)
Ax )
.— hko
/.LO
Ba
@y
—
@ —— Method of Solution
( Ax
%
)1 AxAy
qo
Eq. 4 and its comparable forms for the water and gas
give the relationships, for each cell, among pressure;
S*[(*)”+l-(*)”] , ~ (4) and oil, water, and gas saturations; and time. If there
.- are m cells, then we have m equations for each phase,
giving a tdai of 3m equations. The solution of these
where A = * , and the subscripts i+% and i —1% equations is the major chore of reservoir simulation.
~B
Two methods of solution are generally used; these
indicate that the quantity is evaluated as an average are the implicit-implicit” 3 and the implicit-explicit.”
for the (i+ 1, i) and (i, i – 1) cells, respectively. DiEer- They are similar in one respect. Given a value for the
ent investigators use different averaging techniques. saturations and pressure at each cell at the beginning
The upstream value for A is the most commonly used. of a time step, new saturations and pressure values
Eq. 4 is the oil mass balance equation in one di- are found at the end of the time step. These values in
mension, in difference form, which is used in the simu- turn represent the starting point for the next time step.
lation calculations. In two and three dimensions, y- This stepwise process is continued until the desired
and z-&ection terms identical with the x-direction amount of time elapses.
term are added. The implicit-implicit”’ method solves Eqs. 4 and
Eq. 4 may be written in differential form as the difference forms of Eqs. 5 and 6 directly. The
solution usually involves an iterative procedure. Cap-
a+. qo _ a +JW’
& Ao~
() –—–—
AxAy 2t ()
—
B.
. . (4a) illary pressure occasionally tames instability prob-
lems.* The implicit-implicit method overcomes the
problem by expressing saturation as a function of cap-
and in vector notation as
illary pressure. To start the calculations, values of
saturations are assumed, and the pressures in the oil,
.~,ater, ~d gas phasesarecalculated. These calculated
These three forms of the MBE are used inter- pressures result in new capillary pressures, which are
changeably in the literature. Because of its compact- used to calculate saturations. These are compared
ness, Eq. 4b is the most commonly used. with the assumed values, and if necessary the calcula-
In deriving Eq. 4 we used the value of % at the tions are repeated.
(n+ 1)-time level, i.e., at the end of the time step. Using the fact that the oil, water, and gas satura-
This diflerencing technique is called the implicit2 or tions add up to one, we can manipulate the three MB
backward difference method and is the most com- “For definition, refer to the section on Computetionel Consid-
monly used. The Crank-Nicholson methodz uses an eration.
equations in such a way as to result in a pressure only Steps 1 and 2 and then 5 are executed, are called
equation. The pressure equation in symbolic form mixed. 7 Mixed methods are extensively used because
and vector notation is they require less computer time.
One criterion for dete rmining the compatibility of
Zp
v “ k,up –
q’=c’-z ‘ “ “ “ “
(7) the pressure and saturation values is the material bal-
ance error. One form of the material balance is the
.&,KeKe).~ is the total effective mobility of the three summation of the stock tank oil at the beginnimg and
phases, q’ is the total production, and c’ is the total at tiie end of the time step. The ditlerence between
effective compressibili~. (Capillary and gravity forces the values should be equal to the totai production dtii-
have been neglected.) In the implicit-explicit’ method, ing the time step. The incremental error is calculated
at any given time, the pressure equation @q. 7) is by the following equation.
solved first, giving the pressure distribution at each
cell. Then the saturations are determined from the incremental MBE error =
solution of the three MB equations.
To illustrate the method of solving Eq. 7 we write
it in difference form in one dimension. We also assume
that k’ = c’ = 1, and that q* = O. The implicit dif-
1387
. .
tion to “blow up”; in other words, the solutions be- only the effect of the time-step size. This is done by
come ph ysicaiiy ‘-mrea!istic. The most common cause rerunning the simulation with reduced time steps and
of this instability is excessively large changes in sat- compa~ng ~~e ~e~u!t~.The time stepisreduced until
urations and pressures during the time step. Usually further reduction does not change the results signifi-
this may be remedied by reducing the size of the cantly, thus indicating that the best solution has been
time step. obtained for the chosen sizes of the cells.
Norriseal 3-way
2-position for controlled,
high pressure automation!