Академический Документы
Профессиональный Документы
Культура Документы
The Springer-Verlag Lecture Notes provide rapid (approximately six months), refereed publication
of topical items, longer than ordinary journal articles but shorter and less formal than most
monographs and textbooks. They are published in an attractive yet economical forma~ authors or
editors provide manuscripts typed to specifications, ready for photo-reproduction.
Managing Editors
C. A Brebbia
Dept. of Civil Engineering
University of Southampton
Southampton S09 5NH (UK)
S.A Orszag
Dept. of Applied Mathematics
Rm 2-347, MIT
Cambridge, MA 02139 (USA)
Consulting Editors
Chemical Engineering:
J. H. Seinfeld
Dept. of Chemical Engg., Spaulding Bldg.
Calif. Inst. of Technology
Pasadena, CA 91125 (USA)
Dynamics and Vibrations:
P. Spanos
Department of Aerospace Engineering
and Engineering Mechanics
The University of Texas at Austin
Austin, Texas 78712-1085 (USA)
Earthquake Engineering:
AS. Cakmak
Dept. of Civil Engineering, Princeton University
Princeton, NJ 08544 (USA)
Electrical Engineering:
P. Silvester
Dept. of Electrical Engg., McGill University
3480 University Street
Montreal, PO H3A 2A7 (Canada)
Geotechnical Engineering and Geomechanics:
C.S. Desai
College of Engineering
Dept. of Civil Engg. and Engg. Mechanics
The University of Arizona
Tucson, AZ 85721 (USA)
Hydrology:
F. Pinder
School of Engineering, Dept. of Civil Engg.
Princeton University
Princeton, NJ 08544 (USA)
Laser Fusion - Plasma:
R. McCrory
Lab. for Laser Energetics, University of Rochester
Rochester, NY 14627 (USA)
Mechanics of Materials:
F.A Leckie
College of Engineering
Dept. of Mechanical and Industrial Engineering
Univ. of Illinois at Urbana-Ghampaign
Urbana, IL 61801 (USA)
A R. S. Ponter
Dept. of Engineering, The University
Leicester LE1 7RH (UK)
Fluid Mechanics:
K.-P' Holz
Inst. fOr Stromungsmechanik,
Universitat Hannover, Callinstr. 32
D-3000 Hannover 1 (FRG)
Nonlinear Mechanics:
K.-J. Bathe
Dept. of Mechanical Engg., MIT
Cambridge, MA 02139 (USA)
Structural Engineering:
J. Connor
Dept. of Civil Engineering, MIT
Cambridge, MA 02139 (USA)
w. Wunderlich
Lectu re Notes in
Engineering
Edited by C.A. Brebbia and S.A. Orszag
6
Myron B. Allen III
Collocation Techniques
for Modeling Compositional
Flows in Oil Reservoirs
Springer-Verlag
Rprlin Hpirip.lhp.ra New York Tokvo 1984
Series Editors
C.A. Brebbia' S.A. Orszag
Consulting Editors
ISBN-13: 978-3-540-13096-3
e-ISBN-13: 978-3-642-82213-1
001: 10.1007/978-3-642-82213-1
This work is subject to copyright. All rights are reserved, whether the whole
or part of the material is concerned, specifically those of translation, reprinting, re-use of illustrations, broadcasting, reproduction by photocopying
machine or similar means, and storage in data banks.
Under 54 of the German Copyright Law where copies are made for other
than private use, a fee is payable to 'Verwertungsgesellschaft Wort, Munich.
Springer-Verlag Berlin Heidelberg 1984
2061/3020-543210
ABSTRACT
The numerical simulation of mu1tiphase, mu1ticomponent flows in
porous media requires effective discrete techniques for solving the
nonlinear partial differential equations governing transport of molecular species.
A series
difficulties associated with the standard approach when more than one
hydrocarbon phase is present.
FOREWORD
F. Pinder and William G. Gray of Princeton for their advice during both
my research and my writing.
I believe that finite-element collocation holds promise as a numerical scheme for modeling complicated flows in porous media.
However,
TABLE OF CONTENTS
ABSTRACT
;;
FOREWORD
;; ;
CHAPTER ONE.
1.1
Introduction.
1.2
1.3
Reservoir mechanics.
1.4
Supplementary constraints.
18
1.5
Governing equations.
26
CHAPTER TWO.
39
2.1
40
2.2
45
2.3
Maxwell-set interpolation.
74
CHAPTER THREE.
COLLOCATION.
89
3.1
90
3.2
99
3.3
Upstream collocation.
105
3.4
109
3.5
A gas-flow problem.
120
CHAPTER FOUR.
126
127
4.2
143
4.3
147
4.1
CHAPTER FIVE.
CONCLUSIONS.
170
VI
APPENDIX A.
APPENDIX B.
APPENDIX C.
174
177
BIBLIOGRAPHY.
188
192
CHAPTER ONE
THE PHYSICAL SYSTEM
1. 1.
I ntrod uction .
Long before the oil price shocks of the past decade engineers recognized a need for improved methods of exploiting petroleum resources.
Conventional production practices including waterflooding are so inefficient that, of all the oil discovered in the United States as of 1980,
less than 35 percent is identified as either having been recovered or
remaining as proved reserves (Doscher, 1980).
Miscible gas
oil in place to form a zone in which the displacing fluid and the
displaced fluid have very low interfacial tension.
through the formation it moves oil that was previously trapped by the
capillary forces present in the porous rock matrix.
Because of its
with the reservoir oil, the interaction of the flow field and the
fluid-phase thermodynamics leads to "developed" or "multiple-contact"
miscibility.
~n
Compositional reservoir simulators attempt to capture the complex interactions between flow and thermodynamics in miscible gas floods, and
hence these models must cope with strongly nonlinear phenomena.
The
current trends in the two major issues confronting designers of compositional simulators:
finite-element collocation has received little attention in the petroleum industry compared to Galerkin finite-element techniques, despite
certain attractive features of the method.
the advantages of thermodynamic consistency and somewhat greater generality over the tabulated correlations used in earlier compositional
models.
detail.
Scope of the investigation.
The present study proposes new techniques for solving both the
thermodynamic constraints and the flow equations in the compositional
simulation of miscible gas floods.
we shall construct a method for computing the compositions and saturations of coexisting fluid phases using an interpolation scheme in
conjunction with a cubic equation of state.
that, unlike earlier methods, they give good results when applied to the
types of nonlinear, convect inn-dominated flows encountered in oil reservoirs.
This study has five chapters.
lishes the physics governing miscible gas floods and notes some implications for the numerics that follow.
summarizes the results of the investigation and outlines possible directions for further work.
1.2.
The
There is no
While cited
All
of the kinematic and dynamic quantities mentioned in this chapter therefore refer to a level of observation where a fluid-saturated porous
medium appears as a collection of superposed continua.
(1976) review the theory and history of this viewpoint, and their treatment and the work of Bowen (1980, 1982) guide much of the framework
outlined in this section and the next.
Let us assume that the reservoir consists of a body of homogeneous
porous matrix occupied by at most two fluids, a vapor and a liquid, to
which the matrix is permeable.
~ E
Each
= {1,2, ... ,N+1} x {V,L,R}, where {1,2, ... ,N+1} is the set of components
mix
= I I p.
.
~a
~
(1.2-1)
Pa = I.
ia
(1.2-2)
: Q
a
sions [volume of a / volume].
= 1.
{V,L,R} is a continuous
{~V'~L'~R}
satisfies
~V
~L
~R
"'i
"'i
mix
a
"'i
Pi
Symbol
a
V
p
[moles of fluid/volume]
L
+ SL P )
[moles of (i,a}/moles of a]
[moles of (i,a}/volume of a)
[moles of a/volume of a]
Physical Dimensions
a a
+a P "'i
-1
VV
L L
P +(Sv p "'i+SLP "'i)
+(SV
-1
Pmix
a/ a
Pi P
Pi/+a
Pa/+a
Definition
Name
TABLE 1-1
-...J
Call
(1.2-3)
(1. 2-4)
Several useful
the fact that volume fractions sum to unity follow four restrictive
equations:
I w. = 1
i
l.
(1.2-5a)
w~ = 1
l.
(1.2-5b)
wl..
= 1
(1.2-5c)
(1.2-5d)
1.3.
Reservoir mechanics.
Kinematics
Thus -1
x~ is at
-1
-1 .... 1
~1
(1.3-1a)
(i,~),
(1.3-1b)
~i
= ~i
~
Y
(1.3-1c)
~,
(1.3-1d)
10
~l.
=
(1.3-1e)
~ Pi ~i
=0
(1.3-2)
Mass balance
Let us assume that the reservoir and its contents obey the mass
balance.
J Pi dv)
c Q,
o
(1.3-3)
+ I I
i a
a
[atP i + V(p~l. v~)] dv
~l.
r\I
J
a
[ Pi0: (v.
- u I ) ]. n,.. ds =
"'l.
~
0
(1.3-4)
r,
EI is the velocity of I,
unit vector normal to I, and [el signifies the jump in the quantity
across I.
is a
C)
11
r,
no matter how
I I [ P~ (~~
i a
~I) ]
=0
on t.
(1.3-5b)
(1. 3-6a)
on I
(1.3-6b)
for all (i,a)
~a
R. to obey
1
=I
i a
R~
1
=0
(1.3-7)
12
(1.3-6b) apply.
discontinuous.
Thus,
i = 1, ... ,N+1
(1. 3-8)
Moreover, the rock phase shares no species with the fluid phases, so
that
i = l , ... ,N
(1.3-9)
(1.3-10)
f\
"L
13
N I\a:
I Pi f 0,
a: = V,L
i=l
(1.3-11)
Thus the system to be modeled admits mass transfer between fluids but
excludes adsorption, rock dissolution, and intraphase chemical
.reactions.
Since fluid-phase velocities in porous media are typically more
accessible to measurement than constituent velocities, it is convenient
to rewrite the constituent balance equations for fluid constituents in
terms of va::
i = l , ... ,N
a: = V,L
(1.3-12)
Here, _~
J.a:. =
&
~
Sa: Pa: wi
a:
a:.~s t h e d'~spers~o~
.
~i
spec~es
. h respect
~ w~t
L L L
V V V
+ ve[(sV P w.~ v + SL P w. v ) 1
~
.L) = 0,
+ V (j ~ + J.
-~
-~
1, ... ,N
(1.3-13)
14
(1. 3-14)
"a
.. L
1.
1.
Thus,
(1. 3-15)
or
= 0,
= 1, ... ,N
(1.3-16)
To avoid some of the complexities associated with modeling porousmedia flows, let us assume that only the fluids move and that the
density of the rock stays constant.
immobile, with v
constant.
Strictly speaking,
15
used approach to this problem is to assume that the field equations for
simultaneously flowing fluid phases in porous media are extensions of
Darcy's law for single phase flow.
(1.3-17)
phase a, and
~a
(1.3-18)
Equation (1.3-17) holds for all phases, V, L, and R, even though only
the fluid phases are of interest here.
16
First, assume that the fluids obey linear stress laws of the form
= V,L
(1.3-19)
where
= Vva
+ (V~a)T.
are intrinsic Lam~ moduli for the fluid phase a, and coefficients of the
form Aa~, pa~, a ; ~, represent the effects of interphase tractions.
Second, assume that the last two terms in (1.3-19) contribute negligibly
to the fluid motions on the grounds that viscous effects are dominated
by the effects of momentum exchanges with the rock matrix.
This assump-
- Pa~'
I
= V,L
(1.3-20)
= V,L
(1.3-21)
= V,L
(1.3-22)
17
= V,L
(1.3-23)
= V,L
(1.3-24)
il~
Aa
= ka I ~a
(1.3-25)
where k
=. I.,
a
equation (1.3-22)
(1.3-16)
which is the multiphase extension of Darcy's law for isotropic media.
18
1.4.
Supplementary constraints.
(w.,
... ,wN- l' Pa ),
~
a = V,L
(1.4-1)
(1.4-2)
19
locally indistinguishable.
between the phases vanishes and the fluids flow miscibly, allowing very
efficient displacement of the liquid initially present.
Indeed, the
(1.4-3a)
lim
cr
(w~1
L
Wi) = 0, i = 1, ... ,N-l
(1. 4-3b)
Here "lim cr " signifies the limit as (w1, ... ,wN-1,PV) approaches a
critical point, where phases become indistinguishable, from thermodynamic states inside the two-phase regime.
The relative amounts of phases present at any given point obey a
constraint on the fluid saturations Sa'
a = V,L.
(1.4-4)
(1.4-5)
20
and obey a thermodynamic constraint of the form
(1.4-6)
We shall use
These
Dispersion is arguably the most poorly understood macroscopic phenomenon in porous media physics, and and there exists a correspondingly
large literature on the subject (see Perkins and Johnson, 1963; Greenkorn and Kessler, 1969; Nunge and Gill, 1969, Fried and Combarnous,
1971, and Fried, 1975, Chapter 2, for reviews).
21
fluid phase at a fixed scale dispersion obeys a phenomenological constitutive law of Fick's type (Van Quy et. aI, 1972),
(1.4-7)
-1
The most
.a
J. =
~1
(1.4-8)
22
However attractive equation (1.4-8) may be on theoretical grounds, it
remains untested.
effects of dispersion may be quite small (Collins, 1961, Chapter 8), and
in fact the fully compositional model developed in Chapter Four neglects
the phenomenon entirely.
Capillary pressure.
The capillary pressure relates the macroscopic pressure in the liquid
to that in the vapor:
(1.4-9)
This difference owes its existence to the interfacial tension between
the fluid phases, a molecular phenomenon (Gubbins and Haile, 1977; Davis
and Scriven, 1980), and to the microscopic geometry of the fluid interface in the interstices of the porous matrix (Morrow, 1969).
Thus the
actual physics of capillarity are quite complicated, and its details are
not wholly accessible to the macroscopic level of observation to which
the equations of this chapter pertain.
In bench- or field-scale studies it is most practical to measure
capillary pressures as functions of macroscopic flow parameters, using
the experimental values to define empirical capillary pressure functions
applicable in the velocity field equations.
that for two fluids of fixed compositions the capillary pressure depends
on the local values and history of the saturations (Morrow, 1969).
For
23
medium.
(1.4-10)
2
The capil-
(1.4-11)
As a
From
PCVL
=0
a~O
(1.4-12)
a condition that parallels equations (1.4-3).
mental data we shall compute interfacial tensions using the SugdenMacleod correlation (Reid et al., 1977, Chapter 12).
Effective permeabilities.
Like capillary pressure, effective permeabi1ities are also macroscopic manifestations of the effects of interstitial geometry and interfacial tension on fluid flows in porous media, and the caveats regarding
24
It is
~ 1.
I shall assume that k is a uniform, constant
ra
scalar, thereby disregarding the possible effects of anisotropy or
~
~,
Longeron (1980), who examined gas-oil systems, and Amaefule and Handy
k ra
= k ra (SV,a),
= L,V.
(1.4-13)
25
To be consistent with the theory of single-phase flow in porous media,
these functions must satisfy 0 S k rV + krL S 1. Moreover, as a ~ 0 the
vapor-liquid interface disappears, and the single-phase version of
Darcy's law applies:
v
...-
=-
(k/~p)(Vp
- pg VD)
0.4-14)
Therefore, as a
curves approach straight lines with positive and negative unit slope on
the saturation interval [0,1].
(1.4-15)
26
1.5.
Governing equations.
The balance laws together with the restrictive equations and supplementary constraints combine to form a system of equations that must be
solved to predict the performance of miscible gas floods.
Since this
system is nonlinear and usually quite complicated, numerical approximation offers the only hope for producing solutions in a practical
fashion.
Thus, substi-
p g
VD)
i=1, ... ,N
(1.5-1)
= Pv
v V
27
i=1, ... ,N
(1.5-2)
Henceforth let us assume that the flow is one-dimensional, that is, that
all variables are uniform along two Cartesian axes and vary only along
x.
i=1, ... ,N
(1.5-3)
where
a
= V,L
(1.5-4a)
(1.5-4b)
In addition to the N equations (1.5-3) we have the four restrictive
equations
28
N
I
i=1
V = N
L
I w.
l.
w.
l.
i=1
N
I
i=1
w.
l.
= 5V + 5L
1
(1.5-5)
(1.4-1)
i = 1, ... ,N-1, a = V,L
(1.4-2)
(1.5-6)
(the last being equivalent to (1.4-6) through the definition (1.4-4,
the definitions of p and g, and constitutive laws sufficient to deter.
T V' T L' PCVL' J. V an d J' L , l.. = 1 , ... ,.
N
Gl.ven
.
th e pro b 1em geometry
ml.ne
i
i
(A(x) and D(x and appropriate boundary and initial data, equations
(1.5-3), (1.5-5), (1.4-1), (1.4-2), and (1.5-6) constitute a set of 3N +
5 equations in the 3N + 5
V L
0, the following
29
compact support in Q x
1983):
(1.5-7)
This criterion admits discontinuous functions w(x,t) but reduces to the
original partial differential equation when w is sufficiently smooth to
satisfy the latter.
Equations (1.5-3) are fairly complex, and it is not at all clear on
inspection whether one can reasonably expect discontinuous solutions to
arise.
Let
Letting w~
= w~ = 0,
(1.5-8a)
30
Assuming also that gravity and capillarity have negligible effects, that
variations in pV and pL are negligible, and that A is constant and
uniform allows us to rewrite (1.5-8) as
(1.5-9a)
(1.5-9b)
where q
=-
a Pv
a x
= V,L.
In the case
where the total flow rate q = qv + qL is constant we need only solve one
of these equations, say the first.
Since qv
= Avq/(AV +
AL) this
(1.5-10)
where the fractional flow function
(1.5-11)
denotes the volume fraction of the flowing stream occupied by vapor.
The nature of the fractional flow function is, of course, crucial to
the behavior of solutions to equation (1.5-10). Although the precise
form of fV(SV) depends on the particular rock and fluids studied, there
31
First, fV vanishes
for vapor saturations less than an irreducible vapor saturation SVR and
equals unity for Sv
(1.5-12)
e = [0,-)
x [0,-).
(1.5-13)
32
f(s")-l
o~
o
Fig. 1-1:
__
~~
S"R
__________________ __________.~
I-SL.~
S"
Fig. 1-2:
33
of vapor saturation at certain points in Q, as shown in Figure 1-2.
One
(1.5-14)
or, since vV
(1.5-15)
The Buckley-Leverett-Welge solution is a weak solution but not a
classical solution, since it is discontinuous.
Nonetheless, it is the
Recently, Helfferich (1981, 1982) has presented a unified generalization of the Buckley-Leverett theory to multicomponent flows in porous
media with interphase mass transfer, and this work sheds some light on
the equations governing miscible gas flopds.
34
Assume, as in the Buckley-Leverett problem, that gravity and capillarity have negligible effects, that A does not vary, and further that
dispersion is negligible for all species.
(1.5-3) becomes
i = 1, ... ,N
(1.5-16)
where now qa = - pa Aa axPV is the flow rate of phase a, a = V,R, q = qv
Ph ase a, a = V,L.
tions in molar fluid density in space and time are negligible, we can
rewrite (1.5-16) as
i = 1, ... ,N
(1.5-17)
By inspection, then,
w.1
qp
-1
(df./dw.),
1
i =
1, ... ,N-1
(1.5-18)
r.
1
= qp-1 [ fi ]/[ Wi ],
i = 1, ... ,N-1
(1.5-19)
35
= 1, ... ,N-1
(1.5-20a)
= A,
= 1, ... ,N-l
(1.5-20b)
= 1,2,
-1
[ A I - qp-1 A ] d~
=0
(1.5-21)
= 1,2,
I is the
q p-1 A)
=0
(1.5-22)
In this case, then, there will typically be two characteristic speeds of
coherence A , A. for a given composition (w 1 ,w 2 ) at a given point
max
m1n
(x,t). The corresponding solutions of (1.5-21) define the tangents
(dw1/dw2) max , (dw1/dw2) m1n
. to the characteristic curves in composition
space along which the Amax - and Am~
. -waves travel, respectively.
36
systems suggest that the full system may possess solutions having steep
gradients or discontinuities in composition.
Indeed, finite-difference
37
numerical solution to (1.5-3) to heuristic remarks based on analogies
with the simpler cases.
The formation and persistence of steep composition gradients occur in
problems where the dissipative influences of species dispersion and
capillary pressure gradients are dominated by convection owing to
applied pressure gradients.
practice.
If
the dissipative terms are nonzero but very small, then because of their
functional dependences on composition gradients their influences will be
detectable only in the very near vicinity of steep portions of the
solution.
together with its jump condition are not sufficient to determine unique
discontinuous solutions to otherwise well-posed Cauchy problems (Chorin
and Marsden, 1979, Chapter 3).
Among
38
(i)
(ii)
CHAPTER TWO
REPRESENTING FLUID-PHASE BEHAVIOR
Under the
such a zone has very low residual oil saturation, implying more
efficient oil recovery overall.
The transfer of mass among fluid phases in a miscible gas flood is a
complicated set of kinetic phenomena driven by intermolecular forces and
macroscopic transport phenomena.
The
This chapter
40
2.1.
has empirical support (see, for example, Raimondi and Torcaso, 1965) in
the sense that its predictions agree well with the results of flow
experiments.
of control variables, is {w 1 ' ... ,w N_1 ' V}, where Wi is the mole fraction
of species i in the fluid mixture and V is the molar fluid volume, that
is, the reciprocal of molar fluid density p.
The variables
~i'
n.1
~.
1
41
There is very little that one can say about general relationships
among the control variables and the state variables in systems removed
from equilibrium.
equilibria.
42
Pv = PL
V
Tl i = Tl i '
(2.1-1a)
i = 1, ... ,N-1
(2.1-1b)
Pi = Pi'
i = 1, ... ,N-1
(2.1-1c)
include such effects using Gibbs' theory of capillarity (Gibbs, 1876 and
1878).
Equations
43
(2.1-1) define the set of single-phase thermodynamic states that lie at
the limit of thermostatic equilibrium.
set
tion, not only about when the fluids change from a single-phase regime
to a two-phase regime and vice versa, but also about the values of the
thermodynamic variables associated with each coexisting phase.
A similar demarcation exists for stability:
Arthur
chapter is to present schemes for computing the Maxwell set in simulators of miscible gas floods.
Critical points.
In miscible gas floods the critical points of the fluid mixtures play
an important role: they are points in the Maxwell set where coexisting
phases become indistinguishable.
Gibbs
(1876 and 1878, pp. 129-133) deduces two algebraic criteria for this
purpose.
44
viewpoint.
The first criterion for a point in thermostatic equilibrium to be a
critical point is that it lie at the limit of convexity of the Helmholtz
free energy with respect to the control variables.
This is equivalent
to requiring
U = 0
det
(2.1-2)
The second criterion is that the critical point be a limit of points
satisfying (2.1-2) for which isothermal variations in the control parameters can produce unstable phases.
det
= 0
(2.1-3)
45
2.2.
The theory summarized in the previous section provides both a geometric view and the equivalent algebraic conditions of local thermostatic
equilibrium.
this theory.
These methods
1.
1.
based on those used to predict phase densities, and thus the compatibility conditions (1.4-3) hold.
We shall elaborate on
these observations in this section, saving Section 2.3 for the presentation of a simple approach to avoiding both difficulties.
46
The Peng-Robinson equation of state.
Peng and Robinson (1976) propose an equation of state for hydrocarbons that is cubic in molar volume V and is applicable to petroleum
reservoir fluids through the use of mixing rules.
Z - (1 - B)Z + (A - 3B - 2B)Z
2
3
- (AB - B - B ) = 0
(2.2-2)
where
47
(2.2-3a)
B = bp/RT
(2.2-3b)
~d
Z = pV/RT
(2.2-3c)
is the compressibility factor.
select the largest root; if the phase is a liquid, pick the smallest
positive root.
In practice we
c~
~d
subst~ces,
~d
b depend on thermodynamic
I
I wi wJ. (1 - 6 iJ)
i=l j=l
.;
(aia J.)
(2.2-4a)
(2.2-4b)
48
Here a. and b. are values of the parameters a and b for species i, and
l.
l.
Peng and Robinson also present the equation for species fugacity in a
single-phase mixture.
phase-behavior predictions.
species i in phase a as
~ = (Z
l.
{[Z
a -1
- B)
exp [B.(Z
l.
+ (1 + 12)B a ]/[Z
- 1)/B ]
a
- (1 - 12)B a ]}-ni
(2.2-5b)
with
(2.2-Sc)
Hence f~ has the dimensions of pressure.
l.
Let us
49
Saturation pressure calculations.
If
the existing phase, denoted by t, is a vapor and the nascent phase, say
v, is a liquid, then psat = pdew, the dew pressure. If t is a liquid
.
sat
bub
and v 1S a vapor, then p
= p
, the bubble pressure. Figure 2-1
.
bub
dew
dep1cts p
and p
as functions of composition for a typical binary
mixture.
The utility of saturation
press~re
calculations in compositional
Simulator-predicted N-tup1es
phases.
N of these are
50
CRITlCAL
POINT
O~
____~____~~__~~____~~__~
Figure 2-1.
0.6
0.4
0.2
MOLE FRACTION CO2
LO
310.93 K.
51
---- ISOBAR
Figure 2-2.
52
v
Pi = Pi'
i = l .. N
(2.2-6a)
N
I
i=l
wi
=1
(2.2-6b)
Equations (2.2-6) assume a form that is more convenient computationally if we express them in terms of fugacities.
p~1 =
RT in
f~1 + p ref
i
(2.2-7)
Now we
can express the conditions (2.2-6) defining the Maxwell set in terms
that we can compute from the equations (2.2-5) for fugacities:
f~1 - f~1
= O.
= l ... N
(2.2-8a)
sat
N
I f~/;~
i=l
=0
(2.2-8b)
For
the problem at hand. the composition of the existing phase is known and
.
v
v
sat
the var1ables (wl ... wN p
) are unknown. Therefore the system
(2.2-8) has the following dependencies on the unknowns:
53
v
v
sat)
= 0
f v(
- f.(psat)
1
i w1,,w N' P
(2.2-9a)
for i = 1, ... ,N, and
p
sat
N
I
i=l
v v
v
sat
(psat) / i(w1"",wN-1,P
) = 0
(2.2-9b)
The
matrix.
~.
~k -- ( wk "",wk ' Psat,k) , t h e secant met h 0 d computes
G1ven
an 1terate ~
1
N
a correction ~tk+1 = t k + 1 - t k according to the rule
(2.2-10)
Here J is a finite-difference approximation to the Jacobian matrix
a"R/at:
,..,
~
k
J .. (t )
1J '"
"'J
(2.2-11)
To start the algorithm, set h~
= ~t kJ..
54
= 1.618.
with slope 1.618 in practice, although Figure 2-3 suggests that the
convergence rate is at least superlinear.
evaluations of the residual
!,
(w~)k
~ 1.1, i = 1, ... ,N, aborting the iteration if a reasonable number
l.
The coded version of this algorithm performs well except near the
critical points of fluid mixtures, where the method is very sensitive to
initial guesses,!
critical region is a difficulty characteristic of standard equation-ofstate methods for computing 'saturation pressures and other phase
equilibria, and a considerable amount of research has focussed on
mitigating this sensitivity (see, for examples, Asselineau et al., 1979;
Baker and Luks, 1980; Gundersen, 1982; Nghiem and Aziz, 1979; Poling et
al., 1981; Risnes et al., 1981; Varotsis et al., 1981).
Table 2-1 compares saturation pressures for the binary mixture CO 2 +
n-butane as predicted by the Peng-Robinson equation with those measured
by Olds et al. (1949).
55
15
In
II Rk+'11
0
10
AO
.0
II II
-10
-5
In Rk
10
15
0
A
-5
-10
6
0 0
Figure 2-3.
Plot of
-15
inll~k+111
vs.
R,nll~kll
pressure calculations. The slopes for the lines of 1eastsquares fit average 1.49.
56
7.3
wi
(l)I Z
llQ
n-,~'~
~I:E
Q..
:E
x'o
w,o
0=
::>
~
f
7.2
APPROXIMATE
I./"
Kltl
PRESSURE ,,/' .-),I
z0
fi
0=
::>
..
' . CORRECT
SOLUTION
7,1
.8,9, ...
7J
---
'"
(I)
. /'
CRITICAL
*
POINT
o '
0.905
I
I
I
I
I
I
0.910
0.915
0.920
0.925 ..
MOLE FRACTION CO 2
Figure 2-4.
0.1393
0.3671
0.4551
0.6073
0.7102
0.8609
Mole
fraction
CO 2
0.8242
1.467
2.480
0.5728
1.006
2.305
344.55
366.49
328.11
349.94
383.44
2.054
351.38
322.16
1.125
2.590
344.55
328.16
0.9988
3.213
339.27
311.04
1.956
4.023
316.49
322.44
3.304
Measured
Dew
2.305
1.136
0.6715
2.421
1.436
0.8051
2.036
1.119
2.572
2.535
3.932
1.914
6.398
5.253
4.037
6.503
5.085
7.613
5.050
8.116
6.831
7.613
6.894
Measured
3.797
2.635
1.996
6.049
5.056
3.953
6.352
5.062
7.432
5.086
7.855
6.703
7.257
6.745
Coaputed
A\
-3.43
3.94
4.28
"5.45
-3.74
-2.09
-2.32
-0.45
-2.38
0.71
-3.22
-1.87
-4.67
-2.12
12.92
17.23
-2.40
-2.12
-2.31
-0.85
-0.57
-0.68
-1.30
2.83
"3.304
0.9858
0.41
3.53
0.28
A\
1.964
4.165
3.313
COJIIIuted
pressure (MFa)
310.88
(Ie)
Teap.
TABLE 2-1.
--.j
CJ1
max
7
7
6
5
4
4
5
5
5
8
5
(6.703,0.8610)
(7.855,0.7721)
(5.086,0.8968)
(7.432,0.7651)
(5.062,0.8299)
(6.352,0.7328)
(3.953,0.8316)
(5.056,0.7493)
(6.049,0.6360)
(1.996,0.6703)
(2.635,0.5680)
(3.797,0.3869)
(6.0,0.8)
(8.0,0.8)
(4.0,0.9)
(7.0,0.8)
(4.0,0.8)
(6.0,0.7)
(3.0,0.8)
(4.0,0.7)
(5.0,0.6)
(1.0,0.6)
(1.0,0.5)
(3.0,0.3)
4
4
4
3
5
4
3
4
5
4
5
4
5
(4.165,0.4277)
(1.964,0.1515)
(3.304,0.2287)
(0.986,0.0717)
(2.572,0.1483)
(1.119,0.0534)
(2.036,0.0864)
(0.805,0.0325)
(1.436,0.0508)
(2.421,0.0811)
(0.672,0.0010)
(1.136,0.0152)
(2.305,0.0308)
(4.0,0.4)
(2.0,0.1)
(3.0,0.2)
(1.0,0.1)
(2.0,0.1)
(1.0,0.1)
(2.0,0.1)
(1.0,0.1)
(1.0,0.1)
(2.0,0.1)
(1.0,0.1)
(1.0,0.1)
(2.0,0.11
316.49
322.44
339.27
311.04
344.05
328.16
351.38
322.16
344.55
366.49
328.11
349.94
3 83.44
0.1393
0.3671
0.4551
0.6073
0.7102
(7.257,0.8916)
(7.3,0.9)
11
(6.745,0.9207)
(6.0,0.9)
(3.313,0.3547)
(3.0,0.3)
310.88
max
0.8609
(K)
Initial
guess
Talii'.
Dew points,
Mole
fraction
CO 2
TABLE 2-2.
CJ1
00
59
N
I
i=l
(2.2-12)
Figure 2-5
shows plots of predicted and measured saturation pressures versus composition for the binary mixtures CO 2 + n-butane and CO 2 + n-decane at
344.26 K using experimental data from Olds et al. (1949) and Reamer and
Sage (1963).
Given an isothermal fluid mixture (w 1 ' ... 'w N_1 ' p) lying in the
two-phase region, it is necessary to determine the compositions
and
(2.2-13a)
60
cr
14
-0-0-
C02+ n-DECANE
CO +n-BUTANE
12
~--DEW----'"
POINTS
02
0.4
0.8
Q.6
1.0
MOLE FRACTION CO 2
Figure 2-5.
+ Hydrocarbon binaries
"'c:..tto
Figure 2-6.
IL
~ ,,,1
_,
I
,~
~IE
6.
~ 1
'"
...........~~
"
II)
e.:::IE
AfI/fj
Wcoz---+'
III
'-f
62
GI,
I.
~----4----r.j-7-----""GIz'
I
1.......-
COMPOSITION
: SPACE
1
1
I
Figure 2-7.
63
N
i=1
w.1
= 1,
= V,L
(2.2-13b)
(2.2-13c)
Finally, there are N conditions of local thermostatic equilibrium,
i=l, ... ,N
(2.2-13d)
The observation that equations (2.2-13a) through (2.2-13c) are fairly
simple, while the conditions (2.2-13d) are complicated, motivates the
following overall solution scheme, first described by Fussell and
Yanosik (1978):
L
(i)
(ii)
R~1
= (f~
- f~)k, i
11
step (i).
(iv)
(v)
(vi)
Go to step (ii).
64
Step (i) poses the choice between two sets of principal iteration
variables.
in the quasi-Newton
Let us choose
L
L
L
("'1""''''N-1'Y) i f YV
0.5
V
V
V
("'1""''''N-1'Y) i f YV < 0.5
(2.2-14)
Fussell and Yanosik (1978) report that this choice leads to more
reliable convergence of the scheme than arbitrary selection of one set
of variables
for~.
{w i ,,w N_1 , Ya }:
(2.2-13a')
"'.tI,k =
1.
i=l, ... ,N
(2.2-13c')
wa,k = 1 _
N
(2.2-13b')
wtl,k = 1 N
(2.2-13b")
65
Once these values are available, one can compute the fugacity residuals
(step (iii
To check the
--
(2.2-15)
Here, as in equation (2.2-10), the matrix elements J .. are finitedifference approximations to elements
k
J i . (t )
J ~
aR./at.
l.
J
l.J
(2.2-16)
= max
{~t~, hO
J.}, k
J
>
O.
(2.2-17)
0.2493
0.2490
0.2802
0.2916
0.3183
0.3277
0.3134
0.3053
0.3164
0.3274
0.3315
0.2902
0.3196
0.3232
0.3897
0.0433
0.0939
0.2175
0.2833
0.3386
0.4386
0.0948
0.1532
0.2141
0.2631
0.2508
0.0438
0.5046
0.5486
0.5485
Q.5543
0.5651
0.5917
0.6045
0.6071
0.6133
0.6274
0.6631
0.6579
0.6598
0.1501
0.0136
0.0305
0.0780
0.1108
0.1552
0.0148
0.0336
0.0580
0.0904
0.1379
0.0092
0.0614
0.8476
0.9819
0.9651
0.9178
0.8852
0.8414
0.9792
0.9604
0.9358
0.9033
0.8554
0.9824
0.9750
0.3300
0.0350
0.0754
0.1731
0.2268
0.2811
0.0350
0.0754
0.1220
0.1731
0.2268
0.0200
0.0349
0.5900
0.6700
0.6700
0.6700
0.6700
0.6700
0.7189
0.7189
0.7189
0.7189
0.7189
0.7617
0.7617
7.0
8.0
8.0
8.0
8.0
8.0
9.0
9.0
9.0
9.0
9.0
10.0
10.0
'"Mole fractions.
0.2307
0.3346
0.4946
0.1201
0.8772
0.2811
0.5900
7.0
7.0
0.2092
0.2049
0.4881
0.1731
0.0669
0.9299
0.0754
7.0
0.5900
0.0882
0.4896
0.0272
0.5900
0.2004
0.0407
0.4912
0.0123
0.9842
0.0694
0.0350
YV
0.5900
Liquid composition
n-C4H10
CO2
Vapor composition
n-C4H10
CO2
Feed composition
n-C4 H10
CO 2
7.0
Pressure
(MPa)
O'l
O'l
0.8610
13.0
*Mo1e fractions
0.8610
13.0
0.0300
0.0100
0.0200
0.8610
13.0
0.9254
0.0600
0.8345
0.9378
12.0
0.9528
0.0350
0.0500
0.8345
0.8345
12.0
12.0
0.8831
0.0200
0.9176
0.9730
0.9509
0.9655
0.1220
0.8008
0.8345
12.0
0.9169
0.9394
0.9678
0.9768
0.0884
0.0247
0.0153
0.0072
0.0430
0.0342
0.0225
0.0122
0.8473
0.8307
0.8197
0.7985
0.7879
0.7762
0.7675
0.7785
0.7507
0.7329
0.0449
0.0648
0.7159
0.7119
0.7244
0.6832
0.6671
0.0313
0.0219
0.0113
0.0667
0.0571
0.0411
0.0240
0.1306
0.1152
0.1954
0.2849
0.3144
0.2835
0.3108
0.3301
0.3385
0.2038
0.3014
0.3289
0.3358
0.3370
0.0423
0.0903
0.2509
0.0248
0.3282
0.3305
Yv
0.1927
0.1485
0.0939
Liqpid composition*
CO2
n-C4"10
0.0188
0.0104
0.1145
0.0678
0.9222
0.8728
0.0379
0.9531
Vapor COJIIIosition*
CO2
n-C4"10
11.0
0.0754
0.1000
0.0350
0.8008
11.0
0.8008
0.0200
0.8008
11.0
0.8008
0.1731
0.7616
10.0
11.0
0.1220
11.0
0.0741
0.7617
0.7617
10.0
10.0
Pressure
(MPa)
0>
"
68
Just as the saturation pressure scheme described earlier, this algorithm has an asymptotic convergence rate of about 1.618, although the
-k+l
-k
caveats regarding plots of in Illl
I versus tn IIll
I apply here as well.
Table 2-3 summarizes some results of flash calculations for the ternary
mixture CO 2 + n-butane + n-decane at 344.26 K.
This algorithm requires N2 + 1 evaluations of fugacity differences
per iteration.
(w 3 ' . ,wN_1 ' p), determine the point (w 1 ,w 2 ) along the critical curve,
that is, along the locus of points at which the critical conditions
(2.1-15) and (2.1-16) hold.
formulated this problem over a century ago, reports of actual computational experience have been relatively recent (Peng and Robinson, 1977;
Baker and Luks, 1980; Heideman and Khalil, 1980; Peng and Robinson,
1980).
69
The equations to be solved in critical point calculations are
equations (2.1-15) and (2.1-16), which by the definition (2.2-7) of
fugacity are equivalent to
(a
CII
N- 1
f 1 )/f 1
= 0
U = RT det
(2.2-18a)
and a similiar equation gotten from (2.2-18a) by replacing the first row
in the matrix with the vector
(a
U)/RT,
CII 1
(a CII _ U)/RT )
N 1
(2.2-18b)
as stipulated in Appendix B.
to
(2.2-19a)
(2.2-19b)
In this case, the derivatives of U with respect to
CII.
are
70
(2.2-20)
for i
=1
or 2.
resulting analytic
One alternative is
(2.2-21)
In practice, successively smaller values of Aw lead to estimates of a
given derivative that appear to converge quickly to a single value,
until Aw becomes so small that the resulting differences in f. are
1
71
equal-fugacity constraints pointwise require a fair degree of computational sophistication, and one effect of this fact is to divorce the
numerics from much of the global geometric picture of miscible gas flood
thermodynamics.
principles for miscible gas floods rests on geometric pictures using the
Maxwell set; papers by Hutchinson and Braun (1961), Metcalfe et al.
(1973), Metcalfe and Yarborough (1979), and Orr and Jensen (1982) are
four among many examples of such work.
A second, more salient consequence of the computational sophistication required in the standard approaches is their cost.
These
72
"---8.5 MPa
50%00
50!. n-DECANE
Figure 2-8.
73
The most serious difficulty with the standard equation-of-state
methods is their unreliability.
practicable, lacks sound justification and carries the risk of thermodynamic inconsistency if ineffective starting guesses occur outside the
critical region.
74
2.3.
Maxwell-set interpolation.
This observation
suggests circumventing the difficulties by developing an explicit representation of the Maxwell set whose numerical evaluation is cheaper and
less likely to fail.
Specifically, let us
In this
One therefore
greater reductions in the time required to execute two-phase calculations and virtually eliminates sensitivity to starting guesses.
We
75
I WI + w2 = I}.
Let
be a collection
K
{(wI k,w 2 k)}k=1 of knots in this domain, and consider a proper trian,
,
sat
as
(2.3-1)
K
sat
where {Tk }k=1 is the basis giving p
as a plane over each subset of
Q2 belonging to the triangularization. In practice one computes (2.3-1)
for a given triangular region using area coordinates (Pinder and Gray,
1976, Section 4.8).
The triangular linear interpolation scheme (2.3-1) is easy to
compute, and it extends readily to functions of several variables.
E C2 (Q2) the interpolation error is subject to
In
addition, if psat
control, obeying
(2.3-2)
where h denotes the mesh of the triangularization and M2 is a bound on
76
Several practical rules promote the construction of good interpolation schemes for the saturation pressure dome.
obvious.
p
sat
problem.
In
the geometric terms of Section 2.1, the scheme should not produce values
that lie on the wrong side of the spinodal set KS'
This restriction
typically causes no concern except near critical loci, where the Maxwell
set
Here
in Section 2.2.
Finally, in some cases interpolation using artificial data may
improve the scheme.
estimate (2.3-2) is large, and thus the interpolation error may also be
large.
77
CRITICAL POINT
,
,,
,I
,"
(0 )
_Ks
I
I
I
CRITICAL POINT
,
,,
,, "
,
,t---K
I
(b)
S
J
J
KS 0: SPINODAL SET
Kill z MAXWELL SET
Figure 2-9.
78
psat~_~_--A
//:
'I
,
,
~B-+4-~,~----------------
".
I
C
ILl
0::
,
,
I_p~-
,,,
::>
,,
,
,,,
(/)
(/)
ILl
0::
0.
sot
PO~ B
Figure 2-10.
COMPOSITION
79
cial knots can lead to better estimates of psat over the operating
pressure range in these cases. The figure depicts, in cross section,
sat
part of a hypothetical p
dome, the horizontal axis being a line in
the composition domain Q2 and PLB representing a lower bound on
pressures encountered during transport simulation. Given a knot at wA
with saturation pressure p~at, a "real" knot at the composition value 0
.
"sat
sat
w1th p
= PO
leads to poor interpolated values on the composition
interval (O,WA) owing to the large curvature in psat there. In this
hypothetical case, choosing an artificial (in fact, non-physical) knot
..
"sat
(w*) = p* g1ves
.
b etter 1nterpo
.
1 ate d va 1ues so
at w* an d ass1gn1ng
p
1ong as ,,-sat>
p
- PLB.
<
The larger errors occuring f or "sat
p
PLB are not
.A
sat
> PLB.
The
Q; of
R2
Let the
discussed above.
The lowest
80
0.55
~
Q5Q-r--'\...
1&.1
CRITICAL CURVE
0.41
Q37
CD
I
~
0.28111
~
a:
1L
1&.1
-J
0.07541-k--~"""";:IIk-~~k-~---,,;r"""""r"'""rT-Q-t"'t:;.
OD3499~-~"""";:~~~~~---";~~r-~~~~~~
00
MOLE FRACTION CO 2
Figure 2-11.
81
= 0.71889,
w2
= 0.28111.
+
sat
region Q2' excluding a large zone where p
< 6.0 MPa by including
only knots where w1 > 0.45. In keeping with our second observation, the
knots of the interpolation scheme lie along lines of constant w1 and w2
Third, several critical points appear as knots, including the critical
points for the binary mixtures CO 2 + n-butane and CO 2 + n-decane. In
Figure 2-11 the critical knots appear as circles. Finally, the triangulation extends beyond Q2 to accommodate the artificial knots mentioned
above. A service routine for triangular meshes (see, for example, Page,
1982) is handy in assigning values of psat to these knots by trial and
error.
Using this interpolation scheme, computing saturation pressures is a
simple matter.
w2 ' then the search need only be O(/K) in length. The interpolation
itself requires less than 50 floating-point operations using area
coordinates.
Vapor-liquid equilibria.
In
under the p
sat
V V
L L
dome are just the points (w 1 ,w 2 ,P), (w 1 ,w 2 ,P) at
which the appropriate tie line intersects the dome, as drawn in Figure
82
2-7.
YV =
[L
(wI - wI)
L
2
+ (w L
2 - w2 )
V2 +
_ WV)2
(w L
2
2
(wI - wI)
(2.3-3)
Hence the tie lines and the representation of the Maxwell set give all
of the information necessary to determine vapor-liquid equilibria.
Suppose we represent the tie lines for the model system CO 2 +
n-butane + n-decane at 344.26 K by interpolating data generated using
the methods of Section 2.2.
the form
(2.3-4)
where w* is the intercept with the axis WI
= O.
According to a rule of
thumb called Hand's rule (Hand, 1930; Van Quy et al., 1972), w* is a
constant for each pressure.
= ~ = a(p)
h
w* +
~(p)
(2.3-5)
Figure 2-12 plots these lines for various pressures.
and
We can compute a
at other pressures.
The least-squares
83
1.10
i
1.15
,
1.20
-0.2
W
0.
9
fI)
-0.4
~
I
----
7MPo
- 0 - 8MPo
-tr~
.-......
-0.6
Figure 2-12.
9MPa
IOMPa
IIMPo
12MPa
13MPo
84
approximation in this case gives a maximum relative error
~
0.013.
"
II! - ;tllz/lltliz
as functions of pressure.
(ii)
~)(w1
~(p)
by linear interpolation
(w 1 ,w Z)
(iii) Compute the tie-line slopes from equation (Z.3-5).
(iv)
Find the intersections of the tie line with the Maxwell set.
This
implies that the quadratic equation may hold for some value of w* less
than the physically correct value, so we choose the largest root.
Step (iv) calls for the solution of two pairs of equations, each pair
having the form
(Z.3-6a)
(Z.3-6b)
CI
Figure 2-13.
10
II
9
PRESSURE (MPa)
10
-12
-II
-10
-9
-8
-7
-6
-5
86
One simple way to solve these equations numerically is to use the method
of bisection (Dahlquist et al., 1974, Section 6.2), choosing starting
guesses (W~,W~)O that lie above the psat dome for the given pressure.
When the bisection method has reduced the search interval to a single
+
grid element of Q2' switching to the Newton-Raphson method gives the
exact answer in one additional step since psat has uniform slope there.
Because the individual phase compositions (w~,w~) in this scheme
lie on an approximation to the Maxwell set, their values differ slightly
from those predicted by the methods of Section 2.2.
These differences
A comparison of
results of the interpolation scheme to those of standard equation-ofstate methods for 25 arbitrary points in the two-phase region of the
model system shows an average root-mean-square difference in predictions
for species mole fractions of RMS(~w~) ~ 0.003.
1
RMS(~YV)
0.025.
A similar comparison
These errors are
I~wl
= 0.002.
What is
perhaps more relevant, the differences in predictions between the interpolation and the standard method compare favorably with the differences
between predictions of the standard method and values measured in the
laboratory.
tions I~wil = 0.009 for the system CO 2 + n-butane (Olds et al., 1949)
and
I~wil
1963).
87
Efficiency of the scheme.
In addition to
Still, a
88
These comparisons take no account of convergence failures in the
standard method; which do not afflict the interpolation scheme.
Perhaps
CHAPTER THREE
SOLVING TRANSPORT EQUATIONS BY COLLOCATION
The transport equations developed in Chapter One are partial differential equations whose solutions vary in space and time.
The petroleum
In
particular, the chapter presents a new technique, called upstream collocation, that is suitable for use in convection-dominated problems.
Numerical solution schemes for partial differential equations arising
in physics raise the thorny issue of verification.
at least two separate problems here.
itself, and we shall not try to answer formally whether any numerical
approximation to the transport equations of Chapter One faithfully
models experiments.
90
Even within this limited scope difficulties arise.
Neverthe-
less, it is perhaps reasonable to infer that a scheme gives good approximations in a complicated problem if it gives good approximations in
mathematically related but analytically more tractable ones.
We shall
examine three such problems in this chapter, treating the fully compositional case in Chapter Four.
3.1
There
e
(3.1-1)
where S2
= [O,xmax ]
e = [O,tmax ]
91
C3.1-2)
where aI' a 2 E C-cn).
~1
= uO(x),
uCO,t) +
~2
X E
8xuCO,t)
(O,x
)
max
C3.1-3a)
= ~3
C3.1-3b)
tEe
~4
u(xmax ,t) +
~5
axuCxmax ,t) = ~6
C3.1-3c)
2
Taken literally, this problem requires that uC,t) E C cn) for all t E
e and uCx,) E
C~ce)
for all x E n.
In
if (1) uC.,t) E H1 cn) for all tEe, (2) uCx,) e C1 ce) for all x E n,
(3) u satisfies the auxiliary conditions C3.1-3), and (4)
C3.1-4)
92
for any "test function" v e H1 (Q) that vanishes on the boundary aQ
(Oden and Reddy, 1976, Section 9.2).
Solving such a problem numerically requires analogs of the continuous
operators that are discrete in both space and time.
The appropriate
= Xl < ...
<
xM =
Q1.
[x1 ,x1+ 1 ]
x e [X1 _1 ,x1 ]
x e [x1 ,X1+ 1 ]
(3.1-6a)
H1 , l(x) =
(x - X1 _1 )2(x - X1 )/Ax 2 ,
x e [x1 _1 ,x1 ]
(x - X(1)2(x - X1 )/Ax 2 ,
0,
x [x1 - 1 ,x H1 ]
x e [x,xH1 ]
(3.1-6b)
93
(3.1-7)
where the unique coefficients v 1 and v'l are the nodal values of v and
its gradient dxv, respectively, at the node xl.
Moreover, as ax
0,
mapping functions f
Hermite interpolates:
M
1=1
boundary-v~lue
= 0,
k = 1, ... 2M-2
(3.1-9)
X E
(O,x
max
),
(3.1-10)
along with the boundary data (3.1-3a) and C3.1-3b), for a collection of
weight functions 6k (x).
94
(3.1-11)
with the initial condition (3.1-10).
The connection
dence with Galerkin's method and hence with the variational formulation.
Appendix C explains this correspondence.
To discretize equations (3.1-11) in time let us use one of three
finite-difference schemes.
increment.
/I.
95
k=l, ... ,K c
(3.1-14)
The two Euler schemes have temporal truncation error O(At), while the
Crank-Nicolson scheme has truncation error O(At 2 ).
Performance of the scheme.
the fact that finite-element collocation at the Gauss points is algebraically equivalent to an approximate Galerkin method in which the
96
xxx
xxx
xxx x
xxx x
x x xx
x x xx
xxx x
xxxx
2M-2
XX X
X XX X
xxxx
X XX X
XXX
XXX
-.......----2M-2 -----~.-
Figure 3-1.
Structure of the coefficient matrix for finiteelement collocation on Hermite cubics in one space
dimension. The symbol "x" represents a nonzero
entry; M is the number of nodes.
97
integrals in H. . Hk
,J
, ..
uniformly on II
,..
u~
..
e,
= O(6x )
(3.1-15)
provided certain smoothness conditions hold.
This
error is optimal in the sense that its order is the same as that of the
interpolation errror Ilu - 1M ull...
(1969), who solve the elliptic equation for single-phase steady reservoir flow; Culham and Varga (1971), who treat a nonlinear gas-flow
equation; Settari et a1. (1977), who solve a parabolic equation
governing miscible displacement, and Spivak et a1. (1977), who investigate the coupled elliptic and parabolic equations modeling immiscible
two-phase flows in porous media.
Though offering similar advantages in accuracy, orthogonal collocation requires less computational effort than the related Ga1erkin
scheme.
This
98
promise of greater efficiency has led to scattered applications of
orthogonal collocation in engineering (see, for examples, Chawla et al.,
1975; Banjia et al., 1978, and Pinder et al., 1978).
Sincovec (1977)
Buckley-Leverett problem.
99
(3.2-1)
over some space-time domain [O,x
] x [O,t
].
max
max
to a dimensionless form
(3.2-2)
where
100
x= x / xmax
'[ = v
and Pe
(3.2-3a)
t / t max
(3.2-3b)
=v
x
/ Di is the Peclet number. In this form it is apparent
max
that the convection-dispersion equation is a singular perturbation of a
first-order hyperbolic equation corresponding to the limit Pe
-.
For
In such
= 0,
1II.(O,t)
= 1,
l.
x e . (O,xmax )
t ~
(3.2-4a)
(3.2-4b)
~
(3.2-4c)
The Hermite cubic trial function for this problem has the form
(3.2-5)
101
{Wl,W'1}~=1:
M
(3.2-6)
k = 1, ... ,2M-2
~
We can
o.
Approximating
dispersion equation; see for example Pinder and Gray (1977, Section
5.3).
0.2
0.4
0.6
0.8
I.
1.2
Figure 3-2.
1
0.2
SP8 ~ 8.'X
0.6
0.8
1.0
0= 3.450xI0- 4
l:!.x =2.500 x 10- 2
l:!.t =5.000XI0- 2
ORTHOGONAL
COLLOCATION
ANALYTIC SOLUTION
1
0.4
o
N
103
(3.2-7)
to the exact solution, where the choice of to ensures that
In
wi(x,t O) dx
= In
1\
1070, a
One example in
By contrast, insisting
on high-order spatial accuracy at all points of the flow field may force
104
Such anomalies
arise in nonlinear convection-dominated problems in which the dissipative effects, while numerically small, exert physically important influences near sharp fronts, as reviewed in Section 1.5.
For the convection-dispersion equation, for example, a lowestorder error term proportional to v Ax a2w would be appropriate. In
x
finite-difference theory locally low-order schemes are available through
the use of upstream-weighted differences.
105
3.3.
Upstream collocation.
1, ... ,2M-2
(3.3-1)
Here xk* = x k - , ~x, with, > 0 chosen so that ~* lies in the same
interval Q1 of the partition ~M as x k . The difference between equations
(3.3-1) and (3.2-6) is that in the latter the collocation points for the
convective terms lie upstream of the Gauss points.
(3.3-2)
0.2
0.4
0.6
0.8
Figure 3-3.
0.2
.......
l!r----6
o--a
0---0
0.8
0= 3.450xI0- 4
flx =2.500X 10- 2
flf =5.000XI0- 2
v = 3.690xI0- 1
e:=
ANALYTIC SOLUTION
e~=- 2/3,
-113
e~=-0.9, ei=-0.5
e~=-1.0, e2-0.0
1.0 X
0.4
1.2
oQ)
107
so that t:
[x1 ,x 1+1 ]
= t(~*)
<
[-1,1].
= 1/13
tive terms we have suppressed the wiggles generated by orthogonal collocation, the cost being a diffusion-like smearing of the steep front.
This smearing reflects the nature of the error induced by upstream
collocation.
By Taylor's theorem,
d H. 4(~*)
x J,~ K
= dXH.
4(~)
J,~
- ,
+ i , 223
~ d H. (~),
x J, .. K
~x
d H. 4(Xk )
X
J,~
= 0,1
(3.3-3)
Therefore upstream
2
2
- (D i + 'v~x) [W 1 (t) dxHO,t(~) + W'l(t) dxH1,1(~)1}
= O(~x2 ),
= 1, ... ,2M-2
(3.3-4)
~x,
108
~x
quadrature methods and upstream collocation through the algebraic equivalence with approximate Galerkin schemes exhibited in Appendix C.
Less
109
3.4.
simple, analytically solvable paradigm of a nonlinear hyperbolic conservation law arising in porous-media physics.
(3.4-1)
= AV/(AV
110
The
(3.4-2)
As Section 1.5 reviews, the fact that fV(SV) is not convex over its
support leads to the formation of discontinuities in SV(x,t) given steep
initial data.
extension
ax (n ax SV)
with
>
o.
(3.4-3)
Discretization.
Consider the Cauchy problem for equation (3.4-2) on Q
= [0,-)
111
S(O,t) = 1 - SLR'
S(x,O)
(3.4-4a)
= SVR'
x > 0
(3.4-4b)
Here, as in Chapter One, SVR and SLR are the residual vapor and liquid
saturations, respectively.
(3.4-5a)
(3.4-5b)
with SVR
= 0.16,
SLR
= 0.20,
-4
m/s.
(3.4-6)
where ~tSV(x,t)
SV(x,t+~t) - SV(x,t).
Hermite trial function, we have
"
:< ~tS(x,t)
Then, representing
~tSV
by a
M
I
[~t(t) HO,t(x) + ~'t(t) H1 ,t(x)]
t=1
(3.4-7)
This representation furnishes a Hermite approximation to the saturation,
SV(x,t)
f\.
:<
S(x,t)
M
I
[ft(t) HO,t(x) + f't(t) H1 ,t(x)]
t=1
(3.4-8)
112
(3.4-9a)
(3.4-9b)
For the flux term in (3.4-6) let us use an approximation of the form
A
f(x,t+~t)
M
L
~=l
+ [fV' ~tSV1(x,t)
(3.4-10)
where the last term is a linear projection to time t +
~t
represented by
Substi-
113
(3.4-12)
k = 1, ... ,2M-2
where
~*
These equations,
together with the Cauchy data, must give a closed linear system for the
unknowns
{~!'~'l}~=1
One
SV(x,O)
m~
m~
as t increases
m~
m~
114
Numerical solutions.
at t
Ax
plot is the difference between the numerical and exact predictions for
the saturation shock:
These erroneous
predictions reflect the failure of globally high-order spatial approximations to accommodate the shock condition needed to specify the unique,
physically correct weak solution to the problem.
Finite-difference
models in the petroleum industry have traditionally used upstreamweighted differences to rectify this failing (Aziz and Settari, 1979,
Section 5.5.1; Peaceman, 1977, Chapter 6).
Although
~l*
= -2/3,
~2*
= 1/3 in
local element coordinates for different values of the spatial mesh Ax.
00
0.2
0.4
0.6
Figure 3-4.
0.4
0.6
0.8
0.2
t =1500
1lt=5.000
Q =2.134 X 10- 4
1.0
1.0ri----------------------------------------------------------~
01
00
0.2
0.4
0.6
Figure 3-5.
0.4
ei=-3/4,e;=1/4
ei=-2/3,e;=1/3
0.6
0.8
t =1500
At "5.000
=2.134 xIO- 4
Ax =5.000 X 10-1
1.0
0.2
0----0 e~=-l,e;=O
1.0r-1- - - - - - - - -
00
0.2
0.4
0.6
tox =0.050
Ax = 0.100
Figure 3-6.
0.4
0.6
I \\
~\\
\
0.8
t =1500
tot =5.000
e:
e"=-2/5
I
=115
Q =2.134 X 10- 4
1.0
0.2
t:r-----6 Ax =0.025
[r--CJ
0----0
1.0.r------
......
118
This plot suggests that the resolution of the correct saturation shock
improves on refinement of the grid.
,.
" + a (Qf)] H. g, dx
J ratS
x
J,
Q
=J
" H. g, dx
(ats)
J,
+ J Q "f dxH.J, g, dx
Q
=0
(3.4-13)
- ,
~x
induces an error
119
"
axf(~,t)
"
- axf(xk*,t) =
(3.4-14)
since the second derivatives of Hermite cubic interpolates are O(6x 2 )
approximations (Prenter, 1975, Section 3.4). Thus, to within O(6x 2 ),
the collocation scheme (3.4-12) corresponds to a parabolic extension
including dissipative effects.
pation vanishes as 6x
the technique should also prove useful in solving the types of nearhyperbolic equations encountered in more complicated models of porousmedia flows.
120
3.5.
A gas-flow equation.
This
equation is a simple parabolic analog of the balance law for total fluid
mass in a miscible gas flood.
(3.5-1)
where TT
= TV
= (TVp V +
sectional area A is uniform, that only the vapor phase is present, and
that gravitational effects are absent, we find
(3.5-2)
V
0b eys t h e equat10n
.
t h en 1t
0 f state pV = PV/RT, where RT is uniform and
Avt/~
ax (p ax p)
where p
= PV/PVref
(3.5-3)
121
e=
p(O,t) = 5,
p(l,t) = 1,
p(x,O) = 1,
(3.5-4a)
(3.5-4b)
(0,1)
(3.5-4c)
(3.5-5)
n
n+1 m
Here p (x) = p(x,nAt) and p
, stands for the m-th iterate of the
n+1
For the spatial discretization let us use the
unknown pressure p
Hermite representation
(3.5-6)
Substituting (3.5-6) into (3.5-5) and collocating gives
122
I'n+1,m+1( )
p
'1t
)
- "n(
p '1t
-.,t
[a xAn+1,m(
.... )
P
'1t".... ) ax"n+1,m+1(
P
XkO.
(3.5-7)
'1t*
These points appear in the term that looks "convective" by analogy with
the convection-dispersion equation in Section 3.2.
need for upstream weighting in the single equation (3.5-3), for mu1tiphase flows an equation having this form is coupled to one or more
hyperbolic or nearly hyperbolic transport equations.
In these cases
solution to the same equation using an implicit version of the finitedifference scheme presented by Aronofsky and Jenkins. The difference
scheme uses Ax = 0.025 m, At = 10- 4 m3 s 2 /kg, values for which further
mesh refinement yields improvements of less than 0.1 percent in the
numerical solution.
slightly coarser partition gives results that agree quite well with the
finite-difference solution.
123
~'Q.O
I
Q.~
Figure 3-7.
124
The
Upstream
at very early times, of steep gradients that would drive the artificially dissipative error term.
125
Ax"O.l
AT"'10- 4
2-
0.8
~1~O
I
I
...
0.6
"
Q)
t::
0.4
0.2
02
Figure 3-8.
OA
06
a.a
1.0
CHAPTER FOUR
MODELING COMPOSITIONAL FLOWS
There are
In addition,
Indeed, the
After devel-
the sample problems involve fluid systems with three or fewer components.
127
4.1.
For
(4.1-1)
where, as in Section 3.5, TT = TV + TL is the total fluid transmissibility.
= TVWiV +
L
TLw i .
pressure P V' using (4.1-2) to solve for the species mole fractions
N-1
{w i )i=1.
128
This observation
~+l,m
(~+l,m
a (
n+1,m + 6 n+1,m+1)
x Pv
Pv
n+1,m)
xPCVL
(4.1-3)
where
= ~t/A.
~t
after numerical
convergence of the iterations, and (.)n+1,m stands for the most recently
computed iterate of (-) at the unknown time level (n + l)~t. The
r n+1,m+1.
.
quant1ty
u PV
1S t h e correct1on
to t h e pressure at t h e unkn own
n+1,m+1
n+1,m + 6 n+1,m+1
iteration level m + 1, giving PV
Pv
Pv
. The
129
(4.1-4)
In practice, using
~PV ~
10
~p/~PV.
Although the
resulting matrix multiplying the unknowns 6p~+1,m+1 is only an approximation of the true Jacobian matrix, experience shows that the scheme
converges well while avoiding much of the expense required to compute
the true Jacobian.
1terates Pv
n+1,m+1 f rom the pressure equat10n,
.
G1ven
we can up d ate
each mole fraction w1 , ... ,wN_1 using the Euler-like scheme
~
(
)n+1,m+1 _
t pW i
ax [T~+l,m
axPvn+1,m+1
1
= 1, ... ,N-1
(4.1-5)
= w~+1,m+1
130
(4.1-6)
n+1 m+1
.
Equation (4.1-6) calls for the values of p
,
, whl.ch are available
from the latest iteration of the pressure equation as
n+1,m+1
p
(-n+1,m+1
x IT
=t
(4.1-7)
Spatial discretization.
n+1 m+1
Let us approximate the spatial variations in the unknowns 6PV'
,
AtW~+l,m+1, i
= 1, ... ,N-1,
= x1
< .. <
xM =
m~
6 n+1,m+1
PV
M
I
1=1
= [O,xm~ ],
= 6p~n+1,m+1
[~n+1,m+1 H
() + ,n+1,m+1 H ()]
0,1 x
~ 1
1,1 x
(4.1-8)
and
131
A n+1,m+1 = A "n+1,m+1
tCili
tCili
t=l
() + ,n+1,m+1 H ()]
[ n+1,m+1 H
Wi,t
O,t x
W i,t
1,t x
(4.1-9)
I'
=P
pV
M
I
t=l
n+1,m+1
,~
()]
1,t x
(4.1-10)
l.
(4.1-11)
according to the updating rules
nn+1,m+1
t
nn+1,m + n+1,m+1
t
1f t
(4.1-12a)
n,n+1,m+1 = n,n+1,m +
t
~+1,m+1
i,t
,n+1,m+1
1f
(4.1-12b)
=
~+l,m
i,t
+ n+1,m+1
Wi,t
(4.1-12c)
(4.1-12d)
132
... , w
First, it
requires 2M - 2 evaluations of each dependent variable at each iteration, and for densities, especially, each evaluation can involve expensive thermodynamic calculations.
polated values of the variables (wI' .. . ,wN _ 1 ' PV) often behave worse
than the nodal values as approximations to the physical solution.
In
x e [x_l,xl
(~+1 - x)/~x,
x e [i,x+11
0,
[x_1,x+1 1
(4.1-13)
133
(4.1-14)
of the fluid mixture density, its interpolate takes the form
p(x)
= p(x)
I p(x t ) Lt(x)
t=l
(4.1-15)
For
(4.1-16)
A piecewise linear representation for PCVL would give zero for the
second term on the right, an approximation lacking physical justification.
[x t ,X t +1 ]
(4.1-17)
134
(4.1-18a)
(4.1-18b)
(4.1-18c)
This piecewise quadratic representation can have nonzero first and
second derivatives over the interior of each element.
PCVL(x~+t),
arguments
To compute
SV(x~+t)
O(x~+t)
Auxiliary conditions.
"p(x,O)
= PO(x),
(4.1-19a)
"wi(x,O)
IN.
~,
x e (O,x
0 (x),
max
), i = 1, ... ,N-l
(4.1-19b)
where the functions on the right sides of these equations lie in the
Hermite cubic space
H3(~M).
namic constraints then determine the initial phase compositions, densities, and saturations (Lake et al., 1981; Pope et al., 1982).
For boundary data, the model admits either specified injection rate
or specified pressure at x
end, x = x
=0
135
= - q(t)
t
or "p(O,t)
= p q (t),
t ~ 0
(4.1-20a)
(4.1-20b)
"w.(O,t) = w (t),
1.
q
(Price and Donohue, 1967).
0,
= 1, ... ,N-1
(4.1-20c)
ax"w.(x
,t)
1.
max
= 0, t
0, i = 1, ... ,N-1
(4.1-20d)
These last conditions correspond
= x max '
a stipulation that
136
=-
)
An( )
t[a ~+l,m(x ..... ) a An+1,m( ... )
{"n+1,m(
P
xk - P ~ xlT
k
xP
~ ..
= 1, ... ,2M-2
(4.1-21)
+ T~+l,m(xk) a;pn+1,m+1(Xk )
-
ax(T~~)n+1,m(Xk) a';p~~i,m(xk
_ "n ( ) A " n+ 1, m+ 1 ( )} / ,. n+ 1, m+ 1 ( )
wi x k t P
xk
P
xk '
137
~n+l,m
(4.1-23)
where lIn+1 ,m+l signifies the column vector containing the increments
n 1
~.
l'k
.
{ lIn+l,~l ,11 ,n+l,m+l}M
t
t=l' M + ,m.1S t h e J aCOu1an1 e matr1x
t
.
-n+l m
containing the coefficients of the left s1de of (4.1-21), and ~
, is
the vector of residuals at the most recently computed iteTation level,
given by the right side of (4.1-:1).
B w.n+l,m+l = n+l,m
..... 1
!:i
'
n+l m .
' 1S the column vector of right sides from
~i
...... 1
138
NO
NO
lPDATE COEFFICIENTS
AND COMPUTE RESIDUAL
FOR PRESSURE EQUATION
NO
YES
Figure 4-1.
YES
139
(4.1-25a)
(4.1-25b)
The composi-
In
practice, however, large changes in overall fluid compressibility accompanying changes in composition and pressure can make the system unstable
at smaller time steps.
As the
140
pressure decreases below a bubble point, for example, the scheme demands
a reduction in time step.
code regains stability after at most two such halvings in any single
time step.
As the coupled system converges during each time step the residual
from the pressure equation decreases at a roughly linear rate.
This
rate accords with results plotted by Mansoori (1982) for a finitedifference simulator of similar design.
logarithms of successive residual norms for the collocation code, corroborating the approximately linear asymptotic rate.
In theory, an exact
The fact that the transport equations for compositional flows are
essentially statements of mass conservation is a compelling reason to
provide independent checks on material balance.
In a Newton-like scheme
such as that used for the pressure equation (4.1-21), norms of the
-n
residual vector ~ provide useful checks on the pointwise conservation
of total fluid mass. Since the elements of Rn are residuals at the
collcation points,
(2A/.t.x)
Kc
-n
IRk'
k=l
(4.1-26)
In terms of this
141
4
REGRESSION SLOPE =0.98
O~
__
~~
Figure 4-2.
______
____
______
____
____
142
(4.1-27)
"n+1
where F.
is an abbreviation for the flux terms.
1
Integrating this
Q P wi
wi
max
) - F~+1(0)1 = 0
1
(4.1-28)
We can compute the mass integrals in this equation using three-point
Gauss quadratures:
J
Q
pW i
dx =
M-1
= 2.=1
I
M-1
I J
2.=1 Q
3
j=1
pw.
dx
m. p(x. l)~(x. 1)
J
J,
1
J,
(4.1-29)
where the numbers m. are weights and the values x . are the three-point
J
J , It.
143
4.2.
Nolen (1973) and Kazemi et al. (1978), for example, used this
(4.2-1)
where a ranges over all fluid phases.
of the approximate Jacobian for many hydrocarbon fluid systems, but its
implications in systems exhibiting retrograde condensation are unclear.
The finite-difference approximation (4.1-4) includes the full effects of
pressure changes on phase compositions as well as saturations and phase
densities, but it is only fair to note that it also requires an
additional suite of thermodynamic calculations at each iteration.
144
solve the flow equations and the thermodynamic constraints simultaneously and implicitly, a strategy yielding codes that are stable for
large time steps at the expense of considerable computation.
Fussell
and Fussell (1979), for example, present a "minimum-variable NewtonRaphson" (MVNR) technique for choosing the principal iteration variables
in such a code.
beginning of each time step how many fluid phases exist in each zone of
the spatial grid.
Coats
as
th~
145
Pr1ce
.
h
tr1ct10n
"
!Ni=l wi =
an d Donohue and Van Quy et a l. '1mpose teres
1 to compute the pressure gradient at each node, integrating the
Coats (1980)
ra
kmax[R 8 2 + (1 - R )5 ], S ~ SaR
ra
a a
a a
a
(4.2-2)
for a = V or L, where
(4.2-3)
measures the effect of changes in interfacial tension from a reference
state and SaR stands for the residual saturation of phase a, a = V or L.
Equation (4.2-2) uses a normalized saturation,
146
(4.2-4)
with the residual saturation scaled from its value at the reference
state:
S
aR
= Ra
Sref
aR
(4.2-5)
(4.2-6)
choosing the coefficients c j of the polynomial to force it to pass
through a specified value at SL = SLR and to have a specified value with
zero slope at either SL
=1
- SVR or SL
= 1.
In
147
4.3.
We shall examine three representative problems using the compositional model described above.
ance of the simulator and numerically corroborate several design principles based on qualitative features of gas floods.
an immiscible solution-gas drive, a condensing gas drive, and a vaporizing gas drive.
Example 1:
solution-gas drive.
(4.3-1a)
(4.3-1b)
(4.3-1c)
(4.3-ld)
148
where the index 1 stands for "gas" (C0 2 ) and 2 for "oil" (n-decane).
In
.
(4 . 3 - 1)
. . f 1es
.
.
.
equat10n
c , Piref s1gn1
t h e mo 1ar d ens1ty
0 f speC1es
1. at
some reference state, and R is the dimensionless solution gas-oil
s
ratio, defined as the volume of species 1 at reference conditions
dissolved per unit volume of species 2 at reference conditions:
(4.3-2)
Let us use (p
ref
,T
ref
bub
The
As expected, the
moving the originally mobile oil toward the producing end of the reser-
....
~ 02~
OA
(I)
lei
0.6 1
0.8
1.2
I.O~
--
'E
~
-0.9235
Figure 4-3.
PRESSURE (MPa)
-----------
IIIIIX
R.
.....1>0
<D
150
TABLE 4-1
PARAMETERS USED IN MODELING SOLUTION-GAS DRIVE
Permeability
Porosity
0.2
Cross-section
l.Om
Reservoir length (x
Inj ection rate
max
wl(x.O) 0 < x S
rat
10 m
2.0 molls
0.7
wl(O.t)
SVR
SLR
kmax
Xmax
0.4
0.25
0.20
a=V.L
l.0
PCVL (SL=SLR)
50 kPa
PCVL (SL=l-SVR)
5.0 kPa
ax
l.Om
30 s
- 0.8773503
Initial
~l*
~2*
At
- 0.2773503
5.0 MPa
151
TIME (HOURS)
.-.
:.:E
7.0
0'00
0'17'30
1'09'30
v 2'49'30
4'13'30
0
A
0
(a)
6.0
~
:::)
fI)
f3
a::
CL
5J
..
(b)
0
0
0.3
(c)
fia::
~ 0.3
DISTANCE (METERS)
Figure 4-4.
10
152
voir.
= TV
+ TL of the
At early
finally breaks through the outlet at x = x max ' ~in begins to rise and
the overall pressure drop falls. This change in the pressure response
at breakthrough is typical of floods in which the injected fluid is more
mobile than the displaced fluid (Smith, 1966, Chapter 4).
Example 2:
components of the injected vapor condense into the liquid phase through
continual vapor-liquid contacts, leading to the establishment of a zone
153
o 0:00:00
10-4
- -
- - - - - - - - - - -
0:07:30
0:17:30
1:09:30
2: 49: 30 - - - 4:13:30
"6
5XIO-G~
____~~____~______~______~______- J
DISTANCE (m)
Figure 4-5.
10
154
and the displaced fluid exhibit low interfacial tensions in this zone,
and as a result the displacement is very efficient.
The reservoir
has an initial pressure of 10 MPa, and the injection rate is 2.0 mol/so
The injected fluid is 85 mole percent CO 2 with 12.5 mole percent
n-butane and 2.5 mole percent n-decane as enriching components, while
the resident liquid is a saturated mixture of CO 2 , n-butane, and
n-decane at 344.26 K. Figure 4-6 shows the loci of injected and
resident fluids in composition space.
voir rises at early times, giving a drop of about 300 kPa between the
injection end and the outlet at t
1:30 h.
Sv
as the
S~ = O.SO.
155
TABLE 4-2
PARAMETERS USED IN MODELING CONDENSING GAS
DRIVE
Permeability
Porosity
wl(O,t)
0.2
2
l.Om
10 m
2.0 molls
0.85
w2 (O,t)
0.125
)
max
Injection rate
wl(x,o). 0 < x
Xmax
0.73
w2 (x.0). 0 < x
Xmax
0.05
SO
0.25
SLR
0.20
kmax a. = V.L
l.0
VR
o
ra.
0.0
kPa
Initital At
;1*
l.Om
4:00 min
-0.8773503
;2*
0.2773503
10
I:lx
MFa
156
-0~
II
CRITICAL CURVE
INJECTED FLUID, EXAMPlE 2
INITIAL RESERVOIR FWID, EXAMPlE 2
INJECTED FWID, EXAMPLE 3
INITIAL RESERVOIR FWID,EXAMPLE 3
0.2
0.1
Figure 4-6.
157
10.1
DISTANCE (METERS>
Figure 4-7.
10
:l
It:
::l
ti
0.2'
0.4
Figure 4-8.
,
2
,
8
CO
10
I-'~~ __ _
ORIGINAL VALUE
,
,
4
6
DISTANCE (METERS)
TIME ( HOURS)
..... 0'00
-0- 3'30
-0- 4.10
...... 1'30
-0- 2'50
...tq- 4'50
.....
159
Behind the
In particular, as the
transition zone passes any point in the reservoir the vapor saturation
decreases as the rich injection fluid, relatively unaltered by contact
with the original reservoir fluids, occupies the rock's effective pore
volume.
The relatively efficient displacement in the transition zone is a
consequence of the low interfacial tension in that zone.
As Figure 4-9
Figure 4-10
The dip in
Sv
behind the
In actual field
160
t=O:OOh
Kr'
10-5
10t= 1:30h
.....
E
.....
C
Z
~
~
10-2
10-1
..J
10-4
10-5
t-2:5Qh
C[
La:
~
I&J
~
10-2
t=3:30h
10
10-5
10-2
10-1
t"4:IOh
10-5~~__~__~__~__~
10
DtSTANCE (m)
Figure 4-9.
161
- 0 - CRITICAL CURVE
0.4
INJECTED FLUID
LIQUIDS
VAPORS
MIXTURES
0.3
0.2
0.1
Figure 4-10.
INCREASING
TIME
162
Therefore successful
The
163
TABLE 4-3
Permeability
-12 2
1.0 x 10
m (= 1 darcy)
Porosity
0.2
Cross-section
1.0 m
Reservoir length (x
12 m
2.0 molls
)
max
1Il1(0.t)
0.88
~(O.t)
0.02
IIll (x.O).
O<x.sx
0.74
~(x.O)
0.14
max
< x < x
- max
SVR
0.25
SLR
0.20
k:X.
a"
V.L
1.0
5.0
5.0
bx
1.0 m
Initial
tl*
llt
kPa
2:00 min
-0.8773503
t2*
Initial
ItPa
0.2773503
reservoir pressure
10
MPa
1M
S~
= 0.80,
resulting in
In contrast to the
condensing gas flood modeled in Example 2, the vaporizing gas flood does
not leave a dip in vapor saturation in its wake.
attributed to the leanness of the injection fluid.
Unlike the
=~
choice
~*
4-14.
10.2
....
10.3
1O.4f
Figure 4-11.
9
2
6
8
DISTANCE (METERS)
0'00
0.20
0'50
1'30
2'00
--- 2'40
-9-A-
-0-
-6-
-0-
TIME (HOURS)
C11
0:
Q2
to!
-0-
-6-
-0-
DISTANCE (METERS),
10
--- 2:40
~1:30
-A- 2:00
Figure 4-12.
0:00
0:20
0:50
TIME (HOURS)
12
167
to- 2
t-0:2O h
10-4
10-5
--e
......
c:
ii)
Z
L&J
I..J
~
to:O:50h
10-4
10-5
IO- a
(3
a:
10-4
10-5
L&J
I-
t=I:30h
IO-a
t o:2:00h
10-4
10- 5
0~--~2~~4--~6--~--~~12
DSTANCE (m)
~igure
4-13.
;
~::s
6
8
~ ~
10
12
DISTANCE (METERS)
:-:---:---:
2
4
Figure 4-14.
0.2 1
0.4
1.0
TIME (HOURS)
-0- 0:00
~1:30
.....- 2:00
~ 0:20
-0- 0:50
--- 2:40
00
en
169
As in the
Buckley-Leverett problem examined in Chapter Three, orthogonal collocation and upstream collocation deliver numerical solutions that are
qualitatively different in structure.
CHAPTER FIVE
CONCLUSIONS
phase behavior.
The
second issue confronting modelers is that of solving the partial differential equations governing multicomponent fluid flows.
To date this
The preceding
chapters introduce new approaches for both the thermodynamic calculations and the collocation solution of species transport equations.
The thermodynamic interpolation scheme described in Chapter Two
provides an attractive alternative to the usual equation-of-state calculations of fluid phase behavior.
171
used "off the shelf", as the modeler must construct a separate data set
for each new thermodynamic system.
points upstream of the usual Gauss points, one can introduce an artifi-
172
To
be applicable to natural petroleum reservoirs, a full-scale compositional model should include a transport equation for brine.
One common
Multicomponent
173
dimensional reservoir models of such flows may require spatial discretizations too coarse to capture the development of miscible transition
zones between injection wells and production wells.
APPENDIX A
SUMMARY OF MATHEMATICAL NOTATION
1.
a
Sets:
{a,b,c}
{a
AI
Pea) }
AC B
In other words,
a E A implies a E B.
A u B
An B
A \ B
2.
A
f: A -> B
A and b
B.
175
dom(f)
ran(f)
= A.
3.
Real numbers.
RN
sup A
inf A
[a,b]
(a,b)
(a,b], [a,b)
176
4.
Differentiation.
dtf
atf
Dtf
5.
Miscellaneous.
MT
trace(T)
Q ~ R, defined by
as equivalent i f II f -
&II L2 = O.
= sUPQ{f(x)}.
APPENDIX B
THERMODYNAMICS OF RESERVOIR FLUIDS
FROM A GRADIENT-DYNAMIC VIEWPOINT
fo11ws that proposed by Gilmore (1981), and the equilibrium results are
just the Gibbs conditions for static systems.
For the isothermal fluid system in the reservoir let us identify two
distinct sets of thermodynamic variables.
set containing ordered N-tup1es (c 1 ,.,cN) = (w 1 ' ... ,wN_1 ' V) where wi
is the mole fraction of species i and V is the molar fluid volume, that
is, the reciprocal of molar fluid density p.
= [energy/mole],
such that
178
d s
t-
= - Vs
A (_s. c_)
(B-I)
An equation of
= O.
C where dts i
= 1 .. ,N:
(B-2)
A point (!.S)
MA is a stable equilibrium if
(~.~) E
MA a thermostatic equilibrium if
Let
has a global
minimum there.
These notions of equilibrium correspond to those proposed by Gibbs.
The thermodynamic system governed by (B-1) exhibits qualitative changes
in the behavior of stable equilibria at points of C where local minima
in the potential
set
A) = O.
The
(B-3)
179
In classical thermostatics,
occur.
The set
= {(~,.s) e MA
in
A and
(~'
(~,S)
is a global minimum
A (~,S) =
on crossing
=0
= ~(S)
at
all points
~
Ic(~(S)') =
The function
A:
Ic(MA) ~ R defined by
180
(B-5)
= Vc"A(c)
(B-6a)
ayl
(B-6b)
11l.'
= .aW. A,
l.
(B-6c)
It is worth noting that the lli differ from the usual chemical potentials
P., which are derivatives of A with respect to mole numbers.
l.
11.
l.
At stable
data needed to answer this question for actual systems, let us briefly
181
discuss some
~onsiderations
= 0,
i = l, ... ,N
(B-7)
where
(B-8)
= at
= I i =1 P wi
~V,
~i'
we find
(B-9)
= vi
182
= - V veCw.u./V),
1~1
i = 1, ... ,N-1
(B-10)
Therefore the transport equations are equivalent to evolution equations
for the control variables (w i ' ... ,w N_1 ' V) = c of the thermodynamic
system. Conceptually,
(B-11)
where the ellipsis allows for dependence on other quantities, including
spatial gradients of control variables.
For systems in which DtS ; 0 there is no reason to believe that
exactly.
(~,S)
dt~
and its
max.{(l/c~)
Dtc.}, where c~ is some reference value characteristic of
111
1
the system.
law, while for multispecies systems the behavior can be more complex
(see Bird et al., 1960, Chapter 21).
= max.{t.}.
max
1
1
Then the departure of the system from thermostatic equilibrium will be
small provided T t
(Gilmore, 1981, Chapter 8). In this case a
c
max
material point evolves essentially as if it were confined to the
equilibrium set MA, bifurcating when it intersects the Maxwell set
In all that follows let us assume that this condition holds.
~.
183
In compositional flows,
however, substantial regions of the reservoir may contain more than one
fluid phase, each of which corresponds to a distinct global equiminimum
of
A.
For such regions the coexisting fluid phases must satisfy not
only the equation of state but also the criterion that they lie on the
Maxwell
set~.
We
and 1878), Munster (1970, Chapter 7), and Gilmore (1981, Chapter 5)
guide the discussions that follow.
If, at a particular time and place in the reservoir, a vapor and a
liquid stand in local thermostatic equilibrium, then there must exist
V V
L L
V
L
two global equiminima in A, say (~ 'S ), (~ 'S ) E ~, with ~ ; ~ .
Consider the response of these minima to changes 6c i in the control
parameters.
1, ... ,N and a = V or L,
A (~a + 6-:a , c a + 6~) =
.,
...
184
(B-l3)
where a = V or L.
Using equation (B-13) it is possible to derive conditions defining
the Maxwell set,~.
e
A,
so
In symbols,
(B-14)
Gilmore (1981, Chapter S) calls this a generalized Clausius-Clapeyron
equation.
perturbed points (~v + 6~V,
C
MA allows us to rewrite
(B-lS)
where a = V or L.
(B-l6a)
In particular,
185
Gibbs (1876 and 1878, pp. 129-133) deduces two algebraic criteria for
critical points of mUlticomponent systems.
point
(~(~),S)
of thermostatic equilibria for which two phases coexist, that is, at the
point where equiminima merge.
(a c. aC. A)
1
= 0
(B-17a)
a2w A
1
aw a.}
1
=U =0
det
ava w11
a~
(B-17b)
186
to the equilibrium set MA, the condition det(Hess s A) < 0 for instability reduces through the chain rule to the condition U < O. Thus the
second criterion for critical points implies that the determinant U does
not become negative under isothermal perturbations in control parameters, so long as the perturbations leave the system in MA.
perturbation 6S,
Under such a
(B-18)
So, to have U(s + 6=) - U(S)
=0
(B-19)
Now for equations (B-17) and (B-19) to have a solution, they must be
consistent.
remain invariant when any of the matrix rows is replaced by the vector
(aU/ac 1 , ... , aU/acN).
7) that
a
a
wI
For
~his
avu
a
w2 wI
a~
W2
=0
det
ava
WI
a~
(B-20)
187
= U = 0
det
(B-2l)
wI
wN- l
,.,
a a
aW aw G
2
w2 wN- l
det
"G
= 0
aw
"
a G
N_l wI
"G
N_l
a2w
(B-22)
APPENDIX C
THE CORRESPONDENCE BETWEEN ORTHOGONAL
COLLOCATION AND GALERKIN'S METHOD
Let us
aX2 w +
v aXw = 0
(C-l)
on a spat.tal domain
= [O,x
max
].
~(x,t)
W (t) H
m
(x)
(C-2)
Here, K
189
m = 1, ... ,2M-2
(C-3)
Equation (C-2) is just a compact way of writing the Hermite cubic trial
function without using double subscripts to distinguish the basis
functions.
j=O,l,
=l, ... ,M
(C-4)
D.
a2~
+ v a~
X
X
(C-S)
= 0,
1, ... ,2M-2
(C-6)
1, ... ,2M-2
(C-7)
190
O(~x
)
(C-S)
These roots x t + t
~x
~x'3
Galerkin scheme
I
I [dtW (t) H (L) - D. W (t) d 2H (L)
k=l m=l
m
m K
1 m
x m K
(C-9)
e, E, and W as
follows:
Bn, k
= Hn (xk )
(C-IOa)
(C-IOb)
191
(C-I0c)
where the indices k, m, and n range over 1, ... ,K.
B W = - B E W
(C-ll)
W = - E W
(C-12)
Douglas and Dupont (1973) prove that the matrix B is invertible, so
(C-ll) and (C-12) are equivalent.
BIBLIOGRAPHY
In:
an interpretive
Washington, D.C.:
American Chemical
Society.
Allen, M. B. (to appear), "How upstream collocation works."
Int. J.
(February),
135-142.
Amaefule, J. 0., and Handy, L. L. (1982), "The effect of interfacial
tensions on relative oil/water permeabilities of consolidated porous
media."
(June),371-381.
New York:
Academic Press.
193
Asselineau, L., Bogdanic, G., and Vidal, J. (1979), "A versatile algorithm for calculating vapor-liquid equilibria."
3, 273-290.
Atkin, R. J., and Craine, R. E. (1976), "Continuum theories of mixtures:
basic theory and historical development."
29:
2, 209-244.
Applied Science.
(February), 75-80.
Banjia, V. K., Bennett, C., Reynolds, A., Raghavan, R., and Thomas, G.
(1978), "Alternating direction collocation methods for simulating
reservoir performance."
(October), 391-401.
Bird, R. B., Stewart, W. E., and Lightfoot, E. N. (1960), Transport
Phenomena.
11,
194
10:
4, 582-606.
In:
l1ethods of Computa-
18, 787-800.
20:
6, 697-735.
Eng. J.
(December), 374-388.
Soc. Pet.
195
Pet. Eng. J.
Soc.
(February), 84-92.
Chavent, G., and Salzano, G. (1982), "A finite-element method for 1-D
waterflooding problem with gravity."
45,
307-344.
Chawla, T. C., Leaf, G., Chen, W. L., and Grolmes, M. A. (1975), "The
application of the collocation method using Hermite cubic splines to
nonlinear transient one-dimensional heat conduction problems."
Trans.
Fluid Nechanics.
"Upwinding of high-order
Neth. Engrg.
Int. J. Hum.
12, 1764-1771.
Eng. J.
Soc. Pet.
(October), 363-376.
Tulsa:
196
Culham, W. E., and Varga, R. S. (1971), "Numerical methods for timedependent, nonlinear boundary value problems."
(December), 374-388.
Dahlquist, G., and Bjork, A. (1974), Numerical Hethods.
Englewood
(October), 333-343.
American
Hath. Compo
27:
121, 17-28.
by T. J. R. Hughes.
New York:
Engineers, 201-211.
Eringen, A. C., and Ingram, J. D. (1965), "A continuum theory of chemically reacting media -- 1."
3,197-212.
197
In:
New
(August),
211-220.
Fussell, D. D., and Yanosik, J. L. (1978), "An iterative sequence for
phase-equilibria calculations incorporating the Redlich-Kwong equation
of state."
(June), 173-182.
Page
Thermodynamics.
Wiley Interscience.
3,
547-555.
Greenkorn, R. A., and Kessler, D. P. (1969), "Dispersion in heterogeneous nonuniform anisotropic porous media."
61:
9,
33-49.
Gresho, P. M., and Lee, R. L. (1979), "Don't suppress the wiggles -they're telling you something."
New York:
American
198
Engrg.
6:
Computers in Chem.
3, 245-255.
In:
Flooding, ed. by D.
o.
Press, 119-159.
Hand, D. B. (1930), "Dineric distribution."
34,
1961-2000.
Hassanizadeh, M., and Gray, W. G. (1980), "General conservation
equations for multi-phase systems:
media flow."
3.
AIChE Jour.
26:
2, 137-144.
11, 1831-1844.
(February), 51-62.
SPE 9730,
199
Jour. Pet.
12, 1359-1365.
New York:
AIChE Jour.
7:
1, 64-72.
Appl. Hath.
Hodelling 1, 187-195.
Huyakorn, P., and Pinder, G. F. (to appear), Computational Hethods in
Subsurface Flow.
New York:
Academic Press.
Ingram, J. D., and Eringen, A. C. (1967), "A continuum theory of chemically reacting media -- II.
mixtures."
5, 289-322.
200
Israel, R. B. (1979), Convexity in the Theory of Lattice Gases, with
Introduction by A. S. Wightman.
Princeton
University Press.
Jensen, O. K., and Finlayson, B. A. (1980), "Oscillation limits for
weighted residual methods applied to convective diffusion equations."
Int. J. Num. Neth. Engrg.
15, 1681-1689.
New York:
Springer-Verlag.
Kao, J. (1978), "An algorithm for calculating vapour-liquid equilibrium."
(October),
355-368.
Lake, L. W., Pope, G. A., Carey, G. F., and Sepehrnoori, K. (1981),
"Isothermal, multiphase, multicomponent fluid-flow in premeable media.
Part I:
Preprint, Depart-
J. Nath. Phys.
17, 123-199.
(June),
201
(truncation error)."
(September), 315-320.
Comm.
10, 537-566.
Am. Nath.
SPE
(October), 1171-1176.
Mansoori, J. (1982), "Discussion of compositional modeling with an
equation of state."
(April), 202-203.
SPE 9232,
202
Mercer, J. W., and Faust, C. R. (1977), "The application of finiteelement techniques to immiscible flow in porous media."
Elements in Water Resources:
In:
Finite
(June), 147-155.
(August), 242-252.
Michelsen, M. L. (1980), "Calculation of phase envelopes and critical
points for multicomponent mixtures."
II.
Pore-level modeling."
In:
Washington, D. C.:
Tulsa:
Interstate Oil
203
MUnster, A. (1970), Classical Thermodynamics, transl. by E. S. Halberstadt.
Nghiem, L. X., and Aziz, K. (1979), "A robust iterative method for flash
calculations using the Redlich-Kwong or the Peng-Robinson equation of
state."
(December), 687-698.
Int. J. Nulti-
Numerical Simulation of Reservoir Performance of the Society of Petroleum Engineers of AlME, Houston, January 11-12, 1973.
Nunge, R. J., and Gill, W. N. (1969), "Mechanisms affecting dispersion
and miscible displacement."
61:
9, 33-49.
New York:
21:
1, 1-16.
204
Olds, R. R., Reamer, R. R., Sage, B. R., and Lacey, W. N. (1949), "Phase
equilibria in hydrocarbon systems.
system."
41:
3, 475-482.
In:
American Hathematical
Providence:
American Mathemat-
In:
Providence:
205
Peng, D.-Y., and Robinson, D. B. (1976), "A new two-constant equation of
state."
15:
1, 53-64.
AIChE Jour.
26:
2, 137-144.
(April), 75-80.
o.
(March), 70-84.
In Proceedings of the
20,
127-130.
Pope, G. A., Carey, G. F., Lake, L. W., and Sepehrnoori, K. (1982),
"Isothermal, multicomponent multiphase fluid-flow in permeable media.
Part II:
Preprint, Department of
206
Prenter, P. M. (1975), Splines and Variational Hethods.
Int J.
18, 787-800.
(June),
205-215.
Raimondi, P., and Torcaso, M. A. (1965), "Mass transfer between phases
in a porous medium: a study in equilibrium."
(March), 51-59.
Reamer, H. H., and Sage, B. H. (1963), "Phase equilibria in hydrocarbon
systems.
An equation of state.
solutions." Chem. Rev. 44, 233-244.
solutions.
V.
Fugacities of gaseous
AIChE Jour.
23:
5, 726-732.
In:
Proceedings of the
207
Roebuck, I. F., Henderson, G. E., Douglas, J., and Ford, W. T. (1969),
"The compositional reservoir simulator:
Soc. Pet. Eng. J.
(March), 115-130.
Numer. l1ath.
19, 1-28.
Toronto:
(June), 228-246.
Jour.
39, 46-71.
Springer-Verlag, 9.61-9.70.
208
Sincovec, R. F. (1977), "Generalized collocation methods for timedependent, nonlinear boundary-value problems."
(October), 345-352.
Smith, B. J. (1967), "ZERPOL, a zero finding algorithm for polynomials
using Laguerre's method."
16, 303-313.
Smith, C. R. (1966), Nechanics of Secondary Oil Recovery.
Huntington,
(February), 27-41.
past,
(August),
1102-1112.
Strang, G., and Fix, G. J. (1973), An Analysis of the Finite Element
Nethod.
Prentice Hall.
Preprint, Department
209
Todd, M. R., and Longstaff, W. J. (1972), "The development, testing, and
application of a numerical simulator for predicting miscible flood
performance."
(July),874-882.
Van Genuchten, M. T., and Gray, W. G. (1978), "Analysis of some dispersion corrected numerical schemes for solution of the transport
equation."
12, 387-404.
Van Quy, N., Simandoux, P. and Corteville, J. (1972). "A numerical study
of diphasic multicomponent flow."
(April),
171-184.
Varotsis, N., Todd, A. C., and Stewart, G. (1981), "An iterative method
for phase-equilibria calculations with particular applications to
multicomponent miscible systems."
In:
Amsterdam:
Elsevier, 313-328.
SPE
SPE 10513,
210
Commun. ACH 2:
12, 12-13.
(October-
December), 69-75.
Young, L. C., and Stephenson, R. E. (1982), "A generalized compositional
approach for reservoir simulation."