Section 4
Section 4
RESERVOIR SIMULATION
MULTIDIMENSIONAL RESERVOIR
DOMAINS, THE CONTROL VOLUME
APPROACH, AND HETEROGENEITIES
Dr. Khoozan 2
1
5/28/2024
Dr. Khoozan 3
Dr. Khoozan 4
2
5/28/2024
Dr. Khoozan 5
GRID DIMENSIONS
The dimensions of a grid, 𝑖, is given as ∆𝑥𝑖 , ∆𝑦𝑖 , and ∆𝑧𝑖 and the bulk volume of the block as
𝑉𝑖 = ∆𝑥𝑖 × ∆𝑦𝑖 × ∆𝑧𝑖 .
If the reservoir can be approximated as a 2D areal problem, ∆𝑧𝑖 = ℎ , the thickness, and for 1D
problems, ∆𝑧𝑖 = ℎ and ∆𝑦𝑖 = 𝑤 , the width.
A simple approach to gridding uses uniform. However, it is often desired to use nonuniform
grid block sizes to optimize accuracy and computational speed.
Relatively small grid blocks are desired where changes in variables, e.g., pressure, are
significant over short distances, e.g., near a well, and larger grid blocks where pressure does
not change much with distance, e.g., far from a well.
Dr. Khoozan 6
3
5/28/2024
GRID DIMENSIONS
The figure shows that fine (small) grids are employed near the wells and coarse grids far
from the wells as desired. However, fine grids are also used in some places where not
needed. Therefore, this gridding algorithm is not ideal, but advanced techniques are
beyond the scope of this text.
Dr. Khoozan 7
Dr. Khoozan 8
4
5/28/2024
Two methods for implementing orthogonal grids in a noncuboid geometry include: (a) inactive
grids and (b) reindexing.
In inactive grids approach, the domain is modeled by a cuboid geometry, but blocks outside the
reservoir are considered “inactive”; they are assigned nonphysical parameters such as zero
porosity and/or permeability.
Dr. Khoozan 9
Numerically, matrices of size 𝑁 × 𝑁 are still generated, but rows and columns corresponding to the
inactive grid contain the nonphysical values.
The system of equations may be singular or ill-conditioned when using inactive grids. However,
the numerical value of pressure in the inactive grids is not meaningful and iterative solvers should
still converge to the solution in the active grid blocks.
Dr. Khoozan 10
5
5/28/2024
The alternative is to reindex the grids in such a way that only active blocks are assigned a block number.
As a result, the number of equations is smaller than the inactive blocks method; however, the connectivity
between blocks is not as simple. The connectivity of blocks must be determined and saved in a reference
list.
Dr. Khoozan 11
Dr. Khoozan 12
6
5/28/2024
Dr. Khoozan 14
7
5/28/2024
Mass flux, 𝜌𝛼 𝑢𝛼 , enters or exits the block from six faces (in 3D).
Dr. Khoozan 15
Dr. Khoozan 16
8
5/28/2024
ACCUMULATION
The accumulation term can be simplified by first recognizing that the time
difference can be expanded:
The porosity and density (for slightly compressible fluids) differences in time
can be simplified by using a first-order Taylor Series approximation:
Dr. Khoozan 17
ACCUMULATION
Analogous equations for the density change for a compressible gas can be derived using a
real gas law. These Eqs can be substituted to give:
In this equation, an approximation was made that, for a slightly compressible fluid, the
porosity and density could be treated as constants and the superscripts for time index
were removed. The pressure/time-dependence on these variables was accounted for in
the previous equation.
Dr. Khoozan 18
9
5/28/2024
FLUX TERMS
There are six flux terms (one for each face of the block) in a three-
dimensional balance. Darcy’s law can be substituted for velocities in Eq. (4.3).
For example, in the 𝑥-direction at the interface of blocks 𝑗 − 1, 𝑘, 𝑙 and 𝑗, 𝑘, 𝑙:
Dr. Khoozan 19
FLUX TERMS
In this equation an interblock phase (Ta) transmissibility is defined, which includes an
interblock formation volume factor in the denominator. The units of this interblock
transmissibility are standard conditions (e.g., scf/psi-day).
The total (T) transmissibility is the interblock phase transmissibility multiplied by the block
formation volume factor, summed over all phases. If only one phase is flowing the
summation is not required. The units of the total transmissibility are reservoir conditions
(e.g., ft3/psi-day).
Dr. Khoozan 20
10
5/28/2024
FLUX TERMS
Formation volume factor of the phase appears in both the numerator and
denominator of total compressibility, but the block and interblock formation
volume factors are not, in general, equal because they are pressure dependent.
For compressible fluids, such as gases, the difference between the two
formation volume factors may not be negligible.
Dr. Khoozan 21
Dr. Khoozan 22
11
5/28/2024
SINGLE-PHASE FLOW
The derived accumulation, flux and source/sink terms can be substituted into the phase
balance equation to give:
where 𝐴𝑖 = 𝑉𝑖 𝜙𝑖 ΤΔ𝑡. The shorthand notation is defined as follows where where 𝑈 is any
spatially or time-dependent variable, e.g., 𝑃, 𝐷 or 𝑆𝛼 :
Dr. Khoozan 23
SINGLE-PHASE FLOW
All phases can be summed together to give:
If there is only one flowing phase, the summation of phases on the left-hand side is not
necessary because production rates are only finite for the flowing phase.
For simplicity, the phase density of the flowing phase is assumed constant in the gravity
terms.
Dr. Khoozan 24
12
5/28/2024
SINGLE-PHASE FLOW
In Eq. (4.12), the time level for pressure in the flow terms was not specified pressures are
evaluated at the 𝑛 time level for the explicit method, 𝑛 + 1 time level for the implicit
method, and an intermediate time level for mixed methods:
Dr. Khoozan 25
SINGLE-PHASE FLOW
13
5/28/2024
Here, we consider only wells, injectors or producers, in which the rate is specified (in
standard conditions).
The grid block, 𝑖, that contains the well is included as a source term, 𝑄𝑖 = 𝐵𝛼,𝑖 𝑄𝑖𝑠𝑐 , where
the specified standard rate is converted to reservoir conditions using the formation
volume factor.
The convention used here is that injector wells have a positive rate and producers a
negative rate.
For our purposes, the location of the well in the grid does not affect the value of 𝑄𝑖 ;
however, good practice is to place the grids in such a way that the wells are near the grid
centers.
Dr. Khoozan 27
Neumann conditions are those of constant specified rate on a boundary and can be
positive (into the reservoir), negative (out of the reservoir), or zero (a no-flux condition).
Therefore, Neumann boundary conditions can be treated similarly to constant rate wells.
The specified rate at the boundary can be directly included into the source vector, 𝑄𝑖 ,
where 𝑖 refers to the block with the specified boundary condition.
Dr. Khoozan 28
14
5/28/2024
Dr. Khoozan 29
One simple method is to distribute evenly between the blocks, but this can
be inaccurate if the transmissibility varies significantly along the boundary
blocks because fluid preferentially flows through the blocks of highest
transmissibility.
A more accurate approach is to weight the fluxes by the block transmissibility
Dr. Khoozan 30
15
5/28/2024
The flux is defined as zero, even for a finite flux boundary condition, because
the specified rate was already included in 𝑄.
Dr. Khoozan 31
DIRICHLET CONDITIONS
Dirichlet (constant pressure) boundary conditions were implemented in Chapter 3 by
approximating the boundary pressure as the arithmetic average of the pressures of the
imaginary block and boundary block (e.g., 𝑃𝐵 = (𝑃0,𝑘,𝑙 +𝑃1,𝑘,𝑗 )Τ2).
Equivalently, one can rewrite Darcy’s law at the boundary using the boundary pressure:
where the “2” arises because the distance from the boundary edge to the center of the
block equals to half of the length.
Dr. Khoozan 32
16
5/28/2024
DIRICHLET CONDITIONS
Dr. Khoozan 33
CORNER BLOCKS
Blocks that are adjacent to more than one boundary are referred
to here as “corner blocks.”
17
5/28/2024
Dr. Khoozan 35
Dr. Khoozan 36
18
5/28/2024
Dr. Khoozan 37
Dr. Khoozan 38
19
5/28/2024
Dr. Khoozan 39
Dr. Khoozan 40
20
5/28/2024
Dr. Khoozan 41
Dr. Khoozan 42
21
5/28/2024
Dr. Khoozan 43
Dr. Khoozan 44
22
5/28/2024
INITIAL CONDITIONS
Dr. Khoozan 45
RESERVOIR HETEROGENEITIES
In most practical applications, heterogeneities in permeability, porosity, grid
size, fluid properties, etc., must be accounted for in the reservoir simulator.
This figure depicts a 1D reservoir with variable grid block sizes and
permeability.
Dr. Khoozan 46
23
5/28/2024
RESERVOIR HETEROGENEITIES
Flow occurs from one block (e.g., 𝑗 + 1, 𝑘, 𝑙) to another block (e.g., 𝑗, 𝑘, 𝑙). Therefore, if
those two blocks have different permeability, grid size, cross-sectional area, fluid
properties, etc., then the interblock phase transmissibility should be some sort of mean
between the two blocks
In this equation, endpoint relatively permeability of the one flowing phase, 𝛼, is used but
in later chapters it is shown the equation can be used for multiphase flow where relative
permeability is a function of saturation.
Dr. Khoozan 47
RESERVOIR HETEROGENEITIES
0
Interblock fluid dependent properties (𝑘𝑟,𝛼 , 𝜇𝛼 ) are generally treated
differently than geometric properties (𝑘, Δ𝑥, Δ𝑦, Δ𝑧) and thus are
separated.
Dr. Khoozan 48
24
5/28/2024
FLUID PROPERTIES
For slightly compressible fluids (e.g. aqueous, oleic phases), viscosity and formation
volume factor are weak functions of pressure.
Pressure-dependent properties may vary in both space and time; they can be evaluated in
each grid block using the known pressure in the previous timestep, 𝜇𝑖 = 𝑓(𝑃𝑖𝑛 )
FLUID PROPERTIES
For single-phase flow problems, an arithmetic mean for the interblock fluid
properties is often an acceptable approximation. .
Dr. Khoozan 50
25
5/28/2024
GEOMETRIC PROPERTIES
Geometric properties (e.g., 𝑘, Δ𝑥, Δ𝑦, Δ𝑧) can vary significantly between two adjacent grid
blocks, even orders of magnitude in the case of permeability.
Equations for interblock geometric properties are derived by assuming steadystate flow
between two adjacent blocks.
Dr. Khoozan 51
GEOMETRIC PROPERTIES
The total pressure drop between the two blocks is the sum of the
pressure drop from the center of block 𝑖 (𝑗, 𝑘, 𝑙) to the interface
and the interface to block 𝑖 + 1 (𝑗 + 1, 𝑘, 𝑙).
Dr. Khoozan 52
26
5/28/2024
GEOMETRIC PROPERTIES
Assuming the interblock fluid properties can be determined separately, this
equation can be simplified to give a harmonic mean of geometric properties:
Dr. Khoozan 53
GEOMETRIC PROPERTIES
The harmonic mean for interblock transmissibility was derived mathematically but it also
makes sense physically.
Consider an extreme case, where a relatively high permeability block (e.g., a sandstone
with 100 mD) is adjacent to an impermeable block (e.g., shale with 0 mD) and grids are
of uniform size.
A simple arithmetic mean suggests that the effective permeability is (100 + 0)/2 =
50 mD. and fluid flows, relatively easily, between the two blocks.
In reality, no flow would occur at all between the blocks because the shale block is
impermeable.
27
5/28/2024
GEOMETRIC PROPERTIES
For 2D and 3D problems, the harmonic mean can underestimate the effective
permeability or transmissibility.
Advanced approaches for upscaling permeability have been developed (Christie, 1996;
Holden & Nielsen, 2000; Durlofsky, 2005), but this is beyond the scope of this course.
Upscaling is also commonly used to coarsen grids when fine grids are provided in
order to improve computational efficiency.
Dr. Khoozan 55
Dr. Khoozan 56
28
5/28/2024
Dr. Khoozan 57
Dr. Khoozan 58
29
5/28/2024
Dr. Khoozan 59
Dr. Khoozan 60
30
5/28/2024
Dr. Khoozan 61
Dr. Khoozan 62
31
5/28/2024
Dr. Khoozan 63
ACCUMULATION TERMS
Porosity, compressibility, and block volume may also vary with grid
blocks.
Dr. Khoozan 64
32
5/28/2024
Dr. Khoozan 65
The 𝑇𝑖,𝑗 element of the matrix is the negative of interblock transmissibility between
blocks 𝑖 and 𝑗 and thus 𝑇𝑖,𝑗 is only nonzero if the two blocks are adjacent (or 𝑖 = 𝑗).
For a sufficiently large number of grids, most entries of 𝐓 are zero and thus the matrix
is sparse.
The main diagonal, 𝑇𝑖,𝑖 , is the absolute value of the sum of the off-diagonals.
Dr. Khoozan 66
33
5/28/2024
Dr. Khoozan 68
34
5/28/2024
The number of columns between the far-left diagonal and the far-right diagonal is referred to
as the bandwidth.
A higher bandwidth can sometimes require additional computer memory and increase the
computation time for the linear solver.
In the indexing system proposed in this text, the bandwidth for 2D models equals the number
of blocks in the 𝑥-direction (𝑁𝑥 ), but different indexing systems can be used to reduce (or
increase) bandwidth.
It is, however, highly recommended to use sparse storage formatting in code development,
which only saves the nonzero entries.
Dr. Khoozan 69
For constant rate wells or constant rate boundary conditions, the rate (at reservoir conditions) is
directly substituted into the source vector, 𝑄𝑖 , if the well or boundary is associated with that block.
The value of 𝑄𝑖 is positive for injectors (or flow is into the boundary) and negative for producers
(or flow out of the boundary).
For constant pressure (Dirichlet) boundaries, a diagonal 𝐉 matrix is used with 𝐽𝑖,𝑗 = +2𝑇𝑖 , where 𝑇𝑖
is the transmissibility of that boundary block.
The source vector is 𝑄𝑖 = +2𝑇𝑖 𝑃𝐵 where 𝑃𝐵 is the value of the constant pressure at the boundary
of block 𝑖.
If the block is subject to more than one boundary condition (i.e. corner block), 𝑄𝑖 is a summation
of those boundary conditions.
Dr. Khoozan 70
35
5/28/2024
Dr. Khoozan 71
where 𝐷 is a vector of depths and 𝐷𝑖 is the depth of the center of grid 𝑖. Note that here the
fluid density has been treated as a constant. If the density is taken to be function of
pressure, interblock densities (or formation volume factors) should be used.
Dr. Khoozan 72
36
5/28/2024
Dr. Khoozan 73
Dr. Khoozan 74
37
5/28/2024
Dr. Khoozan 75
Dr. Khoozan 76
38
5/28/2024
Dr. Khoozan 77
Dr. Khoozan 78
39
5/28/2024
Dr. Khoozan 79
Dr. Khoozan 80
40
5/28/2024
Dr. Khoozan 81
Dr. Khoozan 82
41
5/28/2024
Dr. Khoozan 83
Dr. Khoozan 84
42