86
LAPLACE TRANSFORM DECONVOLUTION AND ITS APPLICATION TO PERTURBATION SOLUTION OF NON-LINEAR DIFFUSIVITY EQUATION by Mahmood Ahmadi

Laplace Transform Deconvolution And Its Application to Perturbation

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Laplace Transform Deconvolution And Its Application to Perturbation

LAPLACE TRANSFORM DECONVOLUTION AND ITS APPLICATION

TO PERTURBATION SOLUTION OF NON-LINEAR

DIFFUSIVITY EQUATION

by

Mahmood Ahmadi

Page 2: Laplace Transform Deconvolution And Its Application to Perturbation

ii

A thesis submitted to the Faculty and the Board of Trustees of the Colorado School of Mines in partial

fulfillment of the requirements for the degree of Doctor of Philosophy (Petroleum Engineering).

Golden, Colorado

Date: ______________________

Signed: ______________________________

Mahmood Ahmadi

Signed: ______________________________

Dr. Erdal Ozkan

Thesis Advisor

Signed: ______________________________

Dr. Luis Tenorio

Thesis Advisor

Golden, Colorado

Date:_________________________

Signed: ______________________________

Dr. Ramona M. Graves

Professor and Petroleum Engineering

Department Head

Page 3: Laplace Transform Deconvolution And Its Application to Perturbation

iii

ABSTRACT

The primary objective of this dissertation is to extend the conveniences of deconvolution to non-linear problems

of fluid flow in porous media. Unlike conventional approaches, which are based on an approximate linearization of

the problem, here the solution of the non-linear problem is linearized by a perturbation approach, which permits

term-by-term application of deconvolution. Because the proposed perturbation solution is more conveniently

evaluated in the Laplace-transform domain and the standard deconvolution algorithms are in the time-domain, an

efficient deconvolution procedure in the Laplace domain is a prerequisite. Therefore, the main objective of the

dissertation is divided into two sub-objectives: 1) the analysis of variable-rate production data by deconvolution in

the Laplace domain, and 2) the extension of perturbation solution of the nonlinear diffusivity equation governing gas

flow in porous media presented by Barreto (2011) into the Laplace domain.

For the first research objective, a new algorithm is introduced which uses inverse mirroring at the points of

discontinuity and adaptive cubic splines to approximate rate or pressure versus time data. This algorithm accurately

transforms sampled data into Laplace space and eliminates the Numerical inversion instabilities at discontinuities or

boundary points commonly encountered with the piece-wise linear approximations of the data. The approach does

not require modifications of scattered and noisy data or extrapolations of the tabulated data beyond the end values.

Practical use of the algorithm presented in this research has applications in a variety of Pressure Transient

Analysis (PTA) and Rate Transient Analysis (RTA) problems. A renewed interest in this procedure is inspired from

the need to evaluate production performances of wells in unconventional reservoirs. With this approach, we could

significantly reduce the complicating effects of rate variations or shut-ins encountered in well-performance data.

Moreover, the approach has proven to be successful in dealing with the deconvolution of highly scattered and noisy

data.

The second objective of this research focuses on the perturbation solution of the nonlinear gas diffusivity

equation in Laplace domain. This solution accounts for the nonlinearity caused by the dependency of gas properties

(viscosity-compressibility product and gas deviation factor) on pressure. Although pseudo-pressure transformation

introduced by Al-Hussainy et al. (1966) linearizes the diffusivity equation for compressible fluids (gas), the pressure

dependency of gas properties is not completely removed. Barreto (2011) presented a perturbation-based solution

using Green’s functions to deal with the remaining non-lineraities of the gas diffusion equation after pseudo-

pressure transformation. The presented work is an extension of the work of Barreto (2011) into Laplace domain. The

extension of the solution into Laplace domain is an advantage as less effort is required for numerical integration.

Moreover, solutions of different well and reservoir geometries in pressure transient analysis are broadly available in

Laplace domain. Field application of the solution will involve analysis of gas-rate data after deconvolution.

Page 4: Laplace Transform Deconvolution And Its Application to Perturbation

iv

TABLE OF CONTENTS

ABSTRACT .................................................................................................................................................. iii

LIST OF FIGURES ....................................................................................................................................... vi

LIST OF TABLES......................................................................................................................................... ix

ACKNOWLEDGEMENTS ............................................................................................................................ x

CHAPTER 1 INTRODUCTION ................................................................................................................ 1

1.1 Organization of the Thesis .......................................................................................................... 2

1.2 Motivation of Research .............................................................................................................. 3

1.3 Objectives ................................................................................................................................... 4

1.4 Method of Study ......................................................................................................................... 4

CHAPTER 2 LITERATURE REVIEW ..................................................................................................... 6

2.1 Convolution and Deconvolution ................................................................................................. 6

2.1.1 Superposition and Convolution ............................................................................................. 6

2.1.2 Rate Normalization ............................................................................................................... 8

2.1.3 Deconvolution ....................................................................................................................... 8

2.2 Solution of Non-Linear Diffusivity Equation ........................................................................... 10

CHAPTER 3 DEVELOPMENT OF THE CUBIC SPLINE BASED DECONVOLUTION METHOD . 12

3.1 Convolution and Deconvolution ............................................................................................... 12

3.2 Laplace Transformation of Sampled Functions Using Cubic Splines ...................................... 13

3.3 Inverse Mirroring at Boundaries ............................................................................................... 16

3.4 Adaptive Cubic Spline .............................................................................................................. 16

3.5 The Iseger Algorithm ................................................................................................................ 19

3.5.1 Verification Examples Using Iseger Algorithm .................................................................. 22

3.5.2 Discontinuous and Piecewise Differentiable Functions ...................................................... 23

3.5.3 Wellbore Pressure Solution for a Combined Drawdown and Buildup................................ 25

3.6 Adaptive Nonparametric Kernel Regression ............................................................................ 25

3.7 Deconvolution of Pressure Responses for a Sequence of Step-Rate Changes .......................... 28

Page 5: Laplace Transform Deconvolution And Its Application to Perturbation

v

3.8 Field Examples ......................................................................................................................... 32

3.9 Sandface Rate Deconvolution – Muenuier et al., (1985) Example ........................................... 32

3.10 Sandface Rate Deconvolution – Fetkovich and Vienot (1984) Example.................................. 33

3.11 Deconvolution of Variable-Rate Data-Shale-Gas Well ............................................................ 33

CHAPTER 4 LAPLACE TRANSFORMATION SOLUTION TO THE NONLINEAR

DIFFUSIVITY EQUATION ............................................................................................................. 35

4.1 Mathematical Model ................................................................................................................. 35

4.2 Asymptotic Expansion (Perturbation) ...................................................................................... 39

4.3 Variable Gas Rate Deconvolution ............................................................................................ 45

4.4 Validation ................................................................................................................................. 45

4.4.1 Solution for Wells in Infinite Slab Reservoirs .................................................................... 45

4.4.2 Solution for Wells in Closed Cylindrical Reservoirs .......................................................... 56

4.5 Discussions ............................................................................................................................... 61

CHAPTER 5 CONCLUSIONS AND RECOMMENDATIONS.............................................................. 66

5.1 Conclusions .............................................................................................................................. 66

5.2 Recommendations .................................................................................................................... 66

NOMENCLATURE ..................................................................................................................................... 68

REFERENCES ............................................................................................................................................. 71

APPENDIX A EXAMPLE OF CONVOLUTION INTEGRAL ............................................................... 74

Page 6: Laplace Transform Deconvolution And Its Application to Perturbation

vi

LIST OF FIGURES

Figure 3.1 Interpolation of discontinuous pressure data using cubic spline. ....................................... 17

Figure 3.2 Inverse Mirroring at discontinuous points ( 50,100,200)t . ............................................ 17

Figure 3.3 Application of inverse mirroring at discontinuous points using cubic spline

interpolation. ............................................................................................................................. 18

Figure 3.4 Inverse mirroring at both ends. .......................................................................................... 20

Figure 3.5 Application of adaptive cubic spline using simulated data. Circles show where the

adaptive cubic spline is required. .............................................................................................. 20

Figure 3.6 Application of adaptive cubic spline using field data. Circles show where the

adaptive cubic spline is required. .............................................................................................. 21

Figure 3.7 Numerical Inversion of Unit Step Function by the Iseger algorithm; Effect of the

number of inversion points. ...................................................................................................... 22

Figure 3.8 Effect of nrp in the numerical inversion of a function by the Iseger algorithm. ................ 22

Figure 3.9 Numerical Inversion of a unit step function; comparison of Iseger and Stehfest

algorithms. ................................................................................................................................ 23

Figure 3.10 Numerical Inversion of a function with multiple step changes; comparison of Iseger

and Stehfest algorithms. ........................................................................................................... 24

Figure 3.11 Numerical Inversion of a piecewise differentiable function; comparison of Iseger

and Stehfest Algorithms. .......................................................................................................... 24

Figure 3.12 Numerical Inversion of wellbore pressure change for a combined drawdown and

buildup sequence. ..................................................................................................................... 26

Figure 3.13 Optimum fixed bandwidth obtained from cross-validation method. ............................... 28

Figure 3.14 Local bandwidth factor, i , applied in adaptive Nadaraya-Watson kernel estimator.

Higher lambda means higher dispersion at particular time. ...................................................... 29

Figure 3.15 Nadaraya-Watson kernel estimator using Gaussian kernel regression using fixed and

adaptive bandwidth ( 0.5 ) showing improvement over ordinary kernel regression. .......... 29

Figure 3.16 Step-rate sequence for data in Table 2. ............................................................................ 30

Figure 3.17 Pressure changes corresponding to step-rate sequence shown in Figure 3.16. ................ 31

Figure 3.18 Deconvolution of pressure responses in Figure 3.17 for the step-rate sequence in

Figure 3.16. ............................................................................................................................... 31

Figure 3.19 Sandface-rate deconvolution to remove wellbore storage effect; Muenuier et al.

(1985) example. ........................................................................................................................ 32

Page 7: Laplace Transform Deconvolution And Its Application to Perturbation

vii

Figure 3.20 Sandface- Numerical inversion of pressure drop from tabulated data; Fetkovich and

Vienot (1984) example. ............................................................................................................ 33

Figure 3.21 Example of flowing gas rate and corresponding pseudo-pressure. .................................. 34

Figure 3.22 Numerical inversion of pressure drop from tabulated data: Shale gas application for

data shown in Figure 3.21. ........................................................................................................ 34

Figure 4.1 Omega factor( )

( )( )

t t i

t i

c cw

c

versus dimensionless pressure in an infinite acting

reservoir. ................................................................................................................................... 52

Figure 4.2 Omega factor( )

( )( )

t t i

t i

c cw

c

versus dimensionless time in an infinite acting

reservoir. ................................................................................................................................... 53

Figure 4.3 Dimensionless pseudo-pressures ( (0)Dm ) for the data set presented in Table 4.1

(Infinite Acting Reservoir). ...................................................................................................... 53

Figure 4.4 Dimensionless first non-linear term of pseudo-pressure ( (1)Dm ) for the data set

presented in Table 4.1 (Infinite Acting Reservoir). .................................................................. 54

Figure 4.5 Dimensionless pseudo-pressure ( (0) (1)D D Dm m m ) for the data set presented in

Table 4.1 (Infinite Acting Reservoir). ...................................................................................... 54

Figure 4.6 Dimensionless pseudo-pressure ( (1)Dm ); comparison of two different rates for the

reservoir and gas ....................................................................................................................... 55

Figure 4.7 Dimensionless pseudo-pressure ( (0)Dm ) for data set presented in Table 4.2 (Closed

Cylindrical Reservoir). ............................................................................................................. 62

Figure 4.8 Dimensionless first non-linear term of pseudo-pressure ( (1)Dm ) for data set presented

in Table 4.2 (Closed Cylindrical Reservoir). ............................................................................ 62

Figure 4.9 Dimensionless pseudo-pressure ( (0) (1)D D Dm m m ) for data set presented in Table

4.2 (Closed Cylindrical Reservoir). .......................................................................................... 63

Figure 4.10 Dimensionless pseudo-pressure ( (1)Dm ) comparing two different rates for reservoir

and gas properties presented in Table 4.2 (Closed Cylindrical Reservoir). The results

show that, (1)Dm is rate dependent. ........................................................................................... 63

Figure 4.11 Comparing Green’s function for both Laplace and time domain at 1Dr . .................... 65

Figure 4.12 Comparing (0) '

'

'

( )( ) D D

D

D

m tw t

t

for both Laplace and time domain at 1Dr . .................. 65

Figure A.1 In an infinite acting reservoir( )D D

D

m t

t

is a decreasing function as time increases. ......... 75

Page 8: Laplace Transform Deconvolution And Its Application to Perturbation

viii

Figure A.2 In an infinite acting reservoir Greens function as a decaying function as time

increases. .................................................................................................................................. 75

Figure A.3 In an infinite acting reservoir '

' '

'

0

( )( )

Dt

D DD D D D

D

m tG t t dt

t

is a decaying function as

time increases. .......................................................................................................................... 76

Page 9: Laplace Transform Deconvolution And Its Application to Perturbation

ix

LIST OF TABLES

Table 3.1 Data for drawdown followed by build up ............................................................................ 25

Table 3.2 Data for deconvolution example ......................................................................................... 30

Table 4.1 Data for infinite acting reservoir. ........................................................................................ 55

Table 4.2 Data for closed cylindrical reservoirs. ................................................................................. 64

Page 10: Laplace Transform Deconvolution And Its Application to Perturbation

x

ACKNOWLEDGEMENTS

First and foremost, I give thanks to the One above all of us, the omnipresent God, for giving me the strength to

march on and complete my PhD– thank you so much Dear Lord.

I would also like to express my gratitude to my compassionate advisor Dr. Erdal Ozkan for his continuous

support and valuable advice throughout my studies at Colorado School of Mines. I am highly grateful for his

immense gentleness, enthusiasm, endurance, inspiration, and motivation. His exceptional guidance and counsel has

changed my life course several times throughout my PhD research journey. “Thank You” is just not enough - thank

you very, very much.

A special thanks to my co-advisor Dr. Luis Tenorio and my thesis committee member Dr. Paul Martin for their

support, help, and guidance during my research.

I thank my thesis committee members: Dr. Hossein Kazemi, Dr. Vaughan Griffiths, and Dr. John Humphrey for

their help and guidance.

I would like to thank Dr. Mahadevan Ganesh from the Mathematics Department for all the help and insight

throughout my research.

I would also like to thank MI3 Petroleum Engineering for strong support and my colleague Mr. Oscar G.

Gonzalez for his assistance and direction.

The Marathon Center of Excellence for Reservoir Studies (MCERS) at Colorado School of Mines has been

invaluable as well as the camaraderie with my school colleagues: Ali, Ayyoub, Elham, John, Mehdi, Reza, Nasser,

Shirin, Mojtaba, Najeeb, Farshad, and Younki.

I am grateful for Denise Winn-Bower, for helping me with A LOT of administrative issues during my current

study at CSM.

Finally, I want to give a special thanks to my wife Elham for her support and motivation to accomplish this

endeavor and to my great father, mother, and family who have always been my guiding light. Their prayers have

always been my inspiration. I love you all.

Page 11: Laplace Transform Deconvolution And Its Application to Perturbation

1

CHAPTER 1

INTRODUCTION

This dissertation presents the results of a study for a Doctor of Philosophy degree conducted at Marathon Center

of Excellence for Reservoir Studies (MCERS) in the Petroleum Engineering Department at Colorado School of

Mines.

The main objective of the dissertation is to extend the conveniences of the deconvolution to non-linear problems

of fluid flow in porous media.

The usual to approach to extend deconvolution procedures to non-linear problems in oil and gas reservoirs is to

linearize the non-linear diffusion equation in terms of a pseudo-pressure and then to apply the deconvolution. It is

well known that the pseudo-pressure approach does not completely remove the nonlinearity, but, for practical

purposes, the remaining nonlinearity is assumed to be weak and ignored. In this dissertation, the solution of the non-

linear problem is obtained by a perturbation approach, which presents the solution as a series of solutions of linear

problems. This approach permits term-by-term application of deconvolution. One practical problem still remains:

The proposed perturbation solution is more conveniently evaluated in the Laplace-transform domain. The standard

deconvolution algorithms, however, are in the time-domain. Thus, the development of an efficient deconvolution

procedure in the Laplace-transform domain is a prerequisite to accomplish the main objective of this dissertation.

Therefore, the main objective of the dissertation can be expanded into two sub-objectives.

The first sub-objective of the dissertation appertains to the analysis of variable-rate reservoir performance data

in Laplace domain by deconvolution. The approach taken in this work leads to the deconvolution of variable-rate

data in the Laplace domain. Specifically, an approximate function is required to take sampled (tabulated) production

rate and pressure data into Laplace domain. Furthermore, the step-changes in the production rate during shut-in

periods lead to inaccuracy in approximating functions and instability in numerical Laplace inversion algorithms. In

this study, a cubic-spline method with piecewise linear interpolation and boundary mirroring is developed in

Laplace domain to approximate and transform the production rate and bottom-hole pressure into the Laplace

domain. This algorithm accurately transforms sampled (tabulated) data into Laplace domain and eliminates the

numerical inversion instabilities at discontinuous points or boundaries commonly encountered in the piecewise

linear approximations of the data. The developed approach does not require modifications of scattered and noisy

data or extrapolations of the tabulated data beyond the end values.

Rate and pressure measurements of wells usually include some level of noise, and due to the nature of the

deconvolution process (more specifically, deconvolution in Laplace domain), the computed underlying constant-rate

response will display oscillations, which requires some degree of smoothing. To smooth the deconvolved pressure

response, an adaptive approach using a Gaussian and Epanechnikov kernel regression is proposed. The adaptive

kernel regression proposed herein is shown to be more successful than the normal kernel regression.

Since the deconvolution algorithm and the approximating function for tabulated data are in the Laplace domain,

the solution requires a numerical Laplace inversion algorithm. Common Laplace inversion algorithms usually face

accuracy problems in dealing with functions including contributions from step-changes and discontinuities. For this

Page 12: Laplace Transform Deconvolution And Its Application to Perturbation

2

particular problem, a numerical Laplace inversion algorithm developed by Peter Iseger (2006) and introduced to the

Petroleum Engineering field by Al-Ajmi et al. (2008) is used. The application and the accuracy of Iseger’s numerical

Laplace inversion algorithm for functions including step-changes and discontinuities in pressure-transient analysis

have been validated in the work presented by Al-Ajmi et al. (2008). The algorithm presented by Iseger (2006)

removes the restriction of continuity (that is, it tolerates piecewise continuous functions) and provides opportunities

for many practical applications. The Iseger algorithm has been tested for several common conditions requiring the

use of piecewise-differentiable and discontinuous functions including:

the use of tabulated data in the Laplace transform domain

problems involving step-rate changes

build-up tests following a drawdown period

Mini-DST tests with a sequence of drawdown and buildup periods.

Due to the significant contribution to this research, one section of this study will be devoted to Iseger’s numerical

Laplace inversion algorithm and its verification examples. The critical parameters of the Iseger algorithm will also

be reviewed.

The second sub-objective of the dissertation involves the fundamental perturbation solution of the nonlinear gas

diffusivity equation in Laplace domain. The fundamental perturbation solution presented here will be an extension

of the solution developed by Barreto (2011), which is in terms of Green’s functions but accounts for the nonlinearity

caused by the dependency of gas properties on pressure.

The original work of Barreto (2011) was presented in the time domain. The objective of the present work is to

enhance the utility of Barreto’s approach by using the conveniences offered by the properties of Laplace transforms.

The expected benefits from extending Barreto’s solution to Laplace domain include:1) solutions of different well

and reservoir geometries in pressure transient analysis are broadly available in Laplace domain, 2) less effort is

required for numerical integration, and 3) the solution will be utilized in convolution and deconvolution in Laplace

domain as presented herein.

1.1 Organization of the Thesis

This dissertation is presented in five chapters. The preliminary results are also discussed.

Chapter 1, the introduction, describes the research objectives, the methodology, and the motivation of the

study.

Chapter 2 is the literature review of publications and papers along with the proposed research.

Chapter 3 addresses mainly the first sub-objective of the dissertation; the derivation of a cubic spline based

deconvolution method. It includes the following:

o The mathematical derivation for cubic spline method adapted with piecewise linear interpolation

in Laplace domain used in the deconvolution process.

o Inverse mirroring at both boundaries to reduce the oscillation of the response function recovered

from the deconvolution process.

Page 13: Laplace Transform Deconvolution And Its Application to Perturbation

3

o Smoothing of the constant pressure response recovered from the deconvolution process using

adaptive kernel regression.

o A brief review of Iseger’s algorithm, along with verification examples and critical parameters. For

demonstration purposes, simulated and field data are also examined.

In Chapter 4 a perturbation solution to the nonlinear diffusivity equation is presented in the Laplace-

transform domain. Although the non-linearity displayed in the gas diffusivity equation in terms of psudo-

pressure is week, it is used for the demonstration of the solution approach in this chapter because it is the

best-known, non-linear flow problem in porous media.

Chapter 5 reviews the results of the research accomplished in this PhD dissertation and proposes

recommendations for future work.

1.2 Motivation of Research

Interest in the analysis of variable-rate production data (rate and pressure measurements as function of time) has

increased in the oil and gas industry over the last two decades due to the popularity of mini-DST tests and the

increased utilization of unconventional, tight oil and natural-gas resources. In mini-DST tests, a sequence of

production and shut-in periods gives rise to a piecewise-continuous rate and pressure behavior. In the case of

unconventional tight reservoirs, well performance data are usually available in the form of daily or monthly

production and the corresponding tubing-head pressures. However, the standard theory of pressure-transient and

well-performance analysis is based on the assumption of constant production rate or bottom-hole flowing pressure.

Duhamel’s principle expresses the bottom-hole pressures of a variable-rate production case in the form of a

convolution relationship between the variable flow rate and the pressures for the unit constant-rate production (the

influence function). Therefore, due to the immense utility in data analysis, recovering the influence function of the

convolution integral; that is, deconvolution of variable-rate responses to obtain the underlying constant-rate

responses, is of great interest in petroleum engineering.

van Everdingen and Hurst (1949) introduced the application of convolution/deconvolution in Laplace domain for

the solution of common transient-flow problems in porous media. Specifically, they highlighted the conveniences

due to the fact that the convolution of two functions turns into an algebraic product of the functions in the Laplace

transform domain. However, although convolution/deconvolution in Laplace domain provides a convenient means

of generating analytical solutions for many variable-rate problems, its use for the measured (tabulated) data is not

straightforward due to the requirement that discretized (measured and tabulated) rate and pressure data be

transformed into Laplace domain.

Several approaches have been tested regarding the deconvolution of tabulated variable-rate and pressure data in

Laplace domain (Roumboutsos-Stewart (1988) and Onur-Reynolds, (1998)). These algorithms have suffered from

problems in the numerical Laplace inversions of piecewise continuous functions. This was a problem due to the

limitations of the existing numerical inversion algorithms. Another obstacle was the construction of approximating

functions representing sampled (tabulated) data in Laplace domain. The approaches of these algorithms to this

problem required extrapolation of the sampled data beyond the limits of the sampling interval to evaluate the

Page 14: Laplace Transform Deconvolution And Its Application to Perturbation

4

Laplace integral over the semi-infinite positive domain. This usually led to an oscillatory deconvolution result at the

late portion of the tabulated data (usually referred to as tail effect).A regularization algorithm or some type of

regression procedure was also needed to smooth the constant pressure response in all scenarios.

Moreover, complications exist in the application of Duhamel’s principle (convolution/deconvolution) regarding

the flow of real gases in porous media. Application of Duhamel’s principle requires a linear system but the

diffusivity equation of compressible fluids (gas) is non-linear. The conventional approach of using a pseudo-

pressure definition does not completely remove the pressure dependency of the gas properties and the

convolution/deconvolution of gas-well response remains non-rigorous. Therefore, a new approach is required to

extend Duhamel’s principle to variable-rate problems of gas-well performances.

1.3 Objectives

This research aims to improve the applications of convolution/deconvolution in Laplace domain and the

extension of these applications to the non-linear problems of gas flow. The specific objectives for the improvement

of Laplace-domain convolution/deconvolution include the following:

1. Develop alternatives to existing approaches to transform tabulated data to Laplace domain.

2. Introduce techniques to reduce oscillatory deconvolution behavior caused by the tail effect or

discontinuities of the input functions.

3. Consider the impact of the numerical inversion algorithms on the success of Laplace-domain

deconvolution for different methods of transforming tabulated data into Laplace domain.

4. Examine the possibility of smoothing deconvolved responses without interfering with the physical

signatures of the data.

5. Rigorously verify the theoretical basis of the ideas used in the above developments.

6. Demonstrate the use of Laplace-domain deconvolution with simulated and field data and compare

the applications with the existing algorithms.

For the extension of Duhamel’s principle to the non-linear problems of gas flow in porous media, the following

objectives are defined:

1. Consider the use of the perturbation approach introduced by Barreto (2011) to obtain an

approximate Laplace transformation of the non-linear gas-diffusivity equation.

2. Demonstrate the use of the deconvolution algorithm for the analysis of variable gas-rate field data.

1.4 Method of Study

The main method of this study is analytical. Existing mathematical-physical techniques are used to formulate the

problems mathematically and to obtain solutions at a desirable form and level of accuracy. Perturbation and infinite

series expansion are used to approximate solutions to non-linear diffusion equation. The non-linear solutions are

obtained in the form of small additions from a series of linearized problems. The solutions of the linearized diffusion

equation are expressed in terms of appropriate Green’s functions. Semi-analytical and numerical techniques are used

to compute solutions and approximating functions are invoked to deal with tabulated data.

Page 15: Laplace Transform Deconvolution And Its Application to Perturbation

5

Because the linearized problems encountered in this research lend themselves to convolution-type solutions,

Laplace transformation is preferred due to the simplification of convolution relationship in the transform domain.

This also brings the necessity to deal with the numerical inversion of the results in the Laplace transform domain.

Various approximating functions are used to represent tabulated data and kernel regression is used to smooth the

solutions.

To validate the developed solutions both simulated and field data are used. The results are then compared to

commercial software results. For computational purposes, Stehfest and Iseger numerical Laplace inversion

algorithms are employed. The computational codes are written in both Fortran 77 and Fortran 90.

Page 16: Laplace Transform Deconvolution And Its Application to Perturbation

6

CHAPTER 2

LITERATURE REVIEW

This chapter is divided into two parts: the first part discusses the convolution and deconvolution of variable-rate

data for well-test analysis and the second part discusses the development of a solution for the non-linear gas-

diffusivity equation and application of deconvolution to variable-gas-rate data in the Laplace domain.

2.1 Convolution and Deconvolution

The solution to variable-rate problems has been widely popular in petroleum engineering literature since the

seminal work of van Everdingen and Hurst (1949). In regards to this subject, various approaches and references can

be found in the literature. The approaches available in the literature have been listed and categorized by Ilk (2005).

The three main categories are as follows:

I. Superposition and Convolution

II. Rate Normalization and Material Balance Deconvolution

III. Deconvolution

2.1.1 Superposition and Convolution

The term superposition simply states that, for all linear systems, the net response of the total system at a given

point in space and time is the summation of all the individual parts/stimulus that contributes to the total system.

Petroleum engineers apply superposition in space to construct solutions for bounded reservoirs, complex well

geometries, and multiple-well problems. These applications are also known as the method of images. Superposition

in time is used to construct solutions for pressure buildup and variable-rate problems from constant rate solutions.

The governing equation for fluid flow in porous media is the diffusivity equation. For the flow of liquids, due to

the small and constant fluid compressibility and small pressure gradients, the diffusion equation can be linearized for

most practical purposes and the superposition principle becomes valid. In the case of gas flow, however, fluid

properties are strong functions of pressure and the nonlinear terms in the diffusivity equation cannot be removed by

physically acceptable assumptions. A standard approach is, then, to recast the diffusivity equation in terms of a

pseudo-pressure. The pseudo-pressure definition groups the pressure and pressure-dependent fluid properties in a

new pseudo-variable in which the nonlinearity of the diffusion equation becomes weaker. For some applications,

such as pressure-transient analysis, the remaining nonlinearity of the diffusion equation may be ignored if the

viscosity-compressibility product does not change considerably over the infinite-acting period of the well test. This

assumption, however, has been shown not to hold during boundary-dominated flow of high-flow-rate wells

(Raghavan 1993). One of the major consequences of this condition is the lack of true pseudo-steady state flow in gas

wells, which makes many of the standard performance prediction tools for gas wells questionable. To remove the

nonlinearity completely, a pseudo-time definition has also been proposed, but its validity could not be agreed upon

except for pressure-buildup applications (Raghavan 1993). The details of the use of pseudo-pressure and pseudo-

time can be found in the works of Al-Hossainy et al. (1966) and Agarwal (1980).

Page 17: Laplace Transform Deconvolution And Its Application to Perturbation

7

In mathematics, particularly in functional analysis, convolution is defined as a mathematical operation on two

functions ( )f t and ( )g t producing a third function that is typically viewed as a modified version of one of the

original functions is translated. In other words, the overlap amount between two functions ( )f t and translated

function of ( )g t can be represented by convolution. The mathematical form of the convolution of two functions ( )f t

and ( )g t is defined as:

0 0

( ) ( )* ( ) ( ) ( ) ( ) ( )

t tdef

z t f t g t f g t d f t g d (2.1)

A discrete form for the right hand side of Eq. (2.1) over a finite interval can be written as:

1 1

1

( ) ( ) ( )

n

i i i

i

z t f g t

(2.2)

where ( )z t is the response of the system or the convolution of the functions ( )f t and ( )g t and is a dummy variable.

This is also called the superposition equation, which was previously defined as the total system response and is

equal to the summation of individual stimulus that contributes to the total system.

In regards to petroleum engineering applications utilizing linearized diffusivity equation, the pressure response

of the reservoir to a sequence of fluid withdrawals at a source location can be obtained by the superposition of the

pressure responses for instantaneous withdrawals of variable volumes of fluid (variable-strength instantaneous

sources) over an interval of time. This operation can be written in the form of the convolution of the rate variations

(input) with the system’s response to an impulse function (the unit instantaneous source), which is also known as

Duhamel’s principle. In petroleum engineering terms, Duhamel’s principle states that the observed wellbore

pressures drop for a variable rate can be written as the convolution of the input rate function and the derivative of the

impulse function or constant-rate pressure response. It is also assumed that the system is in equilibrium initially

( , 0) ip r t p . The convolution integral in dimensionless form is defined in the petroleum engineering literature

as:

0 0

( )( )( ) ( ) ( )

D Dt t

sD DDwD D sD D D

d p tdqp t p t d q d

d d

(2.3)

where wDp is the dimensionless pressure for variable-rate production (system response), Dq is the dimensionless

variable production rate, and sDp is the dimensionless pressure for the constant-rate solution (influence function),

which is equal to

( )sD D Dp p t s (2.4)

Here s represents the mechanical skin damage around wellbore. The equivalent equation to Eq.(2.2) or the

discretized form for the right-hand side of Eq.(2.3) in terms of superposition can also be written as:

1 1

1

( ) ( ) ( )

n

wD D i i D i

i

p t q q p t t s

(2.5)

Page 18: Laplace Transform Deconvolution And Its Application to Perturbation

8

van Everdingen and Hurst (1949) utilized Duhamel’s principle to obtain a dimensionless wellbore pressure-drop

solution for a continuously varying rate. The method of Odeh and Jones (1965) or the methods of Soliman (1981)

and Stewart et al. (1983) can be derived from van Everdingen and Hurst’s solution. Generally, their approaches use

the exponential integral solution to the constant-rate wellbore response or its semi-log approximation. Fetkovich and

Vienot (1984) and Agarwal (1980) also used Duhamel’s principle to generate solutions for the variable-rate

production problems. All above methods, however, were limited to forward modeling applications since a particular

reservoir model had to be selected in advance for the constant-rate pressure function under the convolution integral.

The analysis of variable-rate production data by the modern regression analysis techniques requires backward

modeling; that is, the constant-rate pressure function under the convolution integral is determined by knowing the

field response.

2.1.2 Rate Normalization

Rate normalization is generally used when the rate is smoothly changing as a function of time. The rate

normalization method was introduced by Gladfelter et al. (1955) for the analysis of wellbore-storage-dominated

pressure buildup responses. Winestock and Colpitts (1965) employed the rate normalization for drawdown test

analysis. The rate normalization method is also used to remove the effect of wellbore storage when the sand face

rates are available. The appeal of the rate normalization method is in its simplicity (it only requires an algebraic

operation of the rate and pressure data). Raghavan (1993) showed that the rate normalization is valid if the

convolution integral can be approximated as follows:

( ) ( ) ( )cp t q t p t (2.6)

This approximation is shown to be valid when the rate and pressure are smoothly varying functions of time, which is

a restrictive condition for most production data analysis applications (Raghavan 1993).

2.1.3 Deconvolution

The analysis of pressure drop over time at constant production rate is a primary goal in well-test analysis.

Identifying reservoir characteristics from constant/unit rate pressure response by pressure-transient analysis is a

well-established practice. When variations exist in rate, it is desirable to convert the data to constant-rate production

responses before analysis; in other words, the first step in analysis becomes the identification of the unit-rate

pressure response from the convolution integral. In mathematics, the convolution integral is a linear Voltera integral

equation of the first kind. Deconvolution of variable-rate production, mathematically, is an ill-conditioned inverse

problem (Lamm, 2000), and a small error in the data or in the subsequent calculations results in much larger errors

in the answers. It should be re-emphasized that convolution/superposition and rate normalization requires that a

model to be utilized for the influence function while in the deconvolution of variable-rate production, finding the

influence function is the objective.

The deconvolution approaches of variable-rate production data proposed in the literature can be grouped into two

main categories; time domain methods and spectral methods. The most successful deconvolution algorithm in time

Page 19: Laplace Transform Deconvolution And Its Application to Perturbation

9

domain is the one recently presented by von Schroeter et al. (2004) and Levitan (2003). In the progression of the

time-domain deconvolution algorithms for variable-rate data, instability of the influence function was an issue and

some artificial approaches were designed to make it stable. Coats et al. (1964) employed the prior knowledge of

constant-rate response (non-negativity) before applying constraints in their model. These additional constraints in

the model proposed by Coats (1964) increased the number of unknowns, which leads to an over-determined system.

An over-determined system requires some minimization. Kuchuk (1985) and Baygun (1997) attempted to improve

Coat’s method by applying a least squared approach and by using different constraints. Issues related to the

constraints were solved by the work presented by Schroeter et al. (2004). According to Schroeter et al. (2004),

instead of the rate-normalized pressure derivative itself, they estimated its logarithm, which makes explicit sign

constraints unnecessary. The deconvolution algorithm proposed by Schroeter et al. (2004) is a nonlinear, total least

squares problem, which means both pressure and rate data are influenced by noises. In the presence of a certain level

of noise in the input data, the deconvolved pressure response could still show some instability. Regularization or

eliminating irregular response behavior is also proposed by Schroeter et al. (2004). Various ways for the

regularization of the impulse function may be found in literature. The regularization in the work by von Schroeter et

al. (2004) is based on a measure of overall curvature. Levitan (2004) presented some modifications on Shroeter et

al.’s work proposing some critical recommendations to obtain accurate results.

Spectral methods more specifically, the Laplace transform, became a standard tool in petroleum engineering for

the analysis of transient flow problems after the classical paper of van Everdingen and Hurst (1949). Performing

deconvolution in the Laplace domain simplifies the convolution integral to the product of the transforms of the

functions. Eq. (2.4) in the Laplace domain can be written as follows:

( )

( )

( )

wwc

p sp s

s q s

(2.7)

Once the tabulated pressure and the rate data are transformed into Laplace domain, the impulse function for

constant-production rate can be obtained by the simple division of the functions as shown in Eq.(2.7). The results

can be numerically inverted back to the time domain using a numerical Laplace inversion algorithm, such as those

proposed by Stehfest (1970) or Iseger (2006). In spite of the simplicity of using Eq.(2.7), Laplace transformation

suffers from two issues: firstly, Laplace transformation is defined on the entire positive axis of time from zero to

infinity, which requires some extrapolation techniques. Roumboutsos et al. (1988) and Onur and Reynolds (1998)

proposed piecewise linear and polynomial functions for transforming the data into Laplace domain with some

extrapolation techniques; but neither of them was successful to overcome the foregoing issue. Secondly, Laplace

transform of piecewise-continuous functions is well defined; however, discontinuities in the Laplace domain

function cause problems in the main stream numerical inversion algorithms. For example, the numerical inversion

algorithm of Stehfest (1970), which is commonly used in petroleum engineering, cannot handle the discontinuities in

the function to be inverted. In the approach proposed by Ilk (2005), a combination of B-splines and numerical

inversion of the Laplace transform is used. The difference between their methods and other methods in the Laplace

domain is in the fact that B-spline was used to represent the unknown response solution. Similar to the other

methods, a limitation in their method is that the non-negativity of the response function was not ensured.

Page 20: Laplace Transform Deconvolution And Its Application to Perturbation

10

Additionally, their regularization approach seems weaker, which makes their algorithm less tolerant to the noise in

pressure and rate data. A comparative study of recent deconvolution algorithms can be found in the work by Cinar

(2006).

As previously explained, solutions to numerous pressure transient analysis problems in the field of petroleum

engineering are provided in the Laplace transform domain. Usually these solutions do not lend themselves to an

analytical inversion, and numerical inversion is normally the only resort. The common numerical inversion

algorithm presented by Stehfest (1970) is applicable only to continuous functions and fails where discontinuities

emerge. Some other algorithms, such as Bellman (1966), Crump (1976), and Talbot (1979), were tried but their

complexity and inflexibility limited their application. The simple form of the convolution integral in Laplace

transformation and the high interest in deconvolution algorithms encouraged many researchers to look for new

Laplace inversion algorithms. Ilk (2005) applied Gaver-Wynn-Rho’s algorithm presented by Valko and Abate

(2004) in the B-spline deconvolution.

Iseger (2006) presented a new algorithm, which removes the necessity of the function to be continuous. In

addition, the algorithm provides remarkable results in the case of piecewise continuous and piecewise differentiable

functions. In well test analysis, such functions can be tabulated as data in the Laplace transform domain,

deconvolution algorithms, and solutions that include step-rate changes in the mini-DST tests. Adapting cubic spline

with piecewise linear approximation in the Laplace domain and employing inverse boundary mirroring and kernel

regression using a Gaussian or Epanechnikov kernel function is shown in this dissertation to improve the behavior of

constant pressure response obtained by deconvolution.

2.2 Solution of Non-Linear Diffusivity Equation

The general diffusivity equation, which governs fluid flow in porous media is a non-linear equation. For slightly

compressible fluids (liquids) the variation of fluid viscosity and compressibility with pressure can be assumed

negligible. However for compressible fluids (gas) this is not a valid assumption.

The diffusivity equation for the flow of a real gas in porous media is given by:

.( ) tcp p pp

z k z t

(2.8)

Eq.(2.8) is non-linear due to the fact that the gas properties (viscosity, compressibility and real gas deviation factor)

are pressure dependent. The pseudo-pressure transformation introduced by Al-Hussainy et al. (1966) attempts to

linearize the diffusion equation and allows an analytical solution of Eq.(2.8). The pseudo-pressure proposed by Al-

Hussainy et al. (1966) is defined by

'

( ) 2 '( ') ( ')

b

p

p

pm p dp

p z p (2.9)

where bp is a reference pressure. Upon applying the pseudo-pressure transformation, the gas diffusivity equation can

be written as

Page 21: Laplace Transform Deconvolution And Its Application to Perturbation

11

2 1

=( )

tc m mm

k t m t

(2.10)

where the diffusivity term is defined as:

( )( ) ( )t

km

m c m

(2.11)

Eq.(2.10) is not completely linear since the diffusivity term given in Eq.(2.11) is a function of pressure. For

practical purposes, the quantity ( ) ( )tm c m is approximated as constant at the average pressure of the drainage area.

Some other approaches have been tried for the linearization of the gas diffusivity equation. Kale and Mattar

(1980) derived an approximate solution using a perturbation technique for radial flow with constant rate. An exact

solution using a perturbation approach was developed for constant-rate production in an infinite reservoir by Serra

and Reynolds (1990a, 1990b). In their derivation the Boltzmann transformation is employed.

In the case of variable-rate production, Duhamel’s principle can be applied if the governing equation of fluid

flow is linear. For slightly compressible fluids (liquid) this is a routine approach to well test problems. However, for

gas flow, superposition in time cannot be applied, as the gas diffusivity equation is non-linear. If the diffusivity term

is assumed to be constant, then the theory of superposition can be applied as in the works of Gupta and Andsage

(1967), Samaniego and Cinco-Ley (1991), and recently von Schroeter and Gringarten (2007).

Recently, Barreto (2011) introduced a solution to the diffusivity equation with a pressure-dependent diffusivity

term. He obtained the solution of the nonlinear diffusion equation using a perturbation approach and Green’s

Functions. Barreto’s solution is in the time domain, which requires double and/or triple numerical integrations. In

this research, Barreto’s approach is extended to Laplace domain. There are several advantages to extending

Barreto’s solution to Laplace domain: 1) solutions for different reservoir geometries in petroleum engineering are

broadly available in the Laplace domain (Ozkan and Raghavan, 1991a, b), 2) because the time integral of the

Green’s functions drops off in Laplace domain, less effort will be required for the numerical evaluation of the

solution, 3) the Laplace-domain deconvolution method proposed in this work can be used with the solution of the

nonlinear diffusion equation in Laplace domain. The solution proposed in this work may be applied to

deconvolution of gas well-test data, especially in shale-gas reservoirs.

Page 22: Laplace Transform Deconvolution And Its Application to Perturbation

12

CHAPTER 3

DEVELOPMENT OF THE CUBIC SPLINE BASED DECONVOLUTION METHOD

Despite unequivocal advantages of using sampled well-performance data in the Laplace transform domain, time-

domain analyses of pressure and production data have been more popular lately. This is due to the fact that

unresolved problems in the transformation of sampled data into Laplace domain as opposed to the demonstrated

success of the recent real-time deconvolution algorithms. However, the transformation of sampled data into Laplace

domain has a broader range of applications than deconvolution and the limited success of the past approaches to

transforming tabulated data to Laplace domain, such as piece-wise linear approximations, is an algorithmic issue;

not a fundamental defect. Specifically, an adequate algorithm to transform the piecewise-continuous sampled data

into the Laplace space and an appropriate numerical Laplace inversion algorithm capable of processing the

exponential contributions caused by the tabulated data are essential to exploit the potential of Laplace domain

operations.

In this chapter, we introduce a new algorithm, which uses inverse mirroring at the points of discontinuity and

adaptive cubic splines to approximate rate or pressure versus time data. This algorithm accurately transforms

sampled data into Laplace space and eliminates the Numerical inversion instabilities at discontinuities or boundary

points commonly encountered with the piece-wise linear approximations of the data. The approach does not require

modifications of scattered and noisy data or extrapolations of the tabulated data beyond the end values.

Practical use of the algorithm presented in this chapter has applications in a variety of Pressure Transient

Analysis (PTA) and Rate Transient Analysis (RTA) problems. A renewed interest in this procedure has arisen from

the need to evaluate the production performances of wells in unconventional reservoirs. With this approach, we

could significantly reduce the complicating effects of rate variations or shut-ins encountered in well-performance

data. Moreover, the approach has proven to be successful in dealing with the deconvolution of highly scattered and

noisy data. To illustrate the applications, typical field examples including shale-gas wells are presented in this

chapter.

3.1 Convolution and Deconvolution

Laplace transformation of a function, f t , defined for all 0t , is given by

0

stf t f s e f t dt

L (3.1)

where, f s , is the Laplace transformation of f t and s denotes the Laplace transform parameter. Convolution of

two functions yields the algebraic product of the functions in Laplace domain as follows:

1 2 1 2 1 2

0

t

f f t f f t d f s f s L = L (3.2)

Page 23: Laplace Transform Deconvolution And Its Application to Perturbation

13

Eq.(3.2) has important applications in transient flow in porous media associated with variable-rate production. The

solution of pressure drop, ,p M t , at a point M and time t due to variable production rate, q t , is known as

Duhamel’s principle (Duhamel, 1833) and given by the convolution of flow rate, q t , and ,cp M t as follows:

0

, ,

t

cp M t q p M t d (3.3)

In Eq.(3.3), ,c

p M t is the time derivative of the pressure drop at a point M and time t for a constant (unit)

production rate. In many applications of pressure transient analysis, the constant-rate pressure response at the

wellbore, ,c

p M t , is of interest. To recover the constant-rate response from the measured data, ,p M t and

q t , the deconvolution of Eq.(3.3) is required.

Application of Eq.(3.2) on Eq.(3.3) yields the following algebraic expression for deconvolution in Laplace space:

c

p sp s

sq s

(3.4)

In the field application of the Laplace-domain deconvolution (Eq.(3.4)), the input data, ,p M t and, q t need to

be transformed to the Laplace domain. This requires an approximating function to properly transform sampled

(tabulated) data into Laplace space. In addition, a numerical Laplace inversion algorithm, which handles

discontinuities and singularities, is entailed. All these requirements need to be addressed to develop a successful

deconvolution algorithm in Laplace domain as deconvolution described by Eqs.(3.3) and (3.4) is an ill-condition

problem. Moreover, production-rate data frequently show step-change behavior, which causes instability in the

numerical Laplace inversion.

The objective of this chapter is to contribute to the solution of the following problems:

3.2 Laplace Transformation of Sampled Functions Using Cubic Splines

Interpolation by polynomials of degree n is widely used in practice. For various functions, the higher quality of

the interpolation might be expected with the increasing degree of the polynomials. Unfortunately, this is not always

true and the interpolation may yield oscillatory results by higher-degree of polynomials. Losing the quality of the

interpolation by using higher-degree polynomials has been discussed by Kreyszig (1999). To avoid such

oscillations, spline methods are widely applied. The mathematical idea of the spline is to replace a single high-

degree polynomial over the entire interval by several low-degree polynomials (De Boore, 2001). This is expected to

reduce the oscillation of the interpolation. In general, a spline function is a function that consists of piecewise

polynomials joined together with certain smoothing conditions. A spline function also utilizes the thn degree

piecewise polynomials to preserve ( 1)thn order derivatives at the data points. A spline function is defined by knots

and the order of the spline. In the theory of splines, the points 0 1, ,..., nt t t , at which the character of the function

changes, are called knots.

Page 24: Laplace Transform Deconvolution And Its Application to Perturbation

14

In this work, the most popular piecewise polynomial, called the natural cubic spline, is utilized. The cubic spline

preserves the first and second derivative continuity at knots. If ( )S t is given over the interval a t b with knots

defined by

0 1 2 ... na t t t t b (3.5)

then the cubic spline in each subinterval can be written in the following form:

2 3

0 1 2 3( ) , 1, 2,...,i i i i iS t A A t A t A t i n (3.6)

The coefficients ijA need to be determined for each subinterval.

The simplified cubic splines function for each subinterval 1i it t t with values 1iy andi

y at 1it and it respectively

can be address in the form of (Atkinson, 1985)

3 3

1 1

1

1 11 1 1

1

( ) ( )( )

6( )

( ) ( ) 1+ ( ) ( ) ( ) 2,3,...,

( ) 6

i i i ii

i i

i i i ii i i i i i

i i

t t M t t MS t

t t

t t y t t yt t t t M t t M i n

t t

(3.7)

In Eq.(3.7), M represents the second derivative and 1i it t t . Eq. (3.7) can also be rearranged as follows:

3 21 1 1

1 1

2 2

1 1 11 1 1 1

1 1

3 3

1 1 1 1

1 1

2

1

3 3( ) +

6( ) 6( )

3 3 1+ + +

6( ) 6

6( )

1

6

i i i i i ii

i i i i

i i i i i ii i i i i i i i

i i i i

i i i i i i i i

i i i i

i i i

M M t M t MS t t t

t t t t

t M t M y yt M t M t M t M t

t t t t

t M t M t y t y

t t t t

t M t t

-1

2

1 1 1 1

2,3,..., with i i

i i i i i i i

i n t t t

M t t M t M

(3.8)

Applying Eq.(3.1) on cubic spline over the interval 1 nt t t for tabulated data, such as pressure or production rate,

yields

1

1 10 0

( ) ( ) ( ) ( ) ( ) ( ) = ( )

n n

n

t tt

st st st st st

t t t

L S t S s S t e dt S t e dt S t e dt S t e dt S t e dt

(3.9)

For the set of tabulated data from 1t to nt both terms

1

0

( )

t

stS t e dt

and ( )

n

st

t

S t e dt

vanish because the cubic spline

becomes zero outside the interval. Application of Eq.(3.9) to individual terms of Eq.(3.8) yields:

The Laplace transform of the first term:

Page 25: Laplace Transform Deconvolution And Its Application to Perturbation

15

0

1 2

0 1 1

3 31 1

1 1

3 3 31 0 12 1

1 0 2 1 1

3 2

2 3 4

1

12

= 6( ) 6( )

... 6( ) 6( ) 6( )

3 6 6

6( )

n

n

n

t

sti i i i

i i i it

tt t

st st stn n

n nt t t

i i i

n

i i

i ii

M M M ML t t e dt

t t t t

M M M MM Mt e dt t e dt t e dt

t t t t t t

t t t

s s s sM M

t t

1

-13 2

1 1 1

2 3 4

2,3,..., with

3 6 6

i

i

st

i i

sti i i

e

i n t t t

t t te

s s s s

(3.10)

The Laplace transform of the second term:

0

1

0 1

2 21 1 1 1

1 1

2 21 0 0 1 1 1

1 0 1

2

2

1 1

12

3 3 3 3 =

6( ) 6( )

3 3 3 3 ...

6( ) 6( )

2 2

3 3

6( )

n

n

n

t

sti i i i i i i i

i i i it

tt

st stn n n n

n nt t

i i

n

i i i i

i ii

t M t M t M t ML t t e dt

t t t t

t M t M t M t Mt e dt t e dt

t t t t

t t

s s st M t M

t t

1

3

-12

1 1

2 3

2,3,..., with

2 2

i

i

st

i i

sti i

e

i n t t t

t te

s s s

(3.11)

The Laplace transforms to the third and the fourth terms, respectively:

2 2

1 1 1

1 1

1 1 1 1

2 2

1 1 1

1 1

2

1 1 1 1

3 3+

6( )

1+

6

3 3+

16( )

1+

6

i i i i i i

i i i i

i i i i i i i i

i i i i i i

ii i i i

i i i i i i i i

t M t M y y

t t t tL t

t M t M t M t M

t M t M y y

tt t t t

s st M t M t M t M

11

2

1

-1

1

2,3,..., with

i i

nst sti

i

i i

te e

s s

i n t t t

(3.12)

Page 26: Laplace Transform Deconvolution And Its Application to Perturbation

16

3 3

1 1 1 1

1 1

2 2

1 1 1 1 1

3 3

1 1 1 1

1 1

2 2

1 1 1 1 1

6( )

1

6

+6( )

1

6

i i i i i i i i

i i i i

i i i i i i i i i i

i i i i i i i i

i i i i

i i i i i i i i i i

t M t M t y t y

t t t tL

t M t t M t t M t M

t M t M t y t y

t t t t

t M t t M t t M t M

1

2

-1

1

2,3,..., with

i ist st

n

i

i i

e es

i n t t t

(3.13)

In all of above equations, L denotes Laplace operator and s denotes the Laplace transform parameter.

3.3 Inverse Mirroring at Boundaries

Discontinuous points in sampled data, such as step changes in production rate or build up in the pressure data,

may cause oscillations in the approximation functions obtained (for example, by cubic spline). Transforming the

data into the Laplace domain with such oscillations in the approximation function increases the error in the

deconvolved constant pressure response. Figure 3.1 shows an example of the oscillatory behavior around

discontinuous points caused by the application of cubic-spline approximation of the data. In addition, sampled

functions are normally available over a finite interval while Laplace transformation requires the function be defined

over the positive semi-infinite domain. To take the sampled data to Laplace domain, extrapolation from zero to the

first sampling point and from the last sampling point to infinity is required. If the behavior of the tabulated function

beyond the endpoints is known [e.g. constant wellbore storage, radial flow, pseudo steady state, etc. (Al-Ajmi et al.,

2008)], then the Laplace transform of the function can be generated by the procedures suggested by Roumboutsos et

al. (1988) and Onur and Reynolds (1998). As previously noted, however, due to the property of the cubic spline, the

Laplace integration over the regions of extrapolation vanishes. To remove the remaining oscillations of the

approximating function at discontinuity points, we propose the use of inverse mirroring at these points. In this

approach, the function is extended beyond the points of discontinuity by using its inverse mirror image and the

cubic-spline interpolation is applied to each extended function obtained by individual inverse mirroring. This

reduces the oscillations of the function known as the tail effect. Figure 3.2 shows an example of inverse mirroring at

discontinuous points ( 50,100,200)t . Figure 3.3 shows the interpolation results from the application of the inverse

mirroring and cubic spline.

3.4 Adaptive Cubic Spline

Inverse mirroring at discontinuous points can be also used to extend the sampled data at both ends of the table

where the behavior of the function is unknown. In this case, the two discontinuous points are the two ends of the

data set. Figure 3.4 shows an example of inverse mirroring at the data boundaries of an arbitrary function. The

inverse mirroring at the first data point may create negative values. These data points are rejected while

transforming the extended function into the Laplace domain.

Page 27: Laplace Transform Deconvolution And Its Application to Perturbation

17

Figure 3.1 Interpolation of discontinuous pressure data using cubic spline.

Figure 3.2 Inverse Mirroring at discontinuous points ( 50,100,200)t .

Page 28: Laplace Transform Deconvolution And Its Application to Perturbation

18

Figure 3.3 Application of inverse mirroring at discontinuous points using cubic spline interpolation.

Field data may not be as smooth as was shown in Figure 3.3. The oscillatory nature of the field data may cause

the same effect as discontinuities on the cubic spline interpolation. The application of inverse mirroring for the

entire set of data in these cases would make the procedure impractical. Using inverse mirroring only at the two ends

of the data set as shown in Figure 3.4 may be a partial solution for this problem. Inverse mirroring at the first data

point is used to fill the gap from zero to first data point. However, It is used in the last data point to shift the tail

effect may occur during Laplace inversion to the right.

An alternative solution for data with discontinuity at any point between the first and last data points is to use an

adaptive cubic spline approach. In the adaptive cubic spline approach, piecewise linear approximations are

substituted for the function in intervals where the cubic spline approximation causes large oscillations. The

mathematical expression of the Laplace transformation of the piecewise linear approximations used in selected

segments are as follows:

The equation of a straight line over a segment can be written as:

y mx b (3.14)

where m is the slope of the line passing through knots over a particular segment, and b represents the intercept of the

line.

Slope m for a particular line between knots can be found from the following relation

1

1

i i

i i

y ym

t t

(3.15)

Similarly, the intercept of the line can also be found as follow

Page 29: Laplace Transform Deconvolution And Its Application to Perturbation

19

1

1 1 1 1

1

i ii i i i

i i

y yb y mt y t

t t

(3.16)

The Laplace transformation of a piecewise-linear function over an interval from 1it to it is then written as follow:

1 1 1 1

1 11

2 2

( ) ( ) ( ) ( )

1 1

i i i i

i i i i

i i i i

t t t t

st st st st

t t t t

st st st sti i

L y t y s y t e dt mt b e dt mte dt be dt

t t bm e e e e

s s ss s

(3.17)

where m and b are given in Eq. (3.15) and Eq.(3.16), respectively. A cutoff value is used to decide where the switch

between the cubic-spline and piecewise-linear approximations should occur. The cutoff value is defined as the

absolute value obtained from the difference between the cubic spline approximation and the linear approximation in

each individual segment in time domain. For practical purposes, the adaptive cubic spline approach combined with

inverse mirroring at data-set boundaries has proven to be an excellent combination for deconvolution purposes in

Laplace domain. Figure 3.5 and Figure 3.6 illustrate the application of the adaptive cubic spline with linear

approximation for both simulated and field examples.

3.5 The Iseger Algorithm

As previously noted, the Stehfest (1970) algorithm is a standard numerical Laplace inversion algorithm used in

petroleum engineering. The Stehfest algorithm, however, cannot handle discontinuous functions. As previously

discussed, in the application of the deconvolution method in transient flow problems, step-wise behavior of

production rate and other discontinuities make the Stehfest algorithm inapplicable. A newer algorithm presented by

Iseger (2006) removes the restriction on discontinuities. The Iseger algorithm is based on Poisson’s summation

formula in the form of Fourier series. In this algorithm, Poisson’s summation relates an infinite sum of Laplace

transform values to Z-transforms of the function’s values. The infinite sum is approximated by a finite sum based on

the Gaussian quadrature rule, and the time domain values of the function are computed by a Fourier Transform

algorithm (Al-Ajmi et al., 2008). The practical application of Iseger’s algorithm in transient-flow problems was

introduced by Al-Ajmi et al. (2008). In this work, the Iseger algorithm is used for deconvolution applications.

The appeal of the Iseger algorithm is in its ability to compute inverse Laplace transforms of functions with

discontinuities, singularities, and local non-smoothness, even if the points of discontinuity and singularity are not

known a-priori. The implementation of the algorithm may be slightly more involved than the Stehfest (1970)

algorithm, but it is comparable to the implementation of the other algorithms with similar capabilities.

A critical parameter used in the Iseger algorithm is computed from the following relationship:

M

T (3.18)

where T is the period for which the inversions are computed and M is the number of points at which the inverse

Laplace transforms are computed. To obtain accurate results, Al-Ajmi et al. (2008) found that 1 should be an

integer

1 D( )ÎNéë

ùû

and the following condition must be satisfied:

Page 30: Laplace Transform Deconvolution And Its Application to Perturbation

20

Figure 3.4 Inverse mirroring at both ends.

Figure 3.5 Application of adaptive cubic spline using simulated data. Circles show where the adaptive cubic

spline is required.

Page 31: Laplace Transform Deconvolution And Its Application to Perturbation

21

Figure 3.6 Application of adaptive cubic spline using field data. Circles show where the adaptive cubic spline is

required.

MM 10 ; that is, TM 10 (3.19)

To demonstrate the use of these conditions, we consider the inversion of the unit step function for a period of 20 hr

as shown in Figure 3.7. By Eq. (3.19), the minimum number of inversion points required for this case is 200M .

If 220 points are used, the condition in Eq. (3.19) is satisfied and N111 . Figure 3.7 shows how we obtain

an accurate inversion of the unit step function with 220 data points. If we use 103 data points, for example, the

condition in Eq. (3.19) is not satisfied and if we use 223 data points, the condition in Eq. (3.19) is satisfied but

N1 . For both cases, inversions are not sufficiently accurate. We also note from our experience, that if the

characteristics of the function change in short intervals (e.g., rate and pressure variations due to short drawdown and

buildup periods in a mini-DST test), a large M may be required for accurate inversions.

The Iseger algorithm uses MnrpM 2 over sampling points to compute inversions at M data points. It was

recommended by Iseger (2006) to use 8nrp especially for well-behaved functions. This particular choice of nrp

was dictated by the Fast Fourier Transform originally used by Iseger, which required M and nrp to be a power of 2.

For our applications, however, we did not obtain stable inversions with 8nrp . We have found that using 3nrp

with Discrete Fourier Transforms generated more stable inversions for our applications. Figure 3.8 shows the effect

of nrp on numerical inversion of a typical pressure function encountered in fluid flow problems by using the Iseger

algorithm.

Page 32: Laplace Transform Deconvolution And Its Application to Perturbation

22

Figure 3.7 Numerical Inversion of Unit Step Function by the Iseger algorithm; Effect of the number of inversion

points.

3.5.1 Verification Examples Using Iseger Algorithm

In this section, we present examples to verify the success of the Iseger algorithm in the inversion of functions

that are piecewise differentiable or discontinuous. We compare the results to the Stehfest algorithm to delineate the

differences from standard algorithms.

Figure 3.8 Effect of nrp in the numerical inversion of a function by the Iseger algorithm.

-1

-0.5

0

0.5

1

1.5

2

0 5 10 15 20

Time, hr

Un

it S

tep

Fu

nc

tio

n (

On

e S

tep

Ch

an

ge

)

220 data

103 data

233 data

0

0.2

0.4

0.6

0.8

1

1.2

1.4

0 5 10 15 20

Time, hr

Fu

nc

tio

n

nrp=3

nrp=7

Page 33: Laplace Transform Deconvolution And Its Application to Perturbation

23

3.5.2 Discontinuous and Piecewise Differentiable Functions

Figure 3.9 shows the inversion of a unit step function (Heaviside function) with the pole at 10t hr using the

Iseger and Stehfest algorithms. For the Iseger algorithm, inversion was performed with 220M and 3nrp . Three

values of the parameter, N 6, 8, and 12, were used for the Stehfest inversions ( N controls the number of

functional evaluations in the Stehfest algorithm and, theoretically, higher N values yield better inversions). Figure

3.9 shows that the Iseger algorithm recovers the true step-wise character whereas the Stehfest algorithm smears the

function around the point of discontinuity ( 10t hr).

In Figure 3.10, we consider a function with multiple step changes. This function corresponds to the rate sequence

used in a synthetic deconvolution example shown below. For the results in Figure 3.10, we used 512M and

3nrp in the Iseger algorithm and N 6, 8, and 12 in the Stehfest algorithm. The smearing of the function at the

points of discontinuity with the Stehfest algorithm completely destroys the local and global characteristics of the

original function. The success of the Iseger algorithm in this example is remarkable.

To show that special algorithms, such as the Iseger algorithm, may be required even when the function is

continuous but only piecewise differentiable, we present the results in Figure 3.11. To generate the function in this

example, we used the function in Figure 3.10 as the rate sequence and generated the corresponding pressure

changes. The Laplace transformation of this tabulated pressure-change function was obtained by the Roumboutsos-

Stewart (1988) algorithm (the Onur-Reynolds, 1998, algorithm generated the same results) and inverted back by the

Iseger and Stehfest algorithms. As shown in Figure 3.11, while the Stehfest algorithm returns a smooth,

continuously differentiable function, the Iseger algorithm accomplishes an accurate inversion that preserves all the

characteristics of the piecewise differentiable function.

Figure 3.9 Numerical Inversion of a unit step function; comparison of Iseger and Stehfest algorithms.

-0.5

0.0

0.5

1.0

1.5

2.0

0 5 10 15 20

Time, hr

Un

it S

tep

Fu

nc

tio

n

Original Function

Iseger

Stehfest, N=6

Stehfest, N=8

Stehfest, N=12

Page 34: Laplace Transform Deconvolution And Its Application to Perturbation

24

Figure 3.10 Numerical Inversion of a function with multiple step changes; comparison of Iseger and Stehfest

algorithms.

Figure 3.11 Numerical Inversion of a piecewise differentiable function; comparison of Iseger and Stehfest

Algorithms.

0

100

200

300

0 4 8 12 16

Time, hr

q,

rbb

l/d

Original Rate

Iseger

Stehfest, N=6

Stehfest, N=8

Stehfest, N=12

0

100

200

300

0 4 8 12 16

Time, hr

p

, p

si

Original Function

Iseger

Stehfest

Page 35: Laplace Transform Deconvolution And Its Application to Perturbation

25

3.5.3 Wellbore Pressure Solution for a Combined Drawdown and Buildup

This is a classic example where the Stehfest algorithm does not yield good results. For the particular example

here, we assume that the well is produced at a constant-rate until time 8pt hr and then shut in. This rate sequence

introduces a discontinuity into the problem. Pertinent data for this example is given in Table 3.1.

Table 3.1 Data for drawdown followed by build up

q

rbbl/d

B

rbbl/stb

kh

md.ft

C

bbl/psi

rw

ft fS

η

md-psi/cp

736 1 1000 0.01 0.3 0 29300

Correa and Ramey (1986) provided the following solution in the Laplace domain for the wellbore pressure

change for this problem:

0 1

1 0 1

1141.2

141.2

pst

w f w w

wf

w w w f w w

K s r S s r K s r eqB

pCkh

s s r K s r s K s r S s r K s rkh

(3.20)

The term stpe1 in Eq. (3.20) introduces the effect of the step-rate-change at 8pt hr into the solution. In Eq.

(3.20), fS represents skin factor and s denotes Laplace transform parameter.

Figure 3.12 shows the results of the numerical inversion of the solution in Eq. (3.20) for the data in Table 1. As

expected, the Stehfest algorithm cannot accurately compute the behavior of the solution at the point of rate

discontinuity ( 8pt hr). Chen and Raghavan (1996) suggested a practical approach to handle this problem by using

the Stehfest algorithm. Their approach is based on the superposition solution of the pressure buildup problem and

requires the inversion of two drawdown solutions with a time shift. This approach, however, is not convenient for all

applications that involve step-rate changes. As shown in Figure 3.12, inversion by the Iseger algorithm yields

accurate results and does not require any special treatment of the solution (we used 1024M and 3nrp for this

example).

3.6 Adaptive Nonparametric Kernel Regression

As previously mentioned, deconvolution is an ill-conditioned problem. Small errors in the input data (in this

case, pressure and production rate) create large variations in the deconvolved constant rate pressure response

(impulse function). The oscillations in the constant-rate response retrieved from the deconvolution process are

magnified in the calculation of its time derivative and cause difficulty in the pressure-transient interpretation. To

alleviate this problem, several approaches such as smoothing, filtering, and regularization [Ilk et al., (2005) & von.

Schroeter et al. (2004)] have been proposed.

In this work, to smooth the deconvolved data, we apply the adaptive Nadaraya-Watson (1964) kernel regression

Page 36: Laplace Transform Deconvolution And Its Application to Perturbation

26

Figure 3.12 Numerical Inversion of wellbore pressure change for a combined drawdown and buildup sequence.

using a kernel function. The kernel regression is a non-parametric technique with the objective of finding a

relationship between a dependent and independent variables. For the purposes of this work, several kernels (e.g.,

Gaussian, Epanechnikov, Tricube, and Triweight) were tested. We have found that the Gaussian and Epanechnikov

kernels yielded better results than the others. In general, the Gaussian kernel is unbounded and has a smooth

behavior compared to the other kernels; however, if the number of the data points is large (in the order of

thousands), the Epanechnikov kernel becomes faster than the Gaussian kernel.

The Nadaraya-Watson (1964) kernel estimator of the regression function is obtained as:

1

1

( )

( | )

( )

n

ii

i

n

i

i

x xY K

hg x h x

x xK

h

(3.21)

where K is a kernel function with a bandwidth h . The bandwidth, h , of the Nadaraya-Watson kernel estimator

controls the smoothing level of the estimation (the larger the h , the smoother the result). The bandwidth, h , plays a

very important role in the performance of the kernel estimator. Various methods of choosing bandwidth h are

available. In this work we used the common method of cross-validation. The cross-validation method is often

preferred because it is easily computable and applicable for any regression model; but it is time consuming.

The following expression is the general Gaussian function;

2

2

1 ( )( | , ) exp

2 2

xx

(3.22)

0

100

200

300

400

500

600

700

800

900

0 2 4 6 8 10 12 14 16 18

Time, hr

p

, p

si

Iseger

Stehfest

Page 37: Laplace Transform Deconvolution And Its Application to Perturbation

27

In Eq.(3.22) and more specifically in Kernel regression, is known as the centering parameter and as the

dispersion smoothing parameter ( )h .

The general form of Epanechnikov kernel function is also presented as following;

23( )

41 1 x x x (3.23)

The deconvolved pressure response obtained from Eq. (3.4) usually shows a smooth behavior at early times and

some oscillations are observed at late times (the tail effect). If a constant smoothing factor is used in the kernel

regression for the entire data set, while sufficient smoothing is achieved at late times, the early time data is over

smoothed. The over smoothing at an early time may mask some important features, such as dual-porosity system

behavior in pressure transient analysis, which misleads the data interpretation. (In some cases, an appropriate

constant smoothing factor may not be found to smooth the entire data.) To overcome the problem, an adaptive

kernel regression approach is recommended as follows:

1

1

( )( )

( | ( ))

( )( )

n

ii

ii

n

i

ii

x xY K

h xg x h x x

x xK

h x

(3.24)

Abramson (1982) proposed a method, which uses a value of ( )ih x proportional to 1/2( )if x

where ( )if x

is a prior kernel

density estimator with a fixed bandwidth. Silverman (1986) gave a three-step algorithm for the Abramson-type

estimator. In the first step, a prior kernel density estimator ( )if x

with a fixed bandwidth is obtained. In the second

step, the local bandwidth factor i is defined as

( ) /i if x J

(3.25)

where

1

1( )i

i

J f xn

and

1

1( )

n

i

i

x xf x K

nh h

.

In Eq. (3.25), 0 1 is the sensitivity parameter. In the last step, the modified adaptive Nadaraya-Watson kernel

estimator with the modified local bandwidth factor i can be written as

1

1

( )

( | ) 1

( )

n

i i

i ii

n

i

i ii

Y x xK

hg x h x

x xK

h

(3.26)

In Eq. (3.26), the adaptive bandwidth is taken as ( )i ih x h and h is obtained from the cross-validation method. The

adaptive kernel estimation is equivalent to the kernel estimation with fixed bandwidth when 0 . When 1 , then

the adaptive kernel estimation is equivalent to the nearest neighbor estimation. Abramson and Silverman

emphasized that taking 0.5 leads to good results.

As an example, we have applied smoothing with fixed and adaptive bandwidth Nadaraya-Watson kernel

Page 38: Laplace Transform Deconvolution And Its Application to Perturbation

28

estimator using Gaussian kernel regression to a noisy set of data. We applied cross-validation to obtain the fixed

value of h in Eq. (3.21).Figure 3.13 shows the optimum fixed bandwidth obtained from cross-validation and Figure

3.14 illustrates the local bandwidth factori . The original and the smoothed data are shown in Figure 3.15. Both

fixed and adaptive bandwidth approaches successfully smooth the data. As expected, the adaptive bandwidth

approach provides smoother results than the fixed bandwidth approach.

3.7 Deconvolution of Pressure Responses for a Sequence of Step-Rate Changes

To demonstrate the use of the adaptive cubic spline in deconvolution applications, we consider the step-rate

sequence and corresponding bottomhole pressure in Figure 3.16 and Figure 3.17, respectively. The pertinent data for

this example are given in Table 2. For this variable-rate (step-rate changes) example, we used the Laplace domain

deconvolution given in Eq. (3.4) to generate the constant rate responses (with wellbore storage) shown in Figure

3.18. The Laplace transformation of the tabulated pressure responses, ( )wp t , were generated by the adaptive cubic

spline algorithm combined with an analytical solution for tabulated production rate. The Iseger numerical Laplace

inversion algorithm is utilized in this example.

Figure 3.13 Optimum fixed bandwidth obtained from cross-validation method.

Page 39: Laplace Transform Deconvolution And Its Application to Perturbation

29

Figure 3.14 Local bandwidth factor, i , applied in adaptive Nadaraya-Watson kernel estimator. Higher lambda

means higher dispersion at particular time.

Figure 3.15 Nadaraya-Watson kernel estimator using Gaussian kernel regression using fixed and adaptive

bandwidth ( 0.5 ) showing improvement over ordinary kernel regression.

Page 40: Laplace Transform Deconvolution And Its Application to Perturbation

30

Table 3.2 Data for deconvolution example

rw pi μ ct h kh fS C

bbl/psi

B

ft psi cp fraction psi-1

ft md.ft rbbl/stb

0.3 5000 1 0.1 3.00E-06 30 1000 0.0 0.01 1

Figure 3.16 Step-rate sequence for data in Table 2.

Page 41: Laplace Transform Deconvolution And Its Application to Perturbation

31

Figure 3.17 Pressure changes corresponding to step-rate sequence shown in Figure 3.16.

Figure 3.18 Deconvolution of pressure responses in Figure 3.17 for the step-rate sequence in Figure 3.16.

Page 42: Laplace Transform Deconvolution And Its Application to Perturbation

32

3.8 Field Examples

Three field examples of the adaptive cubic-spline deconvolution will be presented herein. The first two are the

classical examples of Meunier et al. (1985) and Fetkovich and Vienot (1984) which deal with variable sandface flow

rate due to wellbore storage effect. The third example is a variable-rate production case in an unconventional

reservoir.

3.9 Sandface Rate Deconvolution – Muenuier et al., (1985) Example

The first standard example is an 8-hour buildup test with after flow effects considered by Muenuier et al. (1985).

In this example, the underlying dual-porosity reservoir behavior is masked by wellbore storage and the objective of

deconvolution is to reveal the underlying reservoir behavior. Figure 3.19 shows the original data and the

deconvolved pressure response. Adaptive cubic spline, inverse mirroring, adaptive kernel regression, and Iseger

numerical inversion algorithm are employed in this example. The results from adaptive cubic spline deconvolution

and adaptive kernel regression display the valley in derivative responses, which is characteristic of dual-porosity

systems (the depth of the valley is used to estimate the storativity ratio of the dual-porosity medium). The valley in

the derivative responses was masked in the original data by wellbore storage. The results of both the fixed and the

adaptive bandwidth utilized in kernel regression are shown in Figure 3.19. The fixed bandwidth value used in kernel

regression was obtained from cross-validation to avoid over smoothing. A discussion on how over smoothing can

affect the storativity estimation in this example is given by Al-Ajmi et al. (2008).

Figure 3.19 Sandface-rate deconvolution to remove wellbore storage effect; Muenuier et al. (1985) example.

0.01

0.1

1

10

100

0.001 0.01 0.1 1 10

ΔP and dΔP/dlnt,Psi

Time, hr

Original Pressure

Original Pressure Derivative

Deconvolved Pressure- No Smoothing

Deconvolved Pressure Derivative-No Smoothing

Deconvolved Pressure-Constant Bandwidth Smoothing

Deconvolved Pressure Derivative-Constant Bandwidth Smoothing

Deconvolved Pressure- Adaptive Bandwidth Smoothing

Deconvolved Pressure Derivative-Adaptive Bandwidth Smoothing

Page 43: Laplace Transform Deconvolution And Its Application to Perturbation

33

3.10 Sandface Rate Deconvolution – Fetkovich and Vienot (1984) Example

This example is a buildup test with after flow effect. The data for this example are from Phillips’ Oil Well Nr. 1,

which is hydraulically fractured. Figure 3.20 shows the results of adaptive cubic spline deconvolution using kernel

regression. In this example, the Epanechnikov kernel with constant bandwidth is applied. The Iseger algorithm is

also used for the numerical inversion from Laplace space to time domain. Deconvolution results are satisfactory

without smoothing in this example. Smoothing provides some improvement on derivative data but the early-time

data seems to be distorted by the constant-bandwidth smoothing.

3.11 Deconvolution of Variable-Rate Data-Shale-Gas Well

The final example is the application of adaptive cubic spline deconvolution in an unconventional, shale-gas

reservoir. Figure 3.21 shows the variable production rate and corresponding pseudo-pressures for this example. In

Figure 3.22, the deconvolved pressure and corresponding pressure derivative is shown. To remove the oscillation

and the effect of the noise, kernel regression utilizing Epanechnikov kernel with constant bandwidth obtained from

cross-validation is applied.

For comparison purposes, the time domain deconvolution method (von. Schroeter et al., 2004) using commercial

software (Ecrin 4.20) is also provided in Figure 3.22. We have found that the deconvolution results for this example

were strongly dependent on the input parameters of the time-domain deconvolution. In addition, to obtain a similar

trend from adaptive cubic spline deconvolution, over smoothing was required.

Figure 3.20 Sandface- Numerical inversion of pressure drop from tabulated data; Fetkovich and Vienot (1984)

example.

Page 44: Laplace Transform Deconvolution And Its Application to Perturbation

34

Figure 3.21 Example of flowing gas rate and corresponding pseudo-pressure.

Figure 3.22 Numerical inversion of pressure drop from tabulated data: Shale gas application for data shown in

Figure 3.21.

Page 45: Laplace Transform Deconvolution And Its Application to Perturbation

35

CHAPTER 4

LAPLACE TRANSFORMATION SOLUTION TO THE NONLINEAR DIFFUSIVITY EQUATION

Non-linear fluid-flow problems arise in porous media due to various conditions including pressure-dependent

rock and fluid properties, such as the flow of real gases (pressure-dependent viscosity and compressibility of real

gases) and stress-dependent porosity and permeability of the porous medium. In some of these cases, depending on

the application ranges, the non-linearity may be reduced to a weak form and may be ignored while, in others,

alternate approaches are required. In this chapter, flow of real gases in porous media is considered for the

demonstration of the solution procedure, as it is probably the best-known non-linear fluid flow problem in porous

media. The remaining non-linearity of the real-gas diffusion equation after pseudo-pressure transformation is

relatively weak; therefore, the results of this chapter should not be evaluated in terms of the significance of the

magnitude of the non-linear contributions demonstrated by the solutions. Here, the objective is to demonstrate the

procedure on a well-known problem and leave the application of the procedure to other non-linear problems as a

choice for the reader.

The diffusivity equation, which describes fluid flow in porous media, is used in the formulation of the problem

in this Chapter. It is well known that the diffusivity equation is derived from three fundamental physical principles:

a) conservation of mass, b) equation of motion, and c) equation of state (EOS).

The following assumptions are considered in the derivation of the diffusivity equation in this Chapter:

Homogeneous and isotropic 2D reservoir of infinite extent in x and y directions

Uniform thickness, permeability, and porosity

Darcy flow

Permeability independent of pressure

Isothermal gas flow

No gravity

No compositional changes

4.1 Mathematical Model

The continuity equation in porous media is given by;

. ( , , , )v q x y z tt

(4.1)

where is fluid density, v is velocity, is porosity of porous media, and q

is fluid volume per unit volume. The

equation of flux (Darcy’s Law) implies that the velocity is proportional to the negative of the gradient of the

potential

k

v

(4.2)

Page 46: Laplace Transform Deconvolution And Its Application to Perturbation

36

where

'

b

p

p

dp

(4.3)

bp is the pressure at a datum (reference pressure). In Eq.(4.3) that the potential,

'

b

p

p

dp

, known as work done

by the flow. By combining Eq.(4.2) with Eq.(4.3), the flux law can be written as follows;

( )

kv p

p (4.4)

Substituting Eq.(4.4) into Eq.(4.1) yields

. ( , , , )( )

kp q x y z t

p t

(4.5)

The equation of states for real gases is given by

( )

pM

Z p RT (4.6)

where, M is the molecular weight of the gas, Z is the gas compressibility factor, R is the ideal gas constant, and T

is absolute temperature.

Let’s expand the second term in the left hand side of Eq.(4.5);

t t t

(4.7)

1 1

t t

(4.8)

1 1

p p

p t p t

(4.9)

The compressibility of the gas and the compressibility of the rock as a function of pressure are given by;

1

g

dc

dp

(4.10)

1

r

dc

dp

(4.11)

Substituting Eq.(4.10) and Eq.(4.11) into Eq.(4.9) yields

g r

pc c

t t

(4.12)

Let’s define

g r tc c c (4.13)

Then Eq.(4.12) can be written in the form

Page 47: Laplace Transform Deconvolution And Its Application to Perturbation

37

t

pc

t t

(4.14)

By substituting Eqs.(4.14) and (4.6) into Eq.(4.5)

.( ) ( , , , )( ) ( ) ( ) ( )

t

k pM p pM pMp c q x y z t

p Z p RT t Z p RT Z p RT

(4.15)

Cancelling out the molecular weight from both sides, yields:

( )

.( ) ( , , , ) ( ) ( ) ( ) ( ) ( )

tp cp p p pp q x y z t

Z p p k t Z p p Z p k

(4.16)

The initial and boundary conditions are defined as

( , , , 0) ip x y z t p (4.17)

( , , , )

, ,

lim ip x y z t p

x y z

(4.18)

Al-Hussainy and Ramey (1966) proposed the concept of real gas pseudo-pressure to obtain a linear equation for gas

flow in porous media. The real gas pseudo-pressure is given by

''

' '( ) 2

( ) ( )b

p

p

pm p dp

Z p p (4.19)

Defining the pseudo-pressure difference by

' ' '' '

' ' ' ' ' '( ) ( ) ( ) 2 -2 =2

( ) ( ) ( ) ( ) ( ) ( )

i i

b b

p pp

i

p p p

p p pm p m p m p dp dp dp

Z p p Z p p Z p p (4.20)

and substituting Eq. (4.20) into Eq. (4.16) yields

2 ( ) 2( ( )) ( , , , )

( )

tp c m pm p q x y z t

k t Z p k

(4.21)

The corresponding initial and boundary conditions in terms of pseudo-pressure are written as

( )( , , , 0) 0 m p x y z t (4.22)

lim m( )( , , , ) 0

, ,

p x y z t

x y z

(4.23)

If we define a diffusivity term by

( ) ( ) t

kp

p c

(4.24)

then Eq.(4.21) can be written in the compact form as

2 1 2( ( )) ( , , , )

( ) ( )

m pm p q x y z t

p t Z p k

(4.25)

Page 48: Laplace Transform Deconvolution And Its Application to Perturbation

38

Equation (4.25) is a non-linear and non-homogeneous partial differential equation. The source term,

2 ( , , , )

( )

pq x y z t

Z p k, in the right hand side of the Eq.(4.25) should be treated separately. If we use the mass balance

( , , , ) ( , , , )sc scq x y z t q x y z t

(4.26)

and replace by ( )

PM

Z p RT , Eq.(4.26) can be re-formulated in the form given by

( , , , ) ( , , , )( )

scsc

sc sc

P MPMq x y z t q x y z t

Z P RT Z RT (4.27)

Substituting Eq.(4.27) into Eq.(4.25) yields

2 2 ( , , )1( ( ))

( )

sc sc

sc

P q x y z Tmm P

p t T k

(4.28)

Let’s define the following dimensionless parameters:

2 2( )D i

t i

kt tt

c L L

(4.29)

, , zD D D

x y zx y

L L L (4.30)

where L is defined as a characteristic length. Equation (4.28) can be expressed in terms of the dimensionless

parameters given by Eqs. (4.29) and (4.30) as follows

~

2

2

2 ( , , )( ( ))

( )

sci sc

D sc

p q x y z Tmm P

t T kL P

(4.31)

If we define the dimensionless pseudo-pressure, Dm , by

( )2

scD

ref sc

khTm m p

q p T (4.32)

and also define the term

( )

= =( ) ( )

i t i tD

t i

t

k

c cR

kp c

c

(4.33)

Equation (4.31) can be written as

~2

2 ( , , )scDD D

D ref

h q x y z Lmm R

t q

(4.34)

Finally, the initial and boundary conditions are expressed in dimensionless form as follows:

Page 49: Laplace Transform Deconvolution And Its Application to Perturbation

39

( , , , 0) 0 D D D D Dm x y z t (4.35)

lim ( , , , ) 0

, ,

D D D D D

D D D

m x y z t

x y z

(4.36)

If we define

~

2( , , )( , , ) sc

D D Dref

h q x y z Lg x y z

q

(4.37)

and

( )

( )

t t i

t i

c cw

c

(4.38)

combining Eqs.(4.33) and (4.38) yields

1DR w (4.39)

Substituting Eq.(4.39) into Eq.(4.34) yields the following compact form:

2 (1 ) ( , , )D

D D D DD

mm w g x y z

t

(4.40)

or

2 ( , , )D D

D D D DD D

m mm w g x y z

t t

(4.41)

The nonlinear term D

D

mw

t

with ( , , )D D Dg x y z are the source terms in Eq.(4.41).

In Eq. (4.39) where 1DR it means that there are no changes in the viscosity-compressibility product which is

equivalent to 0w . In the above equation, the factor ( )Dw m is a function of dimensionless pseudo-pressure and the

term D

D

mw

t

is implicit and it can be computed by an iterative method or by an asymptotic expansion of Dm

(perturbation method) presented by Barreto (2011), and Peres et al. (1990). In the iterative approach, the iteration

starts from the solution of a slightly compressible fluid that is also the solution for the case where the diffusivity

term is constant at its initial value. The results presented by Barreto (2011) demonstrated that in an asymptotic

expansion (perturbation) method, the solution truncated at the first order term showed excellent results. In this work,

we follow Barreto’s (2011) findings and only evaluate the first order term of the perturbation.

4.2 Asymptotic Expansion (Perturbation)

By definition, the theory of perturbation is the study of the effects of small disturbances. Based on the

fundamental theorem of perturbation, the dimensionless solution given in Eq.(4.41) can be written in the form of

Page 50: Laplace Transform Deconvolution And Its Application to Perturbation

40

(0) (1) (2)2 ( )

0

...D D D

k kD D

k

m m m m m

(4.42)

which represents a power series in where the coefficients ( )kDm represents the order of the solution. The solution is

obtained by taking the limit as 0 . If is sufficiently small and if the coefficients (0) (1) (2), , ,....

D D Dm m m are

independent of , then

(0) (1) (2) ( )

... D D D D

Nm m m m (4.43)

Application of perturbation theory to Eq.(4.40) disturbed by the introduction of variable multiplied by w

factor which is responsible for non-linearity yields

2 (1 ) ( , , )D

D D D DD

mm w g x y z

t

(4.44)

where 0 yields the partial differential equation becomes linear.

(0) (1) (2)2 2 2 2 2 3 2 ( )

0

( ) D D D

k kD D

k

m m m m O m

(4.45)

(0) (1) (2) ( )2 3

0

(1 ) (1 ) ( ) (1 ) D D D

kkD D

D D D D Dk

m m mm mw w O w

t t t t t

(4.46)

The left hand side of Eq.(4.40) is obtained by subtracting Eq.(4.45) from Eq.(4.46)

( )2 2 ( )

0 0

(1 ) (1 ) ( , , ) k

k k kD DD D D D D

D Dk k

m mm w m w g x y z

t t

(4.47)

Expanding Eq.(4.47) and rearranging

(0) (1) (2)

(0) (1) (2)2 2 2 2 2... (1 ) ... ( , , ) D D D

D D DD D D

D D D

m m mm m m w g x y z

t t t

(4.48)

Furthermore, Eq.(4.47) can be rearranged and collected in the form

(0) (1) (0)

(0) (1)2 2

(2) (1)

(2)2 2

( , , )

.... 0

D D D

D D

D D

D

D D DD D D

D D

m m mm g x y z m w

t t t

m mm w

t t

(4.49)

subject to the following initial and boundary conditions

( )

0

( , , , 0) 0k kD D D D D

k

m x y z t

(4.50)

Page 51: Laplace Transform Deconvolution And Its Application to Perturbation

41

( )

0

( , , , ) 0

, ,

k kD D D D D

k

D D D

m x y z t

x y z

(4.51)

Barreto (2011) confirmed that if the perturbation theory applies, the solution truncated at the first order of

perturbation is close to the slightly compressible solution. In other words, the (1) (2), ,....

D Dm m solutions are small and

the Dm solution is close to (0)

Dm . Then, the changes in compressibility-viscosity product or w can be approximately

estimated from (0)

Dm while solving for (1)

Dm . Accordingly, w in the calculation of (2)

Dm can be calculated from the

solution obtained from the previous step (1)

Dm .

Referring to the perturbation theory noted previously (Eqs.(4.42) and (4.43)), the individual terms in Eq.(4.49)

can be treated separately as follows:

The order 0 term is:

(0)

(0)2 ( , , ) 0D

DD D D

D

mm g x y z

t

(4.52)

subject to initial and boundary conditions;

(4.53)

(4.54)

The order 1 term is:

(4.55)

subject to initial and boundary conditions;

(4.56)

(4.57)

The order 2 term is:

(4.58)

subject to initial and boundary conditions;

(0) ( , , , 0)D D D D Dm x y z t

(0) ( , , , ) 0

lim , ,

D D D D D

D D D

m x y z t

x y z

(1) (0)

2 (1) (0) 0D D

D

D D

m mm w

t t

(1) ( , , , 0)D D D D Dm x y z t

(1) ( , , , ) 0

lim , ,

D D D D D

D D D

m x y z t

x y z

(2) (1)

2 (2) (1) 0D D

D

D D

m mm w

t t

Page 52: Laplace Transform Deconvolution And Its Application to Perturbation

42

(4.59)

(4.60)

The order term can also be written as

(4.61)

subject to initial and boundary conditions;

(4.62)

(4.63)

All of the preceding linear partial differential equations can be solved by Green’s Functions.

The source terms of partial differential equation of order zero to order k are as follows:

(4.64)

( 1)

( ) ( 1) 1,2,...D

k

k k

D

mf w k

t

(4.65)

where the factor w is defined as

1( 1) ( )

0

1,2,...

kk i

D

i

w w m k

1,2,...k (4.66)

The general solution of the non-homogeneous partial differential equation with homogeneous boundary conditions

can be shown in the form of the Green’s function. The Green’s function

' ' ' '( , , , , , , , )D D D D D D D D DG x x y y z z t t (4.67)

is introduced as a solution due to a concentrated source at ', ', 'D D D D D Dx x y y z z acting instantaneously only

at 'D Dt t subject to

(0)

( )' ' ' '( ) ( ) ( ) ( )D

D

kD D D D D D D D

D

GG x x y y z z t t

t

(4.68)

with the initial and boundary conditions given by

( ) ' ' ' '( , , , , , , 0, ) 0D

kD D D D D D D DG x x y y z z t t (4.69)

and

(2) ( , , , 0)D D D D Dm x y z t

(2) ( , , , ) 0

lim , ,

D D D D D

D D D

m x y z t

x y z

k

( ) ( 1)

2 ( ) ( 1) 0D D

D

k k

k k

D D

m mm w

t t

( ) ( , , , 0)D

k

D D D Dm x y z t

( ) ( , , , ) 0

lim , ,

D

k

D D D D

D D D

m x y z t

x y z

(0) ( , , )D D Df g x y z

Page 53: Laplace Transform Deconvolution And Its Application to Perturbation

43

( ) ' ' ' ' ( , , , , , , , ) 0

lim , ,

D

kD D D D D D D D

D D D

G x x y y z z t t

x y z

(4.70)

where '( )D Dx x is the delta Dirac function of the appropriate dimension.

The solution of non-homogeneous partial differential equations of order zero to k in terms of Green’s function

can be then written as

( ) ( )( ) ' ' ' ' ' ' ' ' ' ' ' '

0

( , , , ) ( , , , , , , , )

D

D D

t

k kkD D D D D D D D D D D D D D D D

D

m f x y z t G x x y y z z t t dx dy dz dt (4.71)

It is noted that for a given reservoir geometry and its boundary conditions, the Green’s function is the same.

Therefore, in partial differential equations of order zero to k , the same Green’s function can be used.

( ) ' ' ' ' ' ' ' '( , , , , , , , ) ( , , , , , , , )D

kD D D D D D D D D D D D D D D D DG x x y y z z t t G x x y y z z t t (4.72)

Substituting Eq.(4.72) into Eq.(4.71), ( )

D

km for orders zero to k can be rewritten as follows:

(0) ' ' ' ' ' ' ' ' ' ' ' '

0

( , , , ) ( , , , , , , , )

D

D

t

D D D D D D D D D D D D D D D D D

D

m g x y z t G x x y y z z t t dx dy dz dt (4.73)

(0)

(1) (0) ' ' ' ' ' ' ' '

0

( , , , , , , , )'

D

D

D

t

D D D D D D D D D D D D DDD

mm w G x x y y z z t t dx dy dz dt

t

(4.74)

(1)

(2) (1) ' ' ' ' ' ' ' '

0

( , , , , , , , )'

D

D

D

t

D D D D D D D D D D D D DDD

mm w G x x y y z z t t dx dy dz dt

t

(4.75)

and

( 1)

( ) ( 1) ' ' ' ' ' ' ' '

0

( , , , , , , , ) 1,2,...'

D

D

D

t k

k kD D D D D D D D D D D D D

DD

mm w G x x y y z z t t dx dy dz dt k

t

(4.76)

To perform the double integration numerically, Barreto (2011) used a numerical integration package called CUBA

(Hahn-2005a, 2005b). The generated solution was obtained directly in the time domain. In this research the Laplace

transformation of the solution is presented. The Laplace transformation of the solution in Eq. (4.71) is

( )( ) ' ' ' ' ' ' ' ' ' ' ' '

0

( ) ' ' ' ' ' ' ' ' ' ' ' '

0

( , , , ) ( , , , , , , , )

= ( , , , ) ( , , , , , , , )

D

D

D

tkk

D D D D D D D D D D D D D D D D D

D

t

kD D D D D D D D D D D D D D D D D

D

m L f x y z t G x x y y z z t t dx dy dz dt

L f x y z t G x x y y z z t t dx dy dz dt

(4.77)

where

Page 54: Laplace Transform Deconvolution And Its Application to Perturbation

44

(0)

( 1)

( ) ' ' ' ( 1)

( , , )

( , , ) 1,2,...'

D

D D D

k

k kD D D

D

f g x y z

mf x y z w k

t

(4.78)

The integration over time in Eq. (4.77) is a convolution integral. Utilizing the Laplace transformation property for

the convolution of two functions given by Eq.(3.1), Eq.(4.77) can be written as a product of the functions in the

Laplace domain; that is,

( ) ( )' ' ' ' ' ' ' ' ' = ( , , ) ( , , , , , )

D

k k

DD D D D D D D D D D D D

D

m f x y z G x x y y z z dx dy dz

(4.79)

Note, however, that the use of the Laplace transformation of the solution with sampled data requires a proper

approximating function for the first term presented in Eq.(4.79). As previously explained, this was the motivation for

developing the cubic splines approximation for the Laplace transformation of sampled data under current research.

Our experience has shown that the cubic spline should be used when the Iseger (2006) numerical Laplace

inversion algorithm is utilized. The Stehfest (1970) numerical Laplace inversion algorithm did not yield accurate

results when the cubic spline interpolation was used for the approximation function demonstrated in Eq. (4.79).

Since the solutions provided in this chapter are in dimensionless form and the Iseger algorithm has a linear sampling

limitation, it is extremely time consuming to solve for large values of time compared with the Stehfest algorithm. To

be able to use the Stehfest algorithm for the developed solutions in the Laplace domain, the approximation function

introduced by Onur and Reynolds (1998) or Roumboutsos-Stewart (1988) provides a better option than the cubic

spline.

The Onur-Reynolds (1998) algorithm for a sampled function in the Laplace domain is

1

0

1

0 10 0 11

1

2 11

1 1,

1,

N

i i

ststN

st stNi

N

i

f ef ef s st

s ss

f e est

s s

(4.80)

Onur and Reynolds (1998) suggest that the constants, 0 and 0 , be determined by fitting a least-square straight

line of the form 00 lnlnln ttf through the sampled data in the interval 11 ttt where lLtt

11ln with

11.0 lL . The constants, and , should be determined by a similar procedure for the interval NN ttt that

includes a minimum of five data points and satisfies rNN Ltt ln with 11.0 rL .

The Roumboutsos-Stewart (1988) algorithm for the Laplace transform of a sampled function is given by

N

ii

N stNN

i

ststi

ststN e

s

f

s

eef

s

efe

s

f

s

fsf

2

1

122

00111

(4.81)

if are the values of the function at points it and if is the linear slope of the data in the interval 1 ii ttt .

Ozkan and Raghavan (1990) provided the Green’s function for different reservoir geometries and different

boundary conditions of fluid flow problems in porous media. The numerical integration in Laplace domain is

required to invert the solution back to the time domain using the Stehfest algorithm.

Page 55: Laplace Transform Deconvolution And Its Application to Perturbation

45

4.3 Variable Gas Rate Deconvolution

The research study presented by this work was focused on the solution of non-linear gas diffusivity equation

using perturbation method. Application of Duhamel’s principle requires a linear system but the diffusivity equation

of compressible fluids (gas) is non-linear. Al-Hussainy and Ramey (1996) introduced the concept of pseudo-

pressure to linearize the gas diffusivity equation, however, as previously explained, it does not completely remove

the pressure dependency of the gas properties and the convolution/deconvolution of gas-well responses remains to

be non-rigorous. Using the pseudo-pressure approach, Levitan and Wilson (2010) applied time domain

deconvolution on gas reservoir with significant pressure depletion where pressure dependency of gas properties

becomes important. In the approach presented in this work, the pseudo-pressure concept is used to partially linearize

the problem. The remaining non-linearity is handled by the perturbation method described above and

convolution/deconvolution of gas well responses is applied more rigorously.

4.4 Validation

Two examples were used to validate the ideas and mathematical formulations presented above. The first example

is the solution for wells in an infinite acting reservoir with impermeable boundaries at the top and bottom. The

second example is the solution for wells in closed cylindrical reservoirs with impermeable boundaries at top,

bottom, and D eDr r .

4.4.1 Solution for Wells in Infinite Slab Reservoirs

The solution for an instantaneous point source of strength t

q

c

acting at t in an infinite, homogeneous, and

anisotropic reservoir is presented by Nisle (1958) is as follows:

2

3/2

( ') /( , ', ) exp

4( )8 ( )t x y z

q M Mp M M t

tc t

(4.82)

In Eq. (4.82) the location of the observation point and the source are indicated as M and 'M , respectively. For a

three-dimensional Cartesian coordinate system,

2 2 2 2( ') / ( ') / ( ') / ( ') /x y zM M x x y y z z (4.83)

where x , y , z describe the diffusivity constants in x , y , and z directions defined as follows:

t

k

c

where , , x y or z (4.84)

The pressure drop due to a continuous point source of strength ( )

t

q

c

over time interval 0 t is

Page 56: Laplace Transform Deconvolution And Its Application to Perturbation

46

0

1( , ', ) ( ) ( , ', )

t

t

p M M t q S M M t dc

(4.85)

In Eq. (4.85) ( , ', )S M M t is the instantaneous point source in an infinite reservoir corresponding to unit strength

( )1

t

q

c

and is given by,

2

3/2

1 ( ') /( , ', ) exp

4( )8 ( )x y z

M MS M M t

tt

(4.86)

Similarly, the pressure drop for instantaneous sources distributed over a line or any other source geometry in an

infinite acting reservoir can be obtained as;

1

( , ', ) ( ') ( , ', ) '

w

w w wt

p M M t q M S M M t dMc

(4.87)

where ( ')wq M

indicates the instantaneous withdrawal volume of fluids per unit dimension of the source geometry

and wM is the point on the source w . According to Eq. (4.87), the pressure drop for an infinite line source located

at 'x , 'y , and z may be obtained as follows (Ozkan 2003):

2 2

3/2

2

( ') / ( ') /1( , ', ) exp

4( )8 ( )

( ') /( , , ) exp '

4( )

x y

t x y z

z

x x y yp M M t

tc t

z zq x y z dz

t

(4.88)

Assuming uniform flux along the line source with unit strength( )

1t

q

c

, then instantaneous point source for an

infinite line source in an infinite reservoir can be written as follows:

2 2( ') / ( ') /1( , ', , ', ) exp

4( )4 ( )

x y

x y

x x y yS x x y y t

tt

(4.89)

In Cylindrical coordinate system ( , , )r z , we define,

2 2 2 2 2( ') ( ') ' 2 'cos( ')d x x y y r r rr (4.90)

For isotropic conditions ( x y r ), substituting Eq. (4.90) into Eq. (4.89) yields

2 21 ' 2 'cos( ')( , ', ) exp

4 ( ) 4 ( )r r

r r rrS r r t

t t

(4.91)

In dimensionless form, Equation (4.91) becomes

Page 57: Laplace Transform Deconvolution And Its Application to Perturbation

47

2 2 ' 2 'cos( ')1( , ', , ') exp

4 ( ') 4( ')

D D D DD D D

D D D D

r r r rS r r t t

t t t t

(4.92)

The definition of Dt was presented in Eq. (4.29) and the dimensionless radial distance Dr is given by

Dw

rr

r (4.93)

Recalling Eq. (4.71), the perturbation solution of the non-linear diffusion equation truncated at the first order

perturbations is given by

(0) ' ' ' '' ' ' ' ' ' ' ' (0) ' ' ' '

'

0

' ' ' ' ' ' ' '

( , , , )( , , , ) ( , , , ) ( , , , )

( , , , , , , , )

Dt

D D D D DD D D D D D D D D D D D D

DD

D D D D D D D D D D D D D

m x y z tm x y z t g x y z t w x y z t

t

G x x y y z z t t dx dy dz dt

(4.94)

In Cylindrical coordinates, Equation (4.94) can be written as follows:

2

' ' ' ' ' '

0 0 0

( , , ) ( , ', ) ( , , , , , ) ' '

Dt

D D D D D D D D D D D D Dm r t f r t G r r t t r dr dt d

(4.95)

The source term is given, in Cylindrical coordinates, by (Cole et.al 2010):

' '' ' ' ' ' '

'

(0) ' '' '

'

'

( , )( , , , ) ( , ', )

2

( , )( , )

2

D DD D D D D D

D

D D DD D

D

D

f r tf x y z t f r t

r

m r tg r t

t

r

(4.96)

Substituting Eq. (4.96) into Eq. (4.95) and replacing the line source solution obtained from Eq.(4.92) yield

(0) ' '' ' ' '

2 '

'

0 0 0

2 2' ' '

( , )( , ) ( , )

( , , )2

' 2 'cos( ')1exp '

4 ( ') 4( ')

D

D D Dt D D D D

DD D D

D

D D D DD D D

D D D D

m r tg r t w r t

tm r t

r

r r r rr dr dt d

t t t t

(4.97)

Interchanging the order of integration, Eq.(4.97) becomes,

(0) ' '' ' ' '

'

'

0 022 2

' ' '

0

( , )( , ) ( , )

2( , , )

' 'cos( ')1exp exp '

4 ( ') 4( ') 2( ')

D

D D DD D D D

D

tD

D D D

D D D DD D D

D D D D D D

m r tg r t w r t

t

rm r t

r r r rr dr dt d

t t t t t t

(4.98)

Page 58: Laplace Transform Deconvolution And Its Application to Perturbation

48

The integral over ' can be simplified as (Cole et.al 2010):

2

'0

0

'cos( ') 'exp 2

2( ') 2( ')

D D D D

D D D D

r r r rd I

t t t t

(4.99)

Substituting Eq. (4.99) into Eq. (4.98), it simplifies to

(0) ' '' ' ' '

'

0 0

2 2' '

0

( , )( , ) ( , ) ( , )

' '1exp

4 ( ') 4( ') 2( ')

Dt

D D DD D D D D D D

D

D D D DD D

D D D D D D

m r tm r t g r t w r t

t

r r r rI dr dt

t t t t t t

(4.100)

Let’s define,

2 2

0

' '1( , ', , ') exp

4 ( ') 4( ') 2( ')

D D D DD D D D D

D D D D D D

r r r rS r r t t I

t t t t t t

(4.101)

Then, taking Laplace transformation of Eq. (4.100) and using the Laplace transform property of convolution integral

presented in Eq. (3.2), Eq.(4.100) can be written as

' ' '

0

( , ) ( , ) ( , ', , ')D DD D D D D D D D Dm r t h r t S r r t t dr

(4.102)

where

(0) ' '' ' ' ' ' '

'

( , )( , ) ( , ) ( , ) D D D

D D D D D D

D

m r th r t L g r t w r t

t

(4.103)

and ( , ', , ')D D D D DS r r t t

is the Laplace transform of the source function in Eq. (4.101) which is given by the following

expressions (Carslaw and Jaeger 1954):

0 0

0 0

1( ' ) ( ) '

2( , ', )

1( ) ( ' ) '

2

D D D D

D D D

D D D D

I r s K r s r r

S r r s

I r s K r s r r

(4.104)

Recalling Eq.(4.102), the total pressure drop in dimensionless form can be written as,

' ' '0 1

0

(0) ' '' ' ' ' '

'

0

' '

( , ) ( , ) ( , ) ( , ) ( , ', )

( , ) = ( , ) ( , ) ( , ', )

= ( , ) ( , ',

D D D DD D D D D D D D D D D

D D DDD D D D D D D

D

DD D D D

m r t m r t m r t h r t S r r s dr

m r tL g r t w r t S r r s dr

t

L g r t S r r s

'

0

(0) ' '' ' '

'

0

)

( , ) ( , ) ( , ', )

D

D D DDD D D D D

D

dr

m r tL w r t S r r s dr

t

(4.105)

where

Page 59: Laplace Transform Deconvolution And Its Application to Perturbation

49

(0)' ' '

0

( , ) = ( , ) ( , ', )D DD D D D D D Dm r t L g r t S r r s dr

(4.106)

and

(1) (0) ' '' ' '

'

0

( , )( , ) ( , ) ( , ', ) D D D

D DD D D D D D D

D

m r tm r t L w r t S r r s dr

t

(4.107)

Similar to Eq. (4.32), let’s define the dimensionless pseudo-pressure for radial geometry as follows:

( )scD

ref sc

khTm m p

q p T

(4.108)

Let us Recall Eq. (4.37) for radial geometry:

~

2( , , )( , , ) 2 sc

D D Dref

h q x y z Lg x y z

q

(4.109)

Defining

~ ( , , , )( , , , ) sc

sc

q x y z tq x y z t

h

(4.110)

we can write

2( , , , )

( , , ) 2 scD D D

ref

q x y z t Lg x y z

q

(4.111)

Transforming the coordinates from Cartesian to Cylindrical, Eq. (4.111) can be written as:

2( , , )

( , , ) 2 scD D

ref

q r t Lg r t

q

(4.112)

If we define ( , )scq r t

as the source density of the surface of a cylinder ( 2 rh ), then

( , )( , , )

2

scsc

q r tq r t

r

(4.113)

Substituting Eq. (4.113) into Eq.(4.112) yields

2

2( , )

( , ) ( , )2( , , ) 2

sc

sc scD D

ref ref D ref

q r tL

q r t L q r t Lrg r tq rq r q

(4.114)

Also because (Cole et.al 2010)

( , )

( , , )2

D DD D

D

g r tg r t

r

(4.115)

we obtain

Page 60: Laplace Transform Deconvolution And Its Application to Perturbation

50

( , ) ( , )

( , ) 2 ( , , )= 2 2 sc scD D D D D D

D ref ref

q r t L q r t Lg r t r g r t r

r q q

(4.116)

This solution corresponds to a distributed source in the space 0 r . For the case of a single cylindrical source at

0r r ,

0( , ) ( ) ( )scscq r t q t r r

(4.117)

In Eq. (4.117), ( )scq t represents volumetric rate of fluid withdrawal from the porous media at time t .

Substituting Eq. (4.117) into Eq. (4.116) yields

0 0

2 ( )( , ) ( ) 2 ( ) ( )sc

D D D D D Dref

q t Lg r t r r q t r r

q

(4.118)

where ( )D Dq t represents the dimensionless production rate from the cylindrical source at 0Dr and Dt defined by

( )

( ) scD D

ref

q tq t

q (4.119)

and 0( )D Dr r is the Dirac delta function. In Eq.(4.118), the following property has been applied

( )

( ) x

cxc

(4.120)

Recalling Eq. (4.106) for 0 ( , )D D Dm r t

and substituting Eq. (4.118), we obtain

(0)'

0

0

( , )= 2 ( ) ( ) ( , ', ) D DD D D D D D D Dm r s L q t r r S r r s dr

(4.121)

Also applying the sifting property of the Dirac delta function given by

'

0 0

0

( ) ( , ', ) ( , , )D D D D D D D D Dr r S r r s dr S r r s

(4.122)

Eq. (4.121) can be written as follows:

(0)

'0

0

( , )= 2 ( ) ( , , )D DD D D D D Dm r s L q t S r r s dr

(4.123)

Considering uniform flux along the line source and using ref scq q or ( ) 1D Dq t , we have

(0)

0

2( , ) = ( , , )D DD D Dm r s S r r s

s

(4.124)

For the case where the source is at 0 0Dr (Line source solution), substituting Eq. (4.124) for

0( , 0, , ')D D D D DS r r t t

and using 'D Dr r , Eq. (4.124) is simplified as follows:

Page 61: Laplace Transform Deconvolution And Its Application to Perturbation

51

(0)

0 0

0

2 1( , ) = ( ' ) ( )

' 02

1 = ( )

D D D DD

D

m r s I r s K r srs

K r ss

(4.125)

As we are interested in the solution at the wellbore, 1Dr (or wr r ), we obtain the following expression from Eq.

(4.125):

(0)

0

1( 1, ) = ( )D Dm r s K s

s

(4.126)

Equation (4.125) is the general solution for a well in an infinite acting reservoir in Laplace domain. Once

(0)

( , )D Dm r s

is known then the first order of perturbation can be numerically evaluated.

Recalling Eq. (4.107) for

(1)

( , )D Dm r s

and substituting 0( , , )D D DS r r s

from Eq. (4.104), we have

(0) ' '' ' '

0 0'

0(1)

(0) ' '' ' '

0 0'

0

( , )1( ) ( , ) ( ' ) '

2

( , )

( , )1( ) ( , ) ( ' ) '

2

D D DD D D D D D D

D

D D

D D DD D D D D D D

D

m r tK r s L w r t I r s dr r r

t

m r s

m r tI r s L w r t K r s dr r r

t

(4.127)

Our interest would be the solution of

(1)

( , )D Dm r s

at the wellbore, 1Dr (or wr r ); that is,

(0) ' '' ' '

0 0'

0(1)

(0) ' '' ' '

0 0'

0

( , )1( ) ( , ) ( ' ) '

2

( 1, )

( , )1( ) ( , ) ( ' ) '

2

D D DD D D D D D

D

D D

D D DD D D D D D

D

m r tK s L w r t I r s dr r r

t

m r s

m r tI s L w r t K r s dr r r

t

(4.128)

Evaluating Equation (4.128) requires numerical integration over the interval of 0 Dr . The results are, then,

numerically inverted back to time domain (we have used the Stehfest numerical inversion algorithm for this

purpose). Also, it is required to evaluate(0) ' '

' '

'

( , )( , ) D D D

D D

D

m r tw r t

t

at each '

Dr and then either utilize Onur and

Reynolds (1998) (Eq. (4.80)) or Roumboutsos-Stewart (1988) (Eq. (4.81)) algorithm to take the tabulated data as a

function of 'Dt into Laplace domain.

Figure 4.1 and Figure 4.2 show w as a function of dimensionless pressure and dimensionless time for an infinite

acting reservoir and gas properties presented in Table 4.1.

Page 62: Laplace Transform Deconvolution And Its Application to Perturbation

52

Figure 4.3 through Figure 4.5 show the results for the example data set provided in Table 4.1. Figure 4.3

illustrates the solutions for (0)Dm and Figure 4.4 shows the solution of (1)

Dm . Notice that the values of (1)Dm shown in

Figure 4.4 have a decline trend as time increases.

This point will be explained later in this chapter under the discussion section and an example will be given in

Appendix A. This behavior can also be physically explained. Initially, a large pressure drop is created in a small

vicinity of the wellbore where the pressure-dependency of the viscosity and compressibility has a significant

influence. As the radius of influence increases in time, the pressure behavior is dominated by the viscosity-

compressibility product farther away from the wellbore where the pressure drop and the change in viscosity-

compressibility product are smaller.

Figure 4.5 shows the Dm solution ( (0) (1)D D Dm m m ) obtained from this work. The effect of the flow rate on

the solution of (1)Dm has also been investigated. Peres et al. (1190) and Barreto (2011) showed that the first order

dimensionless pseudo pressure ( (1)Dm ) is rate dependent. For the same reservoir and gas properties shown in Table

4.1, two different flow rates are tested in Figure 4.6: 1,500 MscfD and 10,000 MscfD. As expected, higher

production rate yields larger values of ( (1)Dm ). Therefore, higher production rates magnify the effect of nonlinear

terms in the solution.

Figure 4.1 Omega factor( )

( )( )

t t i

t i

c cw

c

versus dimensionless pressure in an infinite acting reservoir.

Page 63: Laplace Transform Deconvolution And Its Application to Perturbation

53

Figure 4.2 Omega factor( )

( )( )

t t i

t i

c cw

c

versus dimensionless time in an infinite acting reservoir.

Figure 4.3 Dimensionless pseudo-pressures ( (0)Dm ) for the data set presented in Table 4.1 (Infinite Acting

Reservoir).

Page 64: Laplace Transform Deconvolution And Its Application to Perturbation

54

Figure 4.4 Dimensionless first non-linear term of pseudo-pressure ( (1)Dm ) for the data set presented in Table 4.1

(Infinite Acting Reservoir).

Figure 4.5 Dimensionless pseudo-pressure ( (0) (1)D D Dm m m ) for the data set presented in Table 4.1 (Infinite

Acting Reservoir).

Page 65: Laplace Transform Deconvolution And Its Application to Perturbation

55

Figure 4.6 Dimensionless pseudo-pressure ( (1)Dm ); comparison of two different rates for the reservoir and gas

properties presented in Table 4.1 (Infinite Acting Reservoir).

Table 4.1 Data for infinite acting reservoir.

Pi

psia

q

Mscf/day

Temp

F

k

md

h

ft

rw

ft

Φ

fraction

SG Cf

1/psi

5000 1500 140 1 140 0.3 0.1 0.7 3E-6

Page 66: Laplace Transform Deconvolution And Its Application to Perturbation

56

4.4.2 Solution for Wells in Closed Cylindrical Reservoirs

Ozkan and Raghavan (1991a and 1191b) presented Laplace domain solutions for a point source and a fully

penetrating well in closed cylindrical reservoirs for different boundary conditions.

The pressure drop solution in Laplace domain presented by Ozkan and Raghavan (1191a, and 1991b) for a point

source in a closed cylindrical reservoir with impermeable boundaries at 0Dz , D Dz h , and D eDr r is given by

the following expression,

0

2 2

0 21

2 2 2 2

2 22 2

22 2

2

cos2

2 cos cos

k D k eD

D k DpD k k eD

D DD

D D Dn

k D k eD

D D

k D

D

k eD

D

I sr K srqp K sR I sr k

k h s I sr

z z nn n K s R

h h h

n nI s r K s r

h hnI s r

h nI s r

h

cos

k

k

(4.129)

where

2 2 2' 2 'cos( ')D D D D DR r r r r (4.130)

2 2 2/n Du n h (4.131)

and

2 2 22 1 (2 1) /n Du n h (4.132)

In all above equations

/Dz

kh h L

k (4.133)

Here, L denotes the characteristics length. The corresponding line-source solution in a closed cylindrical reservoir

[source is located at an arbitrary point ( ', ')Dr ] is given by

0 cos

2

k D k eD

D k D

k k eD

I sr K srqp K sR I sr k

ks I sr

(4.134)

If we write the solution for a vertical well at the coordinate center ( ' 0)Dr , then

0

0 0lim

1 0D

k Dr

kI sr

k

(4.135)

and

Page 67: Laplace Transform Deconvolution And Its Application to Perturbation

57

0 1

0

12

D eD

D

eD

I sr K srqp K sR

ks I sr

(4.136)

In our terminology, Eq. (4.136) corresponds to the solution of

(0)

( , )D Dm r s

. To formulate the first term of

perturbation,

(1)

( , )D Dm r s

, we start from the Laplace domain solution for a point source in a cylindrical reservoir

presented in Eq. (4.129). Let us define,

__

_

_

~

( , , , )( ', ', ', )

( , , )

D D Dp

D D D D D D

D D D

p x y z sG x x y y z z s

q x y z

(4.137)

and denote the dimensionless Green’s function by

__

__

~

( , , , )( ', ', ', )

( , , )

D D DDD D D D D D D

D D DD

p x y z sG x x y y z z s

q x y z

(4.138)

If we also assume uniform flux, then the flow rate is given in Laplace domain by

__ ~~ ( , , )( , , ) D D D

D D D

q x y zq x y z

s (4.139)

where

__ ~~ ( , , )

( , , ) D D DD D D D

ref

q x y zq x y z

q s (4.140)

Transforming the coordinates from Cartesian to cylindrical, Eq. (4.139) and Eq. (4.140) can be written as follows:

__ ~~ ( , , )( , , ) 2 D D D

D D

q x y zq r z

s (4.141)

and

__ ~~ ( , , )

( , , ) 2 D D DD D D D

ref

q x y zq x y z

q s (4.142)

Then Eq. (4.137) becomes

_

_

~( , ', , )

2

p

D D

pG r r s

q

s

(4.143)

or

Page 68: Laplace Transform Deconvolution And Its Application to Perturbation

58

_

02

2 2

0 21

2 2 2 2

2 22 2

2

( , ', , ) cos 4

2 cos cos

k D k eD

D D D k D

kD k eD

D DD

D Dn D

k D k eD

D D

k D

D

k

I sr K srG r r s K sR I sr k

k h I sr

z z nn n K s R

h h h

n nI s r K s r

h hnI s r

hI s

2 2

2

cosk

eD

D

k

nr

h

(4.144)

The dimensionless point source solution is obtained by multiplying both side of Eq. (4.144) by 2 kh

q

:

_

0

2 2

0 21

2 2 2 2

2 22 2

2

2 1( , ', , ) cos

2

2 cos cos

k D k eD

D D D k D

k k eD

D DD

D Dn D

k D k eD

D D

k D

D

I sr K srkhG r r s K sR I sr k

q q I sr

z z nn n K s R

h h h

n nI s r K s r

h hnI s r

h

2 2

2

cosk

k eD

D

k

nI s r

h

(4.145)

Also, the dimensionless Green’s function,_

( , ', , )D DG r r s is obtained to be

_ _

0

2 2

0 21

2 2

22 2

2

2( , ', , ) ( , ', , )

1cos

2

2 cos cos

D D D D D

ref

k D k eD

D k D

k k eD

ref

D DD

D Dn D

k D k

D

k D

D

khG r r s G r r s

q

q

I sr K srK sR I sr k

q I srq

z z nn n K s R

h h h

nI s r K s

hnI s r

h

2 2

2

2 2

2

cos

eD

D

k

k eD

D

nr

hk

nI s r

h

(4.146)

Page 69: Laplace Transform Deconvolution And Its Application to Perturbation

59

The solution for a line, surface, or volume source in a closed cylindrical reservoir can be obtained as:

_ _

( , ', ) ( , ', )D DD D D wD wwS r r s G r r s dM

(4.147)

where w is the length, surface, or volume of the source. Also, the constant production rate from the length, area, or

the volume of the source, w , is denoted by q so that ~

w

qq

.

Applying of Eq. (4.147) on Eq. (4.146), the line source solution may be obtained as follows:

_

0

0~

( , ', , ) cos

2

1 = cos

2

k D k eD

D D D D k D

k k eD

ref

k D k eD

D k D

k k eD

ref

I sr K srhS r r s K sR I sr k

q I srq

I sr K srK sR I sr k

I srq

q

(4.148)

Recalling Eq. (4.135), we have

_ 0 1

0 0~

1

1( , ', , )

2

D eD

D D D D D

eDD

I sr K srS r r s K sR I sr

I srq

(4.149)

where

2 2 2' 2 'cos( ')D D D D DR r r r r (4.150)

Now, using the following theorem for Bessel function, 0 DK sR

0

' cos ( ') '

' cos ( ') '

k D k D D D

k

D

k D k D D D

k

I sr K sr k r r

K sR

I sr K sr k r r

(4.151)

and recalling Eq. (4.135), Eq. (4.151) can be written as,

0 0

0

0 0

' '

' '

D D D D

D

D D D D

I sr K sr r r

K sR

I sr K sr r r

(4.152)

Substituting Eq. (4.152) into Eq. (4.149), the line source solution can be obtained as follows:

Page 70: Laplace Transform Deconvolution And Its Application to Perturbation

60

0 1

0 0 0~

1_

0 1

0 0 0~

1

1' '

2

( , ', , )

1' '

2

D eD

D D D D D

eDD

D D D

D eD

D D D D D

eDD

I sr K srI sr K sr I sr r r

I srq

S r r s

I sr K srI sr K sr I sr r r

I srq

(4.153)

The Laplace domain solution for the first term of perturbation can now be written as

(0) ' '' '

2(1) ''

'

0 0

2 (0) ' '' ' '

'

0 0

( , )( , )

( , ) ( ', , ) ' '2

( , )1 = ( , ) ( ', , ) '

2

D D DD D

DD DD D D D

D

D D DDD D D D

D

m r tw r t

tm r s L S r s r dr d

r

m r tL w r t S r s dr d

t

2(0) ' '

' ' '

'

0 0

( , )1 = ( , ) ( ', , ) '

2

D D DDD D D D

D

m r tL w r t S r s d dr

t

(4.154)

where

0 1

0 0 0~

12

0

0 1

0 0 0~

1

1' '

( ', , ) '

1' '

D eD

D D D D D

eDD

D D

D eD

D D D D D

eDD

I sr K srI sr K sr I sr r r

I srq

S r s d

I sr K srI sr K sr I sr r r

I srq

(4.155)

Substituting Eq. (4.155) into Eq. (4.154), we have

0 1

0 0 0~

1

(0) ' '' '

'

0

(1)

0 1

0 0 0~

1

1' '

2

( , )( , ) '

( , )

1'

2

D eD

D D D D D

eDD

D D DD D D

D

D D

D eD

D D D

eDD

I sr K srI sr K sr I sr r r

I srq

m r tL w r t dr

t

m r s

I sr K srI sr K sr I sr

I srq

(0) ' '' '

'

0

'

( , )( , ) '

D D

D D DD D D

D

r r

m r tL w r t dr

t

(4.156)

Page 71: Laplace Transform Deconvolution And Its Application to Perturbation

61

Considering ~

refq q or ~

( ) 1DDq t and evaluating

(1)

( , )D Dm r s

at the wellbore ( 1Dr ), Eq.(4.156) can be written

as

0 1

0 0 0

1

(0) ' '' '

'

0

(1)

0 1

0 0 0

1

1' '

2

( , )( , ) '

( 1, )

1' '

2

(

D eD

D D D

eD

D D DD D D

D

D D

D eD

D D D

eD

D

I sr K srI s K sr I s r r

I sr

m r tL w r t dr

t

m r s

I sr K srI sr K s I s r r

I sr

L w r

(0) ' '' '

'

0

( , ), ) 'D D D

D D

D

m r tt dr

t

(4.157)

The solution to the first term of perturbation,

(1)

( , )D Dm r s

, is evaluated numerically and inverted back into time

domain using a standard numerical inversion algorithm. The process of handling the integrations is similar to that

explained for the infinite acting reservoir system. The results obtained from this study ( (0)Dm , (1)

Dm and Dm ) are

shown in Figure 4.7 through Figure 4.10 for the data set presented in Table 4.2. Figure 4.7 illustrates the results for

(0)Dm . Figure 4.8 depicts the (1)

Dm solution from this study. The difference here is in the boundary dominated flow

part, Once the effect of the boundary is felt, to maintain constant production rate, larger pressure drop is required

and this has a significant effect on (1)Dm .

Figure 4.9 shows the Dm solution ( (0) (1)D D Dm m m ) obtained from study. The effect of the production rate on

(1)Dm is also shown in Figure 4.10 for the reservoir and gas properties presented in Table 4.2. Two different rates

are tested: 2,000 MscfD and 10,000 MscfD. As expected, (1)Dm is larger for the higher production rate indicating

more significant contribution of the non-linear terms to pressure responses.

4.5 Discussions

Barreto (2011) and Kale and Mattar (1980) showed that the solution for the first perturbation term ( (1)Dm ) reach

a plateau in an infinite acting reservoir as time increases. However, our results discussed above illustrated a decline

as time increased. Comparing our solution with Kale and Mattar (1980), it has been found that, in their solution the

second order term and higher order differentials have been neglected and their solution reduced to an ordinary

differential equation. This assumption removes the Green’s function effect from their solution, which explains the

differences from the results of this study.

Page 72: Laplace Transform Deconvolution And Its Application to Perturbation

62

Figure 4.7 Dimensionless pseudo-pressure ( (0)Dm ) for data set presented in Table 4.2 (Closed Cylindrical

Reservoir).

Figure 4.8 Dimensionless first non-linear term of pseudo-pressure ( (1)Dm ) for data set presented in Table 4.2

(Closed Cylindrical Reservoir).

Page 73: Laplace Transform Deconvolution And Its Application to Perturbation

63

Figure 4.9 Dimensionless pseudo-pressure ( (0) (1)D D Dm m m ) for data set presented in Table 4.2 (Closed

Cylindrical Reservoir).

Figure 4.10 Dimensionless pseudo-pressure ( (1)Dm ) comparing two different rates for reservoir and gas

properties presented in Table 4.2 (Closed Cylindrical Reservoir). The results show that, (1)Dm is rate dependent.

Page 74: Laplace Transform Deconvolution And Its Application to Perturbation

64

Table 4.2 Data for closed cylindrical reservoirs.

Pi

psia

q

Mscf/day

Temp

F

k

md

h

ft

rw

ft

re

ft

Φ

fraction

SG Cf

1/psi

5000 2000 140 1 140 0.3 800 0.1 0.7 3E-6

Similar to Kale and Mattar (1980), Barreto (2011) also showed that (1)Dm should reach a plateau as time

increases. The solution provided by Barreto (2011) has the same fundamental approach and assumptions as in this

study, except that it is in time domain. The difference between our results and those of Barreto is expected to be in

the different numerical evaluation procedures used. As shown in Appendix A, it can be verified theoretically that

(1)Dm should be a decreasing function of time increases. To verify our results further, we have used several other

approaches also.

Figure 4.11 is a comparison between the Green’s function in time domain and Laplace domain for 1Dr . The

results verify the accuracy of our numerical inversion of the Green’s function from the Laplace domain to time

domain. Similarly, in Figure 4.12, the Laplace domain and time domain results for (0) '

'

'

( )( ) D D

D

D

m tw t

t

are compared

for 1Dr . Except for some points of numerical instabilities of the Laplace inversion, the two results match very

well. Figure 4.11 and Figure 4.12 show that both the Green’s function and (0) '

'

'

( )( ) D D

D

D

m tw t

t

are positive and

deceasing functions of time. Therefore, when these two functions indicate a declining trend for different Dr , then the

expression(0) '

'

'

0

( ', )( ', ) 'D D D

D D D

D

m r tw r t dr

t

must decline in time also.

Page 75: Laplace Transform Deconvolution And Its Application to Perturbation

65

Figure 4.11 Comparing Green’s function for both Laplace and time domain at 1Dr .

Figure 4.12 Comparing (0) '

'

'

( )( ) D D

D

D

m tw t

t

for both Laplace and time domain at 1Dr .

Page 76: Laplace Transform Deconvolution And Its Application to Perturbation

66

CHAPTER 5

CONCLUSIONS AND RECOMMENDATIONS

5.1 Conclusions

There were two primary objectives carried out under this research study. The first objective was to improve the

deconvolution of variable-rate data in the Laplace domain. The main hypothesis of the first objective was that the

limited success of Laplace-domain deconvolution and transformation of tabulated data into Laplace domain was due

to algorithmic issues. The conclusions of the first objective can be summarized as follows;

A new algorithm, which used inverse mirroring at the points of discontinuity and adaptive cubic spline

method to approximate rate or pressure versus time data is introduced.

One simulated and three field examples demonstrated the success of the algorithms presented in

this work in deconvolution of variable-rate production data.

Nadaraya-Watson kernel estimator with the application of adaptive bandwidth using

Epanechnikov and Gaussian kernel also demonstrated a successful smoothing approach.

This research showed that the smoothing parameters and the choice of the regression algorithm

could significantly alter the behavior of the deconvolved pressure and its derivative.

The algorithms presented in this dissertation have broader application in a variety of PTA and RTA

problems.

The second objective of this research study focused on the perturbation solution of the nonlinear diffusivity

equation for flow in porous media. Although the procedure is applicable to other non-linear flow problems also, the

particular solution developed in this dissertation accounts for the nonlinearity caused by the dependency of gas

properties (viscosity-compressibility product changes) with pressure. This work is an extension of the original work

of Barreto (2011) into Laplace domain. The analytical solution developed in this study is illustrated by two

examples (infinite acting and closed cylindrical reservoirs). The computed results indicated some differences from

those of Barreto’s (2011) and Kale and Mattar (1980). We have verified that theoretically that (1)Dm should be a

decreasing function as time increases.

5.2 Recommendations

The following are the areas, which have potential to improve and could extend the use of the work presented

herein:

1. Numerical Laplace inversion algorithm presented by Iseger applied in this work is more accurate

compare to Stehfest algorithm when the function to be inverted includes discontinuities. However,

the Iseger algorithm is significantly slower than the Stehfest algorithm since it requires linear

sampling. Modification of the Iseger algorithm for logarithmic sampling may improve its speed

without compromising the accuracy.

Page 77: Laplace Transform Deconvolution And Its Application to Perturbation

67

2. Cubic splines combined with piecewise linear approximation presented in this work demonstrated

a very good combination to take sampled data into Laplace domain. However, for more accuracy,

this can be extended for different combinations such as second order cubic splines or second order

polynomials combined with cubic splines.

3. In the solution for non-linear gas diffusivity equation presented in this work, Stehfest algorithm is

utilized. Using cubic splines with Iseger numerical inversion algorithm is not practical due to its

slow performance. Once the Iseger algorithm is modified for logarithmic sampling, it is

recommended to replace the Stehfest algorithm by the Iseger algorithm to remove any instabilities

due to the Stehfest algorithm.

Page 78: Laplace Transform Deconvolution And Its Application to Perturbation

68

NOMENCLATURE

oB Oil formation volume factor, rbbl/stb

b Intercept of a straight line used in Eq.(3.16)

fc Formation compressibility factor

C Wellbore storage (bbl/psi)

tc Total compressibility, psi-1

if Value of ( )f t at time it

tf Arbitrary function

sf Laplace transform of ( )f t

if Linear slope of the data in the interval 1i it t t

h Constant kernel bandwidth parameter and reservoir thickness

( | )g x h Nadaraya-Watson kernel estimator used in Eq.(3.21)

DG Dimensionless Green’s function

( )ih x

Adaptive bandwidth

0I Bessel function of first kind order zero

1I Bessel function of first kind order one

J Arithmetic average of data used in Eq.(3.25)

0K Bessel function of second kind order zero

1K Bessel function of second kind order one

K Kernel function

L Characteristic length, ft

L Laplace transform operator

1-L Inverse Laplace transform

M Number of points at which the inverse Laplace transforms are computed, Eq. (3.18)

Dm Dimensionless pseudo-pressure

( )m p Pseudo-pressure

m Slope of a straight line used in Eq. (3.14)

N Parameter used in the Stehfest algorithm

iP Initial reservoir pressure, psi

wDP Dimensionless bottomhole pressure

Page 79: Laplace Transform Deconvolution And Its Application to Perturbation

69

DP Dimensionless pressure

tMp , Pressure drop at a point M and time t , psi

tMpc , Time derivative of pressure drop at point M and time t for constant unit rate, psi

wp Wellbore pressure drop, psi

wp Laplace transform of wellbore pressure drop, psi

wcP Constant rate pressure response, psi

q Production rate, rbbl/d, stb/d

q Production rate in Laplace space, rbbl/d, stb/d

Dq Dimensionless rate

wr Wellbore radius, ft

er Reservoir boundary radius, ft

s Laplace-transform parameter

iS Cubic spline over a segment

SG Gas specific gravity

T Period for which the inversions are computed, Eq. (3.18)

t Time, hr

Dt Dimensionless time

( )Z p Gas deviation factor

Page 80: Laplace Transform Deconvolution And Its Application to Perturbation

70

Greek

α Constant used in Eq. (4.80)

α0 Constant used in Eq. (4.80)

B Formation volume factor, rbbl/stb

Β Constant used in Eq. (4.80)

β0 Constant used in Eq. (4.80)

Parameter used in the Iseger algorithm

Porosity of reservoir rock, fraction

μ Viscosity, cp

η Diffusivity constant, md-psi/cp

i Bandwidth adaptive parameter

Standard deviation and dispersion parameter

Gamma function

Perturbation parameter

Page 81: Laplace Transform Deconvolution And Its Application to Perturbation

71

REFERENCES

Abate, J. and Valkó, P. P. 2004. Multi-Precision Laplace Transform Inversion. Computers Math.Applic.48: 629-636.

Abramson, I. 1982. On bandwidth variation in kernel estimates-a square root law. The Annals of Statistics, Vol. 10.

Page 1217-1223.

Agarwal, R.G. 1980. A New Method to Account for Producing Time Effects When Drawdown Type Curves Are

Used to Analyze Pressure Buildup and Other Test Data," Paper SPE 9289 presented at the SPE Annual

Technical Convention and Exhibition, Dallas, TX, 21-24Sep.

Al-Ajmi, N., Ahmadi, M., Ozkan, E., and Kazemi, H.2008. Numerical Inversion of Laplace Transforms in the

Solution of Transient Flow Problems with Discontinuities. Paper SPE 116255 at SPE Annual Technical

Conference and Exhibition. Denver, CO, 21-24 Sep.

Al-Hussainy, R., Ramey Jr., H. J. and Crawford, P.B. 1996. The flow of real gases through media, Journal of

Petroleum Technology, SPE Paper 1243 A, vol. 18, pp.624-636.

Atkinson, K. 1985. Elementary numerical analysis,3rd edition. John Wiley & Sons, INC.

De Boore, C. 2001. A Practical Guide to Splines. Applied Mathematical Sciences,Vol 27.

Barreto, J., A.B. 2011. Non Linear Gas Diffusivity Equation Solution by Green’s Functions. PhD Thesis (in

Portuguese). Universidade Estadual Norte Fluminense, Macae’, Brazil.

Baygun, B., Kuchuk, F.J., and Arikan, O. 1997. Deconvolution Under Normalized Autocorrelation Constraints,

SPEJ (September) 246.

Bellman, R., Kalaba, R. E., and Lockett, J. A. 1966. Numerical Inversion of Laplace Transform: Applications to

Biology, Economics, Engineering, and Physics. American Elsevier Publishing Co. Inc., New York, NY.

Chen, C. C. and Raghavan, R.1996. An Approach to Handle Discontinuities by the Stehfest Algorithm. SPEJ (Dec.):

363.

Cinar, M., Ilk, D., Onur, M., Valko, P.P, and Blasingame, T.A. 2006. A Comparative Study of Recent Robust

deconvolution Algorithms for Well-Test and Production-Data Analysis. Paper SPE 102575 presented at the SPE

Annual Technical Conference and Exhibition, San Antonio, Tx, 24-27 Sep.

Coats, K. H., Rapoport, L. A., McCord, J. R., and Drews, W. P. 1964. Determination of Aquifer Influence Functions

from Field Data. JPT (Dec.): 1417-1424.

Correa, A. C. and Ramey, H. J. Jr. 1986. Combined Effects of Shut-in and Production: Solution with a New Inner

Boundary Condition. Paper SPE 15579 presented at the SPE Annual Technical Conference and Exhibition, New

Orleans, LA.5-8 Oct.

Crump, K. S. 1976. Numerical Inversion of Laplace Transforms Using a Fourier Series Approximation. J. ACM

233: 89-96.

Duhamel, J. M. C. 1833. Mémoire sur la méthode générale relative au mouvement de la chaleur dans les corps

solides polongé dans les milieux dont la température varie avec le temps. J. de Ec. Polyt. (Paris) 14: 20-77.

Fetkovich, M. J. and Vienot, M. E. 1984. Rate Normalization of Buildup Pressure by Using Afterflow Data. JPT

(Dec.): 2211-2224.

Gaver, D. P. 1966. Observing Stochastic Process and Approximate Transform Inversions. Oper. Res. 14, 3: 459.

Page 82: Laplace Transform Deconvolution And Its Application to Perturbation

72

Gladfelter, R.E., Tracy, G.W., and Wilsey, L.E. 1955. Selecting Wells Which Will Respond to Production-

Stimulation Treatment, Drill. and Prod. Prac.,117-129.

Gupta, K. C., and Andsage, R. L. 1967. Application of variable rate analysis technique to gas wells, Fall Meeting of

the Society of Petroleum Engineers of AIME, New Orleans, Louisiana, SPE Paper 1836.

Hahn, T., 2005a. Cuba - a library for multidimensional numerical integration, Computer Physics Communications,

no. 168, pp. 78-95.

Ilk, D., Valkó, P. P., and Blasingame, T. A. 2005. Deconvolution of Variable-Rate Reservoir Performance Data

Using B-Splines. Paper SPE 95571 presented at the SPE Annual Technical Conference and Exhibition. Dallas,

TX. 9-12 Oct.

Ilk, D. 2005. Deconvolution of Variable Reservoir Performance Data Using B-Splines. Master of Science Thesis.

Texas A&M University.

Iseger, P. D. 2006. Numerical Transform Inversion Using Gaussian Quadrature. Probability in the Engineering and

Informational Sciences, 20. 1-44.

Kale, D. and Mattar, L., 1980. Solution of a non-linear gas flow equation by the perturbation technique, JCPT,

PETSOC 80-04-06, pp. 63-67.

Krayszig, E. 1999. Advanced Engineering Mathematics. John Wiley & Sons, INC.

Kucuk, F.J. and Ayestaran, L. 1985. Analysis of Simultaneously Measured Pressure and Sandface Flow Rate in

Transient Well Testing, JPT (February), 323.

Lamm, P. K. 2000. A Survey of Regularization Methods for First-Kind Volterra Equations. Surveys on Solution

Methods for Inverse Problems. ed. D. Colton, H. W. Engl, A. Louis, J. R. McLaughlin, W. Rundell. Springer,

Vienna and New York: 53-82.

Levitan, M. M. 2003. Practical Application of Pressure-Rate Deconvolution to Analysis of Real Well Tests. Paper

SPE 84290 presented at the SPE Annual Technical Conference and Exhibition, Denver, CO. 5-8 Oct.

Levitan, M.M., Crawford, G.E., Hardwick, A. 2004. Practical Considerations for Pressure-Rate Deconvolution of

Well Test Data. Paper SPE 90680 presented at the Annual Technical Conference and Exhibition, Houston,

Texas, 26-29 Sep.

Levitan, M.M., Wilson, M.R. 2010. Deconvolution of Pressure and Rate Data From Gas Reservoirs With Significant

Pressure Depletion. Paper SPE 134261 presented at the Annual Technical Conference and Exhibition, Florence,

Italy, 20-22 Sep.

Mendes, L.C.C., Tygel, M., and Correa, A.C.F. 1989. A deconvolution algorithm for analysis of variable-rate well

test pressure. Paper SPE 19815 presented at the SPE Annual Technical Conference and Exhibition, San

Antonio, TX. 8-11 Oct.

Meunier, D., Wittmann, M. J., and Stewart, G. 1985. Interpretation of Pressure Buildup Test Using In-Situ

Measurement of Afterflow. JPT (Jan.): 143-152.

Nadaraya, E. A. 1965. On nonparametric estimates of density functions and regression curves. Theory of probability

and its application. Vol. 10, Issue 1, page 186-190.

Nisle, R.G. 1958. The effect of partial penetration on pressure build up in oil wells. SPEJ 971-G (March 1958).

Odeh, A.S. and Jones, L.G. 1965. Pressure Drawdown Analysis, Variable-Rate Case, JPT (Aug): 960-964; Trans.,

AIME 234.

Page 83: Laplace Transform Deconvolution And Its Application to Perturbation

73

Onur, M. and Reynolds, A. C. 1998. Numerical Laplace Transformation of Sampled Data for Well-Test Analysis.

SPE REE (June): 268-277.

Ozkan, E. 2003. Applied Mathematics of Fluid Flow in Porous Media. Lecture Notes, Laboratory Exploration of

Petroleum Engineering.

Ozkan, E. and Raghavan, R. 1997. Some Strategies to Apply the Stehfest Algorithm for a Tabulated Set of

Numbers. SPE Journal. 2 (Sept.): 363-372.

Ozkan, E. and Raghavan, R. 1991a. New Solutions for Well-Test-Analysis Problems: Part 1 - Analytical

Considerations. SPEFE 42 (1): 359-368. SPE-18615-PA. “DOI: 10.2118/18615-PA.”

Ozkan, E. and Raghavan, R. 1991b. New Solutions for Well-Test-Analysis Problems: Part 2 - Computational

Considerations and Applications. SPEFE 42 (1): 369-378. SPE-18616-PA. “DOI: 10.2118/18616-PA.”

Peres. A. M. M., Serra. K. V., and Reynolds. A. C. 1990. Toward a unified theory of well testing for nonlinear-

radial-flow problems with application to interference tests, SPE Formation Evaluation, vol. 5, pp. 151_160,

June, SPE Paper 18113.

Raghavan, R.1993. Well Test Analysis, Prentice-Hall, New Jersey.

Roumboutsos, A. and Stewart, G. 1988. A Direct Deconvolution or Convolution Algorithm for Well-Test Analysis.

Paper SPE 18157 presented at the SPE Annual Technical Conference and Exhibition. Houston, TX. 2-5 Oct.

Samaniego, F., and Cinco-Ley, H. 1991. Transient pressure analysis for variable rate testing of gas wells, Low

Permeability Reservoirs Symposium, Denver, Colorado, SPE Paper 21831.

Silverman, B.W. 1986. Density estimation for statistics and data analysis. Published in monographs of statistics and

applied probability, London: Chapman and Hall.

Soliman, M.Y. 1981. New Technique for Analysis of Variable Rate or Slug Test. Paper SPE 10083presented at the

SPE Annual Technical Convention and Exhibition, San Antonio, TX.05-07 Oct.

Stehfest, H. 1970. Numerical Inversion of Laplace Transforms. Communications, ACM13 (1): 47–49.

Talbot, A. 1979.The Accurate Numerical Inversion of Laplace Transforms, J. Inst. Maths. Applics., 23: 97-120.

van Everdingen, A. F. and Hurst, W. 1953. The Application of the Laplace Transformation to Flow Problems in

Reservoirs, Trans. AIME 198: 171-176.

Von Schroeter, T., Hollaender, F., and Gringarten, A. C. 2004. Deconvolution of Well-Test Data as a Nonlinear

Total Least-Squares Problem. SPEJ (Sept.): 375-390.

von Schroeter, T. and Gringarten, A. C., 2007. Superposition principle and reciprocity for pressure transient analysis

of data from interfering wells, SPE Journal, SPE Paper 110465.

Winestock, A.G. and Colpitts, G.P. 1965. Advances in Estimating Gas Well Deliverability, JCPT (July-Sept.) 111-

119.

Watson, G.S. 1964. Smooth regression analysis. Sankhyā: The Indian Journal of Statistics, Series A (1961-2002),

Page 359.

Page 84: Laplace Transform Deconvolution And Its Application to Perturbation

74

APPENDIX A

EXAMPLE OF CONVOLUTION INTEGRAL

Here, a simple example is used to demonstrate that the convolution integral is not necessarily increasing as time

increases. The dimensionless pressure solution for an infinite acting reservoir in time domain is given by

1 1

( 1, ) = ( )2 4

D D DD

m r t Eit

(A.1)

The counterpart of this solution in Laplace domain can be written as follows;

0

1( 1, ) = ( )D Dm r s K s

s

(A.2)

Figure A.1 depicts the pressure derivative( )D D

D

m t

t

in an infinite acting reservoir. The function

( )D D

D

m t

t

is a

positive and declines as time progresses.

Figure A.2 illustrates the source function for an infinite acting reservoir as a function of dimensionless time. The

source function in time domain is given by

0

1 1 1( , ') exp

4 ( ') 2( ') 2( ')D D D

D D D D D D

S t t It t t t t t

(A.3)

Equivalently, the source function in Laplace domain can be written as follows:

0 0

1( ) ( ) ( )

2DS s I s K s

(A.4)

As time increases, the source function declines due to the exponential term. The fact that both the pressure

derivative,( )D D

D

m t

t

, and the source function are positive, does not indicate that their convolution integral,

'' '

'

0

( )( )

Dt

D DD D D D

D

m tG t t dt

t

, must increase as Dt increases. Figure A.3 confirms that the convolution integral,

'' '

'

0

( )( )

Dt

D DD D D D

D

m tG t t dt

t

, is not necessarily an increasing function; it might be a decreasing as Dt increases because

the convolution integral of two functions is not a simple sum of the products of the two functions.

Page 85: Laplace Transform Deconvolution And Its Application to Perturbation

75

Figure A.1 In an infinite acting reservoir( )D D

D

m t

t

is a decreasing function as time increases.

Figure A.2 In an infinite acting reservoir Greens function as a decaying function as time increases.

Page 86: Laplace Transform Deconvolution And Its Application to Perturbation

76

Figure A.3 In an infinite acting reservoir '

' '

'

0

( )( )

Dt

D DD D D D

D

m tG t t dt

t

is a decaying function as time increases.