assignment 3 report f2015 finished
TRANSCRIPT
PETR 4301
Theory of Reservoir Modeling
Submitted on: 10th December 2015
Prepared by
Team A1
Englert, Brandon (0881854) Gong, Matt (0658215)
Zaitsev, Vladimir (0601327) Troppe, Aron (1100036)
Fall 2015
Assignment #3
Assignment 3
PETR 5325 (Fall 2015) 2
TABLE OF CONTENTS
LIST OF FIGURES ........................................................................................................................ 3
LIST OF TABLES .......................................................................................................................... 4
INTRODUCTION .......................................................................................................................... 5
TASK 1 ........................................................................................................................................... 8
Subtask 1 ..................................................................................................................................... 8
Subtask 2 ................................................................................................................................... 11
Subtask 3 ................................................................................................................................... 13
Subtask 4 ................................................................................................................................... 14
Subtask 5: .................................................................................................................................. 17
Analytical Solution ............................................................................................................... 17
Subtask 6 ................................................................................................................................... 21
TASK 2 ......................................................................................................................................... 25
TASK 3 ......................................................................................................................................... 32
Dirichlet boundary condition ................................................................................................ 32
Neumann condition ............................................................................................................... 36
TASK 4 ......................................................................................................................................... 38
TASK 5 ......................................................................................................................................... 40
Assignment 3
PETR 5325 (Fall 2015) 3
LIST OF FIGURES
Figure 1: Linear Flow ..................................................................................................................... 8
Figure 2: Parameter Values ............................................................................................................. 9
Figure 3: Section of Numerical Grid ............................................................................................ 10
Figure 4: Pressure vs Lenth, 20 Step Discretizatoin ..................................................................... 11
Figure 5: Pressure vs Time ........................................................................................................... 12
Figure 6: Pressure vs Distance and Time ...................................................................................... 13
Figure 7: Pressure vs distance with 200 ft intervals ..................................................................... 15
Figure 8: Pressure vs Time with 200 ft interval ............................................................................ 16
Figure 9: Average Reletive Error .................................................................................................. 22
Figure 10: Average Relative Error vs Distance ............................................................................ 23
Figure 11: Average Relative Error vs. Time ................................................................................. 24
Figure 12: Radial Continuity Equation ......................................................................................... 26
Assignment 3
PETR 5325 (Fall 2015) 4
LIST OF TABLES
Table 1: Maximum Solution Stability Limits ............................................................................... 14
Table 2: Comparison of Maximum Discretization Ratio .............................................................. 17
Table 3: Black-Oil vs Compositional Simulator ........................................................................... 39
Table 4: Commercial Simulators .................................................................................................. 40
Table 5: Public Domain Simulators .............................................................................................. 45
Assignment 3
PETR 5325 (Fall 2015) 5
INTRODUCTION
The diffusivity, or βheat equationβ, describes the flow of fluid in porous media. In its linear form
(1), the diffusivity equation states that the acceleration of the pressure change with distance is
proportional to the rate of its change with time. For a slightly compressible fluid:
ππ2πππππ₯π₯2
= οΏ½ππππππ
0.002637πποΏ½ππππππππ
(1)
ππ is fluid pressure (psi), π₯π₯ is linear distance (ft), and ππ is time (days). The constants of
proportionality include ππ, porosity, ππ, viscosity, (cP), ππ, pore volume compressibility, (sip), and
ππ, permeability (mD). The multiplier 0.002637 is needed to maintain dimensional consistency.
The group ππππππ0.002637ππ
delineated in the brackets in (1) must have the units of ππππππππ /π΄π΄π΄π΄πππ΄π΄, as
shown (2):
ππ2πππππ₯π₯2
= οΏ½ππππππ
0.002637πποΏ½ππππππππ
(2a)
(ππππππ)(ππππ2) = οΏ½
ππππππ0.002637ππ
οΏ½(ππππππ)
(πππ΄π΄ππππ) (2b)
(πππ΄π΄ππππ)(ππππππ)
(ππππππ)(ππππ2) = οΏ½
ππππππ0.002637ππ
οΏ½ (2c)
(πππ΄π΄ππππ)(ππππ2) = οΏ½
ππππππ0.002637ππ
οΏ½ (2d)
A numerical prediction of pressure at various times and distances may be obtained by
discretizing time and space into numbered segments and deriving the numerical solution of (1):
Assignment 3
PETR 5325 (Fall 2015) 6
ππππππ+1 = ππππππ +βππ
πΌπΌ2(βπ₯π₯)2(ππππ+1ππ β 2ππππππ + ππππβ1ππ ) (3a)
ππππππ+1 = ππππππ + πΎπΎπ·π·(ππππ+1ππ β 2ππππππ + ππππβ1ππ ) (3b)
In (3a), ππ represents the numeration of the distance interval βπ₯π₯, and ππ represents that of the time
interval βππ. The expression πΌπΌ2 represents οΏ½πππππππποΏ½ the hydraulic diffusivity. This expression will
allow the iterative estimation of pressure values, assuming all boundary conditions are known.
In (3b), πΎπΎπ·π· is a dimensionless multiplier that expresses the combined effect of the hydraulic
diffusivity, and the sizes of the length and time steps. To show how the discretization step
lengths affect the value of πΎπΎπ·π·, we resolve πΎπΎπ·π· into two components:
πππΎπΎ
= πΎπΎπ·π· ; β‘ ππππππππππππππππππππππππππ (4a)
πΎπΎ = πΆπΆπΌπΌ2 ; οΏ½πππ΄π΄ππππππππ2
οΏ½ (4b)
ππ = βπ‘π‘(βπ₯π₯)2 ; οΏ½ππππππππ
πππ‘π‘2οΏ½ (4c)
πΆπΆ is a conversion factor necessary to render πΎπΎ into units of 1 πππππππππππ‘π‘2
. As shown (5):
ππππππππ
=ππππ
ππππ Γ πππππποΏ½
1000 πππππ·π·
οΏ½οΏ½π·π· Γ π΄π΄ππππ Γ ππ Γ ππππ2
ππππ Γ ππππ Γ ππππ3 οΏ½ οΏ½14.6959 ππππππ
π΄π΄πππποΏ½
(30.48 ππππ)2
(ππππ)2 (5a)
ππππππππ
= οΏ½1000
1οΏ½ οΏ½ππ1οΏ½ οΏ½
14.6959 1
οΏ½(30.48 )2
(ππππ)2οΏ½
πππ΄π΄ππ86400 ππ
οΏ½ (5b)
Assignment 3
PETR 5325 (Fall 2015) 7
ππππππππ
= οΏ½1000
1οΏ½ οΏ½ππ1οΏ½ οΏ½
14.6959 1
οΏ½(30.48 )2
(ππππ)2οΏ½
πππ΄π΄ππ86400 ππ
οΏ½ = 158 πππ΄π΄ππππππππ2
(5c)
In other words:
β’ There are 158 πππππππππππ‘π‘2
per 1 ππππππππ Γ ππππππ
β’ We are given πΌπΌ2 in terms of ππππππππ Γ ππππππ
β’ We need to convert πΌπΌ2 to πππππππππππ‘π‘2
to fit into (4a).
β’ So therefore we need a πΆπΆ factor of 158 in (4b).
The value of πΎπΎ does not depend on the length of discretization intervals; rather on the reservoir
and fluid properties implied in πΌπΌ2. The value of ππ, by contrast, expresses the impact of the
discretization. Together, their quotient πΎπΎπ·π· acts as the constant of proportionality for (3b).
Itβs worthwhile noting that we could dispense with the need for both πΆπΆ and πΎπΎ if we had just
replaced the 0.002637 divisor in (1) with the reciprocal of our πΆπΆ factor: 1158
= 0.0063285. That
would allow us to state:
ππ2πππππ₯π₯2
= οΏ½ππππππ
0.0063285πποΏ½ππππππππ
(6a)
πΌπΌ2 = οΏ½ππππππ
0.0063285πποΏ½ (6b)
πππΌπΌ2
= πΎπΎ (6c)
In fact, this is an indication that the value of 0.002637 is wrong for the given units of (1), and
reflects some other set of units. We will therefore use (6) to work Task 1.
As an aside, it appears that we can guess the units for which the divisor of 0.002637 was
intended. If you add another zero to 0.002637 to transform it into 0.0002637 and take the
Assignment 3
PETR 5325 (Fall 2015) 8
reciprocal, you get 10.0002637
= 3792.188. Dividing by our πΆπΆ factor of 158, you get 3792.188158
=
24.00. Meaning: If you were using units of hours instead of days in (1) and in (4b), then you
would use a factor of πΆπΆ = 3792.188 in (4b), or a divisor of 0.0002637 in (1), to correctly
convert ππππππππ Γ ππππππ
into βπππππππππππ‘π‘2
.
TASK 1
Subtask 1
Consider the volumetric flow of fluid, ππ, through the depicted control volume.
Figure 1: Linear Flow
Our units of measurement and their given values are shown:
Assignment 3
PETR 5325 (Fall 2015) 9
Figure 2: Parameter Values
The boundary conditions are displayed next:
ππ0 = ππ(0, ππ) = 1800 ππππππ, πππππ΄π΄ ππ > 0 (6a)
ππ1 = ππ(πΏπΏ, ππ) = 1800 ππππππ, πππππ΄π΄ ππ > 0 (6b)
ππ(π₯π₯, 0) = 1800 οΏ½1 + sin οΏ½πππ₯π₯πΏπΏοΏ½οΏ½ ππππππ, πππππ΄π΄ 0 < π₯π₯ < πΏπΏ (6c)
We wish to use (3) and (6) to develop a grid-based numerical discretization of (1) with twenty
steps in βπ₯π₯ and one hundred 1-day steps in βππ. We will then graph ππ π£π£ππ π₯π₯ and examine the
isoline curves at 25 step time intervals.
First we need to calculate πΎπΎ based on (6):
1πΌπΌ2
=1
οΏ½ ππππππ0.0063285πποΏ½
=1
οΏ½0.16 Γ 2 Γ 0.000220.0063285 Γ 32 οΏ½
= 2876.6 (7a)
ππ =βππ
(βπ₯π₯)2 =1
1002= 0.0001 (7b)
Assignment 3
PETR 5325 (Fall 2015) 10
πΎπΎπ·π· =πππΌπΌ2
= 0.0001(2876.6) = 0.28766 (7c)
Next, we use (3b) with (6) and (7c) to develop a numerical approximation grid:
Figure 3: Section of Numerical Grid
As can be seen, (6a) was used for the rightmost row. The top row has been calculated via (6c).
The rest is done with (3b). Here is the isoline chart:
0 100 200
0 1800 2081.58 2356.231 1800 2079.59 2352.292 1800 2077.61 2348.383 1800 2075.64 2344.494 1800 2073.69 2340.645 1800 2071.75 2336.816 1800 2069.83 2333.017 1800 2067.91 2329.23
Assignment 3
PETR 5325 (Fall 2015) 11
Figure 4: Pressure vs Lenth, 20 Step Discretizatoin
Pressure is highest in the middle of the block, at length x = 1000 ft. Then it smoothly drops to
boundary condition pressure as it reaches the end of the block at x = 2000 ft. (this is true for all
times). Pressure is symmetrical about the center of the block.
Pressure drops with time. At t = 0, the pressure is at its maximum, and as time increases it
smoothly drops. The change in pressure is lowest at t = 100 days.
Subtask 2
Our next look at the data will investigate the shape of the pressure β time relationship.
The figure below is P vs. t for the 100 time steps, 1 day each, and 20 distance steps, 100 ft. each.
Assignment 3
PETR 5325 (Fall 2015) 12
Figure 5: Pressure vs Time
Pressure is highest at the beginning, at time = 0 days, and drops slowly as time goes on (this is
true for all locations). Pressure is highest at the center (1000 ft.).
Note that the gradient of the pressure drop is larger at high pressures. This makes sense, as
higher pressure regions would tend to expel their fluid faster. This would result in a steeper
pressure drop.
We do not analyze isolines for values of x between 1000 and 2000 because they would be the
mirror image of the 0 to 1000 foot interval, as established in previous subtask, due to pressure
symmetry around the center of the block at x=1000 ft. So, for example, the pressure curve for x =
800 ft. would be identical to pressure curve for x = 1200 ft. on the above chart, and x = 200 ft.
would be identical to x = 1800 ft. This symmetry can be seen well in Figure 6:
Assignment 3
PETR 5325 (Fall 2015) 13
Figure 6: Pressure vs Distance and Time
In this figure, positon discretization number is displayed on the depth axis. It is seen that the
pressure drop is symmetric with respect to the middle positon, around the 10th discretization.
This corresponds to the 1000 foot interval; this is the reflective axis (Figure 4).
Subtask 3
Accurate numerical solutions depend on keeping the discretization error small. See Task 3 for a
discussion of discretization error. By increasing the size of βπ₯π₯ and βππ, we can experimentally
determine the limits on these steps, within which (3a) continues to provide stable
approximations. βStabilityβ here means that small increments in distance or time should not
generate large or oscillating values of pressure.
With the original time step of 1 day and distance step of 100 ft., the βπ‘π‘(βπ₯π₯)2 ratio is 1.00E-4 days
per square foot, and both of the P vs. x and P vs. t plots are stable. When we increase time step
Assignment 3
PETR 5325 (Fall 2015) 14
to 2 days, having a 2.00E-4 ratio, this behavior continues. Our solution stability problems begin
at t = 2.1 days, when the t = 100 day curve on P vs x plot starts to oscillate slightly. The ratio
here is 2.10E-4. Increasing to t = 2.14, the 100 day curve oscillates wildly, but the rest of the
time curves are still stable on P vs x plot. The ratio here is 2.14E-4.
So, the tolerable ratio would depend on the maximum time that we want to simulate. With that,
below is the table for allowable ratios provided we are using twenty distance steps.
Table 1: Maximum Solution Stability Limits
Time (days) Time step, βππ (days) Ratio of βππ(βππ)ππ , (days/sq. ft)
100 2.07 2.07E-4 75 2.22 2.22E-4 50 2.55 2.55E-4 25 4.00 4.00E-4
Note that decreasing time steps to below 1 day does not affect solution stability. It simply moves
curves closer to each other, and in P vs x chart all the pressure curves are grouped much closer to
the t = 0 day curve. Decreasing time to below 1 day does not seem to shift curves on P vs x chart.
Subtask 4
Having seen the effect of changing the length of the time step, we now investigate the result of
changing the distance step.
Assignment 3
PETR 5325 (Fall 2015) 15
Figure 7: Pressure vs distance with 200 ft. intervals
Here, (Figures 8 & 9), we have reduced our 20 distance steps of 100 ft to just 10 steps with 200
ft intervals.
Assignment 3
PETR 5325 (Fall 2015) 16
Figure 8: Pressure vs Time with 200 ft. interval
Note that with 10 distance steps, the pressure declines more steeply in P vs. t plot than in the
same plot with 20 time steps. In the 10 distance step P vs. x chart, the time isolines have
significantly lower maximum pressures at the peak of 1000 ft. (other than the pressure at initial
time, of course).
Let us explore the maximum ratios with distance steps of 200 ft. The initial, stable scenario is
200 ft. and one day; the ratio is 2.50E-5.
Assignment 3
PETR 5325 (Fall 2015) 17
Table 2: Comparison of Maximum Discretization Ratio
βππ (days) βππ/(βππ)^ππ (days / sq. ft)
Time 10 x-steps 20 x-steps 10 x-steps 20 x-steps
100 days 8.4 2.07 2.10E-4 2.07E-4 75 days 8.8 2.22 2.20E-4 2.22E-4 50 days 10.0 2.55 2.50E-4 2.55E-4 25 days 15.4 4.0 3.85E-4 4.00E-4
We can see that if we simulate a long period of time, the ratio is about the same, at 2.1E-4.
However if we want to simulate a shorter period of time, say 25 days or 50 days, then the ratio is
higher for the 20 step scenario. In general, the 10 distance step scenario allows for longer time
steps before becoming unstable. Even though the distance discretization is doubled, the
reduction in repetitive calculation error improves the stability of the result.
Subtask 5:
Analytical Solution
Recall our diffusivity equation and its boundary conditions:
ππ2πππππ₯π₯2
= οΏ½ππππππ
0.002637πποΏ½ππππππππ
(1a)
ππ0 = ππ(0, ππ) = 1800 ππππππ, πππππ΄π΄ ππ > 0 (1b)
ππ1 = ππ(πΏπΏ, ππ) = 1800 ππππππ, πππππ΄π΄ ππ > 0 (1c)
ππ(π₯π₯, 0) = 1800 οΏ½1 + sin οΏ½πππ₯π₯πΏπΏοΏ½οΏ½ ππππππ, πππππ΄π΄ 0 < π₯π₯ < πΏπΏ (1d)
Assignment 3
PETR 5325 (Fall 2015) 18
Consider this proposed solution (2a) to our linear diffusivity equation. For simplicity we
substitute πΌπΌ2 = οΏ½ ππππππ0.002637ππ
οΏ½:
ππ(π₯π₯, ππ) = 1800 οΏ½1 + ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
0.002637ππππ2
πππππππΏπΏ2πποΏ½οΏ½ (2a)
ππ(π₯π₯, ππ) = 1800 οΏ½1 + ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (2b)
We will first verify (1b), (1c), and (1d) by their subsequent substitution into (2b):
ππ0 = ππ(0, ππ) = 1800 οΏ½1 + ππππππ οΏ½ππ(0)πΏπΏ
οΏ½πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (3a)
= 1800 οΏ½1 + ππππππ(0)πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (3b)
= 1800 οΏ½1 + (0)πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (3c)
= 1800 (3d)
ππ1 = ππ(πΏπΏ, ππ) = 1800 οΏ½1 + ππππππ οΏ½ππ(πΏπΏ)πΏπΏ
οΏ½πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (4a)
= 1800 οΏ½1 + ππππππ(ππ)πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (4b)
= 1800 οΏ½1 + (0)πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (4c)
= 1800 (4d)
Assignment 3
PETR 5325 (Fall 2015) 19
ππ(π₯π₯, 0) = 1800 οΏ½1 + ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ πππ₯π₯πποΏ½β
ππ2
πΌπΌ2πΏπΏ2(0)οΏ½οΏ½ (5a)
= 1800 οΏ½1 + ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ(0)οΏ½ (5b)
= 1800 οΏ½1 + ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ (1)οΏ½ (5c)
= 1800 οΏ½1 + sin οΏ½πππ₯π₯πΏπΏοΏ½οΏ½ (5d)
Now that we know the boundary conditions check out, letβs generate our partial derivative for
time. Using (2b):
ππππππππ
= 1800πππππποΏ½1 + ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (6a)
ππππππππ
= 1800 οΏ½ππππππ
(1) +πππππποΏ½ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½οΏ½ (6b)
ππππππππ
= 1800 οΏ½0 + ππππππ οΏ½πππ₯π₯πΏπΏοΏ½πππππποΏ½πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½οΏ½ (6c)
ππππππππ
= 1800 οΏ½ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½
πππππποΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (6d)
ππππππππ
= 1800 οΏ½ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½ οΏ½β
ππ2
πΌπΌ2πΏπΏ2οΏ½ππ(ππ)ππππ
οΏ½ (6e)
ππππππππ
= 1800 οΏ½βππ2
πΌπΌ2πΏπΏ2οΏ½ οΏ½ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½ (1)οΏ½ (6f)
ππππππππ
= 1800 οΏ½βππ2
πΌπΌ2πΏπΏ2οΏ½ ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½ (6g)
Subbing into (1a), we have:
Assignment 3
PETR 5325 (Fall 2015) 20
ππ2πππππ₯π₯2
= πΌπΌ2 οΏ½1800 οΏ½βππ2
πΌπΌ2πΏπΏ2οΏ½ ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (7a)
ππ2πππππ₯π₯2
= 1800 οΏ½βππ2
πΏπΏ2οΏ½ ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½ (7b)
The uniformly negative value of ππ2ππ
πππ₯π₯2 for 0 < π₯π₯ < πΏπΏ implies that ππ will be curved downward for
the solution domain. This curvature reaches a maximum at (π₯π₯, ππ) = οΏ½πΏπΏ2
, 0οΏ½, and approaches zero
as 0 β π₯π₯ β πΏπΏ or as ππ β β.
The 1st partial derivative of ππ with respect to π₯π₯ is also developed from (2b):
πππππππ₯π₯
= 1800πππππ₯π₯
οΏ½1 + ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½ (8a)
πππππππ₯π₯
= 1800 οΏ½πππππ₯π₯
(1) +πππππ₯π₯
οΏ½ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½οΏ½οΏ½ (8b)
πππππππ₯π₯
= 1800 οΏ½(0) + πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½
πππππ₯π₯
οΏ½ππππππ οΏ½πππ₯π₯πΏπΏοΏ½οΏ½οΏ½ (8c)
πππππππ₯π₯
= 1800 οΏ½πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½ ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½πππππ₯π₯
οΏ½πππ₯π₯πΏπΏοΏ½οΏ½ (8d)
πππππππ₯π₯
= 1800 οΏ½πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½ ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½ οΏ½πππΏπΏοΏ½πππππ₯π₯
(π₯π₯)οΏ½ (8e)
πππππππ₯π₯
= 1800 οΏ½πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½ ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½ οΏ½πππΏπΏοΏ½ (1)οΏ½ (8f)
πππππππ₯π₯
= οΏ½1800πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½ οΏ½
πππΏπΏοΏ½οΏ½ ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½ (8g)
Now, we use (8g) to find the 2nd partial:
Assignment 3
PETR 5325 (Fall 2015) 21
πππππ₯π₯
οΏ½πππππππ₯π₯οΏ½ = οΏ½1800πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½ οΏ½
πππΏπΏοΏ½οΏ½
πππππ₯π₯
οΏ½ππππππ οΏ½πππ₯π₯πΏπΏοΏ½οΏ½ (9a)
ππ2πππππ₯π₯2
= οΏ½1800πππ₯π₯ππ οΏ½βππ2
πΌπΌ2πΏπΏ2πποΏ½ οΏ½
πππΏπΏοΏ½οΏ½ οΏ½βππππππ οΏ½
πππ₯π₯πΏπΏοΏ½οΏ½
πππππ₯π₯
οΏ½πππ₯π₯πΏπΏοΏ½ (9b)
ππ2πππππ₯π₯2
= οΏ½1800ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½ οΏ½β
πππΏπΏοΏ½οΏ½ οΏ½
πππΏπΏοΏ½πππππ₯π₯
(π₯π₯) (9c)
ππ2πππππ₯π₯2
= οΏ½1800ππππππ οΏ½πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½ οΏ½β
ππ2
πΏπΏ2οΏ½οΏ½ (1) (9d)
ππ2πππππ₯π₯2
= 1800 οΏ½βππ2
πΏπΏ2οΏ½ ππππππ οΏ½
πππ₯π₯πΏπΏοΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2πΏπΏ2πποΏ½ (9e)
Since (9e) is identical to (7b), we conclude that (2a) is a solution to (1a). It is one of a 2-
parameter family of solutions on 0 < π₯π₯ < πΏπΏ:
ππ(π₯π₯, ππ) = πΈπΈ οΏ½1 + ππππππ οΏ½πππ₯π₯π³π³οΏ½ πππ₯π₯ππ οΏ½β
ππ2
πΌπΌ2π³π³2πποΏ½οΏ½ (10)
The πΎπΎ parameter determines ππ(0,1) and ππ(0, πΏπΏ). The πΏπΏ parameter is the upper domain boundary
in π₯π₯. Both parameters are needed to determine ππ(π₯π₯, 0).
Subtask 6
Itβs always good to check on the accuracy of a numerical approximation process. By
numerically approximating a known analytical function, we can relate the relative accuracy of
the approximation process with time and distance. For this subtask we used the numerical
method with 100 ft. long distance steps (delta x = 100 ft.) and 1 day time steps (delta t = 1 day)
to arrive at matrix which had 0 to 99 day columns, and 0 to 20th distance steps (0 to 2000 ft.).
Assignment 3
PETR 5325 (Fall 2015) 22
The analytical matrix, which uses analytical solution (equation directly in terms of x and t), had
the same dimensions: 0 to 2000 feet distance in 0 to 20th time steps and 0 to 99th day in 1 day
time steps.
Average relative error was calculated (Figure 11):
Figure 9: Average Reletive Error
Here, (x0-x) is the absolute of difference (positive value) between the numerical and analytical
solutions, and x is the magnitude (positive value) of the analytical solution.
For the actual values to compare, we used the average pressure value for each row and column in
both numerical and analytical matrices. For example, average pressure was calculated for each
day step (each column), an array of those average pressures was created, and compared to array
of average pressure values in each column of second matrix. The same process was followed for
the average pressure for each row (time step) in both matrices.
Assignment 3
PETR 5325 (Fall 2015) 23
Figure 10: Average Relative Error vs Distance
The figure above shows average relative error with respect to length of the simulated block. We
can see that error is greatest in the middle of the block at x = 1000 ft., and the error smoothly
decreases toward zero at the ends of the block (x = 0 and x = 2000), where we are given the
value of pressure as a boundary condition.
Assignment 3
PETR 5325 (Fall 2015) 24
Figure 11: Average Relative Error vs. Time
This figure shows the average relative error with respect to simulation time. As the time grows,
so does the error. From the appearance of the curve, the relative error appears to grow without
bound as simulation time increases. This is likely because the numerical method becomes less
and less valid when we move further away from boundary/initial condition in both distance and
time.
However, an inspection of the fitting equation, displayed on the graph, indicates something
different. The quadratic equation will reach a maximum value for average relative error.
Afterwards, we might expect error to decrease as time grows without bound.
This makes sense, too. As the pressure throughout the reservoir heads to the boundary pressures
at π₯π₯ = {0, πΏπΏ} as time increases without bound, both the numerical and analytic expressions tend
asymptotically toward that boundary pressure. The difference between those expressions
Assignment 3
PETR 5325 (Fall 2015) 25
becomes smaller. So, the relative error, which is that difference divided by the analytic answer,
must go down, too.
Using the first derivative test on the trend line equation, we can estimate the time of the
maximum relative error:
2(β8πΈπΈ β 08)π₯π₯ + 2πΈπΈ β 05 = 0 (8a)
π₯π₯ =β2πΈπΈ β 05
2(β8πΈπΈ β 08) = 0.125πΈπΈ3 = 125 πππ΄π΄ππππ (8b)
So then we would expect the relative error to reach its maximum at 125 days.
TASK 2
The continuity equation is the basis for modeling fluid flow in porous media. In its radial form,
it may be combined with Darcyβs law and an equation of state to generate the radial diffusivity
equation.
Consider the volume element of thickness βπ΄π΄ (below) located at distance π΄π΄ from a well at the
center of a considered circular system. Suppose there is radial fluid flow through the element
towards the well at the center. The reservoir system is assumed to have constant thickness β, and
constant fluid and rock properties. We will now derive the continuity equation in its radial form
(ibid), which represents the conservation of mass for flow in radial systems (in the equation ππ
represents fluid density, π’π’ represents the fluid flow velocity, and ππ the porosity of the system).
Assignment 3
PETR 5325 (Fall 2015) 26
Figure 12: Radial Continuity Equation
We start off by assuming that the annular volume element depicted above is fixed in space with
the positive radial direction defined as outward from the wellbore. The Continuity Principle
requires the following axiom:
πππ΄π΄ππππ π΄π΄πππππ’π’πππ’π’πππ΄π΄ππππππππ = πππ΄π΄ππππ πΌπΌππ + πππ΄π΄ππππ πΊπΊπππππππ΄π΄π΄π΄ππππππππ β πππ΄π΄ππππ πππ’π’ππ (1)
The Law of Conservation of Mass requires that matter is neither generated, nor destroyed.
Therefore, we simplify to:
πππ΄π΄ππππ π΄π΄πππππ’π’πππ’π’πππ΄π΄ππππππππ = πππ΄π΄ππππ πΌπΌππ β πππ΄π΄ππππ πππ’π’ππ (2)
Dividing both sides of the equation by time, we restate this as a balance of mass rates:
πππ΄π΄ππππ π΄π΄πππππ’π’πππ’π’πππ΄π΄ππππππππ π π π΄π΄ππππ = πππ΄π΄ππππ πΉπΉπππππΉπΉ π π π΄π΄ππππ πΌπΌππ β πππ΄π΄ππππ πΉπΉπππππΉπΉ π π π΄π΄ππππ πππ’π’ππ (3)
We now need to define the geometry of our control volume. The inner side of the annulus is
located at distance π΄π΄ from the wellbore, and has a thickness β. Its area π΄π΄|ππ is given by:
Assignment 3
PETR 5325 (Fall 2015) 27
π΄π΄|ππ = 2πππ΄π΄β (4)
The outer side of the annulus is located at (π΄π΄ + βπ΄π΄). Its area π΄π΄|ππ+βππ is given by:
π΄π΄|ππ+βππ = 2ππ(π΄π΄ + βπ΄π΄)β (5)
The volume of the annulus is the difference between the smaller and larger cylinders:
ππ = ππ(π΄π΄ + βπ΄π΄)2β β πππ΄π΄2β (6)
This simplifies to:
ππ = ππβ[2π΄π΄βπ΄π΄ + (βπ΄π΄)2] (7)
By making βπ΄π΄ arbitrarily small in comparison to π΄π΄, we further simplify to:
ππ β 2πππ΄π΄βπ΄π΄β (8)
The pore volume ππππ, is simply the control volume ππ multiplied by its porosity ππ:
ππππ β 2πππ΄π΄βπ΄π΄βππ (9)
To find the mass ππππ within the pore volume, we multiply by the density ππ. Even though we are
assuming constant fluid properties, we are not assuming constant density. The value of ππ will be
dependent on the radial distance from the wellbore. Our expressions will be general enough to
describe a fluid whose density varies with π΄π΄, such as a gas. Therefore, ππ must be considered
separately in each of our expressions, and we may not cancel a ππ that appears in one expression
Assignment 3
PETR 5325 (Fall 2015) 28
with a ππ appearing in a different expression. However, as βπ΄π΄ becomes arbitrarily small, ππ
becomes constant within the pore volume. So we may state:
ππππ β 2πππ΄π΄βπ΄π΄βππππ (10)
The mass in the pore volume at any time ππ may be designated as πππποΏ½π‘π‘:
πππποΏ½π‘π‘ β (2πππ΄π΄βπ΄π΄βππππ)|π‘π‘ (11)
At time ππ + βππ we similarly state:
πππποΏ½π‘π‘+βπ‘π‘ β (2πππ΄π΄βπ΄π΄βππππ)|π‘π‘+βπ‘π‘ (12)
So the accumulation of mass βππππ over the interval βππ is simply:
βππππ = πππποΏ½π‘π‘+βπ‘π‘ β πππποΏ½π‘π‘ (13)
We have justly replaced the βapproximately equal ββ sign, as the volumetric error of (βπ΄π΄)2
from (7) does not change over βππ, and must therefore disappear in the difference.
The rate of mass accumulation in the pore volume is:
βππππ
βππ=πππποΏ½π‘π‘+βπ‘π‘ β πππποΏ½π‘π‘
βππ (14)
Plugging in (11) and (12) we obtain:
βππππ
βππ=
(2πππ΄π΄βπ΄π΄βππππ)|π‘π‘+βπ‘π‘ β (2πππ΄π΄βπ΄π΄βππππ)|π‘π‘βππ
(15)
Assignment 3
PETR 5325 (Fall 2015) 29
Since the geometrical boundaries of the pore volume do not change over βππ, we pull out the
geometric factors:
βππππ
βππ= 2πππ΄π΄βπ΄π΄β
(ππππ)|π‘π‘+βπ‘π‘ β (ππππ)|π‘π‘βππ
(16)
The expression of (16) indicates that the quantity (ππππ) varies over βππ. The increase in density ππ
of the pore volume is obviously due to the accumulation of mass within it. In addition, the
porosity ππ of the control volume can also increase, though the geometrical boundaries of the
control volume remain constant. This increase in porosity is due to the increase of pore pressure
with mass accumulation. The increasing pressure compresses the rock matrix, generating an
increasing pore volume β therefore a higher porosity for the control volume.
Taking the limit as βππ β 0, we may state the mass accumulation rate as:
ππππππ
ππππ= 2πππ΄π΄βπ΄π΄β
ππ(ππππ)ππππ
(17)
We substitute (17) into (3) to obtain:
2πππ΄π΄βπ΄π΄βππ(ππππ)ππππ
= πππ΄π΄ππππ πΉπΉπππππΉπΉ π π π΄π΄ππππ πΌπΌππ β πππ΄π΄ππππ πΉπΉπππππΉπΉ π π π΄π΄ππππ πππ’π’ππ (18)
To find the mass flow rate, we first designate π’π’, the average apparent fluid velocity. The actual
velocity of the fluid is higher, due to the fact that the fluid must move through the pore throats,
and canβt move through the rock matrix. However, π’π’ is the average velocity over one of the
curved annular surfaces of the control volume as fluid appears to move radially toward the
wellbore.
Assignment 3
PETR 5325 (Fall 2015) 30
Although π΄π΄ has already been defined as positive in the outward radial direction, we will define π’π’
as positive towards the wellbore; π’π’ is always a positive number that is dependent on the radial
distance from the wellbore. We designate π’π’|ππ as the fluid velocity at position π΄π΄. The lower
velocity at (π΄π΄ + βπ΄π΄) is then π’π’|ππ+βππ.
The volumetric outflow πππππππ‘π‘ through the inner annular surface located at π΄π΄ is simply the average
velocity multiplied by the surface area π΄π΄|ππ:
πππππππ‘π‘ = π’π’|πππ΄π΄|ππ (19)
Subbing in (4), we obtain:
πππππππ‘π‘ = π’π’|ππ(2πππ΄π΄β) (20)
Since π’π’ is being evaluated at position π΄π΄, it is convenient to group those variables together:
πππππππ‘π‘ = 2ππβ(π’π’π΄π΄)|ππ (21)
The mass outflow rate πππππππππππππ‘π‘
is then found by multiplying by fluid density evaluated at π΄π΄:
πππππππππ‘π‘
ππππ = 2ππβ(πππ’π’π΄π΄)|ππ (22)
The mass inflow rate may be similarly derived through the following steps:
ππππππ = π’π’|ππ+βπππ΄π΄|ππ+βππ (23)
ππππππ = π’π’|ππ+βππ2ππ(π΄π΄ + βπ΄π΄)β (24)
ππππππ = 2ππβ(π’π’π΄π΄)|ππ+βππ (25)
Assignment 3
PETR 5325 (Fall 2015) 31
ππππππππ
ππππ = 2ππβ(πππ’π’π΄π΄)|ππ+βππ (26)
Subbing (22) and (26) into (18), we have:
2πππ΄π΄βπ΄π΄βππ(ππππ)ππππ
= 2ππβ(πππ’π’π΄π΄)|ππ+βππ β 2ππβ(πππ’π’π΄π΄)|ππ (27)
Rearranging and simplifying:
1π΄π΄
(πππ’π’π΄π΄)|ππ+βππ β (πππ’π’π΄π΄)|ππβπ΄π΄
=ππ(ππππ)ππππ
(28)
Itβs important to understand what this equation implies. Over the positive distance interval βπ΄π΄,
as one moves a small increment away from the well-bore, the product πππ’π’π΄π΄ will increase if mass
in accumulating in the control volume. If the control volume is losing mass, then πππ’π’π΄π΄ will
decrease over βπ΄π΄. In a black oil reservoir above the bubble point experiencing steady state flow,
ππ is approximately constant, ππ(ππππ)πππ‘π‘
is zero; therefore π’π’ β 1ππ.
The Taking the limit as βπ΄π΄ β 0, we state:
1π΄π΄ππ(πππ’π’π΄π΄)πππ΄π΄
=ππ(ππππ)ππππ
(29)
This is the radial continuity equation. Q.E.D.
Assignment 3
PETR 5325 (Fall 2015) 32
TASK 3
Dirichlet boundary condition
Suppose it is known that ππ is a function of (π₯π₯, ππ) with the conditions:
ππ2ππ
πππ₯π₯2= πΌπΌ2 ππππ
πππ‘π‘ ; πΌπΌ is a constant (1π΄π΄)
π₯π₯| 0 β€ π₯π₯ β€ πΏπΏ (1ππ)
ππ| ππ β₯ 0 (1ππ)
ππ(π₯π₯, 0) = ππ(π₯π₯) πππππ΄π΄ π₯π₯| 0 < π₯π₯ < πΏπΏ ; ππ(π₯π₯) is an explicit function (1ππ)
ππ(0, ππ) = ππ(πΏπΏ, ππ) = 0 for ππ| ππ β₯ 0 (1ππ)
We wish to derive a numerical approximation of ππ for discretized values of π₯π₯| 0 < π₯π₯ < πΏπΏ and
of ππ > 0. The step lengths are denoted βπ₯π₯ and βππ respectively. The step number in π₯π₯ will be
noted by the subscript ππ, and the step number in ππ will be noted by the superscript ππ. Hence, we
seek an approximation function ππ of the equivalent forms:
ππ(ππβπ₯π₯, (ππ + 1)βππ) = πποΏ½πποΏ½(ππ + 1)βπ₯π₯,ππβπποΏ½,ππ(ππβπ₯π₯,ππβππ),πποΏ½(ππ β 1)βπ₯π₯,ππβπποΏ½οΏ½ (2π΄π΄)
ππ(π₯π₯ππ, ππππ + βππ) = ππ{ππ(π₯π₯ππ + βπ₯π₯, ππππ),ππ(π₯π₯ππ, ππππ),ππ(π₯π₯ππ β βπ₯π₯, ππππ)} (2ππ)
ππ(π₯π₯ππ, ππππ+1) = ππ{ππ(π₯π₯ππ+1, ππππ),ππ(π₯π₯ππ, ππππ),ππ(π₯π₯ππβ1, ππππ)} (2ππ)
ππππππ+1 = ππ{ππππ+1ππ ,ππππππ,ππππβ1ππ } (2ππ)
Our explicit function for ππππ0, and our given values for ππ0ππ and πππΏπΏππ form the boundary conditions
that allow us to calculate all ππππππ in an iterative fashion. For example:
Assignment 3
PETR 5325 (Fall 2015) 33
ππ11 = ππ{ππ20,ππ10,ππ00} (3)
We know from (1ππ) that ππ20 = ππ(2) and that ππ10 = ππ(1). We also know from (1ππ) that ππ00 = 0.
If we just knew ππ, then we could find ππ11. Similarly:
ππ21 = ππ{ππ30,ππ20,ππ10} (4)
In this case, all the arguments of ππ are known from ππ(π₯π₯).
Similarly: If πΌπΌ = πΏπΏβπ₯π₯
, then πΌπΌ represents the total number of steps in π₯π₯. Then:
ππππππ+1 = ππ{ππππ+1ππ ,ππππππ,ππππβ1ππ } (5π΄π΄)
πππΌπΌβ11 = ππ{πππΌπΌ0,πππΌπΌβ10 ,πππΌπΌβ20 } (5ππ)
From (1ππ), the Dirichlet boundary condition, we know that πππΌπΌ0 = 0. The other arguments,
again, are from (1ππ). Obviously, then, we can find any ππππ1. Once we find all ππππ1, we can use
(2ππ) to find any ππππ2 for π₯π₯| 0 β€ π₯π₯ β€ πΏπΏ :
ππππππ+1 = ππ{ππππ+1ππ ,ππππππ,ππππβ1ππ } (6π΄π΄)
ππππ2 = ππ{ππππ+11 ,ππππ1,ππππβ11 } (6ππ)
Itβs clear, then, that we will be able to find any ππππππ. This, then, is our motivation for seeking the
approximation function ππ. If ππ(π₯π₯, ππ) represents the pressure transient of a depleting reservoir,
then ππ would allow the generation of a numerical solution for ππ in the typical case where an
analytical solution is not available.
Assignment 3
PETR 5325 (Fall 2015) 34
To begin, we take the Taylor series forward expansion of ππ with regard to π₯π₯ (equivalent forms):
ππ(π₯π₯ + βπ₯π₯, ππ) = ππ(π₯π₯, ππ) +βπ₯π₯1!οΏ½πππππππ₯π₯οΏ½π₯π₯
π‘π‘
+(βπ₯π₯)2
2!οΏ½ππ2πππππ₯π₯2
οΏ½π₯π₯
π‘π‘
+(βπ₯π₯)3
3!οΏ½ππ3πππππ₯π₯3
οΏ½π₯π₯
π‘π‘
+ β― (7π΄π΄)
ππππ+1ππ = ππππππ +βπ₯π₯1!οΏ½πππππππ₯π₯οΏ½ππ
ππ
+(βπ₯π₯)2
2!οΏ½ππ2πππππ₯π₯2
οΏ½ππ
ππ
+(βπ₯π₯)3
3!οΏ½ππ3πππππ₯π₯3
οΏ½ππ
ππ
+ β― (7ππ)
Next, we take the backwards expansion:
ππππβ1ππ = ππππππ +(ββπ₯π₯)
1!οΏ½πππππππ₯π₯οΏ½ππ
ππ
+(ββπ₯π₯)2
2!οΏ½ππ2πππππ₯π₯2
οΏ½ππ
ππ
+(ββπ₯π₯)3
3!οΏ½ππ3πππππ₯π₯3
οΏ½ππ
ππ
+ β― (8)
We add (7ππ) and (8):
ππππ+1ππ + ππππβ1ππ = 2ππππππ + (βπ₯π₯)2 οΏ½ππ2πππππ₯π₯2
οΏ½ππ
ππ
+ β―ππ(βπ₯π₯)4 (9)
The term ππ(βπ₯π₯)4 represents the summation of the remaining terms not shown. The term ππ
means, βof order.β In other words, the remaining terms are at most of order, or proportional to
(βπ₯π₯)4. Assuming βπ₯π₯ βͺ 1, then ππ(βπ₯π₯)4 is negligible and may be safely ignored. This error
introduced to our approximation due to ignoring the remaining terms of the Taylor series
expansion is called the discretization error.
Rearranging (9) and simplifying:
ππππ+1ππ β 2ππππππ + ππππβ1ππ
(βπ₯π₯)2 = οΏ½ππ2πππππ₯π₯2
οΏ½ππ
ππ
(10)
Assignment 3
PETR 5325 (Fall 2015) 35
To make this equation more intuitively meaningful, consider the equivalent form:
οΏ½ππππ+1ππ β ππππππβπ₯π₯ οΏ½ β οΏ½ππππ
ππ β ππππβ1ππ
βπ₯π₯ οΏ½
βπ₯π₯=οΏ½πππππππ₯π₯οΏ½ππ+12
ππβ οΏ½πππππππ₯π₯οΏ½ππβ12
ππ
βπ₯π₯= οΏ½
ππ οΏ½πππππππ₯π₯οΏ½πππ₯π₯
οΏ½
ππ
ππ
(11)
The group οΏ½ππππ+1ππ βππππ
ππ
βπ₯π₯οΏ½ represents the estimate of οΏ½ππππ
πππ₯π₯οΏ½ππ
ππ at a forward half-step, βπ₯π₯
2. The central
approximation of change in οΏ½πππππππ₯π₯οΏ½ππ
ππ over βπ₯π₯ is expressed by the middle of (11).
Plugging (10) into (1a), we obtain:
ππππ+1ππ β 2ππππππ + ππππβ1ππ
(βπ₯π₯)2 = πΌπΌ2 οΏ½πππππππποΏ½ππ
ππ
(12)
The right side of (1a) has become defined in (12) at the particular discretization intervals of ππ and
ππ. This is the consequence of estimating the left side of (1a) in (12) at those intervals.
We now take the Taylor forward expansion-based approximation of ππππππ+1:
ππππππ+1 = ππππππ +βππ1!οΏ½πππππππποΏ½ππ
ππ
+(βππ)2
2!οΏ½ππ2ππππππ2
οΏ½ππ
ππ
+(βππ)3
3!οΏ½ππ3ππππππ3
οΏ½ππ
ππ
+ β― (13)
ππππππ+1 = ππππππ +βππ1!οΏ½πππππππποΏ½ππ
ππ
+ β―ππ(βππ)2 (14)
ππππππ+1 β ππππππ
βππ= οΏ½
πππππππποΏ½ππ
ππ
(15)
Note that this approximation has a larger discretization error, which is proportional to (βππ)2.
The left hand side of (15) would actually approximate οΏ½πππππππ‘π‘οΏ½ππ
ππ+12 more closely. However, by we
Assignment 3
PETR 5325 (Fall 2015) 36
can minimize this error as much as we want by making βππ smaller. Subbing (15) into (12), we
obtain:
ππππ+1ππ β 2ππππππ + ππππβ1ππ
(βπ₯π₯)2 = πΌπΌ2ππππππ+1 β ππππππ
βππ (16)
Rearranging and solving for ππππππ+1:
ππππππ+1 = ππππππ +βππ
πΌπΌ2(βπ₯π₯)2(ππππ+1ππ β 2ππππππ + ππππβ1ππ ) (16)
This is our approximation function ππ for ππππππ+1.
Neumann condition
Letβs suppose now that the boundary condition at πΏπΏ is changed:
ππππ(πΏπΏ,π‘π‘)πππ₯π₯
= 0 for ππ| ππ β₯ 0 (17)
Now we are no longer given the value of any πππΌπΌππ. We will be unable to utilize ππ to find any ππππππ
whose antecedentβs ππ function depends on a value of πππΌπΌππ. We need to use (17) to develop an
approximation procedure for πππΌπΌππ.
Letβs add βπ₯π₯ to πΏπΏ to create an imaginary set of πππΌπΌ+1ππ values. Now we use (7b) and (8) to write the
forward and backward Taylor expansions of πππΌπΌππ:
πππΌπΌ+1ππ = πππΌπΌππ +βπ₯π₯1!οΏ½πππππππ₯π₯οΏ½πΌπΌ
ππ
+(βπ₯π₯)2
2!οΏ½ππ2πππππ₯π₯2
οΏ½πΌπΌ
ππ
+(βπ₯π₯)3
3!οΏ½ππ3πππππ₯π₯3
οΏ½πΌπΌ
ππ
+ β― (18)
πππΌπΌβ1ππ = πππΌπΌππ +(ββπ₯π₯)
1!οΏ½πππππππ₯π₯οΏ½πΌπΌ
ππ
+(ββπ₯π₯)2
2!οΏ½ππ2πππππ₯π₯2
οΏ½πΌπΌ
ππ
+(ββπ₯π₯)3
3!οΏ½ππ3πππππ₯π₯3
οΏ½πΌπΌ
ππ
+ β― (19)
Assignment 3
PETR 5325 (Fall 2015) 37
Subtract (19) from (18) and simplifying:
πππΌπΌ+1ππ β πππΌπΌβ1ππ = 2βπ₯π₯ οΏ½πππππππ₯π₯οΏ½πΌπΌ
ππ
+(βπ₯π₯)3
3οΏ½ππ3πππππ₯π₯3
οΏ½πΌπΌ
ππ
+ β― (20π΄π΄)
πππΌπΌ+1ππ β πππΌπΌβ1ππ = 2βπ₯π₯(0) + ππ(βπ₯π₯)3 (20ππ)
πππΌπΌ+1ππ = πππΌπΌβ1ππ (20ππ)
Note that at (20b) we applied (17) to render οΏ½πππππππ₯π₯οΏ½πΌπΌ
ππ= 0. Taking (16) at πΌπΌ:
πππΌπΌππ+1 = πππΌπΌππ +βππ
πΌπΌ2(βπ₯π₯)2(πππΌπΌ+1ππ β 2πππΌπΌππ + πππΌπΌβ1ππ ) (21)
Subbing (20c) into (21) and simplifying, we have:
πππΌπΌππ+1 = πππΌπΌππ +βππ
πΌπΌ2(βπ₯π₯)2(πππΌπΌβ1ππ β 2πππΌπΌππ + πππΌπΌβ1ππ ) (22π΄π΄)
πππΌπΌππ+1 = πππΌπΌππ +2βππ
πΌπΌ2(βπ₯π₯)2(πππΌπΌβ1ππ β πππΌπΌππ) (22ππ)
As long as we are given all of ππππ0, including πππΌπΌ0, we can then use (22b) to find πππΌπΌ1. If we use (16)
to find the rest of ππππ1, then we can use (22b) again to find πππΌπΌ2. Clearly, we will be able to
approximate the remaining values of ππππππ.
Sometimes the Neumann condition is stated in a more general form:
ππππ(πΏπΏ,π‘π‘)πππ₯π₯
= πΆπΆ for ππ| ππ β₯ 0 ; πΆπΆ is a constant (23)
This would require the modification of (20b) through (22b) as follows:
Assignment 3
PETR 5325 (Fall 2015) 38
πππΌπΌ+1ππ β πππΌπΌβ1ππ = 2βπ₯π₯(πΆπΆ) + ππ(βπ₯π₯)3 (24π΄π΄)
πππΌπΌ+1ππ = πππΌπΌβ1ππ + 2πΆπΆβπ₯π₯ (24ππ)
πππΌπΌππ+1 = πππΌπΌππ +βππ
πΌπΌ2(βπ₯π₯)2(πππΌπΌβ1ππ + 2πΆπΆβπ₯π₯ β 2πππΌπΌππ + πππΌπΌβ1ππ ) (25π΄π΄)
πππΌπΌππ+1 = πππΌπΌππ +2βππ
πΌπΌ2(βπ₯π₯)2(πππΌπΌβ1ππ β πππΌπΌππ + πΆπΆβπ₯π₯) (25ππ)
For these cases, we need to know the value of πΆπΆ to complete our approximations.
TASK 4
Reservoir simulation is a branch of reservoir engineering in which reservoir models are
built to predict fluid flow behavior through porous media. Such reservoir models can be either
physical (such as laboratory sand packs) or more often numerical. Numerical (i.e. mathematical)
models are built on a set of equations that - subject to certain assumptions and constraints -
describes the physical processes active in the reservoir. Reservoir simulation is an invaluable
tool used widely by the upstream petroleum industry to estimate reservoir field performance over
time under various producing schemes, thereby leading to more accurate assessments of risk and
reserves and more cost-effective field development planning.
This section of the report presents a comparative table that highlights key similarities and
differences between the two principal types of numerical reservoir simulators - black-oil and
compositional simulators. The key difference between these two types of models is rooted in the
methods used by the two simulators to characterize the phase behavior of a reservoir fluid.
Assignment 3
PETR 5325 (Fall 2015) 39
Table 3: Black-Oil vs Compositional Simulator
BLACK-OIL SIMULATOR COMPOSITIONAL SIMULATOR
Description β’ A fluid model which assumes that the stock-tank oil and gas have multiple components, and that all of the resulting fluid PVT behavior is a function of temperature and pressure only
β’ A fluid model which treats each individual component in the hydrocarbon fluid mixture separately and handles each in terms of moles of the individual components
Capabilities β’ Characterized by the number of fluid phases present (1, 2, or 3), the direction of flow, and the type of solution used for the complex fluid flow equations
β’ Concerned with modeling the phase behavior of the individual components (C1, C2, etc.) present in a hydrocarbon fluid mixture
Similarities β’ Both simulators are built to model reservoir fluid behavior for the purposes of aiding in the design of production processes and equipment
Differences β’ Governed only by fluid flow mechanisms
β’ Oil and gas phases are each represented by a single component
β’ Liquid/gas stock-tank compositions of the separator flash conditions are assumed constant, regardless of pressure
β’ Equations are written in terms of stock-tank volumes
β’ Governed by fluid flow and phase composition flow mechanisms
β’ Oil and gas phases are represented as multi-component mixtures
β’ Equations are written at reservoir conditions under the assumption that a valid EOS model can be used to represent fluid phase behavior
Advantages β’ Suitable for most petroleum reservoirs; can be used in ~90% of all petroleum reservoir simulation studies
β’ Can be used to model most reservoir fluids, including dry gases, wet gases, heavy oils and volatile oils
β’ Run times normally do not adversely affect the required total study time
β’ Capable of handling higher degree of complexity in fluid composition and behavior
β’ Can be used to accurately model lean gas cycling in the presence of oil that will vaporize in the lean gas
Disadvantages β’ Breaks down in cases where lean gases such as CO2 or CH4 are cycled in the presence of a liquid phase Cannot model variability in oil
vaporization since thereβs only 1 oil component
Under-predicts early oil vaporization in the presence of injected lean gas when used to model gas recycling processes
β’ Does not model the effects of changes in reservoir fluid composition that may occur with depletion over time
β’ Run times can become long enough to adversely affect total study times and can require significantly more computing (CPU) power to perform
β’ Software interfaces tend to lag behind those of black oil simulators since it is used only by a small community of experts
β’ Requires the use of a verified EOS model to represent the fluid properties of the different components
Assignment 3
PETR 5325 (Fall 2015) 40
Process
Applications
β’ Black-oil simulators can be appropriately used for the vast majority of petroleum reservoir fluid systems
β’ For wet gas and volatile oil applications, a modified black-oil simulator can be constructed if PVT data for the reservoir includes both the gas dissolved in the oil phase and the oil dissolved in the gas.
β’ Compositional simulators are built to calculate residual fluid volumes resulting from phase behavior interactions and thus can model fluid saturation as a process variable, rather than requiring it as an input that must be defined by the user in order to perform the simulation
TASK 5
The goal of this task was to research the main commercial and open-source simulators that are
available for use in reservoir simulation studies. The key aspects of each simulator were
organized in the following series of tables.
Table 4: Commercial Simulators
Name ECLIPSE RESERVOIR SIMULATOR
Company Owner(s) Schlumberger
Overview β’ Arguably the industryβs most complete and robust numerical simulator β’ Offers fast and accurate prediction of dynamic behavior for all reservoir
types and development schemes
Characteristics
& Key Features
β’ Covers the entire spectrum of reservoir models β black-oil, compositional, thermal finite-volume, and streamline simulation
β’ Capable of modeling chemical reactions that occur in the reservoir and can simulate both live and dead oil behaviors
β’ Ideal for simulating thermal recovery methods like steam-assisted gravity drainage (SAGD) applied to heavy (high viscosity) oil reservoirs Can be used to build low-temperature thermal models suitable for
conducting laboratory experiments β’ Includes features designed for modeling reservoirs with complex
stratigraphy and well designs Dual completions, horizontal multi-stage fracture treatments, etc.
Applications β’ Capable of modeling and simulating nearly all processes, including: Steam-assisted gravity drainage (SAGD) Steam flooding In-situ combustion Cyclic steam injection
Assignment 3
PETR 5325 (Fall 2015) 41
Name IMEX RESERVOIR SIMULATOR
Company Owner(s) Computer Modeling Group LTD (CMG)
Overview β’ Regarded as one of the most efficient conventional three-phase black-oil simulators available on the market
β’ Used to history match and forecast performance of primary, secondary and tertiary recovery processes
Characteristics
& Key Features
β’ Generates simulation results faster than with any other black-oil simulator β’ Allows for quick screening of various recovery mechanisms prior to
moving to more complex simulations β’ Capable of accurately modeling the matrix-fracture transfer in naturally
and/or hydraulically fractured reservoirs β’ Allows for easy transition to modeling of EOR processes in sister
applications GEM and STARS β’ Seamlessly interfaced with CMOST to permit rapid history matching and
efficient development of reservoir management workflows
Applications β’ Can be used to model shale gas adsorption effects β’ Useful for a wide variety of applications, including:
Conventional and unconventional reservoirs Enhanced oil recovery (EOR) processes Coupled surface network modeling
Assignment 3
PETR 5325 (Fall 2015) 42
Name JEWELSUITETM SUBSURFACE MODELING
Company Owner(s) Baker-Hughes
Overview β’ User-friendly subsurface modeling software that can be used to build accurate 3D reservoir models with high structural complexity.
β’ Models are designed to capture regional and local structural variations and can be easily updated to incorporate new wells and geologic information
Characteristics
& Key Features
β’ Features a modern intuitive user interface, automatic and semi-automatic workflows and build-in smart rules to accelerate the learning curve for new users and reduce the risk of errors along with project study times
β’ Offers the most advanced multidisciplinary knowledge and techniques available for quick, accurate and effective data interpretation
β’ Can be used as a standalone software application or in conjunction with other JewelSuite or third party software to complement other workflows
β’ Uses a patented grid building technology to generate an advanced βJewelβ grid with faulted cells which are are cut and offset by the faults
Applications β’ Can be used to build accurate and complex 3D reservoir models β’ Other areas of application include:
Seismic data visualization and interpretation (time-depth conversion) Well correlation and structural modeling 3D gridding and reservoir property modeling via geostatistics Volumetrics, well planning, and multi-point statistics (MPS)
Assignment 3
PETR 5325 (Fall 2015) 43
Name TNAVIGATOR
Company Owner(s) Rock Flow Dynamics (RFD)
Overview β’ Interactive black-oil, compositional, and thermal simulator capable of using multi-core, multi-CPU systems
β’ Designed for performing dynamic black-oil, compositional, and thermal compositional reservoir simulations on laptops, servers and High Performance Computing (HPC) clusters
Characteristics
& Key Features
β’ Written in C++ β’ Employs Qt graphics libraries to create true multiplatform system β’ Offers interactive user control of the simulation run, allowing users to
monitor every step of the simulation at runtime and, with just a simple mouse click, to directly interrupt and modify the simulation configuration
β’ Incorporates state-of-the-art computing technologies like NUMA and Hyperthreading to exceed the performance of other competitor dynamic simulation tools
β’ Utilizes a fully implicit time scheme which allows for large time steps based on specific approximation criteria
β’ Uses a Bi-Conjugate Gradient Stabilized (BCGS) algorithm to solve systems of linear equations
β’ Handles only state variables of the reservoir model to prevent hard disk operational restrictions during simulation runs
Applications β’ Useful for a wide variety of applications such as: Injection optimization Waterflooding Sidetrack planning Field development planning and optimum well placement Modeling of natural and hydraulic fracture effects
Assignment 3
PETR 5325 (Fall 2015) 44
Name FLOWSIM STUDIO
Company Owner(s) Plano Research
Overview β’ Provides a fully implicit, three-phase, three-dimensional black-oil and composite reservoir simulator
β’ Simulates dynamic responses of petroleum reservoir performance by computing oil, gas and water phase flow behavior within the reservoir
Characteristics
& Key Features
β’ Capable of handling both single and dual porosity reservoirs β’ Regarded as being extremely flexible and user-friendly β’ Features various gridding options like rectangular, radial, corner point, to
handle complex reservoir structures β’ Local grid refinement and curvilinear grids can be used to model
areas of high activity such as near the well bores β’ High-level summary of key features:
Well data and simulation controls Real-time reservoir monitoring 2D mapping and plotting and 3D visualization capabilities
Applications β’ Can be used to simulate surface gas network operations and partial field model linking
β’ Can also be used for complex well modeling, multi-reservoir simulation, analysis of aquifer influx in water-drive reservoirs, and miscible flooding processes, among others
Assignment 3
PETR 5325 (Fall 2015) 45
Table 5: Public Domain Simulators
Name UTCHEM
Funding / Ownership University of Texas at Austin
Overview β’ A three-dimensional, multiphase, multicomponent, compositional, variable temperature, finite-difference numerical reservoir simulator
Characteristics
& Key Features
β’ Code was written to run on most Unix workstations and Windows PCs β’ Designed for third-order finite difference modeling with a flux limiter β’ Assumes constant pressure boundaries and can model both horizontal and
vertical wells β’ Features Cartesian, radial, and curvilinear gridding options β’ Handles heterogeneous permeability and porosity reservoirs β’ Also has a variety of groundwater hydrology applications
Applications β’ Developed by the Department of Energyβs National Petroleum Technology Office for applications such as: Tracer tests for characterizing both single and dual porosity oil reservoirs Polymer and high pH chemical flooding for enhanced oil recovery (EOR) Analysis of Surfactant EOR including the use of polymers and foam Profile control of oil wells with polymer gels Simulating skin damage of oil wells
Name MATLAB RESERVOIR SIMULATION TOOLBOX (MRST)
Funding / Ownership SINTEF Applied Mathematics
Overview β’ Consists of two main parts: (1) a core that offers basic functionality, and (2) a set of add-on modules that provide discretization, solvers and other workflow tools
Characteristics
& Key Features
β’ Features a comprehensive set of routines and data structures for reading, representing, processing and visualizing unstructured grids
β’ Designed with special emphasis on the corner-point gridding format used widely in the oil and gas industry
β’ Contains mimetic and multiscale flow solvers as well as transport solvers
Applications β’ Intended mainly as a toolbox for prototyping, testing and demonstration of new simulation techniques and modeling concepts on unstructured grids
Assignment 3
PETR 5325 (Fall 2015) 46
Name PC-GEL SIMULATOR
Funding / Ownership IIT Research Institute
National Institute for Petroleum & Energy Research (NIPER)
Overview β’ A three-dimensional, three-phase permeability modification simulator developed by incorporating an in-situ gelation model into a black-oil simulator (BOAST)
Characteristics
& Key Features
β’ Features include: Modeling of transport of each species of polymer/crosslinker system Modeling of gelation reaction kinetics of polymers with crosslinkers Rheology of the gel and polymer Inaccessible pore volume to macromolecules Adsorption of chemical species on rock surfaces Retention of gels on grains in the rock matrix Permeability reductions caused by adsorption of polymers and gels
Applications β’ Simulation and optimization of primary reservoir field production β’ Waterflooding and polymer flooding β’ Permeability modification treatments (acidizing, fracturing, etc.)
Assignment 3
PETR 5325 (Fall 2015) 47
Name GEMINI
(GEO-ENGINEERING MODELING THROUGH INTERNET FORMATICS)
Funding / Ownership U.S. Department of Energy (DOE)
Kansas Geological Survey (KGS)
Overview β’ A public domain web application centered on analysis & modeling of petroleum reservoirs and resource plays
β’ Creates projects from on-line data that comes from the KGS server or is uploaded by the user
Characteristics
& Key Features
β’ Provides optional security features to users (authorized access & passwords) β’ Features the following standalone analysis toolkit modules: PVT analysis Material balance Gridding and mapping LAS (well log) viewer Lease & field production reporting and analysis
Applications β’ Designed for small independents and consultants seeking to find, quantitatively characterize and develop bypassed reservoirs by levering the growing base of digital data resource
Assignment 3
PETR 5325 (Fall 2015) 48
Name OPM
(OPEN POROUS MEDIA)
Funding / Ownership Supported by various research groups in different countries
(Suite to be released under General Public Licensing (GPL) agreement)
Overview β’ The OPM initiative offers a set of tools useful for simulating flow and transport behavior of fluids in porous media
Characteristics
& Key Features
β’ Notable features of this open-source toolkit include: Maintains open-source code and data sets, so anyone with knowledge or
interest can learn and suggest improvements Built-in functionality to support multiple areas of application Versatile and can be made to support workflows in other scientific or
industrial fields
Applications β’ Applications are similar to the other software discussed, including: CO2 sequestration processes Enhanced oil recovery methods