Solution Examination Paper For TPG4160 Reservoir Simulation: Department of Petroleum Engineering and Applied Geophysics
Solution Examination Paper For TPG4160 Reservoir Simulation: Department of Petroleum Engineering and Applied Geophysics
SOLUTION
Other information:
Language: English
Number of pages: 6
Number of pages enclosed: 0
Checked by:
____________________________
Date Signature
Final Exam page 2 of 17
TPG4160 Reservoir Simulation, June 4, 2013
a) Which geological factors are causing the good communication in the Lower Brent Group
of the H1 Segment of the Gullfaks Field
b) Describe briefly how chemical injection is accounted for in the Eclipse simulations that
you did
c) What are the main uncertainties in the simulation results?
Solution
The student should show that he/she really participated in the group work
Final Exam page 3 of 17
TPG4160 Reservoir Simulation, June 4, 2013
Solution
∂ ⎛ ∂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 ⎠
-assume that
∂ ⎛ ∂P ⎞ ⎛ ∂ 2P ⎞
-so that ⎜ ρ ⎟ ≈ ρ⎜ 2⎟
∂x ⎝ ∂ x ⎠ ⎝ ∂x ⎠
∂ 2 P φµc ∂P
-thus, the final equation becomes: =
∂x 2 k ∂t
Final Exam page 4 of 17
TPG4160 Reservoir Simulation, June 4, 2013
b) -continuous system
-discrete system
1 i-1 i i+1 N
Δx
c) Space derivative
At constant time, t+Δt (alternatively, t may be used), the pressure function may be
expanded in forward and backward directions:
Δx (Δx) 2 (Δx) 3
P(x + Δx,t + Δt) = P(x,t + Δt) + ′
P (x,t + Δt) + ′′
P (x,t + Δt) + P ′′′(x,t + Δt) + .....
1! 2! 3!
(−Δx) (−Δx) 2 (−Δx) 3
P(x − Δx,t + Δt) = P(x,t + Δt) + P ′(x,t + Δt) + P ′′(x,t + Δt) + P ′′′(x,t + Δt) + .....
By adding these two expressions, 1! 2!
and solving for the second derivative, we get 3! the
following approximation:
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) 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) 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
Final Exam page 6 of 17
TPG4160 Reservoir Simulation, June 4, 2013
Sketch the coefficient matrix for the following systems, indicating non-zero diagonals with
approximate lines. Label the diagonals. What is the bandwidth?
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
c) As question b) above, but now the numbering of the grid starts in the j-direction.
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)
Final Exam page 7 of 17
TPG4160 Reservoir Simulation, June 4, 2013
i,j,k-1
i,j,k+1
Nz Ny
j
1 i Nx 1
Solution
a) Bandwidth=3
b c
a b c
a b c
a b c
a b c
a b c
a b c
a b c
a b c
a b c
a b c
a b c
a b c
a b c
a b
b) Bandwidth=2Nx+1 =13
b c f
a b c f
a b c f
a b c f
a b c f
a b c f
a b f
e b c f
e a b c f
e a b c f
e a b c f
e a b c f
e a b c f
e a b f
e b c f
e a b c f
e a b c f
e a b c f
e a b c f
e a b c f
e a b f
e b c f
e a b c f
e a b c f
e a b c f
e a b c f
e a b c f
e a b f
e b c f
e a b c
e a b c
e a b c
e a b c
e a b c
e a b
Final Exam page 8 of 17
TPG4160 Reservoir Simulation, June 4, 2013
c) Bandwidth= 2Ny+1=17
b f c
e b f c
e b f c
e b f c
e b f c
e b f c
e b f c
e b c
a b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b c
a b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b c
a b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b c
a b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b f c
a e b c
a b f
a e b f
a e b f
a e b f
a e b f
a e b f
a e b f
a e b
a b c
e
g
Final Exam page 9 of 17
TPG4160 Reservoir Simulation, June 4, 2013
For two-phase flow of oil and gas in a horizontal, one dimensional, linear porous medium, the
flow equations may be written as:
∂ ⎛ 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
S o + S g = 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).
Solution
a)
Txoi+1 2 ( Poi+1 − Poi ) + Txoi−1 2 ( Poi−1 − Poi ) − q′oi
= Cpooi ( Poi − Poit ) + Csgoi ( Sg i − Sg it ), i = 1,N
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 ) − ( Rsoqo′ ) i
= Cpog i ( Poi − Poit ) + Csgg i ( Sg i − Sg it ), i = 1,N
b) 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 ) − q′gi
t
]
+( RsoTxo) i+1/ 2 ( Poi+1 − Poi ) + ( RsoTxo) i−1/ 2 ( Poi−1 − Poi ) − Rso t qo′
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:
Final Exam page 11 of 17
TPG4160 Reservoir Simulation, June 4, 2013
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
where
The equations are solved for pressures and saturations iteratively, updating coefficients after
each iteration.
Final Exam page 12 of 17
TPG4160 Reservoir Simulation, June 4, 2013
Explain briefly the following terms as applied to reservoir simulation (short sentence and/or a
formula for each):
a) Control volume
b) Mass balance
c) Taylor series
d) Numerical dispersion
e) Explicit
f) Implicit
g) Stability
h) Upstream weighting
i) Variable bubble point
j) Harmonic average
k) Transmissibility
l) Storage coefficient
m) Coefficient matrix
n) IMPES
o) Fully implicit
p) Cross section
q) Coning
r) PI
s) Stone´s relative permeability models
t) Discretization
u) History matching
v) Prediction
w) Black Oil
x) Compositional
y) Dual porosity
z) Dual permeability
Solution
The discretized form of the left hand side of the oil equation may be written in terms of
transmissibilities and pressure differences, as
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 typical curves for saturation profiles computed
with upstream or average mobility terms, respectively).
Solution
⎧ λo if Poi−1 ≥ Poi
b) λoi−1/ 2 = ⎨ i−1
⎩ λoi if Poi−1 < Poi
c)
Qw
Sw
1-Swir
exact
average
upstream
S wir
x
Final Exam page 15 of 17
TPG4160 Reservoir Simulation, June 4, 2013
For a one-dimensional, horizontal, 3-phase oil, water, gas system, the general flow equations
are (including well terms):
∂ ⎛ kk ro ∂Po ⎞ ∂ ⎛ φSo ⎞
⎜ ⎟ − qo′ = ⎜ ⎟,
∂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
∂ ⎛ kk ro ∂Po ⎞ ∂ ⎛ φSo ⎞
f) ⎜ ⎟ − q′o = ⎜ ⎟
∂x ⎝ µo Bo ∂x ⎠ ∂t ⎝ Bo ⎠
Final Exam page 16 of 17
TPG4160 Reservoir Simulation, June 4, 2013
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 continuous system.
c) Sketch the initial saturations as they are applied to the grid blocks.
Solution