Gas Well Testing
Gas Well Testing
2
The solution to the diffusivity equation, is applicable for slightly
compressible fluids (i.e. liquids) with relatively constant fluid
properties such as viscosity.
However for flow of real compressible gases in the reservoir, the
solution to the diffusivity equation requires adjustment because the
physical properties, such as viscosity, isothermal compressibility and
the gas deviation factor, are strong functions of pressure.
3
The diffusivity equation for gas through porous media is:
p
Z
1 r p p =
r r Z r k t
This equation was derived by combining the conservation of mass
equation, Darcy’s law and the following EOS for gas density:
pM
=
ZRT
4
When the left-hand side of the diffusivity equation for gas is
differentiated, the term (∂P/∂r)2 is not negligible as in the case of
slightly compressible fluids. Therefore the diffusivity equation for
gases is a non-linear partial differential equation.
5
The real gas pseudo-pressure is defined as follows:
p
m( p ) =2
p
dp
po
g Z
This transformation accounts for variations in gas properties with
pressure. po is an arbitrary reference pressure.
From this equation, we have:
m( p ) m( p ) p 2 p p
= =
t p t g Z t
m( p ) 2 p p
=
r g Z r 6
The substitution of the last two equations in diffusivity equation
gives:
m( p ) 1 m( p ) g ct m( p )
2
+ =
r 2
r r 2
k t
This equation has exactly the same form as the diffusivity equation
for slightly compressible fluids, with the pressure replaced with the
pseudo - pressure m(p).
The close analogy between diffusivity equations for gas and for
liquids suggest that the solution for the flow of real gases should
correlate as function of dimensionless variables based on initial or
average values of viscosity and compressibility.
7
Wattenbarger and Ramey showed that the pressure transient
equations could be used, with very good approximation, in terms of
m(p), i.e.
rD2
mD ( p ) = p D
1
= − Ei
−
2 4t D
8
Where S’ is the total skin factor that includes the skin resulting from
true formation damage or stimulation, S, and D is turbulence or non-
Darcy coefficient:
S ' = S + Dqsc
9
In real units the log-approximation to the Ei-function becomes:
m( p wf ) = m( pi ) − 1637 q scT kt − 3,23 + 0,869 S '
log
c r 2
kh
g t w
Thus a plot of m(pwf) versus time will yield a straight line portion
corresponding to the infinite-acting radial flow regime of slope mp,
which can be used to calculate permeability:
1637 qscT
k=
mph
10
The total skin factor S’ is then calculated from:
m( p ) − m( p ) k
S ' = 1,151 i 1hr
− log + 3,23
m c r 2
p g t w
11
NON - DARCY FLOW
Darcy’s law applies to gases flowing at low rates (laminar flow), which
occur in the reservoir away from the wellbore. However, in the
vicinity of the wellbore, the flow rates of gas can become extremely
high because of the converging flow.
As these rates, inertial effects can become important and Darcy’s law
no longer applies.
The inertial effects take the form of distorted flow paths and also
turbulence in different locations in the pore structure.
Although the exact nature of this microscopic flow is not known in
the reservoir, the net effect is a higher-pressure gradient when these
inertial effects become considerable.
12
For laminar flow, Darcy’s law can be rearranged in the following form:
p
=− u
x k
Where ∂p/∂x is the pressure gradient and u is the macroscopic
(Darcy) fluid velocity.
At higher rates, when the inertial effects become important, a
quadratic relation first introduced by Forchheimer is used:
p
− = u + u 2
x k
13
The right hand side of this equation contains a term for viscous forces
and a term for inertial forces, both of which contribute to the
pressure loss.
4,851*10 4
1,88 *1010 4,11*1010
= = 0,53 1, 47 =
5 .5 k k k 4/3
Last equation is applicable only to sandstones, dolomites and
limestone.
14
The parameter D (D/Mscf) is called the non-Darcy flow coefficient or
turbulence coefficient.
It can be estimated from:
−15
g k
D = 2,22 *10
gi rw h
The non-Darcy coefficient D and mechanical skin S can be
determined more accurately if two consecutives flow tests are run at
two different rates, yielding:
S1' = S + Dq sc1
S 2' = S + Dq sc 2
15
As discussed above, accuracy is improved for semilog analysis tests
by replacing pressure with real-gas pseudo pressure function, m(p),
which is expressed in psi2/cp.
t
t ap ( p ) =
dt
0
g ct
16
For convenience, although not by necessity, m(p) and tap can be
normalized to have units of psia and hours, respectively, like the
original variables, p and t.
Normalization also gives the pseudo-pressure and pseudo-time
variables magnitudes comparable with those of the untransformed
pressure and time.
The unnormalized variables m(p) and tap typically have values of 105
to 108.
Reference values of pressure used for normalization are arbitrary.
Some engineers prefer properties evaluated at initial reservoir
pressure, other prefer at the average reservoir pressure.
17
Lee and Wattenberger define normalized adjusted pressure, pna, and
normalized adjusted time, tna, as:
1 g z
pna = m( p )
t na = ( g c t ) t ap
2 p
In terms of adjusted variables, the unsteady state equation for gas
flow is:
162.6q g B kt
pna, i - pna, wf =
log − 3.23 + 087 S '
kh g c t rw2
18
Where the gas formation volumetric factor at standard conditions of
pressure (14.7 psi) and temperature (60°F), Bg (bbl/scf), is calculated
at the average or initial properties of Z, T and p, from:
ZT
Bg = 0.00504
P
Note that the product qscBg is in bbl/D, similarly to the product qBo in
the oil case.
19
The similarity between equations for oil and gas indicates that all the
methods for interpreting a pressure transient test in an oil well are
also applicable in a gas well.
d (t )
t
t na = ( g c t )
0
g ct
20
With µg and ct evaluated at shut-in bottom hole pressures, pws, at
values of shut-in times ∆t.
21
PRESSURE AND PRESSURE-SQUARED
At high reservoirs pressures, i.e. p >3500 psi, the plot µgZ versus
pressure is almost a straight line, thus:
p p pi
cte
g zg g z g gi z gi
Thus for p0=0, real gas pseudo-pressure equation can be expressed
as:
2p p 2p
m( p ) = p
z
dp =
z
g po g
g z g z 2 p
=
pna p m( p ) =
2p
z p = p
g
g Z cte g Z gi Z i
2 p 1 2
m( p ) = p
z
pdp =
z
g pn g
The normalized adjusted real pseudo-pressure, becomes:
g z g z p2 1 2
pna = m( p ) = = p
2 p 2p z 2 p
g
1637q gT Z kt
p2 - p2 =
log − 3.23 + 087 S '
i wf
kh g c t rw2
In order to test the accuracy of these three methods, Azis et al.
calculated the sandface pressure for 25 different gas well tests
conditions form reservoirs in Alberta, Canada.
They concluded that:
1. The use of average gas properties results in more accurate
solutions than the use of initial conditions. This is true regardless
of the approach used.
2. When gas properties must be assumed constant at the initial
values, the use of the m(p) function yields the most reliable
results.
3. In very low permeability gas reservoirs, i.e. tight gas reservoirs,
the m(p) function must be used, especially if the reservoir is
produced at very high rates.
Again, all of the rules developed for PDD tests to identify near
wellbore effects (skin flow efficiency and wellbore storage
coefficient) and the start of semilog straight line for oil wells are also
applicable for gas wells, regardless of which function is used.
CONVERTING p TO m(p)
There are several methods for converting pressure data to real gas
pseudo-pressure data:
a. The areal summation method, which involves plotting 2p/μZ versus
pressure, the area under the curve is the value of m(p)
b. The reduced properties correlation, which requires tables or charts
c. The numerical integration method is the more common method
and will be illustrated by the following example. The step by step
procedure of the numerical integration method is:
1. Obtain viscosity and gas deviation factor. If PVT data are not
available, empirical correlations can be applied.
2. For each pressure value, calculate 2p/(μZ)
3. Estimate the mean value between the former and current value of
2p/(μZ)
2p 2p
Z +
2p j Z j −1
Z
=
mean 2
p = p j − p j −1
5. Multiply results form steps 4 and 2. Thus,
*
2p 2p
Z =
Z
p
j mean
*
2p
m( p ) j =
Z
+ m( p ) j −1
j
EXAMPLE 1
Given the viscosity and gas deviation factor data reported in
following table of a gas which has a specific gravity of 0.76.
Estimate the pseudo-pressure function, m(p).
viscosity,
p, psi cp Z
200 0,01117 0,9768
400 0,01176 0,9545
600 0,01236 0,9322
800 0,01297 0,9131
1000 0,0136 0,8946
1200 0,01423 0,8778
1400 0,01488 0,8631
1600 0,01555 0,8507
1800 0,01622 0,8409
2000 0,0169 0,8338
2200 0,01759 0,8295
2400 0,01828 0,828
2600 0,01898 0,8292
2800 0,01969 0,8329
3000 0,02041 0,8389
SOLUTION
0,42qscT t
C =
m( p )
i lpu
0,42qscT t
C =
t * m( p )'
i lpu
37
2. Permeability
711,26qscT
k =
h(t * m' ( p ) )r
qsc= Mscf/d T = °R
3. Skin factor
S ' = S + Dq sc
(m( p ) )r kt r
= 0,5
− ln + 7,43
(t * m ' ( p ) )r (c )
t i wr 2
38
4. Drainage Area
2,355qT t pss
A=
(c ) h
(t * m' ( p ) )
t i pss
39
EXAMPLE 2
Given the viscosity, Z factor data in Example 1, the pressure
drawdown data presented in the table and the information
given below, determine:
• Reservoir permeability,
• Total skin factor,
• Forschheimer turbulence factor,
• Mechanical skin
g= 0,76 t, hr pwf, psia
0 5000
T= 255 F 0,021 4407
0,042 4121,6
0,084 3829,2
q= 5000 Mscf/d 0,146 3639,6
0,209 3556,4
0,418 3464,6
porosity= 10% 0,626 3432,1
0,835 3410,4
Cti=13,1*10-5/psi 1,044
1,46
3394
3372,1
2,088 3347,4
Pi= 5000 psia 4,176
6,246
3306
3278,4
8,352 3261,7
h= 12,4 ft 10,44 3247,8
12,528 3236,6
14,616 3225,5
rw= 1/3 ft 16,704 3217,2
18,792 3211,6
gi=0,0253 cp 20,88
41,76
3203,2
3185,7
62,64 3161
Swi=65,5% 100,44 3104,5
5 .5 k gi rw h
S = S ' − Dqsc
1.600.000.000
1.400.000.000
1.200.000.000
1.000.000.000
K=7.45 md
mp=63330402 S’=10,3
m(p)
800.000.000
β= 5.619*109 ft-1
600.000.000
D=6,8*10-4 D/Mscf
p1h=8,1*108 D*qsc= 3,38
400.000.000 S= 6,92
200.000.000
0
0,01 0,1 1 10 100 1000
t
USING THE PRESSURE FUNCTION
1. Plot pwf vs log t
2. Calculate K
162.6qsc Bg g
k=
mh
3. Obtain Skin factor
p −p k
S ' = 1,151 i 1hr
− log + 3,23
m c r 2
g t w
5000
4500
4000
Pwf, psia
K=8.35 md
m=144,64 S’=6,83
3500
p1h=3400
3000
2500
0,01 0,1 1 10 100 1000
t, hr
USING TDS
1. Plot log (t*(∆mp)’) vs log t
2. Calculate K
711,26qscT
k =
h(t * m' ( p ) )r
S ' = S + Dq sc
(m( p ) )r kt r
= 0,5
− ln + 7,43
(t * m ' ( p ) )r (c )
t i wr 2
1,0E+10
1,0E+09
K=7.67 md
S’=10.6
1,0E+08
1,0E+07
0,01 0,1 1 10 100 1000
DELIVERABILITY
TESTS
BASIC THEORY OF GAS FLOW IN RESERVOIRS
m( p wf ) = m( pi ) − 1637 q scT kt − 3,23 + 0,869 S '
log
c r 2
kh
g t w
These equations provide the basis for analysis of gas well test.
51
In most of this section, the equations will be written in terms
of p2 –not because pw is more generally applicable or more
accurate, but because the p2 equations illustrate the general
method and permit easier comparison with older methods of
gas well test analysis that still are used widely.
For pressures ≤ 2000 psia for estabilized flow:
(p )
2
− p wf
2
= aq g + bq g2
1422 g ZT re 3
a= ln
r −
4 + s
kg h w
1422 g ZTD
b=
kg h
52
This equation is a deliverability equation. Given a value of
pwf, corresponding to a given pipeline pressure, we can
estimate the rate qg at which the well will deliver gas.
However, certain parameters must be determined before the
equation can be used in this way.
53
FLOW-AFTER-FLOW
TEST
54
In this testing method, a well flows at a selected constant rate
until pressure stabilizes –i.e., pseudosteady state is reached.
The stabilized rate and pressure are recorded; rate is then
changed and the well flows until the pressure stabilizes again
at the new rate. The process is repeated for a total of three or
four rates.
Rates and pressures in a typical test follow the pattern
indicated in the figure.
Two fundamentally different techniques can be used to
analyze these test data.
55
PR
pwf1
Pressure
pwf2
pwf3
pwf4
time
q4
q3
Rate
q2
q1
time
56
Empirical Method
qg = C p − p( 2 2
wf ) n ( 2
log p − pwf
2
)
Log qg
57
Procedure:
58
Theoretical Method
()
(p ) − p
p 2 − p2
2
vs
= aq g + bq suggest that we plot
wf
2 2 qg
The equation wf g qg
The result (for peudosteady-state flow) should be a straight line
with slope b and intercept a. Because this line has a sounder
theoretical basis than the empirical method, it should be
possible to extrapolate it to determine AOF with less error.
59
Procedure:
()
p 2 − p2
wf
vs qg
1. Make the plot qg
on Cartesian paper.
2. Obtain the best straight-line
3. Calculate the slope, b
4. Read the intercept, a
5. Replace the a and b values in the equation
6. Obtain the AOF (absolute open flow potential) using
pwf=14,7 psia.
60
EXAMPLE 3
Following data were reported for a flow-after-flow test. At
each rate, pseudo steady state was reached. Initial shut-in
pressure, Pavg, was determined to be 408,2 psia. Estimate AOF.
1 403.1 4.288
2 394.0 9.265
3 378.5 15.52
4 362.6 20.177
SOLUTION
62
Empirical Method
106
105
Pwf = 14.7 psia
( 2
q g = C p − pwf
2
) n
n = 0.690
p2-pwf2
C = 0.01461
104
1.4477
AOF
60
(
q g = 0.01461 p − p
2 2
wf )
0.69
103
1 10 100
qg
Theoretical Method
()
p 2 − p2
wf
= a + bq g
qg
1800
1400
(p2-pwf2)/qg
48,167
AOF= 51,36 MMscf/D
1000
766,27
600
0 5 10 15 20 25
qg
ISOCHRONAL
TEST
65
The objective of isochronal testing is to obtain data to establish a stabilized
deliverability curve for gas without flowing the well for sufficiently long to
achieve stabilized conditions (ri ≥ re) at each (or, in some cases, any rate).
This procedure in needed for lower-permeability reservoirs, where it
frequently is impractical to achieve ri=re during the test.
An isochronal test is conducted by flowing a well at a fixed rate, then
shutting it in until the pressure builds up to an unchanging (or almost
unchanging) value, Pavg. The well then is flowed at a second rate for the
same length of time, followed by another shut-in, etc. If possible, the final
flow period should be long enough to achieve stabilized flow. If this is
impossible or impractical, it is still possible to predict the stabilized .
deliverability characteristics (with increased potential for error, of course).
66
In obtaining data in this testing program, it is essential to record flowing
BHP, pwf, as a function of time at each flow rate.
Figure illustrates rate and pressures in an isochronal testing sequence. This
figures illustrates the following important points:
1. Flow periods, excepting the final one, are of equal length (t)
2. Shut-in periods have the objective of letting p≈pavg rather than the
objective of equal length
3. A final flow period in which the well stabilizes is desirable but not
essential. .
67
PR
pwf1
pwf2
Pressure
pwf3
t t
time
t q3
qg
time
The most general theory of isochronal test is based on equations
using pseudopressure. However, we will once again present the
theory in terms of the low-pressure approximations to these
equations (p2 equations) because (1) they are simpler and less
abstract than equations in pseudopressure and (2) they allow
direct comparison with more conventional analysis methods based
on plots of ( p − pwf2 ) vs qg on log-log paper.
2
69
Empirical method
Experience shows that reasonably satisfactory results can be
obtained with the empirical method using the following procedure:
1/n
qstabilized
C=
t3 p 2
− pwf
2 n
Log (p2-pwf2)
1/n t2
1/n t1
AOF
Log qg
Theoretical method
()
p 2 − p2
wf
vs
1. For a fixed value of t, determine b form a plot of qg
qg
a=
(( p ) − p ) − bq
2 2
wf s
2
gs
q gs
3. The stabilized deliverability curve uses the constants
determined in steps 1 and 2:
.
( p) 2
− p 2
wf = aq g + bq 2
g
74
Empirical Method
10000000
(
q g = C p − pwf
22
) n
P2 avg – P2wf
1000000
n = 0.827
C s = 0.000031
AOF = 8,54 MMscf / D
100000
1 10
qg
Theoretical Method
500000
(p2-P2wf)/qg
Slope= 14554
400000
AOF= 8.46 MMscf/D
300000
Intercept: 326926.5
200000
0 1 2 3 4 5 6 7
qg
MODIFIED
ISOCHRONAL
TEST
77
The objective of modified isochronal test is to obtain the same data as in
an isochronal test without using the sometimes lengthy shut-in periods
required for pressure to stabilize completely before each flow test is run.
In the modified isochronal test shut-in periods of the same duration as the
flow periods are used, and the final shut-in BHP (pws) before the beginning
of a new flow period is used as an approximation of Pavg in the test analysis
procedure.
Note that this test uses approximations. It is not modeled exactly by
rigorous theory. However, modified isochronal tests are used widely
because they conserve time and money and because they have proved to
be excellent approximations to true isochronal tests. .
78
PR
Pressure
t t t t
Tiempo
q3
q2
qg
Tiempo
EXAMPLE 5
Determine the stabilized deliverability curve and AOF from the
test data in the following table, using the empirical and
theoretical methods. (File Exercise 3)
81
Empirical Method
2600000
2100000
( )
∆P2/qg
1600000
q g = C p − pwf
22 n
1100000 n = 0.585
C s = 0.001527
600000
AOF = 10.79 MMscf / D
100000
0 1 2 3 4 5 6 7 8 9
qg
Theoretical Method
300000
200000 a= 128294
Slope= 19501 AOF=11.04 MMscf/D
a
100000
0 2 4 6 8 10