Solution Final Exam in Course Tpg4160 Reservoir Simulation
Solution Final Exam in Course Tpg4160 Reservoir Simulation
Solution Final Exam in Course Tpg4160 Reservoir Simulation
Jon Kleppe 73 59 49 25
918 97300 (mobil)
SOLUTION
Time: 0900-1300
Solution
∂ ∂
a) (1) -continuity equation − (ρu) = (φρ)
∂x ∂t
k ∂P
(1) -Darcy´s equation u = −
µ ∂x
1 ∂V 1 ∂ρ dρ
(1) -fluid compressibility c f = −( )( )T = ( )( )T ⇒ ρc f = ( )
V ∂P ρ ∂P dP
1 ∂φ
(1) -rock compressibility c r = ( )( )T ⇒ dφ = φc r
φ ∂P dP
-assume constant permeability and viscosity
∂ ⎛ k ∂P ⎞ ∂
(1) -substitution: ⎜ρ ⎟ = (φρ)
∂x ⎝ µ ∂ x ⎠ ∂t
∂ dφ ∂P dρ ∂P ∂P ∂P
(1) -right side: (φρ ) = ρ +φ = ( ρφc r + φρc f ) = ρφc
∂t dP ∂t dP ∂t ∂t ∂t
∂ ⎛ k ∂P ⎞ k ∂ ⎛ ∂P ⎞
(1) -left side: ⎜ρ ⎟= ⎜ρ ⎟
∂x ⎝ µ ∂ x ⎠ µ ∂x ⎝ ∂x ⎠
(1) -then:
∂ ⎛ ∂P ⎞ ∂ ⎛ ∂P ⎞ ⎛ ∂P ⎞ dρ ∂P ⎛ ∂ 2 P ⎞ ⎛ ∂P ⎞ 2 dρ ⎛ ∂ 2 P ⎞ ⎛ ∂P ⎞ 2
⎜ρ ⎟ = ρ ⎜ ⎟ + ⎜ ⎟ = ρ⎜ 2 ⎟ + ⎜ ⎟ = ρ⎜ 2 ⎟ + ⎜ ⎟ ρc f
∂x ⎝ ∂ x ⎠ ∂x ⎝ ∂x ⎠ ⎝ ∂x ⎠ dP ∂x ⎝ ∂x ⎠ ⎝ ∂x ⎠ dP ⎝ ∂ x ⎠ ⎝ ∂x ⎠
⎛ ∂ 2 P ⎞ ⎛ ∂P ⎞ 2
(1) -assume that ⎜ 2 ⎟ >> ⎜ ⎟ c f
⎝ ∂x ⎠ ⎝ ∂x ⎠
∂ ⎛ ∂P ⎞ ⎛ ∂ 2P ⎞
-so that ⎜ ρ ⎟ ≈ ρ⎜ 2 ⎟
∂x ⎝ ∂ x ⎠ ⎝ ∂x ⎠
∂ 2 P φµc ∂P
(1) -thus, the final equation becomes: =
∂x 2 k ∂t
Final Exam page 3 of 12
TPG4160 Reservoir Simulation, May 18, 2009
Δx
Since the equation contains only one unknown, it may be solved explicitly:
Δt k
Pit +Δt = Pit + ( 2 )( t
)(Pi+1 − 2Pit + Pi−1
t
), i = 1,...,N
Δx φµc
f) (5) Implicit
Using the approximations above at time level t+Δt we get the explicit difference
equation:
t +Δt
Pi+1 − 2Pit +Δt + Pi−1t +Δt
φµc Pit +Δt − Pit
= ( ) , i = 1,...,N
Δx 2 k Δt
which is a set of N equations with N unknowns, which may be solved simultaneously,
using a number of solution methods, for instance Gaussian elimination:
t +Δt
ai Pi−1 + bi Pit +Δt + c i Pi+1
t +Δt
= di , i = 1,...N
g) (2) The explicit formulation is seldom used because it becomes unstable for large
time steps. It has the following stability requirement:
1 φµc
Δt ≤ ( )Δx 2 ,
2 k
Sketch the coefficient matrix for the following systems, indicating non-zero diagonals with
approximate lines. Label the diagonals.
1 i-1 i i+1 N
ei, j Pi, j −1 + ai, j Pi−1, j + bi, j Pi, j + c i, j Pi+1, j + f i, j Pi, j +1 = di, j i = 1,N x , j = 1,N y
1 2 3 4 5 6
4 4
j 7 8 9 10 11 12
4
13 14 15 16 17 18
4
19 20 21 22 23 24
4
25 26 27 28 29 30
4
31 32 33 34 35 36
4
37 38 39 40 41 42
4
43 44 45 46 47 48
4
Final Exam page 5 of 12
TPG4160 Reservoir Simulation, May 18, 2009
gi, j,k Pi, j,k −1 + ei, j,k Pi, j −1,k + ai, j,k Pi−1, j,k + bi, j,k Pi, j,k
+ c i, j,k Pi+1, j,k + f i, j,k Pi, j +1,k + hi, j,k Pi, j,k +1 = di, j,k i = 1,N x , j = 1,N y ,k = 1,N z
applicable to the following grid system (grid blocks numbered in the sequence of x,y,z)
i,j,k-1
i,j,k+1
Nz Ny
j
1 i Nx 1
∂ ⎛ kk ro ∂Po ⎞ ∂ ⎛ φSo ⎞
⎜ ⎟ − qo′ = ⎜ ⎟
∂x ⎝ µo Bo ∂x ⎠ ∂t ⎝ Bo ⎠
and
∂ ⎛ kk rg ∂Pg kk ∂P ⎞ ∂ ⎛ φS φS ⎞
⎜⎜ + Rso ro o ⎟⎟ − q′g − Rsoq′o = ⎜⎜ g + Rso o ⎟⎟ ,
∂x ⎝ µg Bg ∂x µo Bo ∂x ⎠ ∂t ⎝ Bg Bo ⎠
where
Pcog = Pg − Po
So + Sg = 1.
a) Write the two flow equations on discretized forms in terms of transmissibilities, storage
coefficients and pressure differences (no derivations).
b) List the assumptions for IMPES solution, and outline briefly how we solve for pressures
and saturations
c) Outline briefly how we can solve for pressures and saturations by Newtonian iteration (ie.
fully implicit solution).
------
a) (5)
Final Exam page 6 of 12
TPG4160 Reservoir Simulation, May 18, 2009
Txg i+1 2 [( Poi+1 − Poi ) + ( Pcog i+1 − Pcog i )] + Txg i−1 2 [( Poi−1 − Poi ) + ( Pcog i−1 − Pcog i )] − q′gi
+( RsoTxo) i+1 2 ( Poi+1 − Poi ) + ( RsoTxo) i−1 2 ( Poi−1 − Poi ) − ( Rsoq′o ) i
= Cpog i ( Poi − Poit ) + Csgg i ( Sg i − Sg it ), i = 1,N
b) (5) IMPES solution
Assumptions:
Txo t ,Txg t
Cpoo t ,Cpog t
.
Csgo t ,Csgg t
Pcog t ,Rso t
t
Txg i+1/ [
2 ( Poi+1 − Poi ) + ( Pcog i+1 − Pcog i )
t
]
+Txg i−1/
t
[
2 ( Poi−1 − Poi ) + ( Pcog i−1 − Pcog i ) − qgi
′
t
]
+( RsoTxo) i+1/ 2 ( Poi+1 − Poi ) + ( RsoTxo) i−1/ 2 ( Poi−1 − Poi ) − Rso t q′o
t t
( ) i
=C t
pog i (P oi −P t
oi ) + C (S t
sgg i gi − S ),t
gi i = 1,N
{T t
xoi+1/ 2 [
+ α i Txg i+1/
t
2 + ( RsoTxo ) i+1/ 2
t
]}(P oi+1 − Poi ) +
{T t
xoi−1/ 2 + α [T i
t
xg i−1/ 2 + ( RsoTxo ) i−1/ 2
t
]}(P oi−1 − Poi )
+α iTxg i+1/ 2 ( Pcog i+1 − Pcog i ) + α iTxg i−1/ 2 ( Pcog i−1 − Pcog i )
t t t t
(
−q′oi − α i q′g + Rso q′oi =
t
) i
(C t
pooi + α iC t
pog i )(P oi − Poit ), i = 1,N
where
α i = −Csgoit /Csgg it .
By first-order Taylor series expansions, we obtain the following expressions, where iteration
level is given by k:
k +1
apog i Poi−1 + bpog i Poik +1 + cpog i Poi+1
k +1 k +1
+ asgg i Sg i−1 + bsgg i Sg ik +1 + csgg i Sg i+1
k +1
= dg i
i = 1, N
k +1 ˆ k +1 k +1
or, on a compact form: aˆ i X i−1 + bi X i + cˆ i X i+1 = di , i = 1,N
Final Exam page 8 of 12
TPG4160 Reservoir Simulation, May 18, 2009
where
The equations are solved for pressures and saturations iteratively, updating coefficients after
each iteration.
1 5 9 13 17 21
2 6 10 14 18 22
2
j 3 7 11 15 19 23
3
4 8 12 16 20 24
4
1 2 3 4 5 6
i
The (unknown) bottom hole pressure Pbh is specified at a reference depth dref . Assume that
hydrostatic pressure equilibrium exists inside the well tubing.
a) Write the expression for oil rate from each perforated block (in terms of productivity
indices, mobility terms, pressure differences and hydrostatic pressure differences)
or
BP4 + CP8 + DP11 + EP14 + FP17 + GP21 + HPbh = d25
c) The standard pressure equation for this grid system, without the well terms, is:
ei, j Pi, j−1 + ai, j Pi−1, j + bi, j Pi, j + c i, j Pi+1, j + f i, j Pi, j +1 = di, j i = 1,...,N1, j = 1,...,N 2
Final Exam page 9 of 12
TPG4160 Reservoir Simulation, May 18, 2009
Sketch the coefficient matrix for this system, including the well. Indicate how the
coefficient matrix is altered by the well (approximately, with x´s and lines labelled with the
appropriate coefficient name).
b f c
e b f c
e b f c
e b c x
a b f c
a e b f c
a e b f c
a e b c x
a b f c
a e b f c
a e b c x
a b f c
a e b f c
a e b f c x
a e b f c
a e b c
a b f c x
a e b f c
a e b f c
a e b c
a b f x
a e b f
a e b f
a e b
B C D E F G H
The discretized form of the left hand side of the oil equation may be written in terms of
transmissibilities and pressure differences, as
T xoi +1 / 2 ( Poi +1 − Poi ) + Txoi−1 / 2 ( Poi−1 − Poi )
Using the following transmissibility as example,
2ki −1 / 2 λ oi−1 / 2
T xoi −1 / 2 =
Δ xi (Δ xi + Δ xi −1)
a) What type of averaging method is normally applied to absolute permeability between grid
blocks? Why? Write the expression for average permeability between grid blocks (i-1) and
(i).
b) Write an expression for the selection of the conventional upstream mobility term for use in
the transmissibility term of the oil equation above for flow between the grid blocks (i-1) and
(i).
c) Make a sketch of a typical Buckley-Leverett saturation profile resulting from the
displacement of oil by water (ie. analytical solution). Then, show how the corresponding
profile, if calculated in a numerical simulation model, typically is influenced by the choice
of mobilities between the grid blocks (sketch curves for saturations computed with upstream
or average mobility terms, respectively).
⎧ λo if Poi−1 ≥ Poi
b) λoi−1/ 2 = ⎨ i−1
⎩ λoi if Poi−1 < Poi
Final Exam page 10 of 12
TPG4160 Reservoir Simulation, May 18, 2009
c)
Qw
Sw
1-Swir
exact
average
upstream
S wir
For a one-dimensional, horizontal, 3-phase oil, water, gas system, the general flow equations
are (including well terms):
∂ ⎛ kk ro ∂Po ⎞ ∂ ⎛ φSo ⎞
⎜ ⎟ − q′o = ⎜ ⎟,
∂x ⎝ µo Bo ∂x ⎠ ∂t ⎝ Bo ⎠
∂ ⎛ kk rg ∂Pg kk ∂P ⎞ ∂ ⎛ φS φS ⎞
⎜⎜ + Rso ro o ⎟⎟ − q′g − Rsoq′o = ⎜⎜ g + Rso o ⎟⎟
∂x ⎝ µg Bg ∂x µo Bo ∂x ⎠ ∂t ⎝ Bg Bo ⎠
∂ ⎛ kk rw ∂Pw ⎞ ∂ ⎛ φSw ⎞
⎜ ⎟ − q′w = ⎜ ⎟
∂x ⎝ µw Bw ∂x ⎠ ∂t ⎝ Bw ⎠
a) Explain briefly the physical meaning of each term in all three equations.
b) What are the criteria for saturated flow? What are the functional dependencies of
Rso and Bo ?
c) What are the primary unknowns when solving the saturated equations?
d) What are the criteria for undersaturated flow? What are the functional dependencies of
Rso and Bo ?
e) What are the primary unknowns when solving the undersaturated equations?
f) Rewrite the equations above for undersaturated flow conditions.
Solution
∂ ⎛ kk ro ∂Po ⎞ ∂ ⎛ φS o ⎞
a) ⎜ ⎟− q′o = ⎜ ⎟
∂x ⎝ µo Bo ∂x ⎠ ∂t ⎝ Bo ⎠
transport of oil well potential accumulation of oil
∂ ⎛ kk rg ∂Pg kk ∂P ⎞ ∂ ⎛ φSg φSo ⎞
⎜⎜ + Rso ro o ⎟⎟ − q′g − Rsoq′o = ⎜ + Rso ⎟
∂x ⎝ µg Bg ∂x µo Bo ∂x ⎠ ∂t ⎜⎝ Bg Bo ⎟⎠
transport of transport of gas well oil well pot. accumulation. accumulation
free gas sol. gas potential (solution gas) of free gas of solution gas
∂ ⎛ kk rw ∂Pw ⎞ ∂ ⎛ φSw ⎞
⎜ ⎟− q′w = ⎜ ⎟
∂x ⎝ µw Bw ∂x ⎠ ∂t ⎝ Bw ⎠
transport of water well potential accumulation of water
Final Exam page 11 of 12
TPG4160 Reservoir Simulation, May 18, 2009
∂ ⎛ kk ro ∂Po ⎞ ∂ ⎛ φSo ⎞
f) ⎜ ⎟ − q′o = ⎜ ⎟
∂x ⎝ µo Bo ∂x ⎠ ∂t ⎝ Bo ⎠
∂⎛ kkro ∂Po ⎞ ∂ ⎛ φSo ⎞
⎜ Rso ⎟ − q′g − Rsoq′o = ⎜ Rso ⎟,
∂x ⎝ µo Bo ∂x ⎠ ∂t ⎝ Bo ⎠
∂ ⎛ kk rw ∂Pw ⎞ ∂ ⎛ φSw ⎞
⎜ ⎟ − q′w = ⎜ ⎟
∂x ⎝ µw Bw ∂x ⎠ ∂t ⎝ Bw ⎠
Final Exam page 12 of 12
TPG4160 Reservoir Simulation, May 18, 2009
For a one-dimensional, vertical (z), 3 phase oil, water, gas system, outline how initial pressures
and saturations may be computed in a simulation model, assuming that equilibrium conditions
apply:
a) Sketch the reservoir, with a grid superimposed, including gas-oil-contact (GOC) and water-
oil-contact (WOC).
b) Sketch the oil-gas and oil-water capillary pressure curves, and show the how the initial
equilibrium pressures and saturations are determined in the contineous system.
c) Sketch the initial saturations as they are applied to the grid blocks.