Professional Documents
Culture Documents
The purpose of this paperwork is to demonstrate the work done on Matlab to simulate
flow in a reservoir numerically using the effect of Darcys law in pressure in two wells. The
minimal distance then, will be defined between two wells in order not to have interaction
between their flow characteristics. By running a series of simulations, the impact of grid
spacing and porosity change on simulating speed and accuracy will also be observed.
Introduction
A petroleum reservoir is an underground porous medium in which oil or gas or both are
trapped structurally or/and stratigraphically. Fluid flow in such a porous medium is very
complex phenomena. Generally, analytical solutions to mathematical models are only
obtainable after making simplifying assumptions in regard to reservoir geometry,
properties and boundary conditions. However, such simplifications are often invalid for
most fluid flow problems. In many cases, it is impossible to develop analytical solutions
for practical issues due to the complex behaviors of multiphase flow, nonlinearity of the
governing equations, and the heterogeneity and irregular shape of a reservoir system. As
a result, these models must be solved with numerical methods such a finite difference or
finite element. Reservoir simulation provides numerical solutions to hydrodynamic
problems of fluids (oil, gas and water) in petroleum reservoir-well systems on a digital
machine. Today, it has become a standard tool in petroleum engineering discipline and
been widely used for solving a variety of fluid flow problems involved in recovery of oil
and gas from the porous media of reservoirs.
In the given problem, numerical simulation of two of the wellbores is required to find
which is mathematically based on 2 dimensional form of Darcys pressure equation at
steady state flow. Reservoir characteristics are given below:
Porosity 12 %
Permeability 70 mD
Compressibility 2*10-9 Pa-1
Viscosity 4 cP
Reservoir dimensions 400x400 m
Wellbore pressure well_1 700 psi
Wellbore pressure well_2 500 psi
Table1. Provided data
Frequently, it is desired to account for the effects of more than one well on the pressure
at some point in the reservoir. In case of considering the effect of two wells in our
simulation problem, superposition concept can be easily applied. The superposition
concept states that the total pressure drop at any point in the reservoir is the sum of the
pressure changes at that point caused by flow in each of the wells in the reservoir.
The governing PDE equation found in heat transfer and mass transfer are similar to that
for the distribution of pressure in a porous rock structure:
2 2 2
= 2 + 2 + 2
Under the assumption of steady state, in 2 dimensions, we have:
2 2
= 2 + 2
In each equation, the hydraulic diffusivity is given by = . Under the assumption of
a homogeneous reservoir, = and can then be ignored in the simulation. Although
we would normally view a reservoir as a 3D block, we can simplify this to look at a 2D slice
that divides the rectangular block into two parts; an upper and lower block:
Upper Block
Upper Block z
x 2D Plane
Lower Block y
Lower Block
Figure2. 2D gridblocks
Analysis
To start with, we have produced a plot to see what happens to the pressure from one
pressure on the left boundary when all other pressures were held to the same value as
constant. The time lapse had its impact on reservoir boundaries as a result. Adjusting the
number of grid cells resulted on different plots. In the first case, grid cells were taken as
10x10 and changed to 20x10. Plots showed that, 20x10 adjustment demonstrated smooth
and better result comparing to 10x10 adjustment result, however, the case slowed down
the simulation process.
Figure3. Simulation based on 10x10 adjustment
3500
3000
PRESSURE (PSI)
2500
2000
1500
1000
500
0
0 50 100 150 200 250
POSITION (METER)
2500
2000
PRESSURE (PSI)
1500
1000
500
0
0 50 100 150 200 250 300 350 400
POSITION (METER)
Code Description
To start by simulation, set the number of cells in the grid
(each cell is counted with meter)
nx=20;
ny=10;
Set the Boundary pressures for both two wells in the unit of psi
(the values are given in problem statement)
side_pressure=3000;
well_pressure(1)=700;
well_pressure(2)=500;
Set locations for two of the wells in meters (the wells are
located in 3 dimensional space on the opposite sides of y axis)
x_well(1)=10;
y_well(1)=120;
x_well(2)=380;
y_well(2)=120;
State the diffusion coefficients (the values are same for x and
y axis because the reservoir is taken to be homogenous)
Dx=0.072; % m2/s
Dy=0.072; % m2/s
dx=block_length/(nx-1);
dy=block_width/(ny-1);
k=k+1;
end
end
array_C=(array_A^-1)*array_B;