Professional Documents
Culture Documents
CONTENTS
1
INTRODUCTION
CLOSING REMARKS
1. INTRODUCTION
In the course so far, we have used many of the concepts of day to day numerical
simulation as it is applied in reservoir engineering. However, we have not yet
studied the mathematical equations which underpin the whole subject of reservoir
simulation. This section will introduce you to these equations in a step-by step manner.
You should be able to follow all the details of the derivations of these equations since
only elementary undergraduate mathematics is involved.
The general approach to the flow equations is basically the same for both single and
two-phase flow. We first derive a mass balance between the flows and the accumulation
(local mass build up or decline) in a local control volume. A control volume can be
thought of as a typical isolated grid block in the system, as will be evident below.
We note that the mass balance equation that we will set up must be correct. That is,
it is simply a mathematical way of expressing something that is a fact. Mass balance
simply states that over a given time period (say, t), then the sum of all the mass that
flows into (+) the system and out of it (-) is the change of mass in that block. Once
we have set up the mass balance between the flows and the accumulations, we then
need some expressions to describe these mass flows. We do not usually think of fluid
flow laws as being mass flow laws. Within a porous medium, the principal flow law
is Darcys law (either for one or two phases) which is a volumetric flow law. That
is, in Darcys law, the volumetric flow rate, usually denoted Q, is proportional to the
Q~
dP
pressure gradient;
dx for a single one dimensional system oriented along the
x- direction. (Note the minus sign here since fluids flow down the pressure gradient,
from high P to low P). So, to derive the flow equations we simply use mass balance
+ Darcys law. This is shown schematically for single phase fluid flow in Figure 1.
i,j+l
m = (.Q) m .t
m =1
Qj+l/2
Qi-l/2
i,j
Qi+l/2
i-1,j
i+1,j
Qj-l/2
i,j-l
Qi 1/ 2
kA
( Pi , j Pi 1, j ) in x direction
=
.
i1/ 2
x
Therefore:
t (xyz) = (.Q)m .t
m=1
Figure 1
The basic principles of
Mass Balance + Darcys
Law as the basis for all
equations for flow through
porous media; the Qs are
volumetric fluid flows.
In the two-phase equations, we also have a pressure equation but, in addition, there
is also a saturation equation. Other features are also different from single phase flow,
such as the capillary pressure, Pc (Sw), leading to two different phase pressures,
Po and Pw (where Pc (Sw) = Po-Pw). The two-phase Darcy law also introduces the
concept of relative permeability into the flow equations. These concepts have been
fully reviewed in Section 2 and they are also explained in the Glossary.
Before deriving the single phase pressure equation, consider first the physics of
what is happening in a compressible single-phase system. Figure 2 shows a long thin
reservoir containing compressible fluid and rock, which we can consider as being
essentially one-dimensional (1D). The fluid and the rock have compressibilities, cf
and cr (where cf >> cr; see Glossary). Imagine the reservoir is horizontal and has
two wells in it at either end as shown in Figure 2a. We take the location of Well 1
as being at x = 0, and Well 2 is located at x = d. If the wells are both shut-in and the
reservoir is left to achieve steady-state, then clearly the pressure in the system will
reach a constant value, Po (ignoring the gravitational potential since the reservoir is
also thin in the z-direction). The bottom hole pressure also equalises in both wells
and will also be Po. This is shown as the dashed line (at t = 0) in Figure 2b where the
pressure profile through the reservoir, P(x)=Po, is also shown.
Injector Well
(a)
Producer Well
Long thin (1D) reservoir
Figure 2
(a) Schematic of a long
thin reservoir containing
compressible fluid and rock,
which we can consider as
being essentially
one-dimensional (1D); (b)
pressure profile along the
system at various times
from t = 0, t1 , t2 etc.
- this shows the pressure
disturbance travelling
(diffusing) along the
system.
t=t1
(b)
Pin
t=t2
t=t3
P
Po
Pout = Po
0
t=0
Now consider what happens to the pressure profile if we cause the pressure
to rise suddenly at Well 1, say by injecting fluid (identical to that already
in the reservoir).
in identifying the boundary conditions with different well constraints. For example,
for the main case considered above, Well 1 is a rate-constrained injector and Well 2
is a pressureconstrained producer.
EXERCISE 1.
Can you explain the sequence of events that would occur in the simple 1D system
of Figure 2 if both wells were pressure constrained to Pin (Well 1) and Po (Well 2)
with Pin > Po?
We now return to the task of deriving the single-phase flow equations for a compressible
system. Throughout this derivation we refer to the control volume shown as block i
in Figure 3 where certain terminology is also explained. In Figure 3, we have divided
up the x-axis into increments of (constant) size, x, and constant cross-sectional area,
A. Flow is considered to be in the positive x-direction (i increasing). The fluid has
density, , which may depend on pressure i.e. (P). The porosity is denoted as and
it too may depend on pressure, (P); in block i, the porosity is, i. The volumetric
flows across the boundaries of block i are given by: qi-1/2 and qi+1/2 as shown in Figure
3; the dimensions of these quantities are volume/time and typical units might be
STB/day, m3/sec etc.
Let us now apply the mass conservation conditions as identical in the introductory
section of this chapter. Mass conservation states that:
The mass accumulation
(increase or decrease)
in block i over a
time step, t
(1)
We can easily write mathematical expressions for each of the terms in equation
1 as follows:
Volumetric rate
flowing IN to block i = of in flow to
block i
over time t
density of
x
x t = (q.)i- 1 2 .t (2a)
the fluid
And, likewise:
(2b)
Boundary
i-1/2
Boundary
i+1/2
i-1
Blo
ck
i-1
/2
i+1
i+1
Figure 3
Control volume grid block
for application of material
balance for the single phase
/2
x x
x
Notation:
1 The boundaries of block i are denoted
(i-1/2) between blocks (i-1)and i
(i+1/2) between blocks i and i+1
2 q(i-1/2) denotes the volumetric flow rates across the (i-1/2) boundary
q(i+1/2) denotes the volumetric flow rates across the (i+1/2) boundary
Note units bbl/day, m3/s etc
3 The porosity of block i = i, the permeability is ki etc..
Therefore, the change in mass of fluid in block i over time t is given by:
Change in mass
(q)i - 12 .t - (q)i + 12 .t
[(q)
= [(q)
over t in block i =
]
]t
i 12
(q)i+ 1 .t
i + 12
(q)i - 1
(3)
Thus, equation 3 expresses the change in mass due to flow that occurs in block i
using quantities volumetric flow rates and densities defined on the boundaries.
Note that we have changed the signs consistently in the final step of equation 3 for
convenience below. Which quantity do you think we mean when we refer to i-1/2 :
the density on the boundary, i-1/2? This seems a bit strange. However, you can
think of i-1/2 being some sort of average density between i-1 and i, the densities
in blocks (i-1) and i, respectively. It turns out we dont really need to worry about
this issue as we will find out soon.
We now turn to the alternative way of expressing the mass of fluid in a grid block
i at the different times, t and t+t. This is shown in Figure 4 where we denote the
8
The mass at
(t + t)
=
=
The mass
- at t
[()t+T - ()t].xA
(4)
where we have used the fact that x and A are constants in equation 4.
Ro
Figure 4
Expressions for the mass of
single-phase fluid in a grid
block
ck
P
Spore
ac
e
x
Area = A
(x.A..)
.x.A
[( )
t + t
(5)
[( )
t + t
- ( )t
A i+ 1 2 A i 1 2
=
x
(6)
where we have taken the (constant) area, A, to the inner parenthesis on the
RHS of equation 6.
As it stands, equation 6 is exactly true since it is simply a statement of mass balance.
There are no assumptions in this equation. Indeed, we can simplify equation 6 a little
more by noting that q/A is the Darcy velocity, u. This becomes:
[()
t + t
- ()t
] = [(u.)
i+ 1 2
- ( u.)i- 1
(7)
which is still an exact statement of fact. We can take the limits of the difference
equation 7 at t 0 and x 0 to obtain the equivalent differential equation.
Clearly:
Lim.
t 0
[( )
t + t
- ( )t
( )
t
(8)
and
=
x
x 0
x
(9)
and therefore:
()
( u.)
=
t
x
(10)
u=-
k P
.
x
(11)
(as given in the Glossary etc.). We may substitute this form of the Darcy law directly
into equation 10 (taking care with the signs) to obtain:
()
k P
=
t
x x
(12)
This equation is now inexact, in that its validity depends on whether Darcys law
is or is not a good assumption. However, it was necessary to use a flow law such as
Darcys law since pressure (i.e. P(x,t)) does not appear in equation 10. Thus, Darcys
law is our link between fluid velocities and pressure (gradients). Equation 12 still
does not have pressure (P(x,t)) explicitly shown on the LHS; it simply has a term
()/t. However, we know that and depend locally only on pressure i.e. they
10
can be written (P) and (P). We therefore manipulate the LHS of equation 12 as
follows using the chain rule of differentiation:
() () P
=
.
t
P t
(13)
( ) P k P
.
. =
P t x x
(14)
where we can consider the term ()/P as a generalised fluid and rock compressibility,
term, C(P). Equation 14 would then become:
P k P
.
C( P ). =
t x x
(15)
u=
z
k P
g
x
x
(16)
(instead of equation 11). If the 1D system is at constant incline, z(x), then (z/x) =
11
u=
k P
g cos
(17)
This could simply lead to the generalised single phase equation as follows:
( ) k
g cos
. =
x x
P t
(18)
In this section, we will take equation 15 as our starting point and introduce some
simplifying assumptions. Our hope is to get to a simpler equation which will have
analytical solutions for given boundary conditions. Indeed, for this to be the case,
we would normally aim to derive a simplified linear PDE.
In fact, to make clear what is happening to the LHS of the equation we start from
equation 14, which is repeated below:
( ) P k P
.
. =
P t x x
(14)
We first list the assumptions which we will make in the above equation and then we
will go on to examining their consequences.
Simplifying Assumptions
1
2
is
3
P
0
x
1
cons tan t .
P
Assumption 1 is probably quite reasonable since viscosity does not vary greatly for
most oils (or water) over small pressure ranges. Assumption 2 is quite drastic since
it says that permeability (k) is constant through the reservoir i.e. that the system
is homogeneous in k (and ). For a real system, this is indeed a very simplifying
assumption. However, we will indicate below how we can turn this assumption round,
in a sense. The second part of Assumption 2 is that the rock is incompressible and
this is quite reasonable (usually, cf >> crock). Assumption 3 is rather odd: it is clearly
designed to get rid of difficult terms with terms like (P/x)2 in them. Assumption
4 fluid compressibility, cf, does not vary with pressure, is again quite reasonable
12
P k P
. =
P t x x
(19)
. P = . P
k P t x x
(20)
Now expand the RHS of equation 20 as follows using the product rule:
2 P
P P
= . + 2
x
x x x x
(21)
and use the fact that is a function of pressure only, i.e. (P), to further expand the
(/P) in equation 21 as follows:
2 P
P P P
=
.
.
+
2
x
x x P x x
(22)
2 P
P P
=
.
+
2
x
x x P x
(23)
Now use Assumption 3 to eliminate the first term on the RHS of equation 23 above
2
P
(i.e. 0 ) to obtain:
x
2
P = P
2
k P t
x
(24)
Note that we can divide both sides of 24 by and use the fact that the fluid has
constant compressibility, cf (assumption 4), to obtain:
2
c f P = P
k t x 2
(25)
(26)
13
where the constant in this form is normally referred to as the hydraulic diffusivity,
Dh=k/(cf).
Equation 26 is now a linear PDE and has the form of a linear diffusion equation as
follows:
2 P
P
= Dh 2
t
x
(27)
P D h P
=
r
t
r r r
(28)
which is a well known equation of well testing (Stanislav and Kabir, 1990). Likewise,
this equation has a number of well known analytical solutions for various boundary
conditions.
(iv) The reason these equations have many ready-made analytical solutions
available is because these diffusion equations are well-known and are identical
in form to the equations of heat conduction which have been studied for many
years (Carslaw and Jaeger, 1959).
For the 2D case, the control volume is now grid block (i,j), as shown in Figure 5.
The flows are shown at the boundaries as before and are labelled as (i- 1/2) for flow
from (i-1) i in the x-direction, (j + 1/2) for the flow from block (i,j) (i,j + 1)
etc. as listed on Figure 5. The flow areas in the x- and y-directions are given by, Ax
= (y.h) and Ay = (x.h), respectively, as shown in Figure 5. In addition, we show
a source/sink term due to a (single phase) well. This well again injects or produces
exactly the same fluid as is in the reservoir already. The well flow rate into block (i,j)
is described by q ij which is the volumetric flow rate per unit volume of block (i,j);
possible units for Mij are m3/ s or bbl/day etc. For this definition the volume rate of
flow into (sign +) or out of (sign -) the well in block (i,j) is as follows:
14
density of injected or
Mass rate of flow into or out of block (i, j) = q ij
volume block (i, j)
produced fluid, ij
= q ij ij xy.h
(29)
We now apply the material balance equation as follows:
NOTATION
i, j control volume
i - 1/2 = (i-1) i
i + 1/2 = i (i+1)
j - 1/2 = (j-1) j
j + 1/2 = j(j+1)
Well
Mij
y (j)
x (i)
i-1
i,j+
1
,j
i,j
i,j-1
i+1
Thickness = h
,j
Note for the control volume, block (i,j), the flow areas in the x and y directions,
Ax and Ay are given by:
Figure 5
The 2D x/y Grid Showing
the Control Volume, Block
(i,j)
Ay
a,
x.h
=
Are
a,
Are
x=
y.
Change in mass in block (i,j) over time t due to flows across boundaries and the
well
] [
= (q )i 1 (q )i + 1 .t (q ) j 1 (q ) j + 1 t + q ij ij xy.h.t
2
(the x - flows)
(the y - flows)
15
[( )
t + t
( )t xy.h
] [
= (q )i + 1 (q )i 1 .t (q ) j + 1 (q ) j 1 .t + q ij ij xy.ht
2
(32)
where we note that the signs have been adjusted slightly on the RHS. Dividing through
by x.y.h.t and cancelling gives the following:
[()
t + t
()t
] = [(q)
(q)i 1
i + 12
x.A x
] [(q)
j+ 12
(q) j 1
y.A y
] + (q )
ij
(33)
where we have used the fact that xyh = xAx and xyh = y.Ay. The flow
areas, Ax and Ay, may then be divided into the qs to give Darcy velocity terms (e.g.
q
) as follows:
Ax i+ 1
(u)i + 12 =
[()
] = [(u.)
2
t + t
()t
( u.)i 1
i + 12
] [(u.)
j+ 12
( u.) j 1
y
+ (q )ij
(34)
( )
u y (q )
( u x)
()
+
=
t
x
y
(35)
( )
u y
()
=
t
x
u y .
y
( u z .)
+ (q )
z
(36)
As before, the pressure P(x,y;t) (in 2D) or P(x,y,z;t) (in 3D) does not yet appear. We
must manipulate the LHS of equation 35 (or 36) to yield, exactly as before:
() () P
=
.
t
P t
(37)
And on the RHS of equation 35 (or 36) we must use Darcys law.
Darcys law in each of the 3 directions, x, y, and z, is given as follows, where we
choose z as the vertical direction (of gravity):
16
ux =
z
k x P
g
x
x
(38a)
uy =
k y P
z
g
y
y
(38b)
uz =
k z P
(38c)
where we note that the permeability may be anisotropic i.e. kx ky kz. Using the
above expressions (equations 38a-c) for the Darcy velocity along with equation 37
for the LHS in the 3D equations 36 gives:
() P k x P
z
k y P
z
. =
g
g +
x
P t x x
y y
y
+
k z P
g + (q )
z y
(39)
In order to write equation 39 in a more compact form we must use the notation of vector
calculus. Before doing this, review the following mathematical concepts:
Mathematical Concepts Review: Review the meaning of:
(i)
.V =
V
Vx
V
+ y + x
x
y
z
Vx
where vector V = Vy
Vz
(ii) The gradient operator, , on a scalar, such as pressure, P
P P P
P = i + j + k
x y z
17
.V =
V
Vx
V
+ y + x
x
y
z
Vx
where vector V = Vy
Vz
P P P
P = i + j + k
x y z
where i, j and k are the unit vectors in the x-, y- and z-directions.
(iii) see also operations on a tensor (Chapter 2, Section 3.2).
Using this notation, equation 35 (the exact conservation equation) becomes:
()
= .(u) + (q )
t
(40)
() P
= .(u) + (q )
P t
(41)
After the Darcy law has been used as in equation 38 the vector calculus
version of this equation becomes:
() P
. = . k.(P gz) + (q )
P t
(42)
We will not expand on equation 42 here but it can be seen that it does give a compact
way of writing the 3D pressure equation. This approach can also be used to write the
3D multi-phase flow equations, as we will develop below.
Exercise 2
The following equation is the full 2D equation for a compressible fluid (in the absence
of gravity and with no well terms):
() P k x P k y P
. +
=
P t x x y y
Simplify this equation as far as possible by making all the Assumptions (1) - (4) in
Section 2.3 but keep kx ky (although both are constant).
18
We now consider the equations which govern the flow of two phases through a porous
medium e.g. oil-water, gas-oil, air-water. In certain respects, the approach is very
similar to that used for single-phase flow in Section 2. We apply the mass conservation
equation to each of the phases separately. However, there is a little more two-phase
physics that we must be aware of before proceeding. For this reason, we first review
some of the key concepts from two-phase flow (see Chapter 2 or the Glossary).
Key Concepts: Ensure you are familiar with the following main ideas on two-phase
flow (where we assume oil/water in the examples below):
Phase saturations, So and Sw; where So + Sw = 1
Formation volume factors, Bo and Bw (units RB/STB)
The two-phase Darcy Law (with gravity) and relative permeability, krw(Sw)
and kro(So)
uo = -
k k ro
o
Po
z
x o g x
uw = -
k k rw
w
Pw
z
x w g x
Phase pressures, Po and Pw, and the concept of capillary pressure, Pc (Sw) = PoPw,
as a constraint of the phase pressure difference at various saturations, Sw.
Exercise 3
Calculate the mass of oil and water phases for the control volume (grid block)
shown using the usual notation.
Ans:
Mass oil =
Volume of oil x density of oil
= (xyz So) x o
Ro
ck
Oil
,S
o
Wa
ter
,S
Likewise:
Mass water = xyz (Sww)
As for the single phase case, we will use the material balance in a control volume
as shown in Figures 6 and 7.
Definition: A very useful quantity to define is the oil flux, Jo, and the water flux, Jw.
Institute of Petroleum Engineering, Heriot-Watt University
19
The oil (water) flux is the mass rate of flow of oil (water) per unit cross sectional area.
Dimensions are M.L-2.T-1 and possible units would be kg.m-2.s-1 or lbs.ft-2.day-1.
The oil flux, Jo (and Jw) can easily be related to other more familiar quantities as
follows: consider the flow area across the block area shown below.
Oil Flux:
a,
Are
qo
.q
z
y.
.u o
Jo= oA o = osc
Bo
il
ic Oe
r
t
e at
lum R
Vo Flow
Figure 6
Definition of oil (water)
flux, Jo .
The volumetric flow rate of oil, qo, can be used to obtain an expression for the flux,
Jo. Clearly:
y
z
i-1
Are
=A a
=
z.
i
i+1
Oil
Wa
ter
Bo
un
(i-1 dary
/2)
Oil
Wa
te
x r
un
(i+ dary
1/2
)
Bo
Flu
id
()
Pe
r
Po mea
ros bili
ity ty =
= k
Figure 7
Control Volume (block i) for
Two-Phase Flow
J o = ( u o o )
J w = ( u w w )
(45)
u
J o = o osc
Bo
(46)
u
J w = w wsc
Bw
Now use the flux expression to perform the mass balance on control block i in
Figure 7.
The flow terms are as follows:
=
.Area.t = ( J o .A.t )i- 1 2
oil
i- 1 2
(47)
Mass of oil flowing out of block i over time step t = ( J o .A.t )i+ 1
(48)
Change in mass of oil in block over t due to flow = ( J o )i+ 1 - ( J o )i- 1 A.t (49)
2
[(S )
o o t + t
[(S )
o o t + t
(Soo )t
] = - [(J )
o i+1
2
( J o )i- 1
(52)
21
(Soo )
J
= - o
x
t
Using the fact that o =
(53)
osc
in the LHS of the above equation gives:
Bo
(Soosc ) J o
= -
t Bo x
(54)
u oosc
gives:
Bo
Substituting for J o =
Soosc
u oosc
t Bo
x Bo
(55)
However, osc is a constant reference density (at standard conditions) which cancels
to yield:
So
uo
=
t Bo
x Bo
(56)
Likewise,
Sw
uw
=
t Bw
x Bw
(57)
The above equations are the (exact) differential forms of the oil and water mass
conservation equations. They involve no assumptions; they simply arise as a result
of the definition of the various terms. However, the equations are of little practical
use in this form since they do not mention pressure, and it is this that we measure
most directly in a reservoir not local (spatially distributed) velocities, uo and uw.
Clearly, it is now time to introduce Darcys Law.
The expressions for the two phase Darcy Law are reviewed at the start of this subsection. Substituting for uo and uw in equations 56 and 57 above gives:
So k k ro
=
t Bo x o Bo
z
Po
x o g x
Sw k k rw
=
t Bw x w Bw
22
z
Pw
x w g x
(58)
(59)
These equations now express mass conservation of oil and water, on the assumption
that the 2-phase Darcy Law applies. These are our working equations for the two
phase flow (in their 1D form).
At a first glance, it appears that equations 58 and 59 present us with two equations
in four unknowns. So, Sw, Po and Pw. But, as we have noted above in the review
of key concepts, there are two constraints on these quantities; viz So + Sw = 1 and
Pc(Sw) = Po Pw. Thus, only two of these quantities e.g. Po, Sw or So, Pw etc. are truly
independent.
The above equations still require some manipulation since we would like to have a
pressure equation which was free of terms of the type (So/t) and (Sw/t). This is
derived in the next section.
So
1 So So
= So +
t Bo
t Bo Bo t Bo t
= So
=
1 Po So So Po
.
.
+
+
.
.
Po Bo t Bo t Bo Po t
(60)
So
1 So Po
+ So
Bo t
Po Bo Bo Po t
where the underlined term is the one we wish to eliminate. Likewise, for the LHS
of the water equation (equation 59):
Sw
Sw
1 Sw Po
+ Sw
=
+
t Bw Bw t
Po Bw Bw Po t
(61)
Note that the first (underlined) terms are to be eliminated and the following terms
are essentially compressibility terms x (P/t).
To eliminate the time derivative terms of the saturations above, then note that
Sw So
+
= 0
t t
by definition (since Sw + So = 1
(62)
Sw So
+
= 0)
t
t
23
Therefore, multiply equation 60 (oil) by Bo/ on both sides and multiply 61 (water)
by Bw/ on both sides to obtain:
and
Bo So So
1 So Po
+ BoSo .
=
+
t Bo
t
Po Bo Po t
(63)
Bw Sw Sw
1 Sw Po
+ BwSw .
=
+
t Bw
t
Po Bw Po t
(64)
Now ADDING the above equations 63 and 64, we see that the S/t terms vanish
(equation 62) as follows:
Bo So Bw Sw
1
1 So Sw Po
= BoSo .
+ BwSw .
+
+
t Bo t Bw
Po Bo
Po Bw Po Po t
1
1 1 Po
= BoSo .
+ BwSw .
+
Po Bo
Po Bw Po t
(65)
1
1 1
(So ;Po ) = BoSo .
+ BwSw .
+
P
B
P
Bw Po
o
o
o
(66)
Therefore:
P B k k ro Po
z B k k rw Pw
z
(So ;Po ) o = o
o g + w
w g
t x o Bo x
x x w Bw x
x
(67)
Now use capillary pressure, Pc(Sw)=Po-Pw, to eliminate the water pressure
as follows:
Pc (Sw ) Po Pw
P P P
=
i.e. w = o c
x x
x x x
x
Substituting this expression from (Pw/x) into equation 67, we obtain
24
(68)
P B k k ro Po
z
(So ;Po ) o = o
o g
t x o Bo x
x
+
Bw k k rw Po Pc
z
w g
x
x w Bw x x
(69)
This is the 1D pressure equation for a two-phase compressible (fluids and rock)
system. Each of the terms is physically interpretable and we expand this out to see
each of the contributions more clearly.
k k P
k k rw Po
P
(So ;Po ) o = Bo . ro o + Bw .
t
x o Bo x
x w Bw x
OIL FLOW
Bo .
WATER FLOW
k k roo g z
k k g z
Bw . rw w
x o Bo x
x w Bw x (70)
GRAVITY TERMS
Bw .
k k rw Pc
x w Bw x
The two-phase pressure equation for the fully compressible system is clearly
very complex. Again, it is a non-linear partial differential equation (PDE)
which cannot be solved analytically for the general case;
(ii) Despite its complexity, all of the terms in equation 70 have a clear physical
interpretation in terms of viscous, gravity and capillary forces;
(iii) Following from (i) above, our two alternatives are either to use numerical
methods to solve equation 70 or to simplify it greatly such that an analytical
solution may be possible. We will consider the simplified pressure equation
in the next section;
(iv) Recall that in two-phase flow, the dependent variables (the unknown we
want to find) were chosen to be:
Po(x,t) and So(x,t)
Therefore, once we solve the pressure equation 70, we must then calculate the
saturation. In fact, ideally we would like to solve the pressure equation at the same
time as solving for the saturation. Where is our saturation equation in any case? In
fact, we have already met this as equation 59 above.
25
3.4 Schematic Strategy for Solving the Two-Phase Pressure and Saturation
Equations
In fact, we can write the two equations for pressure and saturation in the
following schematic way:
P
k k ro Po
(70)
SATURATION
So k k ro
=
t Bo x o Bo
z
Po
o
x
x
(58)
Clearly, these two equations are coupled. That is, the coefficients in the pressure
equation e.g. ko, etc. depend on So which is the unknown we are trying to find.
Likewise, in the saturation equation, flow terms appear with (Po/x) in them we
are also trying to find Po. Hence, if we solve these equations one at a time, we
face the problem that there are unknowns which we dont (yet) know. We will go
into more detail in Chapter 6 where we discuss the numerical solution of the flow
equations. However, we will just think in general terms about how we may go about
solving the pair of pressure/saturation equations above.
Think of the unknowns in our grid block i, Poi and Soi. We imagine the time
levels n meaning time = t or now where we know Poi and Soi. We denote
this as follows:
n
n
P
Poi
oi
Time
Time level
level nn (time
(time =
= t)
t) (KNOWN)
(KNOWN)
n
S
Soi
oi
We are trying to find Poi and Soi at the next time, t = t +t or n + 1 denoted
n+1
n+1
P
Poi
oi
Time
Time level
level n+1
n+1 (time
(time =
= t+t)
t+t) (UNKNOWN)
(UNKNOWN)
n+1
n+1
S
Soi
oi
26
GRID BLOCK i
At time = t
(time step n)
Figure 8
Schematic showing update
of the pressure and
saturation in a grid block (i)
over a time step, t.
Time step, t
Rock
n
S oi
n
(S wi
n
P oi
n
(Pwi
GRID BLOCK i
At time = t+t
(time step n+1)
Rock
Solve equations 70
and 59 to find
n+1
S oi
n+1
(S wi )
n+1
P oi
n+1
(Pwi )
Now the pressure equation has lots of terms that depend on So, so strictly we need to
n +1
know Soi to solve the pressure. BUT suppose we try the following strategy:
(a) Use Snoi i.e. the known saturation value to calculate all the coefficients in the
pressure equation
(b) Solve the pressure equation to get a first estimate of Pn+1oi
(c) Now solve the saturation equation using the latest Pn+1oi for the pressure
dependent flow terms, to get Sn+1oi
(d) We now have Pn+1oi and Sn+1oi as we required but we may be able to
do a bit better than this by going back to step a and using our (from this
step) to get a better solution to the pressure equation, and hence an
improved Pn+1oi
(e) Clearly, we could iterate through steps d a until our process converges
i.e. the newly calculated Sn+1oi and Pn+1oi dont change any more (or change
only by a tiny amount). We would then accept these as our accurate new
time level values and then go on to the next time level.
The description above outlines in words an algorithm or numerical strategy
for solving the pressure and saturation equations that arise in two-phase flow.
We used no mathematics since it is just the basic idea that we want to get
across just at this point.
In the case of single phase flow, we found it quite useful to simplify the (analytically
insoluble) compressible flow equation. This allowed us to see its structure
quite clearly and it turned out that the simplified single phase equation was
a diffusion equation. This diffusive process underlay how pressure waves
spread across an oil reservoir.
For the two-phase flow case, we will make some slightly different assumptions
when we simplify the equations as follows.
Assumptions:
27
1 The viscosity of the oil and water are constant o and w (with x and P);
2 Both the rock and the fluids are incompressible ( constant; Bo = Bw = 1);
3 We neglect both capillary pressure (Pc = 0; Po = Pw = P) and gravity (g = 0).
It is easiest to see the consequences of the above assumptions by going back to
the conservation equations 58 and 59. In the absence of gravity and capillarity
(Assumption 3), these become as follows:
So k k ro P
=
t Bo x o Bo x
Sw k k rw P
=
t Bw x w Bw x
(71)
(72)
S k k ro P
o =
t x o x
(73)
S k k rw P
w =
t x w x
(74)
Clearly, it is now very simple to eliminate the (S/t) terms since we simply need to
add the above two equations to obtain the simplified pressure equation:
k k ro P k k rw P
+
=0
x o x x w x
(75)
P
o + w ) = 0
(
x
x
(76)
o =
k k ro
k k rw
and w =
o
w
(77)
These phase mobilities are strong functions of the saturation So (So = 1 Sw) through
the relative permeabilities i.e. o(So); w(So). Indeed, we can define the total mobility,
T(S0), as:
T ( So ) = w + o
thus simplifying the pressure equation to:
28
(78)
P
T ( So ) = 0
x
x
(79)
So
P
=
S
(
)
o
o
t
x
x
(80)
P
T ( So ) = 0
x
x
(81)
P
S
o =
o ( So )
t x
x
(82)
It is probably clearer for these equations how we would apply our schematic
strategy (Section 3.4) to these two equations. We illustrate this to a flowchart
in Figure 9.
n
n+1
n+1
NO
Figure 9
Schematic Strategy for the
Iterative Solution of the
(simplified) Pressure and
Saturation Equations for
Two-Phase Flow
n+1
n+1
Are these P i ; S oi
satisfactory?
(i.e. converged)
YES
29
4. CLOSING REMARKS
The purpose of this module is to familiarise the student with the fundamental
flow equations of single- and two-phase flow. We have shown that these can be
derived in a unified way by applying:
MATERIAL BALANCE + DARCYS LAW
FLOW EQUATIONS
In the two-phase case, the mass conservation equation was applied to each of the two
phases oil and water, in the example here. There is also a little more two-phase
physics to be dealt with due to capillary pressure and relative permeability.
For both single- and two-phase flow, the resulting full equations for the compressible
system were non-linear PDEs (indeed, 2 non-linear, completed PDEs for two-phase
flow). These could not be solved analytically but, in simplified form, they illustrate
some interesting features of the processes. The numerical solution of these equations
is discussed in some detail in Chapter 6.
Solution to Exercise 2:
( )
=
P
( )
P
Expand the LHS
(
constant)
( )
P
P
=
P
P
) k P k y P
( )
( ) = (
= x
PP k P P xP k x P y y
P
y
x
k x P k y x Px + y y
and
form
so we justneed to expand
The x- and y-RHS
in
up one
xare
identical
x terms
P
k
P
ky x PyP y P P
kother
beP very
x similar).
2 P
x will
of these (the
=
+
=
2
2
x x x yxP
xx y x2xyP yPxyyx 2xP x
2 P x Px = x 2 2+Px x = x 2
P
=
+ = 2
2x 2 P 2P 2 P
x x x2 2P x2PP
x
P = P =+PPP2P+
P
2=2 =P 2= 2
=
+
=
xxxx yx2 x x
x x x x xxxPxxyx 2yP
Likewise
2
P y y = y 2
P
=
y y y2 2P 2PP 2 P
k y 2 P
P
P
k x 2 P
P
=
+
2 =
2
y y y y 2y y yyP P ky t2 P k yx22 P y 2
x
2
+
2
k 2 P k =
P
P
y 2
= x 2 P+ ty 2 x
P t
2 2
2
x2
y2
kk.x P
2PP= + k xk ykPx kP+y k1yP
P k PP
22 k = 2 2
= x 2 += y where
= cf
P t P.xt P ktykxx k y 1xzy yP2
= cf
k k
.
1where
k =
P
where k = x y k = c f z
P
z
k
kx ky 1k 2 P k y 2 P
k xk
. sides by . kwhere
1k. =where
y c 1
xky
multiply both
Pthat
== c x = c+f to obtain:
where k =
ckf f=note
= and
kc PzP k k zPt 2P kfkPx22P k y 2
k z
k
2 f =
x
2
+ y
c f P = k x Pk + ky t P k x 2 k y 2
k t k x2 2 k y22 2 k 2 2 k
30
z P y 2 P
P
c f k yxk=P
+k kx yy/ P
kcxf P
c f P
k
x
= = + +
+
=
k t kk xt2 k k t yx22 k k x2 y2 k y 2
k 2 P
k 2 P
P
P = k xx 2 P2 + k yy 2 P2
P t = x 2 + y 2
P t
x
y
kxky
.
. where k = k x k y
k where k = z
z
k
1
1 = c f
P = c f
P
c f P k x 22 P k y 22 P
k P + k y P
c f P =
t = kx x 22 + k y 22
k
k t k x k y
((
))
= k introduced
+ k / z k = (kx+ky)/z to retain the general form of the simplified
We haveksimply
k = k xx + k yy / z
pressure equation. The hydraulic diffusivity in this case is therefore given by:
k
Dh = k
D h = ( c f )
( cf )
The coefficients on the RHS of the simplified pressure equation here are kx/ k and
k x /reflect
k
ky/ k which
the anisotropy of the problem. Obviously, if kx = ky then these
kx / k
terms would be unity.
ky / k
ky / k
31