Victor Waribugo Paraphrased
Victor Waribugo Paraphrased
Victor Waribugo Paraphrased
The geological model, reservoir description, and analysis of recovery factor improvements are
all part of the distinct process that begins with each simulation study. When it comes to
practical reservoir systems, numerical reservoir simulators are the go-to tool for petroleum
engineers seeking reliable solutions. The purpose of this research is to model multi-phase flow
in porous media using a numerical reservoir simulator that is two dimensions in depth. By
defining the fundamental assumptions of the simulator, one can gain a better grasp of the
physical processes and reservoir fluid conditions, which in turn allows for the formulation of
the partial differential equations (PDEs). Now we have a system of coupled, nonlinear partial
differential equations (PDEs). Afterwards, the PDEs are discretized by utilizing the finite-
difference method, which is based on Taylor's series, to transform them into non-linear
algebraic equations. In order to find the solution to the equations involving the distributions of
pressure and fluid saturation in the reservoir, the non-linear algebraic equations that result are
first linearized into linear algebraic equations. This project discusses the aim, objectives, scope
of this study as well as the significance of the study and presents a comprehensive and explicit
look at the context of reservoir simulation and reviewing the works of pioneers in the field of
reservoir simulation, advances and trends in reservoir simulation as well as the gaps identified
in the literature. It then describes the process of designing a reservoir simulator, starting from
the mathematical model to the computer model as well as presenting the methodology used in
this study (Implicit Pressure Explicit Saturation which is considered one of the profound
method of solving multi-phase flow equations. Also included are the outcomes of the created
simulator under the Dirichlet boundary condition. These obtained results were discussed and
appraised while validating these results using the material balance approach and then concludes
by summarizing the results and observations that the pressure saturation variation in a
homogeneous 2D dimensional anisotropic reservoir strongly depends on the reservoir
boundary effects and the initial reservoir condition.
CHAPTER ONE
INTRODUCTION
1.1 Background to the Study
There are a plethora of applications for reserve estimation, including but not limited to: oil and gas
reserve exploration, development, and production; interest and profit evaluation; investment
decisions in the oil and gas sector; field performance evaluation; and many more. There are
currently five known methods for reserve estimation, ranked from least to most accurate: the
analogy method, the volumetric method, the decline curve method, the material balance method,
and the reservoir simulation method. This work focuses on the latter two methods, which have
become the industry standard for solving reservoir engineering problems.
The goal of reservoir simulation is to create a tool for predicting the performance of hydrocarbon
reservoirs under different operating strategies. This tool is developed by combining mathematical
concepts, computer programming, reservoir engineering, and physics (Aziz, K. and Settari, A.
1979).
The practice of reservoir simulation dates back to the 1930s, when petroleum engineering first
emerged. However, the term "numerical simulation" didn't catch on until the early 1960s, when
predictive methods were transformed into advanced computer programs. These software
applications were revolutionary because they solved massive sets of finite-difference equations
that characterize transient multiphase flow in heterogeneous porous media in two and three
dimensions. Thanks to numerical mathematical methods developed for solving massive systems
of finite-difference equations and the rapid evolution of large-scale, ultra-high speed digital
computers, these computer programs have advanced to a new level.
Because fluid flow in petroleum reservoirs (also called porous media) is typically a very
complicated phenomenon, analytical solutions to mathematical models can only be obtained by
making simplified assumptions about the reservoir's geometry, reservoir characteristics, and
boundary conditions. Because of the non-linearity of the governing equations, the heterogeneity
of the fluid, the irregular shape of a reservoir system, and the complex behavior of multiphase flow,
it is often impossible to develop analytical solutions for practical problems using such
simplifications. Given these restrictions on analytical methods, an alternate strategy is offered:
solving these models using a finite difference method or another appropriate numerical method.
Investment decisions on large exploration and development projects still frequently make use of
numerical reservoir simulation, which is a valuable and important tool. Major oil and gas projects
necessitate decisions like starting secondary and enhanced oil recovery methods, optimizing or
improving field development plans, and determining the commercial viability of underground
reserves. With the development and understanding of reservoir simulation, it is possible to employ
it in the early phases of development, before the hydrocarbon pool is put on production, to avoid
unnecessary expenditures and to effectively carry out proper planning.
When creating a simulator, two main schools of thought emerged: mathematics and engineering.
a) A "mathematical approach" is a set of procedures for deriving and discretizing
PDEs in order to derive the nonlinear algebraic equations. The mathematical
approach was crucial for simulator developers in obtaining the nonlinear algebraic
equations, also called finite-difference equations, and other similar terms.
b) But the engineering method is more in line with the way engineers think and with
the physical definitions of the words used in the flow equations. In the case where
second-order approximations are employed by the mathematical approach,
however, both the engineering and mathematical methods handle boundary
conditions equally accurately.
1.2 Statement of the problem
Reservoir parameters like saturation, pressure, and heterogeneity cannot be determined using
either material balance or decline curve analysis. Assuming average reservoir properties and
treating the reservoir like a tank, the material balance technique evaluates the performance of oil
and gas reservoirs using reservoir engineering calculations. A field's production history can also
be used in decline curve analysis to foretell how well the field will do in the future. Therefore, an
issue arises due to the disregard for the geometry of the reservoir structure.
Therefore, it is necessary to create a reservoir simulator that considers the reservoir's geometry and
provides an estimate of the recoverable reserves within a specified time period. This is particularly
important during the exploration and development phase, when management must decide whether
to invest in the project or not based on economic and risk factors. However, numerical reservoir
simulators utilizing numerical models that account for reservoir geometry and the quantity of
flowing fluids are often necessary because analytical solutions to practical problems in the
reservoir system cannot be developed in many cases owing to the complex behaviors of multiphase
flow, non-linearity of the governing equation, heterogeneity, and the irregular shape of a reservoir
system.
CHAPTER TWO
LITERATURE REVIEW
2.1: Conceptual Review
Simulating the operation of a reservoir system is known as reservoir simulation. This method
involves the use of computer models to forecast the flow of fluids (such as water, gas, and oil)
through rocks with microscopic fissures. The rocks that are found underground and are known to
contain or store oil and gas are known as porous media. The oil industry now uses reservoir
simulation as a standard for solving reservoir engineering problems, and it also helps researchers
and engineers plan the best way to extract gas and oil from rocks. With the use of reservoir
simulation, smart decisions can be made to increase the economic recovery of hydrocarbons from
reservoirs by predicting how the reservoirs will perform in the future.
Reservoir simulation is an involved process that begins with a static model of the geology and ends
with a dynamic model of the reservoir. As can be seen in figure 2.1 below, a reservoir simulator is
built from the ground up with a solid foundation in mathematics and applied science. It all begins
with solving a mathematical model of fluid flow in a specific reservoir-well system using finite
difference equations, then moves on to numerical modeling and computer programming, and
finally produces the simulation software.
2.1.1: The History and Evolution of Reservoir Simulation, from the Early Analytical
Methods to the Modern Numerical Techniques and Software.
The history and evolution of reservoir simulation can be divided into three main stages:
From the latter half of the nineteenth century until the middle of the twentieth, we were in the
analytical era. At this point, reservoir engineers modeled fluid flow using analytical solutions to
simplified equations. The concepts of conservation of mass, momentum, and energy, along with
the fluid equations of state, formed the basis of these equations. Among others, Darcy, Buckley-
Leverett, Muskat, Theis, and Fetkovich created some of the most renowned analytical solutions.
The material balance, decline curve, productivity index, and initial hydrocarbons in place were all
approximations that benefited from these solutions. Nevertheless, there were numerous drawbacks
to these methods. For example, they depended on constant boundary conditions, ignored gravity
and capillary effects, failed to account for compositional changes and phase behavior, and assumed
homogeneous and isotropic reservoirs.
Second, starting in the middle of the twentieth century and continuing up to the present day, was
the numerical era. Now that we've gotten to the fun part, reservoir engineers have been using
numerical methods to solve increasingly complicated and realistic fluid flow equations. These
equations followed the same principles as the analytical ones but included additional physical
phenomena like gravity, capillarity, compositional variation, phase behavior, thermal effects,
wellbore dynamics, etc., in addition to account for heterogeneity and anisotropy. Numerical
methods such as finite difference, streamline, finite element, and finite volume were among the
most popular. A system of algebraic or differential equations could be solved using iterative or
direct techniques. These methods needed to discretize the reservoir into a grid of cells or elements,
assign properties to each cell or element, apply boundary and initial conditions, and so on. While
numerical methods improved reservoir modeling in terms of accuracy and flexibility, they came
at the cost of increased data input and computing resources.
Coming in at the tail end of the twentieth century and continuing to this day is the software era,
the third and final stage. Reservoir engineers executed reservoir simulation tasks at this stage using
specialized software packages. Commercial companies, research organizations, or academic
institutions created these software packages. They supplied data management systems,
optimization algorithms, methods for analyzing uncertainty, graphical tools for visualizing data,
and user-friendly interfaces. Eclipse1, CMG2, VIP3, GEM4, tNavigator, INTERSECT, and many
more are among the most widely used software packages for reservoir simulation. Reservoir
engineers now have easier and more efficient access to reservoir simulation thanks to these
software packages, but there were some downsides, like high prices and incompatibilities.
Although numerical solutions to multiphase, multidimensional flow problems were not possible
until the 1950s, digital computing techniques and equipment had already been developed at that
point.
In their study, Beckner et al. (2001) compared two grid systems: the block-centered grid and the
point distributed grid. They looked at features like grid cell representation, geometry
representation, heterogeneity representation, numerical accuracy and efficiency, implementation
and data storage, and more. Beckner highlighted specific instances where one grid system was
preferred over the other and outlined the benefits and drawbacks of each grid system so that users
can choose the one that best suits their needs. Nevertheless, there are a number of considerations
that go into selecting between block-centered and point distributed grids, including reservoir
complexity, required accuracy, available computational resources, and simulation goals. It is also
possible to combine the two approaches, as seen in hybrid grids, to achieve a compromise between
accuracy and computational efficiency.
The following conclusions can be drawn from analysis of the two approaches according to Abou-
Kassem, et al.
• The engineering approach is closer to the physical meaning of the various terms in the
algebraic flow equations but the mathematical approach can be used to study the analysis
of local truncation errors, consistency, convergence, and stability. Due to this end, it may
be concluded that the mathematical and engineering approaches complement each other.
• The engineering approach rather than the mathematical approach is closer to the engineer's
thinking. While the mathematical approach is to first derive the PDEs, followed by
discretizing the reservoir, and finally discretizing the PDEs, the engineering approach first
discretizes the reservoir, then derives the algebraic flow equations with time integrals, and
finally approximates the time integrals to obtain the same nonlinear algebraic flow
equations.
When calculating fluid flow, a generalized version of Darcy's law accounts for the influences of
capillary, viscous, and gravity forces. Reservoir simulation entails three steps. Among these steps
are choosing a physical reservoir system, creating mathematical models (equations) to describe
that model, and writing code to numerically solve those equations (simulators).
According to Archer (1983), there are two main factors that determine whether a reservoir model
is successful: first, the equations must accurately depict the physical aspects of fluid flow; and
second, the reservoir and well system must be in equilibrium.
the capacity of the grid attributes to depict the reservoir details in one, two, or three dimensions.
Henry Darcy, a French engineer, was the first to empirically formulate how fluids flow generally
in 1856. This is significant because reservoir simulation entails modeling the flow of fluids within
the reservoir into the wellbore as well as how these fluids flow from the reservoir into the grid
blocks of the reservoir. A single fluid's flow rate through a porous medium is given by the formula
that takes the potential gradient, the cross-sectional area normal to the flow direction, and the
viscosity of the fluid into account. Modern descriptions of fluid flow in porous media are based on
this relationship, which is now called Darcy's law. Here is the simplified version of Darcy's law:
v = (-k/μ)∇Φ
where v is the velocity of the flow;
k is the permeability of the rock;
μ is the viscosity of the fluid; and
Φ is the potential gradient which provides the force for fluid flow.
In 1930, researchers conducted experiments to learn more about the movement of immiscible
fluids; their findings showed that when two fluid phases are present, the rock's conductance to both
phases is reduced. A strong function of the phase saturations within the porous medium is the
relative permeability of the rock to each phase of an immiscible two-phase fluid system, as
demonstrated by the works of Wyckoff and Botset. Leverett established a relationship between
capillary pressure and rock porosity and permeability in his work by introducing the notion of the
Leverett J-function. Additionally, he demonstrated and concluded that relative permeability is not
influenced by fluid viscosity but rather by various factors such as the distribution of porosity (pore
size) across the reservoir rock, displacement pressure, pressure gradient, and fluid saturation. In
1955, Rapport derived a single equation for immiscible, incompressible two-phase flow by
combining the three-dimensional partial differential equations. Fagin and Stewart introduced a
general flow model in 1965 called a two-dimensional multiphase reservoir simulator. This model
accurately represented the time-dependent variations in pressure and multiphase saturation.
With the exclusion of capillary effects, West, Garvin, and Sheldon conducted a numerical study
of horizontal, linear, and radial systems driven by gas. They employed a finite difference grid
system and implicit methods to solve the resulting system of linear equations.
Two incompressible, immiscible fluids were modeled by Hovanessian and Fayers for a one-
dimensional inclined flow. Their findings demonstrated that the phase saturations and pressure
distribution were significantly affected by the incorporation of capillary pressure and gravity
forces. Similar to what the Buckley-Leverett method typically achieves at high flow rates, Douglas
et al. similarly investigated a horizontal, one-dimensional system that incorporates capillary
pressure. The outcomes demonstrated that this model yields comparable results.
Models using two-dimensional techniques were found to be extremely unstable in the early studies.
Nevertheless, a stable approach to these two-dimensional problems was introduced by Douglas in
1958 with his work on the "Alternating Direction Implicit Procedure" (ADIP). The ADIP, a
classical finite difference treatment, was used to accurately model the two-dimensional flow of
inimiscible fluids by Douglas, Peaceman, and Ratchford in 1959.
Commonly used to aid the reservoir engineer in describing the reservoir's behavior, the block oil
models provided by Aziz, K. et al. (1979) are shown in figures 2.3(a), (b), and (c) below.
A two-dimensional model for describing areal performance or vertical conformance in a reservoir
is one example of these models. The 2-D areal model, as shown in figure 2.3(a) above, is a useful
tool for describing situations where fluids do not move vertically, such as in a thin sand reservoir.
On the other hand, it can also be applied to thick sands when the permeability is very consistent,
meaning that there is no permeability layering. Figure 2.3(b) shows the 2-dimensional cross-
sectional model, which is commonly used to simulate a slice of a field and is particularly useful
for determining completion intervals and stratification effects.
Figure 2.3(c) shows a three-dimensional model that can take both areal and vertical conformance
into consideration at the same time. Any kind of simulation study is within its capabilities. When
compared to 2-D models, however, the time spent on computer programming and analyzing study
results is significantly higher.
Each of these models has the potential to be a powerful resource for reservoir engineers, but in the
wrong hands, they can yield erroneous and misleading conclusions.
Advantages:
i. It is very simple to use.
ii. It can be easily extended from 1-D, to 2-D, and 3-D as well.
iii. It is compatible with certain aspects of the physics of two- and three-phase flow.
Disadvantages:
i. Grid dependency.
ii. Numerical dispersion.
In 1965, Fagin and Stewart introduced an alternate approach to solving two-phase, two-
dimensional flow problems called the Implicit Pressure Explicit Saturation (IMPES), which was
later adopted by Douglas et al. In 1965, Thomas. E. Gallant introduced a new method called the
Sequential Solution (SS) method to address stability issues with the IMPES solution method.
Nonlinear algebraic equations, according to Ertekin et al. (2001), must be "linearized," or
transformed into linear equations, before they can be solved using standard algebraic methods. It
is possible to solve the simulator equations (finite-difference equations) using any of the methods
used to solve linear equations derived from the finite-difference method after they have been
transformed into linear equations. There are two main categories into which these approaches fall:
direct methods and iterative methods.
One distinguishing feature of direct solution methods is their ability to generate the solution vector
for a specific set of linear equations in a predetermined amount of operations. By applying these
techniques, the initial equations are transformed into simpler, equivalent equations. Some
examples of such techniques are LU (Lower-Upper) decomposition, Gaussian elimination, and
Gauss-Jordan. The direct solver could produce an exact solution after a constant number of
computations if the computer could hold an infinite number of digits, according to Ertekin et al.
(2001). However, due to the finite word length of all real computers, the solution obtained by using
a direct solver will be prone to round-off errors.
Due to the necessity of storing the coefficient matrix and the right vector throughout the solution
process, the direct solver is also constrained by its excessive storage requirements. The high
memory and computational demands of direct solvers make them impractical for large-scale or
sparse systems, despite their reliability and accuracy.
Figure 2.4, taken from Ogbe (2012), Lecture notes on applied reservoir simulation, depicts the
direct solution method.
CHAPTER THREE
METHODOLOGY
3.1. Development of the simulator
In order to build a reservoir simulator, one must first have a thorough comprehension of the fluid
flow processes taking place in the reservoir. Only then can one derive the partial differential
equations that represent these processes, which are too complicated to be solved manually. The
mathematical method and the engineering method are the two main schools of thought when it
comes to creating a reservoir simulator. The reservoir engineering method was first proposed by
Aziz (1993). The following are the main components of this project, which is meant to model
multiphase flow in porous media using a two-dimensional reservoir simulator:
1. Formulate the partial differential equations of the model based on the oil and gas
reservoir characteristics, using the three basic laws governing fluid flow in porous media.
2. Divide the reservoir into grids and then discretize the formulated partial differential
equations in both space and time so as to obtain a linear system of equations.
3. Select an appropriate ordering scheme to obtain an order of coefficients of the linear
system of equations and then compute the pressure and saturation per grid of the reservoir
for each time step and thus generating the pressure and saturation map for each grid
present in the reservoir.
4. Write codes for the system of equations using python programming language.
5. Finally validate the simulator using the material balance method.
Three kinds of model are usually employed in the development of any reservoir simulator
which include the mathematical model, numerical model, and the computer model.
𝑞𝑖𝑛 𝑆𝑤 𝑞𝑜𝑢𝑡
𝑆𝑔
𝑆𝑜
𝑉
Also, porosity is defined as ∅ = 𝑝⁄𝑉 → 𝑉𝑝 = ∅𝑉𝑏 𝑎𝑛𝑑 𝑉𝑏 = 𝐴∆𝑥
𝑏
Applying Taylor’s series to the left hand side of eqn (3.06), we have
𝜕(𝜌𝑖 𝑞𝑖 )
[𝜌𝑖 𝑞𝑖 ⌉𝑥 − 𝜌𝑖 𝑞𝑖 ⌉𝑥+∆𝑥 ] = −∆𝑥 ----------------------------------------(3.07)
𝜕𝑥
𝜕(𝜌𝑖 𝑈𝑖 ) 𝜕(𝜌𝑖 𝑆𝑖 ∅)
−𝐴 =[ + 𝑞̇ 𝑛𝑒𝑡 ] 𝐴---------------------------------------(3.13)
𝜕𝑥 𝜕𝑡
The above eqn (3.14) is the continuity equation for oil, gas and water.
However, in vector format, it is expressed as
𝜕
−∇. (𝜌𝑖 𝑈𝑖 ) = 𝜕𝑡 (𝜌𝑖 𝑆𝑖 ∅) + 𝑞̇ 𝑛𝑒𝑡 -----------------------------------------------------(3.15)
𝜕 𝜕 𝜕
Where ∇= i 𝜕𝑥 + 𝑗 𝜕𝑦 + 𝑘 𝜕𝑧
By applying equation of state (EOS) for both an oil and gas system, we have
𝜌𝑈 = 𝑚𝑎𝑠𝑠 𝑟𝑎𝑡𝑒 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎----------------------------------------------------(3.16)
Therefore, for an oil system the left hand side of eqn (3.14) can be expressed as
𝜌𝑖 𝑈𝑖 = 𝑚𝑎𝑠𝑠 𝑟𝑎𝑡𝑒 𝑜𝑓 𝑜𝑖𝑙 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎 𝑎𝑡 𝑆𝑇𝐶---------------------------------(3.17)
𝜌𝑖 𝑈𝑖 = 𝜌𝑜𝑆𝑇𝐶 ∗ 𝑉𝑜𝑆𝑇𝐶 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎------------------------------------------------(3.18)
𝑉
Recall that 𝑉𝑜𝑆𝑇𝐶 = 𝛽𝑜 . Therefore, we have
𝑜
𝑉𝑜
𝜌𝑖 𝑈𝑖 = 𝜌𝑜𝑆𝑇𝐶 ∗ 𝛽 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎----------------------------------------------------(3.19)
𝑜
Also, velocity is equal to volume (flow rate) per unit area. Thus, we have
𝑈
𝜌𝑖 𝑈𝑖 = 𝜌𝑜𝑆𝑇𝐶 ∗ 𝛽𝑜 ----------------------------------------------------------------------(3.20)
𝑜
𝑆𝑜 𝑉𝑝
𝜌𝑖 𝑆𝑖 ∅ = 𝜌𝑜𝑆𝑇𝐶 ∗ 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑣𝑜𝑙𝑢𝑚𝑒-----------------------------------------------------(3.22a)
𝛽𝑜
Recall that porosity is expressed pore volume per unit volume. Therefore eqn (3.22a) can thus be
written as
𝑆 𝑆
𝜌𝑖 𝑆𝑖 ∅ = 𝜌𝑜𝑆𝑇𝐶 ∗ 𝛽𝑜 ∅ = 𝜌𝑜𝑆𝑇𝐶 ∅ ∗ 𝛽𝑜 ---------------------------------------------------------(3.23)
𝑜 𝑜
By factoring out and dividing both sides of the equation by the constant term 𝜌𝑜𝑆𝑇𝐶 , eqn (3.24)
thus becomes
𝑈 𝜕 𝑆
−∇. (𝛽𝑜 ) = 𝜕𝑡 ( ∅ ∗ 𝛽𝑜 ) + 𝑞̅𝑜 -------------------------------------------------------------------(3.25)
𝑜 𝑜
𝑘𝑜 𝑘𝑘𝑟𝑜
Recall that 𝑈𝑜 = − ∇𝑃𝑜 and 𝑘𝑜 = − ∇𝑃𝑜 , eqn (3.25) thus becomes
𝜇𝑜 𝜇𝑜
𝜕 𝑘𝑘𝑟𝑜 𝜕 𝑘𝑘𝑟𝑜 𝜕 𝑆
( 𝐴𝑥 𝛻𝑃𝑜 ) ∆𝑥𝑖 + ( 𝐴𝑦 𝛻𝑃𝑜 ) ∆𝑦𝑖 = 𝜕𝑡 ( ∅ 𝛽𝑜 ) + 𝑞̅𝑜 -----------------------------------------
𝜕𝑥 𝜇𝑜 𝛽𝑜 𝜕𝑦 𝜇𝑜 𝛽𝑜 𝑜
-------------------(3.26)
𝑘𝑘𝑟𝑜
Let 𝜆𝑜 = 𝜇 . Eqn (3.26) thus becomes
𝑜 𝛽𝑜
𝜕 𝑆
∇. (𝜆𝑜 ∇𝑃𝑜 ) = 𝜕𝑡 ( ∅ 𝛽𝑜 ) + 𝑞̅𝑜 ---------------------------------------------------------------------(3.27)
𝑜
For the gas system, the left hand side of eqn (3.14) is expressed as
𝜌𝑖 𝑈𝑖 = 𝑚𝑎𝑠𝑠 𝑟𝑎𝑡𝑒 𝑜𝑓 𝑓𝑟𝑒𝑒 𝑔𝑎𝑠 𝑎𝑡 𝑆𝑇𝐶 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎 +
𝑚𝑎𝑠𝑠 𝑟𝑎𝑡𝑒 𝑜𝑓 𝑑𝑖𝑠𝑠𝑜𝑙𝑣𝑒𝑑 𝑔𝑎𝑠 𝑖𝑛 𝑜𝑖𝑙 𝑎𝑡 𝑆𝑇𝐶 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎 +
𝑚𝑎𝑠𝑠 𝑟𝑎𝑡𝑒 𝑜𝑓 𝑑𝑖𝑠𝑠𝑜𝑙𝑣𝑒𝑑 𝑔𝑎𝑠 𝑖𝑛 𝑤𝑎𝑡𝑒𝑟 𝑎𝑡 𝑆𝑇𝐶 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎 ---------------------------(3.28)
𝑈𝑖 𝜌𝑖 = 𝜌𝑔𝑆𝑇𝐶 ∗ 𝑉𝑔𝑆𝑇𝐶 𝑜𝑓 𝑓𝑟𝑒𝑒 𝑔𝑎𝑠 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎 + 𝜌𝑔𝑆𝑇𝐶 ∗
𝑉𝑔𝑆𝑇𝐶 𝑜𝑓 𝑑𝑖𝑠𝑠𝑜𝑙𝑣𝑒𝑑 𝑔𝑎𝑠 𝑖𝑛 𝑜𝑖𝑙 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎 + 𝜌𝑔𝑆𝑇𝐶 ∗
𝑉𝑔𝑆𝑇𝐶 𝑜𝑓 𝑑𝑖𝑠𝑠𝑜𝑙𝑣𝑒𝑑 𝑔𝑎𝑠 𝑖𝑛 𝑤𝑎𝑡𝑒𝑟 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎--------------------------------------------(3.29)
𝑉𝑔𝑆𝑇𝐶
Recall that 𝑅𝑠𝑜 = 𝑡ℎ𝑒𝑟𝑒𝑓𝑜𝑟𝑒, 𝑉𝑔𝑆𝑇𝐶 = 𝑅𝑠𝑜 𝑉𝑜𝑆𝑇𝐶
𝑉𝑜𝑆𝑇𝐶
𝜌𝑖 𝑈𝑖 = 𝜌𝑔𝑆𝑇𝐶 ∗ 𝑉𝑔𝑆𝑇𝐶 𝑜𝑓 𝑓𝑟𝑒𝑒 𝑔𝑎𝑠 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎 + 𝜌𝑔𝑆𝑇𝐶 ∗ 𝑅𝑠𝑜 𝑉𝑜𝑆𝑇𝐶 𝑜𝑓 𝑜𝑖𝑙 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎 +
𝜌𝑔𝑆𝑇𝐶 ∗ 𝑅𝑠𝑤 𝑉𝑤𝑆𝑇𝐶 𝑜𝑓 𝑤𝑎𝑡𝑒𝑟 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎---------------------------------------------------(3.30)
𝑉 𝑉
𝜌𝑖 𝑈𝑖 = 𝜌𝑔𝑆𝑇𝐶 ∗ 𝛽𝑔 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎 + 𝜌𝑔𝑆𝑇𝐶 ∗ 𝑅𝑠𝑜 𝛽𝑜 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎 + 𝜌𝑔𝑆𝑇𝐶 ∗
𝑔 𝑜
𝑉
𝑅𝑠𝑤 𝛽𝑤 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑎𝑟𝑒𝑎---------------------------------------------------------------------------(3.31)
𝑤
𝑉
𝑅𝑠𝑤 𝛽𝑤 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑣𝑜𝑙𝑢𝑚𝑒-----------------------------------------------------------(3.36)
𝑤
𝑆𝑤 𝑉𝑝
𝑅𝑠𝑤 𝑝𝑒𝑟 𝑢𝑛𝑖𝑡 𝑣𝑜𝑙𝑢𝑚𝑒---------------------------------------------------------(3.37)
𝛽𝑤
𝑝𝑜𝑟𝑒 𝑣𝑜𝑙𝑢𝑚𝑒
Since, 𝑝𝑜𝑟𝑜𝑠𝑖𝑡𝑦 = ⁄𝑣𝑜𝑙𝑢𝑚𝑒 (𝑏𝑢𝑙𝑘) , 𝑡ℎ𝑒𝑟𝑒𝑓𝑜𝑟𝑒
𝑆 𝑆 𝑆
𝜌𝑖 𝑆𝑖 ∅ = 𝜌𝑔𝑆𝑇𝐶 ∗ 𝛽𝑔 ∅ + 𝜌𝑔𝑆𝑇𝐶 ∗ 𝑅𝑠𝑜 𝛽𝑜 ∅ + 𝜌𝑔𝑆𝑇𝐶 ∗ 𝑅𝑠𝑤 𝛽𝑤 ∅------------------(3.38)
𝑔 𝑜 𝑤
𝑆 𝑆 𝑆
𝜌𝑖 𝑆𝑖 ∅ = 𝜌𝑔𝑆𝑇𝐶 ∗ ∅ [𝛽𝑔 + 𝑅𝑠𝑜 𝛽𝑜 + 𝑅𝑠𝑤 𝛽𝑤 ]---------------------------------------(3.38a)
𝑔 𝑜 𝑤
By combining both the left hand and right hand equations, the gas flow equation becomes
𝑈 𝑈 𝑈 𝜕 𝑆 𝑆 𝑆
−∇. {𝜌𝑔𝑆𝑇𝐶 [𝛽𝑔 + 𝑅𝑠𝑜 𝛽𝑜 + 𝑅𝑠𝑤 𝛽𝑤 ]} = 𝜕𝑡 (𝜌𝑔𝑆𝑇𝐶 ∗ ∅ [𝛽𝑔 + 𝑅𝑠𝑜 𝛽𝑜 + 𝑅𝑠𝑤 𝛽𝑤 ]) + 𝜌𝑔𝑆𝑇𝐶 𝑞̅𝑔 ---(3.39)
𝑔 𝑜 𝑤 𝑔 𝑜 𝑤
By factoring out and canceling out the constant term 𝜌𝑔𝑆𝑇𝐶 , we have
𝑈 𝑈 𝑈 𝜕 𝑆 𝑆 𝑆
−∇. {𝛽𝑔 + 𝑅𝑠𝑜 𝛽𝑜 + 𝑅𝑠𝑤 𝛽𝑤 } = 𝜕𝑡 (∅ [𝛽𝑔 + 𝑅𝑠𝑜 𝛽𝑜 + 𝑅𝑠𝑤 𝛽𝑤 ]) + 𝑞̅𝑔 ------------------------------(3.40)
𝑔 𝑜 𝑤 𝑔 𝑜 𝑤
𝑘𝑘𝑟𝑖
Recall that 𝑈𝑖 = − (∇𝑃𝑖 + 𝑟𝑖 ∇𝑧). By substituting yield into eqn (3.40), eqn (3.40) becomes
𝜇𝑖
𝑆 𝑆
𝑅𝑠𝑜 𝛽𝑜 + 𝑅𝑠𝑤 𝛽𝑤 ]) + 𝑞̅𝑔 ----------------------------------------------------------------------------(3.41)
𝑜 𝑤
𝑘𝑘
Recall that 𝜆𝑖 = 𝜇 𝛽𝑟𝑖 . This then makes eqn (3.41) to become
𝑖 𝑖
𝜕 𝑆 𝑆
𝛻. {𝜆𝑔 (𝛻𝑃𝑔 + 𝑟𝑔 𝛻𝑧) + 𝑅𝑠𝑜 𝜆𝑜 (𝛻𝑃𝑜 + 𝑟𝑜 𝛻𝑧) + 𝑅𝑠𝑤 𝜆𝑤 (𝛻𝑃𝑤 + 𝑟𝑤 𝛻𝑧)} = 𝜕𝑡 (∅ [𝛽𝑔 + 𝑅𝑠𝑜 𝛽𝑜 ]) +
𝑔 𝑜
𝑞̅𝑔 ----------------------------------------------------------------------------------------(3.42)
By neglecting the gravity term 𝑟𝑖 ∇𝑧, the 2D flow equation for the oil and gas flow model is thus
represented as
𝜕 𝜕 𝜕 𝑆 𝑆
{𝜆𝑔 (𝛻𝑃𝑔 ) + 𝑅𝑠𝑜 𝜆𝑜 (𝛻𝑃𝑜 )} ∆𝑥𝑖 + 𝜕𝑦 {𝜆𝑔 (𝛻𝑃𝑔 ) + 𝑅𝑠𝑜 𝜆𝑜 (𝛻𝑃𝑜 )}∆𝑦𝑖 = (∅ [𝛽𝑔 + 𝑅𝑠𝑜 𝛽𝑜 ]) + 𝑞̅𝑔 -
𝜕𝑥 𝜕𝑡 𝑔 𝑜
------(3.43)
3.3. The Numerical Model
The partial differential equation representing the mathematical model of the reservoir is very
challenging and complex to solve using analytical techniques hence the need then arises to put
the equation in a form that is compatible to the computer in order to easily provide the solutions
to the PDE. Thus, numerical methods were introduced to achieve this. The solutions provided by
these numerical methods often result in approximate solutions rather than the exact solutions.
Basically, there are three basic numerical models used for exist for determining the solutions to
the fluid flow equations and they include the finite difference method, the finite element method
and the finite volume method with the finite difference method being the most widely used
numerical method in reservoir simulation for the mere reason that it can be applied to reservoirs
of varying complexity and the ability for it to also handle irregular grid structures thus indicating
its flexibility.
Therefore,
𝑃(𝑥+Δ𝑥)−𝑃(𝑥)
𝑓 ′ (𝑥) = − 0Δ(𝑥) where 0Δ(𝑥) is the truncation error
Δ𝑥
Backward Difference Approximation: This is derived by applying the Taylor series to the
backward direction and is given as
(Δ𝑥)2 ′′
𝑃(𝑥 − Δ𝑥) = 𝑃(𝑥) − Δ𝑥𝑓 ′ (𝑥) + 𝑓 (𝑥) + ⋯
2
(Δ𝑥)2 ′′
′(
𝑃(𝑥 − Δ𝑥 ) − 𝑃(𝑥 ) = −Δ𝑥𝑓 𝑥 ) + 𝑓 (𝑥 ) + ⋯
2
𝑃(𝑥 − Δ𝑥) − 𝑃(𝑥) Δ𝑥 ′′
= −𝑓 ′ (𝑥) + 𝑓 (𝑥) + ⋯
Δ𝑥 2
𝑃(𝑥)−𝑃(𝑥−Δ𝑥) Δ𝑥
𝑓 ′ (𝑥) = + 𝑓 ′′ (𝑥)
Δ𝑥 2
Central Difference Approximation: The central difference approximation is the most widely used
technique in reservoir simulation and is derived by combining the forward difference and
backward difference as expressed thus:
(Δ𝑥)2 ′′
𝑃(𝑥 + Δ𝑥) = 𝑃(𝑥) + Δ𝑥𝑓 ′ (𝑥) + 𝑓 (𝑥) + ⋯
2
(Δ𝑥)2 ′′
𝑃(𝑥 − Δ𝑥) = 𝑃(𝑥) − Δ𝑥𝑓 ′ (𝑥) + 𝑓 (𝑥) + ⋯
2
2
𝑃(𝑥 + Δ𝑥) − 𝑃(𝑥 − Δ𝑥) = 2Δ𝑥𝑓′(𝑥) + 3 (Δ𝑥)3 𝑓 ′′′ (𝑥)
𝑃(𝑥+Δ𝑥)− 𝑃(𝑥−Δ𝑥) 2
= 𝑓′(𝑥) + 3 (Δ𝑥)2 𝑓 ′′′ (𝑥)
2Δ𝑥
The central difference scheme is also used to discretize the left-hand side of the PDE in eqn
(3.26) describing fluid flow in the x- direction and y directions as shown below
The central difference scheme is also used to discretize the left-hand side of the PDE in eqn
(3.43) describing fluid flow in the x- direction and y directions as shown below
𝜕𝑃𝑜
Using central differencing for
𝜕𝑥 𝑖+1⁄
2
𝜕𝑃𝑜
Also for
𝜕𝑥 𝑖−1⁄
2
𝜕𝑃𝑜 𝑃𝑜 𝑖,𝑗 −𝑃𝑜 𝑖−1,𝑗 𝑃𝑜 𝑖 −𝑃𝑜 𝑖−1
= = … … … ……………….. ..…………………… (3.61)
𝜕𝑥 𝑖−1⁄ 𝑥𝑖 −𝑥𝑖−1 Δ𝑥𝑖−1⁄
2 2
𝜕𝑃𝑔 𝜕𝑃𝑔
Also for and , we have
𝜕𝑥 𝑖−1⁄ 𝜕𝑥 𝑖+1⁄
2 2
𝜕𝑃𝑔 𝑃𝑔 −𝑃𝑔 𝑃𝑔 −𝑃𝑔
𝑖 𝑖−1 𝑖 𝑖−1
= = --------------------------------------------------------------(3.62)
𝜕𝑥 𝑖−1⁄ 𝑥𝑖 −𝑥𝑖−1 Δ𝑥𝑖−1⁄
2 2
𝜕𝑃𝑔 𝑃𝑔 −𝑃𝑔 𝑃𝑔 − 𝑃𝑔
𝑖+1 𝑖 𝑖+1 𝑖
= = ------------------------------------------------------------(3.63)
𝜕𝑥 𝑖+1⁄ 𝑥𝑖+1 −𝑥𝑖 Δ𝑥𝑖+1⁄
2 2
𝜕𝑃𝑜
For the y direction, we have 𝜕𝑦 𝑖+1⁄
2
𝜕𝑃𝑜
Also for
𝜕𝑦 𝑖−1⁄
2
𝜕𝑃𝑜 𝑃𝑜 𝑖,𝑗 −𝑃𝑜 𝑖−1,𝑗 𝑃𝑜 𝑖 −𝑃𝑜 𝑖−1
= = … … … ……………….. ..…………………… (3.65)
𝜕𝑦 𝑖−1⁄ 𝑦𝑖 −𝑦𝑖−1 Δ𝑦𝑖−1⁄
2 2
𝜕𝑃𝑔 𝜕𝑃𝑔
Also for and , we have
𝜕𝑦 𝑖−1⁄ 𝜕𝑦 𝑖+1⁄
2 2
𝜕𝑃𝑔 𝑃𝑔 −𝑃𝑔 𝑃𝑔 − 𝑃𝑔
𝑖+1 𝑖 𝑖+1 𝑖
= = ------------------------------------------------------------(3.67)
𝜕𝑦 𝑖+1⁄ 𝑦𝑖+1 −𝑦𝑖 Δ𝑦𝑖+1⁄
2 2
By substituting of eqns (3.60), (3.61), (3.62), (3.63), (3.64), (3.65), (3.66) and (3.67) into eqn
(3.59), we have:
𝜕
By similar computation, 𝜕𝑦 {𝜆𝑔 (𝛻𝑃𝑔 ) + 𝑅𝑠𝑜 𝜆𝑜 (𝛻𝑃𝑜 )}∆𝑦𝑖 can thus be expressed as
𝜕 𝑘𝑦𝑘𝑟𝑔 𝐴𝑦 𝑃𝑔 𝑖,𝑗+1 − 𝑃𝑔𝑖,𝑗
{𝜆 (𝛻𝑃𝑔 ) + 𝑅𝑠𝑜 𝜆𝑜 (𝛻𝑃𝑜 )}∆𝑦𝑖 = (𝛽𝑐 −
𝜕𝑦 𝑔 𝛽𝑔 𝜇𝑔 Δ𝑦𝑖+1⁄
2 𝑖+1⁄2
𝜕 𝜕
Therefore, {𝜆𝑔 (𝛻𝑃𝑔 ) + 𝑅𝑠𝑜 𝜆𝑜 (𝛻𝑃𝑜 )} ∆𝑥𝑖 + 𝜕𝑦 {𝜆𝑔 (𝛻𝑃𝑔 ) + 𝑅𝑠𝑜 𝜆𝑜 (𝛻𝑃𝑜 )}∆𝑦𝑖 =
𝜕𝑥
By substituting in eqns (3.26) and (3.43), the combined flow for the oil and gas flow model is
thus:
𝑇𝑔𝑦 (𝑝𝑔𝑖,𝑗+1 − 𝑝𝑔𝑖,𝑗 ) + 𝑇𝑔𝑦 (𝑝𝑔𝑖,𝑗−1 − 𝑝𝑔𝑖,𝑗 ) + 𝑅𝑠𝑜 𝑇𝑜𝑥 (𝑝𝑜𝑖+1,𝑗 − 𝑝𝑜𝑖,𝑗 ) +
𝑖,𝑗+1/2 𝑖,𝑗−1/2 𝑖+1⁄2,𝑗
𝑅𝑠𝑜 𝑇𝑜𝑥 (𝑝𝑜𝑖−1,𝑗 − 𝑝𝑜𝑖,𝑗 ) + 𝑅𝑠𝑜 𝑇𝑜𝑦 (𝑝𝑜𝑖,𝑗+1 − 𝑝𝑜𝑖,𝑗 ) + 𝑅𝑠𝑜 𝑇𝑜𝑦 (𝑝𝑜𝑖,𝑗−1 − 𝑝𝑜𝑖,𝑗 ) =
𝑖−1⁄2,𝑗 𝑖,𝑗+1/2 𝑖,𝑗−1/2
𝜕 𝑆 𝜕 𝑆 𝑆
[( ∅ 𝛽𝑜 ) + 𝑞̅𝑜 ] + [𝜕𝑡 (∅ [𝛽𝑔 + 𝑅𝑠𝑜 𝛽𝑜 ]) + 𝑞̅𝑔 ]…………………………….. (3.71)
𝜕𝑡 𝑜 𝑔 𝑜
The terms 𝑇𝑜𝑥 and 𝑇𝑔𝑥 represent the transmissibility between block i and i±1 through
𝑖±1⁄2,𝑗 𝑖±1⁄2,𝑗
block boundary 𝑥𝑖±1 and terms 𝑇𝑜𝑦 and 𝑇𝑔𝑦 represent the transmissibilities between
2 𝑖,𝑗±1⁄2 𝑖,𝑗±1⁄2
block j and j±1 through block boundary 𝑦𝑖±1 expressed in STB/D/psi. Transmissibility is a flow
2
term that denotes the ease of fluid transfer between two blocks.
This is the process of discretizing the time derivative at the right hand side of the PDE with respect
to the time variable. Two main method is the implicit formulation ( 𝑡 𝑛+1 ) and the explicit
formulation (𝑡 𝑛 ).
Developing a simulator involves several stages, with the computer model being the most
challenging of the stages with the mathematical model being the building block upon which the
numerical model would be employed to discretize the already developed PDE from the
mathematical model and then used to generate the computer model. The simulator was created
using python codes. The development of the Python code follows the underlisted steps:
1. Input of the fluid properties, rock properties, simulation and well data.
2. Define the already assumed boundary condition to be used in the problem which is the
Dirichlet Boundary condition which is a simple case scenario.
3. Construct a sparse pentadiagonal matrix, single column matrix B and the J vector for the
assumed boundary condition.
4. Use a linear solver to solve for pressure and saturation
5. Update the pressure and saturation for timestep 300, 600 and 1000 days.
6. Using matplotlib, display a pressure saturation distribution map for each gridblock at the
already mentioned timesteps.
CHAPTER FOUR
RESULTS AND DISCUSSIONS
4.1 Results
This chapter focuses on the validation of the methodology used in this study. The simulator is able
to handle only the Dirichlet boundary condition as that of Neumann and mixed boundary
conditions are beyond the scope of this project. Also presented in this chapter are a surface contour
plot generated in order to represent a pressure distribution map which provides a detailed
visualization of the pressure distribution across the surface. Armed with this information,
management can make sound final investment decisions on whether to invest in the drilling project
or not and to equally ascertain the best location to drill the well.
Table 4.1 The data set used to validate the model.
Reservoir Length, Lx (ft) 6000
Reservoir Width, Ly (ft) 7500
Reservoir Thickness, H (ft) 50
Total Simulation Time, T (in days) 1000
Porosity 0.18
Reservoir permeability in the x direction, kx 1 * E-06
Reservoir permeability in the y direction ky 0.15 * 1 * E-06
Oil relative permeability 0.0294
Gas relative permeability 0.1120
Oil viscosity, µo (cp) 0.9810
Gas viscosity, µg (cp) 0.0260
Solution gas oil ratio, Rs 818.60
Oil formation volume factor, Bo 1.42596
Gas formation volume factor, Bg 0.00064
Initial saturation of gas, Sg 0.605
Initial reservoir pressure 4500 psi
Oil compressibility, Co (/psi) 21 * E-06
Gas Compressibility, Cg (/psi) 40 * E-06
Fig 4.1: Pressure Distribution Map for Dirichlet Boundary Condition at time 0 day
The above pressure map in fig. 4.0 indicates that all four boundaries are assumed to be Dirichlet
boundary conditions, and the block’s initial map is also set at 4500psi.
Fig. 4.2: Pressure Distribution Map for Dirichlet Boundary Condition at time 300 days
Fig. 4.3: Pressure Distribution Map for Dirichlet Boundary Condition at time 600 days
Fig. 4.4: Pressure Distribution Map for Dirichlet Boundary Condition at time 1000 days
4.2 Discussion
For the Dirichlet boundary condition assumed in the problem definition and presented in the
result, conclusions would be drawn and the pressure distribution pattern would be explained
for the assumed boundary condition.
4.1.1 Effect of the Dirichlet Boundary Condition
A pattern is observed from fig 4.1, 4.2, 4.3 and 4.4 and it is observed that there exists a pressure
decline across the reservoir gridblock progressively for time 300 days, 600 days and 1000 days.
The reservoir is subjected to a constant pressure boundary while the reservoir is maintained at an
initial pressure. Once production starts, a rapid pressure decline occurs. This pressure decline
occurs as a result of the reduction of the volume of oil in the reservoir. Also, the saturation of oil
in the reservoir increases because as the pressure declines, gas comes out of the oil to increase the
saturation of the already existing free gas cap present in the oil and gas reservoir. The original
energy of the reservoir comes from the already existing gas cap as the expansion of the free gas
cap forces more oil out of the reservoir thus making more gas to come out of solution thereby
increasing the saturation of the gaseous phase. If production is continued eventually, a point will
reach when the well would start producing gas instead of oil.
CHAPTER FIVE
SUMMARY, CONCLUSIONS AND RECOMMENDATIONS
The numerical modeling of the multi-phase fluid was done by developing a simulator to
determine the pressure and saturation distributions across the reservoir by using the Implicit
Pressure Explicit Saturation (IMPES) scheme which was incorporated during the development of
the simulator. It was found that pressure and saturation varies across the reservoir as production
starts and continues over time. The pressure of oil actually declines throughout the reservoir
whereas saturation of gas increases throughout the reservoir as the gas comes out of oil thus
increasing the saturation of the gas phase when the reservoir is subjected to a constant pressure
boundary condition.
5.2 Conclusion
The following conclusions were drawn from carrying out this study
1. It has been established that the pressure distribution across a reservoir is affected by
boundary conditions and the Dirichlet boundary condition was used as a case study in this
project. An indepth and precise knowledge of the pressure and saturation distribution
across a reservoir is required in order to assist management to make final investment
decision (FID) on whether or not to embark on the oil and gas project and also on the best
area to drill the well in order to maximize oil recovery and production at the minimum
development costs.
2. The best location will be a zone of the area of high pressure and minimum gas saturation
implying a zone of maximum reservoir energy and oil saturation.
5.3 Recommendations
As regards the nature of this project, the following recommendations were made;
1. Future research should incorporate these additional boundary conditions, as well as the 3D
model, since this one only considers the Dirichlet boundary condition and not the Neumann
or mixed ones.
2. Additionally, alternative numerical models like finite volume and finite element methods
could be used to discretize the partial differential equations controlling the fluid flow
processes, in addition to the Finite Difference model that was used to develop the simulator.
Both regular and irregular grids would be adequately represented by these models, in my
firm opinion..