Professional Documents
Culture Documents
University of Technology
Faculty of Geology & Petroleum Engineering
Department of Drilling - Production Engineering
Course
Reservoir Simulation
Trần Nguyễn Thiện Tâm
trantam2512@hcmut.edu.vn
Chapter 4
Finite-Difference Calculus to
Linear-Flow Equations
P i-1 i i+1
f ( x)
x x
Dx
P P Dxi / 2 P (Dxi / 2) 2 2 P
f ( x ) = f ( x ) + f ( x ) + f ( x ) + ...
x i +1/2 x i 1! x x i 2! x 2 x i
P P −Dxi / 2 P (−Dxi / 2) 2 2 P
f ( x ) = f ( x ) + f ( x ) + 2
f ( x ) + ...
x i −1/2 x i 1! x x i 2! x x i
P P
f ( x) − f ( x)
x
f ( x )
P
x i
=
x i +1/2
Dxi
x i −1/2
+ O ( )
Dx
2
( )
12/16/2022 Reservoir Simulation 5
Discretization in Conservative Form
P i-1 i i+1
f ( x)
x x
Dx
P P
f ( x ) − f ( x )
P x i +1/2 x i −1/2
x
f ( x )
x i
=
Dxi
+ (
O ( Dx )
2
)
P Pi +1 − Pi P Pi − Pi −1
= + O(Dx) = + O(Dx)
x i +1/2 2 (Dxi + Dxi +1 )
1
x i −1/2 2 (Dxi + Dxi −1 )
1
( Pi +1 − Pi ) ( Pi − Pi −1 )
2 f ( x)i +1/2 − 2 f ( x)i −1/2
P (Dxi +1 + Dxi ) (Dxi + Dxi −1 )
f ( x ) = + O(Dx)
x x i Dxi
Ax k x p Vb ct p
c Dx + qsc =
x B x c B t
Ax k x p Vb
c Dx + qsc =
x B x c t B
where Ax k x P ( Pi +1 − Pi ) P ( Pi − Pi −1 )
f ( x) = c 1 = =
B x i + (Dxi +1 + Dxi ) / 2 x i − 1 (Dxi −1 + Dxi ) / 2
2 2
The left side term of the 1D single-phase flow equation is now discritized as follow:
Ax k x P
c Dxi Txi + 12 ( Pi +1 − Pi ) + Txi − 12 ( Pi −1 − Pi )
x B x i
Ax k x 1
Tx = c
i 1
2 Dx i 1 B i 1
2 2
Ax k x
−1
1 Ax k x
−1
Ax k x
−1
c Dx 1 = c + c
Dx i 1
Dx i
i 2
2
or
Ax k x ( Ax k x )i 1 ( Ax k x )i
c 1 = 2 c
Dx i ( Ax k x )i Dxi 1 + ( Ax k x )i 1 Dxi
2
Ax k x 1
Tx = c
i 1
2 Dx i 1 B i 1
2 2
Weighted Average of Mobility
i + =
(Dxi +1i +1 + Dxi i )
1
2
(Dxi+1 + Dxi )
1
=
B (Dxi −1i −1 + Dxi i )
i − 1 =
2
(Dxi−1 + Dxi )
12/16/2022 Reservoir Simulation 12
Spatial Discretization
Ax k x 1
Tx = c
i 1
2 Dx i 1 B i 1
2 2
( Ax k x )i 1 ( Ax k x )i
Tx = 2 c
i
1
2
( Ax k x )i Dxi 1 + ( Ax k x )i 1 Dxi
1 1 1
Dxi 1
+ Dx
Dxi 1 + Dxi i
B i 1 B i
Semi-implicit Method (0 ≤ θ ≤ 1)
qsc n +1 + Txni++1/21 ( pin++11 − pin +1 ) + Txni−+1/21 ( pin−+11 − pin +1 )
i
n n n n n n Vb ct
+ (1 − ) Txi+1/2 ( pi +1 − pi ) + Txi−1/2 ( pi −1 − pi ) =
n +1
(p
n +1
i − pin )
c i
B Dt
1000 ft
qsc = −150 STB/D p
=0
x
p
=0
x
75 ft
1 2 3 4 5
1000 ft
75 ft
1 2 3 4 5
1000 ft
p = 6000psia
1000 ft
qsc = −75 STB/D qsc = −75 STB/D p
=0
x
p
=0
x
75 ft
1 2 3 4
1000 ft
75 ft
1 2 3 4
1000 ft
p = 6000psia