Professional Documents
Culture Documents
Reservoir Modelling and Analysis 2016
Reservoir Modelling and Analysis 2016
ANALYSIS
S. O. Isehunwa
Professor of Petroleum Engineering
University of Ibadan
1
Title of Module RESERVOIR MODELLING AND ANALYSIS
Method
2
Review of Basic Concepts
RESERVOIR ENGINERING
Reservoir Engineering is the application of fundamental scientific intelligence to achieve
optimal recovery of hydrocarbons from the subsurface. The technical responsibilities of
reservoir engineers include the following:
The activities of reservoir engineering therefore fall into the following three general
categories:
(i) Reserves Estimation
(ii) Development Planning
(iii) Production Operations Optimisation
PETROLEUM RESERVOIR
This is a porous and permeable formation containing an individual and separate natural
accumulation of producible hydrocarbons or other substances which is confined by
impermeable rock or water barriers and is characterized by a single natural pressure system.
Matrix
Pore space
Permeability
Hydrocarbon Saturation
Trap
RESERVOIR CHARACTERISTICS
1. External Features: Shape and Volume, Boundaries, Aquifer limit
2. Internal Features: Faults, Fractures, stratification, continuity and connectivity,
compartment
3. Habitat: Earth Stress, Pressure, Temperature
4. Rock: Lithology, Porosity, Permeability, Wettability, Mechanical properties
5. Fluid: Types and composition, Distribution, Contacts, Properties
Fluid pressure regimes in hydrocarbon columns are dictated by the prevailing water pressure
in the vicinity of the reservoir. In a perfectly normal case the water pressure at any depth can
be calculated as:
Pw = βD + 14.7 Psia
Where β, the water pressure gradient, is dependent on the chemical composition (salinity),
and for pure water has the value of 0.4335 psi/ft.
However, in contrast to this normal situation, abnormal hydrostatic pressures can be
encountered and can be defined by the generalized equation:
P = A + βD + 14.7 Psia
Where the constant, A, is positive if the water is over-pressured and negative if under-
pressured.
For the water in any sand to be abnormally pressured, the sand must be effectively sealed off
from the surrounding strata so that hydrostatic pressure continuity to the surface cannot be
established. The conditions which can cause abnormal fluid pressures in enclosed water
bearing sands include:
- Temperature change; an increase in temperature of one degree-Fahrenheit can
cause an increase in pressure of 125 psi in a sealed fresh water system.
4
- Osmosis between waters having different salinity, the sealing shale acting as the
semi-permeable membrane in this ionic exchange; if the water within the seal is
more saline than the surrounding water the osmosis will cause an abnormally high
pressure and vice versa.
The pressure regimes in oil and gas sands are different from water sands in that the densities
of oil and gas are less than that of water and consequently, the pressure gradients are smaller,
typical figures being:
For water , β = 0.45 psi / ft
For Oil, β = 0.30 psi / ft
For Gas, β = 0.08 psi / ft
At the oil –water contact,
Pw = Po
While at the gas-oil contact,
Po = Pg
This understanding is very useful in defining fluid contacts from pressure measurements
during exploratory drilling, and in estimating the in-place hydrocarbon resource volumes.
Gravity forces: Cause the less dense fluid to locate higher in the reservoir.
Capillary forces: Cause the wetting fluid to locate in smaller pores and the non-wetting fluid
in larger pores.
DYNAMIC CONDITIONS
In addition to the above forces, movement of the fluids in reservoir pore space is affected by
viscous forces.
5
PHYSICAL PROPERTIES OF RESERVOIR ROCKS
The properties of a reservoir rock can be classified into primary and secondary physical
properties. The primary physical properties have direct relation to the quality of the rock and
hence are of major interest to the engineer and geologist. They include absolute and effective
porosity, absolute and relative permeability, rock density, saturation, connate water
saturation, compressibility, wettability, interfacial tension and capillary pressure.
The secondary physical properties include electrical properties (resistivity,
conductivity), radioactivity - natural or induced, elastic and acoustic properties and thermal
conductivity.
Usually, the secondary properties of the rocks are measured in-situ by logs. The
primary properties are then estimated from the measurements using established mathematical
relationships. This is the basis of well logging, their interpretation and applications to
reservoir characterization.
6
Production of appropriate geologic maps - Horizon, NOS, NGS, NHS, EHC, etc. maps.
Construction of detailed sedimentological descriptions of the major hydrocarbon sands.
Hydraulic Flow Units (Flow Zone Indicators and Reservoir Quality Index)
Petroleum geologists and engineers have long recognized the need to define quasi-geological
/petrophysical units to formalize their descriptions of rock strata as reservoirs and conduits
for flow of fluids. One approach to zonation of a reservoir for modeling and prediction of
performance is the flow unit concept. The subdivision of a reservoir into flow units provides
a practical means for reservoir zonation that makes use of both geological and petrophysical
data representing heterogeneity observed at several scales
A flow unit is defined as a mappable portion of the total reservoir within which geological
and petrophysical properties that affect the flow of fluids are consistent and predictably
different from the properties of other reservoir rock volumes. Flow units have the following
characteristics in common:
1. Flow units are internally consistent, but not necessarily homogeneous, in terms of either
geological or petrophysical properties. They may contain more than one reservoir quality
lithology and they may include nonreservoir features such as shales and cemented layers
The distribution of petrophysical properties such as porosity and permeability can be mapped
within flow units using well control only or by applying geostatistical procedures to create
stochastic realizations of these distributions “conditioned” on the well data. Geostatistical
techniques that have a strong stochastic component are consistent with, and complementary
to, the flow unit concept, which is itself mostly deterministic.
This is so called because they involve the displacement of one fluid by another. These
drives comprise (i) water drive (ii) gas cap drive.
These include: solution gas drive, compaction drive, gravity segregation, etc.
7
Combination Drive: This is a combination of many drive mechanisms.
From the general Material Balance Equation (MBE), expression for stock tank oil in place
can be obtained as:
N = Np (Bo + (Rp - Rs) Bg) + BwWp - We
(Bo -Boi) + (Rsi-Rs)Bg + mBoi(Bg/Bgi -1) + (1+m)NBoi (CwSwc +Cf)Dp/ (1-Swc)
8
These drive indices are very useful in reservoir analysis. They help the engineer to know the
relative contribution of each drive mechanism to the production. They also help in knowing
how the various drives vary with time. They have been found useful in history matching and
for detection of reservoirs that require pressure maintenance.
Where, dV is an expansion and dp a pressure drop, both of which are positive. This is the
very basic equation underlying all forms of primary recovery mechanism.
The skill in engineering a high primary recovery factor, utilizing the natural reservoir energy,
is to ensure that the dV, which is the production, is the most commercially valuable fluid in
the reservoir, namely, the oil.
It is fairly obvious fact that to produce an oil reservoir, wells should be drilled into the oil
zone. If the reservoir is in contact with a gascap and aquifer, the oil production due to a
uniform pressure drop, dp, in the entire system, will have components due to the separate
expansion of the oil, gas and water, thus
It is evident that the contribution to dVTOT supplied by the oil and water expansion will only
be significant if both Vo and Vw, the initial volumes of oil and water, are large. In contrast,
because of its very high compressibility, even a relatively small volume of gascap gas will
contribute significantly to the oil production.
Therefore, while it is obvious that one would not produce an aquifer, but rather, let the water
expand and displace the oil; so too, the gas in the gascap, although having commercial value,
9
is frequently kept in the reservoir and allowed to play its very significant role in contributing
to the primary recovery through its expansion.
Where,
f = water or gas
The above equation shows that oil displacement is governed essentially by viscous and
gravitational forces. When gravitational forces are significant, oil recovery is rate sensitive.
However, when gravitational forces are neglected, recovery is not rate sensitive as we have:
When gas is displacing oil, if the gravitational term is sufficiently large, Ff becomes zero or
even negative, which indicates counter-current flow of gas up-dip and oil down-dip, resulting
in maximum displacement efficiency. Thus, in the case of a gascap which overlies most of
the oil zone, the drainage area is vertical and sinϴ = 1.0, and the cross-sectional area is large.
If the vertical permeability is not too low, gravitational drainage will substantially improve
recovery.
In general, water is more efficient than gas in displacing oil from reservoir rocks. This is
mainly due to: (a) water viscosity is several times higher than gas viscosity, (b) the
permeability ratio of oil to gas is usually lower than that of oil to water, and (c) water
occupies the less conductive portions of the pores whereas gas occupies the more conductive
portions.
10
In order to accomplish these objectives the Petroleum Reservoir Engineer should have a
broad fundamental background both theoretically and practically in the following areas:
(i) The properties of petroleum reservoir rocks, (ii) The properties of petroleum reservoir
fluids, (iii) The flow of reservoir fluids through reservoir rock and (iv) Petroleum reservoir
drive mechanisms
MODELLING
There are two broad categories of models:
Physical models: Scaled-down reproductions of the original e.g. pilot plants, prototypes, etc.
11
The ability to determine the productivity of a reservoir and the optimum strategy to maximise
the recovery relies on an understanding of the flow characteristics of the reservoir and the
fluid it contains. The combination of the properties of the rocks, fluids and rock-fluid
interfacial interactions dictates the nature of the fluid flow and the changes in pressure with
time after a disturbance in the reservoir. The relationship between reservoir geology and the
flow processes increases progressively from the primary to enhanced recovery stage.
12
PHASES IN RESERVOIR MODELING
Structural Modelling
Property Modelling
Dynamic Modelling
13
14
15
16
17
18
Why Reservoir Modelling or Simulation
What are the original and current hydrocarbon resource volumes in place?
What is the most efficient well spacing?
What are the optimum production strategies?
What are the intrinsic reservoir properties?
Where the external boundaries are located and where are the fluid
contacts?
What is the predominant recovery mechanism?
When and how should we employ infill drilling?
When and which improved recovery technique should we employ?
19
STEPS IN A RESERVOIR SIMULATION STUDY
20
COMPONENTS OF RESERVOIR SIMULATION STUDY
21
RESERVOIR SIMULATION MODEL
A reservoir simulation model is one which shows the main features of a real system, or
resembles it in its behaviour. It should be simple enough for the purpose of deductive
calculations on. These calculations may be analytical or numerical . By analytical we mean
that the equations that represent the model can be solved using mathematical techniques such
as those used to solve algebraic or differential equations.
For example, consider the equation:
In some cases, we may be able to write down the equations for our model, but it may be
impossible to solve these analytically due to the complexity of the equations. Instead, it may
be possible to approximate these complicated equations by an equivalent numerical model.
This model would commonly involve carrying out a very large number of simple numerical
calculations using a computer. For example, consider the compressibility equation for a real
gas:
Tank models (material balance equations)we are just concerned with the gross fluid flows
into and out of the system. They may not be able to address questions about why the
pressures in two sectors of the reservoir are different (since a single average pressure in the
system is a core assumption).
Sector models are more complex in that they can recognise different regions of the
reservoir. A sector model can address the question of different regional pressures. However,
22
they could be inadequate to if the question is quite detailed such as where to locate an infill
well and should it be vertical, slanted
or horizontal?
For such complicated questions, 1D, 2D or 3D grid simulation models would be more
appropriate since they are more detailed and contain more spatial information. A numerical
reservoir simulation model is a grid block model of a petroleum reservoir where each of the
blocks represents a local part of the reservoir. Within a grid block the properties are uniform
(porosity, permeability, relative permeability etc.) although they may change with time as the
reservoir process progresses.
Generally, the simplicity or complexity of the model should relate to the simplicity or
complexity of the question to be answered.
But there is another important factor: data. We require increasing amounts of data as we go
from simple tank models to fine grid models. We should think carefully before building a
very detailed model if we have almost no data.
Therefore, various levels of reservoir models may be used but the reservoir engineer must
choose the appropriate one for the task at hand.
23
Cornerstones or Major Blocks of Reservoir Simulators
Mathematical models
Laboratory data
Field Data
Computer codes
CASE STUDIES
24
Principles of Dynamic Modelling of Reservoir Flow Patterns
Reservoir flow systems are usually classed according to:
a. The type of fluid
b. The geometry of the reservoir
c. The rate at which the flow approaches a steady state condition following a disturbance
I. Type of Fluid
For the purpose of description under dynamic conditions, fluid types can be classified as:
Compressible
Slightly compressible
Incompressible
Type of Phase
Single-phase flow
Two-Phase flow
Three-Phase flow
Geometry
Linear flow
Radial flow
Spherical flow
The actual flow patterns in producing reservoirs are usually complex due mainly to the
following factors:
(i) The shapes of oil bearing formations and aquifers are quite irregular
(ii) Most oil-bearing and water bearing formations are highly heterogeneous with
respect to permeability, porosity and connate water saturation. The saturations of
the hydrocarbon phases can vary throughout the reservoir leading to different
relative permeabilities and therefore flow patterns
(iii) The wellbore usually deviates resulting in an irregular well pattern through the
pay zone
(iv) The production rates usually differ from well to well. In general, a high rate well
drains a larger radius than a lower rate well
(v) Many wells do not fully penetrate the pay zone or are not fully perforated
There are essentially two possibilities available to cope with complexities of actual flow
properties.
(a) The drainage area of the well, reservoir or aquifer is modelled fairly closely by
subdividing the formation into small blocks. This results in a complex series of equations
describing the fluid flow which are solved by numerical or semi-numerical methods.
(b) The drained area is modelled by a single block to preserve the global features and
inhomogeneities in the rock and fluid properties are averaged out or substituted by a simple
relationship or pattern of features (such as a fracture set, for example). The simplifications
allow the equations of flow to be solved analytically.
25
Idealized Flow Patterns
There are a number of idealised flow patterns representing fluid flow in a reservoir: linear,
radial, hemispherical, spherical. The most important cases are the linear and radial models
since both of them can be used to describe water encroachment from an aquifer into a
reservoir, and the radial model can be used to describe the flow of fluid around the wellbore.
In real life, none of these geometries is found precisely in petroleum reservoirs. However, for
engineering analysis purposes, the actual may be assumed represented by one of these
idealized geometries.
In linear flow, the flow lines are parallel and the cross-section exposed to flow is constant. In
the linear horizontal geometry, the flow is considered to be along the axis (in the x direction)
of a cuboid of porous rock. The total length of the cuboid is L and fluid flows into the rock at
the left end (x=0) and exits at the right end (x=L). There is no flow in the other directions at
any time i.e. Uy = Uz =0 for all values of x, y, z and time, t (in a real reservoir, there may be
flows in different directions in different parts of the reservoir and there may be cross flows
from different layers within the reservoir). The rock is 100% saturated with the fluid.
26
Spherical Flow
The flow lines are straight and converge toward a common centre in three dimensions.
Steady-state refers to the situation in which the pressure and the rate distribution at every
point throughout a system adjust instantaneously to a change in pressure or flow rate in any
part of the system. Therefore, the pressure in the reservoir remains constant with time.
No real system can respond instantaneously, but when the dimensions of the system are not
too large, and the reservoir properties are favourable, the readjustment time is small and can
be assumed instantaneous for practical purposes. For example, in typical radial systems, the
readjustment time varies from about 0.5 days in gas wells, 2 days in oil wells And 430 days
in water aquifers. Hence most aquifers are not described by steady-state equations.
Unsteady state is the situation in which the pressure and/or the flow rate vary with time.
27
These differences in the flow regimes have ramifications in practical reservoir engineering
since working solutions to the diffusivity equation are usually limited to a particular flow
regime. For instance, in a pressure build up test in a well, the determination of an accurate
average reservoir pressure will depend strongly on the flow regime the well is in and
therefore which working solution is used.
Initially, the pressure response can be described using a transient solution which assumes
that the pressure response at the wellbore during this period is not affected by the drainage
boundary of the well and vice versa. This is referred to as the infinite reservoir case, since
during the transient flow period, the reservoir appears to be infinite in extent with no limits to
the fluid available to expand and drive the system. The transient period is followed by the
late-transient when the boundaries start to affect the pressure response. This is analogous to
the pressure disturbance having moved along the line of tubes in the model in figure 1. The
nature of the boundaries affects the type of solution used to describe the pressure change
since a well may drain an irregularly shaped area where the boundaries are not symmetrical
or equidistant from the well.
The next phase in the pressure decline is the semi-steady state or pseudo steady state where
the shape of the pressure profile in the reservoir is not changing through time and the
wellbore pressure is declining at a constant rate. It is analogous to the model depicted in
figure 1 where the level of water in all of the tubes is falling and no additional water is being
added to tube 10 to maintain absolute pressure profile. If the pressure profile developed in the
reservoir around the well had remained constant, true steady state conditions would have
occurred and the steady state solutions as mentioned in the previous section would have
applied.
28
MATHEMATICAL BASIS OF ANALYTICAL MODELING
By defining the physical laws that apply in a system, we can formulate mathematical
equations which govern the processes within the system. Therefore, the underlying physical
principles of flow in porous media can be better understood by considering the differential
equations and solutions of interest of various reservoir systems.
1. Governing equations
2. Boundary conditions
3. Initial conditions
Governing Equations
The basic equations are obtained by combining several physical principles, namely:
For most simple flow processes, only the first three equations above are required to
adequately describe the systems.
Continuity Equation
The law of conservation of mass can be expressed mathematically as:
For linear horizontal flow in the x-direction, the continuity equation for fluid flow in porous
media can be expressed in the form:
Rate Equation
Darcy’s equation can be expressed for linear flow as:
29
And for radial flow,
Equation of State
An equation of state is required to be able to describe the behaviour of the volume (or
density) of a fluid with changes in pressure and temperature. This behaviour is important not
only because of the presence of fluid viscosity in the rate equation but also because of fluid
compressibility. From the definition of compressibility,
or,
Alternatively,
and
For engineering purposes, c = 0 for incompressible fluids, while c is very small but not zero
for slightly compressible fluids. Water is normally assumed incompressible while reservoir
oil is slightly compressible. For compressible gases, c is relatively large and cannot be
neglected. These definitions simplify many flow equations.
To obtain
30
and simplifying by assuming:
We obtain:
If we substitute Ur in the equation using Darcy’s equation for radial flow, we obtain:
Note:
The diffusivity equation is one of the most often used in reservoir engineering. It can be used
to establish the pressure-rate relationships and hence the performance of a well. However, it
is important to take note of the assumptions. is called diffusivity constant or
hydraulic diffusivity. The name comes from its application to the radial flow or diffusion of
heat. The diffusivity constant determines the rate at which fluid will readjust in response to a
pressure disturbance imposed on the system.
31
The diffusivity equation includes time dependency through the right hand side term. Thus, it
can describe transient, or time dependent flow. If the flow reaches a state where it is no
longer time dependent, we denote the flow as steady state.
Two systems to which the radial diffusivity equation can easily be applied are water influx
and wellbore production.
(a) In the case of water encroachment from an aquifer into a reservoir, the inner boundary
corresponds to the mean radius of the reservoir, the outer boundary to the mean radius of the
aquifer.
(b) In the case of the pressure regime around a wellbore, the inner boundary corresponds
to the wellbore radius, rw, the outer boundary to the boundary of the drainage area.
Therefore,
Or,
Or,
However, because gas expands as pressure drops,. The velocity is greater at the downstream
end than at the upstream. Using the gas law equation between the reservoir and surface
conditions, we have:
Or,
32
Therefore,
If the flow rate (qm) is determined at the mean pressure Pm = (P1+P2)/2 and reservoir
temperature and substituting into the above equation, we have:
Thus, the law for linear flow of gases is the same for liquids, provided the gas flow rate is
expressed at the mean pressure and flowing Temperature
Therefore,
Or,
Therefore,
33
In field units, we have:
Where, re = external or drainage radius and rw = wellbore radius. The external or drainage
radius re is usually inferred from the well spacing.
Boundary conditions
There are basically two types of BC's; pressure conditions (Dirichlet conditions) and rate
conditions (Neumann conditions). The most common boundary conditions in reservoirs,
including sources/sinks, are discussed in the following.
Dirichlet conditions
When pressure conditions are specified, we normally would specify the pressures at the end
faces of the system in question. Applied to the simple linear system described above, we may
have the following two pressure BC's at the ends:
Neumann condition
Alternatively, we would specify the flow rates at the end faces of the system in question.
Using Darcy's equation at the ends of the simple system above, the conditions become:
For reservoir flow, a rate condition may be specified as a production or injection rate of a
well, at some position of the reservoir, or it is specified as a zero-rate across a sealed
boundary or fault, or between non-communicating layers.
34
Initial condition (IC)
The initial condition specifies the initial state of the primary variables of the system. The
initial pressure may be a function of position. For non-horizontal systems, hydrostatic
pressure equilibrium is normally computed based on a reference pressure and fluid densities:
P(rw, t) = constant
3. Shut in well
P(rw,t) = f(t)
35
Solutions to the Diffusivity Equation
For most practical purposes, the solutions to the diffusivity equation can be grouped
according to the flow regime that they represent: steady-state, semi-steady-state (pseudo
steady state) or unsteady state (transient).
36
depend on the number of boundary conditions, but in the main there are a few sensible
conditions representing the majority of reservoir performance.
Outer Boundary
(a) If there is no flow across the outer boundary it is a closed system and the flow velocity
will equal zero. The pressure gradient will also be zero.
(b) If there is flow across the outer boundary, the reservoir pressure will be maintained at a
constant value equal to the initial reservoir pressure, Pi.
Inner Boundary
There are two main cases for the inner boundary which represent either maintaining a
constant pressure or a constant flow rate. These are representative of possible flow regimes in
the reservoir during either water flooding or production from a well.
The constant terminal rate solution for all values of the flowing time was presented by Hurst
and van Everdingen in 1949. They solved the radial diffusivity equation using the Laplace
transform for both the constant terminal rate and constant terminal pressure cases. The full
equation contains, as one of its components, an infinite summation of Bessel functions which
are required to describe the complex wellbore pressure response during the late transient
period. Simple solutions can be obtained for the transient and semi-steady state flow. The
solution describes pressure drop as a function of time and radius for fixed values of external
radius, re, and wellbore radius, rw, rock and fluid properties
The disadvantage is that the solution works for infinite acting reservoirs only and if barriers
are met, then the solution fails to represent the true flow regime. The technique of
superposition can be used to combine the effect of more than one well in an infinite acting
reservoir and this technique can represent the effect of a barrier. The barrier is equivalent to
the pressure disturbance produced by a second, imaginary well producing at the same rate
and having the same production history as the real well with both these wells in an infinite
acting reservoir. This solution has found a lot of use in well test analysis.
37
In constant terminal rate problems, the flow rate at the well was given by
38
Range of Application and Limitations to Use
The Ei function has limitations on its application: it cannot represent the initial flow into a
wellbore since the assumption that the wellbore is a line is obviously not the case and some
time has to elapse for the relative size of the wellbore to have a negligible effect on the flow
and expansion of the fluid in the majority of the reservoir.
39
required as part of the reservoir management: hydraulic fractures or acidizing workovers are
performed on wells to bypass zones of reduced permeability which have developed during
production.
In these cases, the Ei equation fails to model the pressure drop in these wells properly since it
uses the assumption of uniform permeability throughout the drainage area of the well up to
the wellbore. Figure 7 shows the effect of a reduction in permeability around a wellbore. The
skin zone does not affect the pressures in the rest of the formation remote from the wellbore,
i.e. it is a local effect on the pressure drop at the wellbore. It can be shown that if the skin
zone is considered equivalent to an altered zone of uniform permeability, ks, with an outer
radius, rs, the additional drop across this zone, can be modelled by the steady-state radial
flow equation. It is assumed that after the pressure perturbation caused by the start of
production has moved off into the rest of the formation, the skin zone can be thought of as
being in a steady state flow regime. The pressure drop associated with the presence of a skin
is therefore the difference in the bottomhole flowing pressures at the well when skin is
present and when skin is not present.
Superposition
In the analyses so far, the well flow rate has been instantly altered from zero to some constant
value. In reality, the well flow rates may vary widely during normal production operations
and of course the wells may be shut in for testing or some other operational reason. The
reservoir may also have more than a single well draining it and consideration must be taken
of this fact. In short, there may be some combination of several wells in a reservoir and/or
several flowrates at which each produce. The calculation of reservoir pressures can still be
done using the previous simple analytical techniques if the solutions for each rate change, for
example, are superposed on each other. In other words, the total pressure drop at a wellbore
can be calculated as the sum of the effects of several flow rate changes within the well, or it
may be the sum of the effects caused by production from nearby wells.
There is also the possibility of using infinite acting solutions to mimic the effects of barriers
in the reservoir by using imaginary or image wells to produce a pressure response similar to
that caused by the barrier. Mathematically, all linear differential equations fulfill the
following conditions:
These two properties form the basis for generating the constant terminal rate and constant
terminal pressure cases. The solutions may be added together to determine the total effect on
40
pressure, for example, from several applications of the equation. This is illustrated if a typical
problem is considered: that of multiple wells in a reservoir.
Assuming unsteady state flow conditions, the line source solution can be used to
determine the pressure in well Y. It is assumed here that the logarithm function can be used
for well Y itself and that there will be a skin around the well. The effects of wells X and Z
can be described by the Ei function. There is no skin factor associated with the calculation of
pressure drop caused by these wells, since the pressure drop of interest is at well Y (i.e. even
if wells X and Z have non-zero skin factors, their skin factors affect the pressure drop only
around wells X and Z).
41
INTRODUCTION TO NUMERICAL MODELING
Generally speaking, analytical solutions to reservoir flow equations are only obtainable after
making simplifying assumptions in regard to geometry, properties and boundary conditions
that severely restrict the applicability of the solution. For most real reservoir fluid flow
problems, such simplifications are not valid. Hence, we need to solve the equations
numerically.
Discretization
Flow equations can be solved numerically by using standard finite difference approximations
for the derivative terms. First, the x-coordinate must be subdivided into a number of discrete
grid blocks, and the time coordinate must be divided into discrete time steps. Then, the
pressure in each block can be solved for numerically for each time step.
Applying Taylor series to our pressure function, we may write expansions in a variety of
ways in order to obtain approximations to the derivatives in the linear flow equation.
By adding these two expressions, and solving for the second derivative, we get the following
approximation:
or, by employing the grid index system, and using superscript to indicate time level:
This is called a central approximation of the second derivative. Here, the rest of the terms
from the Taylor series expansion are collectively denoted O x2 ) , thus denoting that they
x2 . This error term, sometimes called
42
discretization error, which in this case is of second order, is neglected in the numerical
solution. The smaller the grid blocks used, the smaller will be the error involved. Any time
level could be used in the expansions above. Thus, we may for instance write the following
approximations:
43
44
45
46
Discussion of the formulations
Obviously, the explicit formulation is simpler to use than the implicit formulation, as explicit
expressions for pressures are obtained directly. Discretization errors are the same for the two
formulations. The amount of work involved is less for the explicit case. In one-dimensional
solutions, this may not have any importance, however, in two and three dimensional cases
with large numbers of grid blocks, the difference in computational time per time step will
become large.
47
However, the explicit formulation is seldom used. As it turns out, it becomes unstable for
large time steps. It will
be shown below, using von Neumann stability analysis, that the explicit formulation has the
following stability requirement:
This requirement has the consequence that time step size is limited by both grid block size
and properties of the rock and fluid. This limitation may be severe, as it is the grid block with
the smallest value of
48
49
DISCRETIZATION OF FLOW EQUATIONS
Finite difference approximations of the partial derivatives appearing in flow equations may
be obtained from Taylor series expansions. We shall now proceed to derive approximations
for all terms needed in reservoir simulation.
Spatial discretization
50
production and injection wells. For the simple one-dimensional system, a variable grid
system would be:
Time discretization
We showed earlier that by expansion backward in time:
the following backward difference approximation with first order error term is obtained:
51
52