Professional Documents
Culture Documents
Chato Solutions_ Simulate well test response using analytical solutions
Chato Solutions_ Simulate well test response using analytical solutions
Using Stehfest Numerical Laplace Inversion algorithm to simulate well pressure response.
AUTHOR
PUBLISHED CITATION
Through the stehfest numerical inverse transformation method (1976), we can calculate dimensionless
wellbore pressure in real space. The Laplace transform method can be given by (1)
N
min(i, ) N
2
N k 2 (2k)!
+i
V (i) = (−1) 2 ∑
N
i+1 ( − k)!(k)!(k − 1)!(i − k)!(2k − i)!
k= 2
2
where
N
ln(2) ¯¯
¯
f (t) = ∑ V (i)f (s)
t
i=1
ln(2)
s = i
t
The variable N could be one of the even numbers from 6 to 18. In this case we use the V (i) with Stehfest
parameter N = 8
Using the stehfest algorithm in the infinite acting reservoir with WBS and skin equation (2), we can get
dimensionless pressure in real space.
https://www.chatosolutions.com/posts/2021-10-17-stephest1/ 1/7
7/29/23, 11:29 AM Chato Solutions: Simulate well test response using analytical solutions
−
− −
− −
−
¯
¯¯¯¯¯¯¯¯ 1 K 0 (√u ) + s√u K 1 (√u )
P wD = [ ]
−
− −
− −
− −
− −
−
u √u K 1 (√u ) + CD u[K 0 (√u ) + s√u K 1 (√u ])
pressure
kh
pD =
141.2qBμ
time
0.000264k
tD =
2
ϕμc t rw
wellbore storage
0.8936
CD =
2
ϕ c t hr w
radial distance
r
rD =
rw
Taking results from type curve post, Pressure response is simulated the response and compared with data.
First load the data to take the time elapse.
library ( plotly )
library ( dplyr )
library ( DT )
datatable( data.DD )
t pwf
1 0.001 2748.95
2 0.0021 2745.62
3 0.0034 2744.63
4 0.0048 2745.49
5 0.0064 2741.7
https://www.chatosolutions.com/posts/2021-10-17-stephest1/ 2/7
7/29/23, 11:29 AM Chato Solutions: Simulate well test response using analytical solutions
t pwf
6 0.0082 2742
7 0.0102 2736.69
8 0.0125 2737.26
9 0.0151 2733.72
10 0.018 2729.13
plot_pwf
2800
2600
Pwf, psi
2400
2200
2000
0 20 40 60
time, hr
A log-log plot is generated from pressure change and its logarithmic derivative to identify flow regime.
https://www.chatosolutions.com/posts/2021-10-17-stephest1/ 3/7
7/29/23, 11:29 AM Chato Solutions: Simulate well test response using analytical solutions
#Results
k <- 22.92
s <- 5.78
C <- 0.005
plot_log
1000 dp
5
dp'
100
5
Pwf, psi
10
1
https://www.chatosolutions.com/posts/2021-10-17-stephest1/ 4/7
7/29/23, 11:29 AM Chato Solutions: Simulate well test response using analytical solutions
1
time, hr
PwD <- 0
m <- length ( tD )
for ( j in 1 : m ) {
a <- log ( 2 ) / tD [ j
]
i <- c ( 1 : length ( V )
)
u <- ( i * a )
ru <- sqrt ( u )
aux1 <- besselK ( ru ,0 ) + s *
ru * besselK ( ru ,1 )
aux2 <- ru * besselK ( ru ,1 ) +
cD * u * ( besselK ( ru ,0 )
+ s * ru * besselK ( ru ,1 )
)
PwDL <- 1 / u * ( aux1 / aux2
)
return ( PwD )
Now, The Stehfest_inversion() function is used with the results parameters. Fisrt, time and WBS is estimated
from above equations and then they and skin are used as Stehfest_inversion() parameters functions.
In the log-log plot we can observe a difference between pressure change from data and the simulation,
the different could be less adjust the k, C and s values with non-linear regression
https://www.chatosolutions.com/posts/2021-10-17-stephest1/ 5/7
7/29/23, 11:29 AM Chato Solutions: Simulate well test response using analytical solutions
cD <- ( 0.8936 * C ) / ( h
* phi * ct * rw ^ 2 )
plot_log
1000 dp
5
dp'
dp
2
dp
100
5
Pwf, psi
10
time, hr
Files
References
1. Spivey, J. & Lee, J. (2013) Applied well test interpretation. Society of petroleum engineers
2. Lee, J., Rollins, J. & Spivey, J. (2003) Pressure transient testing. Society of petroleum engineers
https://www.chatosolutions.com/posts/2021-10-17-stephest1/ 6/7
7/29/23, 11:29 AM Chato Solutions: Simulate well test response using analytical solutions
Buy me a coffee
0 Comments Share:
Citation
For attribution, please cite this work as
Vazquez (2021, Oct. 31). Chato Solutions: Simulate well test response using analytical solutions.
Retrieved from https://www.chatosolutions.com/posts/2021-10-17-stephest1/
BibTeX citation
@misc{vazquez2021simulate,
author = {Vazquez, Rigoberto Chandomi},
title = {Chato Solutions: Simulate well test response using analytical solutions},
url = {https://www.chatosolutions.com/posts/2021-10-17-stephest1/},
year = {2021}
}
https://www.chatosolutions.com/posts/2021-10-17-stephest1/ 7/7