Professional Documents
Culture Documents
Week 7/8
Rosalind Archer
1.1 Intro to Petroleum Engineering
• Petroleum engineers study the flow of
oil, gas and water through the the rock
comprising oil reservoirs.
Oil Zone
Water Water
krw
kro
1.15 Capillary Pressure
• Difference in pressure across the
interface between two fluids
• Function of saturation
pc po pw
1.16 Capillary Pressure
40
30
Pc, psi20
Drainage
10
0
0.2 0.4 0.6 0.8 1.0
Imbibition Sw
1.17 Standard Conditions
• Oil is typically measured in barrels,
1 barrel = 5.615 ft3 = 0.1589 m3.
This figures
shows porosity
values in a
200,000 cell grid
SPE 71596
1.20 Continuity Equation
• The general equation for flow in a porous
medium is
ru ) fr )
t
where
f is porosity , r is density, u is velocity,
and t is time.
ru n dS
ru
1.22 Derivation
• When u is not normal (perpendicular) to
the surface, we take the normal
component u.n so that:
rate of mass flow out of dS = ( ru n ) dS
(fr )
rate of mass loss out of V= dV
t
• We then get the total rate of mass loss by
integrating over the entire element:
(fr)
ru )dV dV
V V
t
1.25
• This implies:
(fr)
(ru )
t
1.26 Alternative Viewpoint
Dz
Dy
x x+Dx
1.28
• Inflow rate
volume of fluid entering the block
= velocity*area
(u) |x (DyDz)
mass of fluid entering the block
(ru) |x (DyDz)
units = mass/time
1.30
• Outflow rate
volume of fluid leaving the block
= velocity*area
(u ) |( x Dx ) (DyDz)
mass of fluid entering the block
(ru ) |( x Dx ) (DyDz)
units = mass/time
1.31
rf)t Dt (rf) t
(DxDyDz)
Dt units = mass/time
1.32 Conservation of Mass
• Conservation of mass requires the net
inflow rate i.e. (inflow - outflow), must
equal the accumulation rate.
(ru ) (rf)
x t
i.e. continuity equation for 1D flow.
1.34 Summary
• This equation is very general. It can be
applied to any fluid flow situation. We
will customize the continuity equation to
represent oil and gas flows by
considering the representation of
density and velocity in more detail.
1.35 Diffusivity Equations
• Basic equations of fluid flow in a porous
medium combine:
Continuity Equation ru ) fr)
t
k
Darcy ' s Law u p
m
Equation of State r f p, T )
1.36 Compressibility
• Also use definition of isothermal
compressibility:
1 V 1 B 1 r
Fluid c
V p T B p T r p m,T
1 f
Rock cf
f p T
1.37 Derivation
• Start by substituting Darcy’s Law into
the continuity equation:
k fr )
r p
m t
• Assume constant k, m
m fr )
rp
k t
1.38
k t
• We now have:
m 1 (fr )
p
2
k r t
1.40
k r t t
k r t t
fm p
p 2
(c c f )
k t
fmct p
p 2
k t
1.42 Linearity
• If fmct does not depend on p the
k
equation is linear.
fmct
• If k does depend on p the
equation is nonlinear.
1.43 Coordinate Systems
• Cartesian
2 p 2 p fmct p
2
x 2
y k t
• Radial
2 p 1 p fmct p
r 2
r r k t
z 2
1.44 Diffusivity: Numerical Solution
p
2
p fmc t
where
x 2
t 0.00633k
• First discretize the region on interest
over both space and time.
t t1 , t 2 , t 3 , ...
1.45 Diffusivity: Numerical Solution
• Replace the analytical derivatives by
numerical approximations.
– Central difference in space
– Backward difference in time
n 1
pi 1 2pi pi 1 p p n
i i
Dx )2
Dt
t
n+1
t
n
t
1
t
x
x i-1 xi x i+1
1.47 Implicit - Time Level of Terms
Outflow
Inflow
Accumulation
Conservation of Mass
Rate of Inflow - Rate of Outflow = Rate of Accumulation
1.50 Gridblock Mass Balance
Dz
Dy
xi-1 xi xi+1
Consider a balance on block i:
k dp
Inflow 0.00633 (DyDz) i-1/2 denotes
mB dx i 1 the boundary
2 between i-1 and i
n 1 n 1
k pi 1 pi Unit standard ft3/day
0.00633 (DyDz)
mB Dx
1.51 Gridblock Mass Balance
k dp
Outflow 0.00633 (DyDz)
mB dx i 1
2
n 1 n 1
k p p
0.00633 (DyDz) i i 1
mB Dx
i+1/2 denotes
the boundary
between i+1 and i
Fluid compressibility:
1 V
c
V p
1.53 Gridblock Mass Balance
• We are interested in the rate of increase
of fluid volume in the gridblock (dV/dt)
V V p
t p t
k n 1
pi 1 pi
n 1
pi pi 1
n 1 n 1
0.00633 (DyDz)
mB Dx Dx
fc t (DxDyDz) pi pi
n 1 n
B Dt
1.57 Conservation of Mass
k pi 1 2pi pi 1
n 1 n 1 n 1
0.00633
mB (Dx ) 2
fc t pi pi
n 1 n
B Dt
k pi 1 2 pi pi 1
n 1 n 1 n 1
0.00633
mB (Dx) 2
fct pi pi
n 1 n
qi
B Dt
1.60 Wells
• Initial condition
p pinitial i 1, 2,, IMAX )
0
i (1D case)
• Boundary conditions
– Constant pressure at boundaries:
mass balance equation replaced by a
constraint equation.
p1 C1
pIMAX C2
1.62 Initial and Boundary Conditions
• Boundary conditions
– No flow at boundaries … delete flow
term corresponding to that boundary.
No flow
boundary Dz
Dy
xi xi+1
1.63
k n 1 n 1
pi 1 pi pi pi 1
n 1 n 1
0.00633 (DyDz )
m Dx Dx
pin 1 pin Delete
fct (DxDyDz ) inflow term
Dt
1.64
k p p
n 1 n 1
i 1
0.00633 i
m (Dx) 2
pi pi
n 1 n
fct
D t
1.65 Implicit Solution
• System of equations
– Left boundary (i = 1)
n 1
p 1 C1 (or no flow)
b1 c1
a b2 c2
2
a3 b3 c3
. . .
. . . pin11
n 1
ai bi ci pi d i
. . . p n 1
i 1
. . .
bN
aN
1.67 Matrix Structure
• System is tridiagonal
• Advantage
– Unconditionally stable
• Disadvantage
– Matrix solution
1.69 Explicit Solution
1
t
x
x i-1 xi x i+1
1.71 Initial and Boundary Conditions
• Explicit equations
– Left boundary (i = 1)
p1 C1 (or no flow)
• Advantage
– Simple
– Disadvantage
– Stability limited
r
Dt
Dx ) 2
2
1
1.76 Stability Limit
For the problem:
p 1 p
2
p 2
2
x t
The stability limit is:
Dt
r Dx ) 2
1
2