Professional Documents
Culture Documents
Wei Yan
Center for Energy Resources Engineering, Dept. of Chemistry, DTU
October 2020
1
Contents
Overview
2
Reservoir simulation and its purpose
3
How a reservoir simulator is developed?
4
Types of reservoir simulators
— in terms of dimensionality
areal cross-section
2-D
5
Types of reservoir simulators
— in terms of representation of fluid properties
Black oil simulator (Eclipse/E100)
Three components: gas, oil and water
Properties as functions of pressure and solution gas oil ratio calculated by
interpolating table values. V V rb
Bo RC f ( p , R )
o dg
Oil FVF Bo Vo STC o s stb
Vg cf
Gas FVF Bg Bg RC f ( pg ) scf
Vg
STC
[Vw ]RC rb
Water FVF Bw Bw f ( pw )
Vw STC stb
V scf
Rs dg f ( po ) stb
Solution GOR Rs Vo STC
Simulation of processes where the mass transport between the fluid phases is
of minor importance
6
Types of reservoir simulators
— in terms of representation of fluid properties
PR (1976, 1978)
Characterized oil
Viscosity by LBC…
7
Equations in reservoir simulators
Mass conservation equation (continuity equation)
Darcy’s law
Equations/correlations for fluid properties
k (t P g D) qˆs (pressure equation)
Sw
ut f w D kgf wo ( w o ) qˆs ( f w,well f w ) (saturation equation)
t
8
Mass Conservation (Continuity) Equation
Mass conservation [ flowin] [ flow out] [injection] [accumulation]
for a component, in mass or mole, amount or rate
mi
In 3D differential form: m i qi
t
mi mass of component i in a unit volume (mass density)
m i mass flux of component i
qi source strength (mass flow rate per unit volume, “+” for source and “-” for sink)
Densities can be calculated using formation factors, gas/oil ratio and component densities
at the standard conditions
wSTC oSTC Rs gSTC gSTC
w o dg g
Bw Bo BBo g
10
Further Simplification
Two-phase incompressible, immiscible flow in non-deformable porous
media (further simplification)
Waterflooding
qˆ w qw / w and qˆo qo / o source strength terms, volumetric flow rate per unit volume,
dimension 1/[time]
11
Darcy’s Law
Henry Darcy (1856)
the relationship between the flow rate through porous media and head gradient
Q K (h1 h2 )
h1=P1/ρg+z1
A L
Q volumetric flow rate A cross-sectional area
K hydraulic conductivity h head
L
Petroleum engineering
Q k ( P1 gz1 ) ( P2 gz2 )
A L
μ viscosity h2=P2/ρg+z2
If the seepage velocity (Q/A) is in cm/sec, viscosity in centipoise and pressure gradient in
atm/cm then the unit of k is Darcy
1 Darcy 9.869x10-9 cm2 9.869x10-13 m 2 1 mD 10-3 Darcy 9.869x10-16 m 2
12
Darcy’s Law
3D single phase flow
k x P D
x g
u P gD
k
u x x
u k y P g D
D depth, downwards positive y y y
u z
z g
k absolute permeability tensor k P D
x z
k x
k ky
Isotropic: kx k y kz
k z Anisotropic: otherwise
3D multiphase flow
u j rj Pj j gD k j Pj g , j D
kk
j
krj the relative permeability of phase j, a function of phase saturation(s);
for water/oil two-phase flow: k rw f ( s w ) k ro f ( so )
j krj / j mobility of phase j
g , j krj j g / j gravity mobility of phase j
13
Relative Permeability and Fractional Flow
Function
1.0 1,0
water
oil
0.6 0,6
0.4 0,4
0.2 0,2
swi 1-sor swi 1-sor
0.0 0,0
0.0 0.2 0.4 0.6 0.8 1.0 0,0 0,2 0,4 0,6 0,8 1,0
Water saturation Water saturation
Typical relative permeability curves for
oil/water two-phase flow A “S” shaped fractional flow function
krw ( sw ) / w
f w ( sw )
krw ( sw ) / w kro ( sw ) / o
mobility o kro (sw ) / o w krw ( sw ) / w
14
Derivation of the Governing Equations
Two-phase immiscible, incompressible flow through non-deformable porous
media
sw
uw qˆ w (1) uw k (wPw gwD) (3)
t
uo k (oPo goD) (4)
(1 sw )
uo qˆo (2)
Pc Po Pw f ( sw )
t (5)
Further assume no capillary effect
uw k (wP gwD) (6) uo k (oP go D) (7)
The governing pressure equation
Add (1) and (2) ut qˆ s (8)
where total velocity uw uw uo and total source strength qˆ s qˆ w qˆo
Add (6) and (7) ut k (t P g D) (velocity equation) (9)
15
Derivation of the Governing Equations
The governing saturation equation np
u( x, y, t ) u( x x, y, t ) u( x, y, t ) x u *
2
u( x x, y, t ) u( x, y, t )
( x , y, t ) O(x)
x x 2 x 2
x
The error is of the order of Δx
Other finite difference quotients
u ( x, y , t ) u ( x, y , t ) u ( x x, y , t ) x 2
u *
Backward ( x , y, t )
x x 2 x 2
Centered u( x, y, t ) u( x x, y, t ) u( x x, y, t ) x u3 ( x* , y, t )
2 3
x 2x 6 x
Centered second-difference quotient
2u u( x x, y, t ) 2u( x, y, t ) u( x x, y, t ) x 2 4u *
( x , y, t )
x 2 x 2 12 x 4
17
Discretization in Time—Implicit/Explicit
Scheme
The dependent variables in PDEs encountered in reservoir simulation (pressure, saturation) are
functions of space and time. Discretization of these variables must be performed both in spatial
coordinate and in time coordinate. If backward difference is used for time derivative, the
resulting difference scheme is called “implicit scheme”; if forward difference is used for time
derivative, the scheme is called “explicit scheme”. Implicit schemes are generally more stable
than explicit schemes. Explicit schemes are easier to implement.
u 2u
For a simple parabolic problem 0
t x 2
Explicit scheme Implicit scheme
t n 1
u u 2u u
n n n n t uin1 uin uin11 2uin1 uin11
u
i
i i 1 i i 1
0 0
t x t x
tn+1 tn+1
tn tn
tn tn
21
IMPES Method
sw f ( s )
Solution of the saturation equation U w w 0
t x
Nature of the saturation equation: Buckley-Leverett solution (1942)
The rate of advance of a point of constant saturation is given by
dx df (s )
U w w
dt sw dsw
Solution is self-similar for uniform initial condition
1.0 1.0
1.0
Fractional flow function
Saturation
0.6
Saturation
0.6
t 2t 4t
velocity dfw/dsw 0.4
0.4
0.4 swi
swi 0.2
0.2
0.2
0.0
0.0 0.0 0.2 0.4 0.6 0.8 1.0 1.2
swi 1-sor
0.0 Distance x Wave velocity (x/Ut)
0.0 0.2 0.4 0.6 0.8 1.0
Water saturation
22
IMPES Method
Solution of the saturation equation
Upstream and downstream scheme
The backward difference in distance is referred to as “upstream” scheme and the
forward difference as “downstream” scheme.
The “downstream” scheme is always unstable.
t n 1 n 1
sw i sw i f ( s ) f w ( swi 1 ) sw i sw i f ( s ) f w ( sw i )
n n n n n n
t
U w wi 0 U w wi 1 0
t x t x
tn+1 tn+1
tn tn
Uf w wi 0
t x
is equivalent to solving the diffusion-convection problem
sw sw 2 sw
Uf w Dnum 2
t x x
where Dnum Uf wx[1 ] and Uf wt / x
24
IMPES Method
Solution of the saturation equation
Numerical dispersion: artificial dispersion caused by the truncation
error
sw sw 2 sw
Uf w Dnum 2 Dnum Uf wx[1 ] Uf wt / x
t x x
1.0
Analytical solution
0.8 1-sor 100 grid blocks
50 grid blocks
Saturation
0.6
0.4
swi
0.2
0.0
Distance x 25
Input data for reservoir simulation
Geological data
Geometry
Porosity
Absolute permeability
PVT data
Black oil description (formation factors, solution GOR and viscosities)
EOS description
Petrophysical data
Relative permeability
Capillary pressure
Initial conditions
Oil-water contact
Gas-oil contact
Pressure
Well data
Location, perforation and skin factor
Operation conditions
26
ECL input file: *.data
A text file consists of several sections. Each section is introduced by a
keyword.
Required sections
RUNSPEC: Title, problem dimensions, switches, phases present,
components…
RUNSPEC =======================================
27
Cont’d
Required sections
GRID: Geometry of computational grid, rock properties (porosity,
permeability, etc.)
28
Cont’d
DXV
124*5 /
“m*n” repeats the value n by m times
-- SG Krg Krow Pc
29
Some common keywords
RUNSPEC section
METRIC metric units used
OIL the run contains oil; oil phase exists or could exist
GAS the run contains gas
WATER the run contains water
DISGAS the run contains dissolved gas in live oil. For oil with constant Rs and
pressure always above bubble pressure, it can be treated as dead oil.
30
Some common keywords
GRID section
DXV x direction block sizes(each value to the blocks having the same x-index)
124*5 /
DZ z direction block sizes (to all the grid blocks) x cycles fastest
6200*5 /
PERMX permeability
6200*10/
32
-- Column Properties are:
-- 'Pressure' 'Gas FVF' 'Gas Visc'
-- Units: bar rm3 /sm3 cp
PVDG
--
-- Dry Gas PVT Properties (No Vapourised Oil)
--
1.0133 1.2937 0.0103
11.9760 0.1045 0.0118
25.1450 0.0488 0.0126
42.3819 0.0284 0.0132
59.6189 0.0199 0.0138
76.8558 0.0152 0.0144
94.0928 0.0123 0.0150
111.3297 0.0103 0.0157
128.5667 0.0089 0.0166
145.8036 0.0078 0.0174
163.0406 0.0070 0.0184
181.6565 0.0063 0.0195
187.8153 0.0062 0.0199
/
33
-- Column Properties are:
-- 'Oil GOR' 'PSAT' 'Oil FVF' 'Oil Visc'
-- Units: sm3 /sm3 bar rm3 /sm3 cp
PVTO
--
-- Live Oil PVT Properties (Dissolved Gas)
--
0.0000 1.0133 1.0966 1.5091
111.3297 1.0892 1.6394
187.8153 1.0849 1.7225 / -- Column Properties are:
8.8712 11.9760 1.1341 0.4786 -- 'Pressure' 'Oil FVF' 'Oil Visc'
111.3297 1.1161 0.5539 -- Units: bar rm3 /sm3 cp
187.8153 1.1053 0.6078 / PVDO
100.6719 128.5667 1.4182 0.2916 -- Dead Oil PVT Properties
187.8153 1.3978 0.3244 / 187.8153 1.5687 0.2326
153.5772 187.8153 1.5687 0.2326 194.9081 1.5655 0.2358
194.9081 1.5655 0.2358 / /
/
34
Some common keywords
SOLUTION section
Pressure Grid block pressures
6200*201.013 /
SUMMARY section
FGOR Field gas oil ratio
FOPR Field oil production rate
FOPT Field oil production total
FWCT Field water cut total
FWPR Field water production rate
FWPT Field water production total
FPR Field pressure
FOEW Oil production from wells/OIP(initial)
35
Some common keywords
SCHEDULE section
36
Simulation Example
First SPE Comparative Solution Project (A.S. Odeh, 1981)
Areal and cross-section views
Gas injection
Gas injection well 100 MM SCF/D Oil production well
J=1 I=1
21 2
3 3 Φ H, ft. kx ky klink sw so
4 4 8325 ft
y 5 5 x
6 6 Layer1 .3 20 500 500 .12 .88 8335 ft
7 7 50
8 8
9 9
10 10 Layer2 .3 30 50 50 .12 .88 8360 ft
25
1000 ft.
8425 ft
I=J=1 2 3 4 5 6 7 8 9 10
Oil production well
1000 ft.
38
Simulation Example
Simulation results
39
Simulation Example
Simulation results
GOR vs. time Pressure vs. time for producing well Cell 10,10,3
40
Simulation Example
Simulation results
Gas saturation vs. time for producing well Cell 10,10,3 Pressure vs. time for injection well Cell 1,1,1
41
Simulation Example
Simulation results
42
Exercise problem
Injector Producer
2-D reservoir
Grid blocks: 124x50x1
Dimensions: 620mx250mx5m
Porosity: 0.2
Simulations:
• homogeneous/ heterogeneous permeability
• Water injection
• Depletion
43
Office: manages simulations
E100 black oil simulator can visualize results
44
Select a data file (*.data) to run the simulation, the results will be created in
the same folder.
45
46
Data types in ECL output files
Vector Data
A set of numbers which can be used for constructing line graphs, for
example field oil production (FOPR) at each time step.
Grid Data
Grid geometry defined by corner point data, read from an ECLIPSE
GRID file or EGRID file.
Solution Data
An array of solution variables which are defined for each cell at a report
step, e.g. pressure, saturations, etc. Solution data are read from
ECLIPSE Restart files or User Data files. Additional data defining well
positions and completions may be associated with solution data. The
ECLIPSE INIT file also contains grid property data which can be
handled as solution data, for example porosity.
47
click
48
The summary results is stored in *.smpec. The name is the same as the input file name.
Select one and read in all the vector data.
49
Use OPEN|GRID to select a grid file and the corresponding solution data will also
be opened
50
51
52
We have learned…
Basis for formulating governing equations in reservoir simulation: mass
conservation equation and Darcy’s law
How to derive the governing equations for immiscible and incompressible flow
through porous media
53