1. Introduction
Well test analysis is an important branch of reservoir engineering. In well test analysis, we can obtain some reservoir characteristics (reservoir permeability, wellbore storage coefficient, skin factor, drainage radius, etc.) by downhole pressure data which collected by permanent downhole gauges (PDG). Due to various reasons such as problems in gauges that occur by physical changes in reservoir, the original data from PDG usually contains large amounts of noise. Distorted data may cause high degree of uncertainty in well test interpretations and hence, PDG data have to be pre-processed before further analysis.
Noise removing is important in the process of analyzing well test data. The Butterworth digital filter method has been used by Osman and Stewart [
1] to subtract noise in the data but it has poor performance in some cases such as have been shown by Kikani and He in Reference [
2]. Instead, a wavelet analysis has been employed to remove noise. In Reference [
3], Athichanagorn et al. proposed a seven-step procedure combining wavelet transform for the PDG data processing. Since then, numerous de-noising methods based on wavelet analysis have been present [
4,
5]. The main disadvantage of these methods is that their effect depend heavily on the selected wavelet types. In Reference [
6], Nomura investigated a smoothing algorithm which utilized the derivative constraints to deal with PDG data. The data has been processed in log interval owing to the high degree of smoothness of the data in the log interval. He compared the constraint smoother and unconstrained regression splines and concluded that the former have better performance. But with the order of derivative constraints increases, the processing becomes more complex and the computational complexity increases greatly.
It is well known that using only pressure data for well test analysis may be insufficient and even may lead to misleading results. So the pressure derivative is useful in well test analysis. Up to now, all the existing methods need to redesign the calculation method of derivative on the basis of de-noising data. In recent years, numerical tools for inverse problems have been well developed [
7,
8] and we can obtain more stable approximation of derivatives. In this paper, we develop a method based on Legendre approximation for de-noising of well test pressure data which has been used to deal with the numerical differentiation problem [
9]. The merit of the method is that we can directly obtain the approximation of derivatives. Because of its higher smoothness than the original interval, the data will be de-noised in logarithmic interval. We first obtain the Legendre approximation of the data and then the noise is eliminated by truncation. The parameter of the truncation will be chosen by a discrepancy principle. The method is implemented with Matlab and some numerical tests are utilized to verify the validity of the method.
2. The Theory of De-Nosing Based on Legendre Approximation
We first introduce some basic concepts and conclusions of Legendre approximation. Let
and denote by
and
the usual Lebesgue and Sobolev spaces and by
,
their corresponding norms. The inner products of
and
are denoted by
and
respectively. Let
N be any positive integer and
be the set of all algebraic polynomials of degree at most
N in
.
is the
orthogonal projection operator, that is,
Let
be the Legendre polynomial of degree
l which can be defined by
It well known that
So for any
, we may write
with
Lemma 1. [10] Let , then for any , Lemma 2. [10] For any , and where Let
and
are the zeros of
and
is the set of all
. The discrete inner product in
and its associated norm can be defined by
The Legendre interpolation
of a function
is defined by
Lemma 3. [10] For any , , , Now we present a noise removal algorithm base on Legendre expansion. Consider a signal
which is polluted by noise
. That is to say, we only obtain its perturbed data:
The process of de-noising involves obtaining approximate signal from noisy data . Our de-noising process is divided into the following steps:
Transform the interval
to the interval
and an intermediate data
is obtained by
Calculate the knots
and obtain the data
by piecewise linear interpolation:
where
and
are the two nearest points of
in
.
Obtain the Legendre interpolation function
by
Given the control parameter
(which can usually be estimated by the error distribution), the approximate signal
obtain by
where the parameter
is determined by the following discrepancy principle
with
.
Now, we derive convergence result for above Legendre approximation.
Theorem 4. Suppose that and the data satisfyand is defined by (18) and (19), then we have Proof. In terms of (
19), (
20) and the triangle inequality
On the other hand, from Lemma 2, 3 and note that
Combining (
22) with (
23), we have
Moreover, by using the triangle inequality, Lemma 1, 2 and 3
And from Lemma 3,
By (
24), (
25) and (
26), there exist a constant
M such that
Moreover,
By interpolation inequality in [
10]
From (
27), (
28) and (
29), the approximation order (
21) is proved. □
3. Numerical Tests
3.1. Preliminary Check for Approximation Capability of Legendre Expansion with Various Numbers of Knots
In general, more knots tends to give more approximation quality but this is unfavorable due to the increased model complexities and also for the computational burden. So we first check the effect of knots
N number to approximate accurate data for three reservoir models [
11]; the homogeneous-infinite model, the closed-circular model and the composite reservoir model. Their dimensionless well bore pressures in the Laplace space are respectively
Homogeneous-infinite model:
where
is the dimensionless well-bore pressure in the Laplace space,
z is the Laplace-transform parameter,
is the modified Bessel function of second-kind, of order
,
S is the skin factor,
is the dimensionless wellbore storage coefficient.
Closed-circular model:
with
where
is the dimensionless outer radius and
is the modified Bessel function of the first-kind, of order
.
Composite reservoir model:
with
and
where
is the dimensionless radius inner zone,
is the Flow ratio and
is the storage capacity ratio.
The inversion form
to
(the exact function
g) is done using the Gaver-Stehfest algorithm [
12]. We give the accurate data
at
,
. Further, an interpolation function is given, similar to the one given in Formulas (15)–(18) (
).
Figure 1,
Figure 2 and
Figure 3 show the fitting results of three models for
and 64. In the figures, the circles show the estimates at the knot locations. As shown here, more knots can give a better approximation quality and all the models are already fitted well to the true solution when
. So for the rest of examples, we always take
.
3.2. Tests for Validity of Method
We added noise to the data as follows:
where
are obtained by Matlab function
.
Figure 4,
Figure 5 and
Figure 6 show the fitting results of three models respectively. In each Figure, the first sub-figure gives a comparison between the noisy function and the de-noised one. The solid blue curves represents the noisy functions and the red dotted curves indicate the de-noised ones and we only took a partial of the curves to make the contrast more obvious. The second sub-figure shows that the comparisons of de-noised solution and its derivative with their corresponding accurate data. As can be seen, the performance of the method is satisfactory.
4. Conclusions
A new method to remove the noise of well test data based on the Legendre approximation is present in this paper. Benefit from the high accuracy of Legendre approximation, we can give a well approximation of well test data. The convergence result has been obtained and numerical tests have also verified the effectiveness of the method.
Author Contributions
For methodology, Z.Z.; software, Y.Z. and Z.L.; resources, F.Z.; writing—original draft preparation, F.Z. and Y.Z.; writing—review and editing, Z.Z.; project administration, F.Z.; funding acquisition, Z.Z.
Funding
This research was funded by project of enhancing school with innovation of Guangdong Ocean University grant number Q18306 and the Fund of Southern Marine Science and Engineering Guangdong Laboratory (Zhanjiang) grant number ZJW-2019-04.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Osman, M.S.; Stewart, G. Pressure data filtering and horizontalwell test analysis case study. In Proceedings of the Middle East Oil Show and Conference, Paper SPE 37802, Manama, Bahrain, 15–18 March 1997. [Google Scholar]
- Kikani, J.; He, M. Multi-resolution analysis of long-term pressure transient data using wavelet methods. In Proceedings of the SPE Annual Technical Conference and Exhibition, New Orleans, LA, USA, 27–30 September 1998. [Google Scholar]
- Athichanagorn, S.; Horne, R.N.; Kikani, J. Processing and interpretation of long-term data acquired from permanent pressure gauges. SPE Reserv. Eval. Eng. 2002, 5, 384–391. [Google Scholar] [CrossRef]
- Daubechies, I. The wavelet transform, time-frequency localization and signal analysis. IEEE Trans. Inf. Theory 1990, 36, 961–1005. [Google Scholar] [CrossRef]
- Olsen, S.; Nordtvedt, J. Automatic filtering and monitoring of real-time reservoir and production data. In Proceedings of the SPE Annual Technical Conference and Exhibition, Dallas, TX, USA, 9–12 October 2005. [Google Scholar]
- Nomura, M. Processing and Interpretation of Pressure Transient Data from Permanent Downhole Gauges. Ph.D. Thesis, Stanford University, Stanford, CA, USA, 2006. [Google Scholar]
- Hansen, C.P. Numerical tools for analysis and solution of Fredholm integral equations of the first kind. Inverse Probl. 1992, 8, 849–872. [Google Scholar] [CrossRef]
- Turco, E. Tools for the numerical solution of inverse problems in structural mechanics: Review and research perspectives. Eur. J. Environ. Civ. Eng. 2016, 21, 509–554. [Google Scholar] [CrossRef]
- Zhao, Z. A truncated legendre spectral method for solving numerical differentiation. Int. J. Comput. Math. 2010, 87, 3209–3217. [Google Scholar] [CrossRef]
- Guo, B.Y. Spectral Methods and their Applications; World Scientific: Singapore, 2010. [Google Scholar]
- Liu, Q. Modern Practical Method for Well Test Interpretation, 5th ed.; Petroleum Industry Press: Beijing, China, 2008. [Google Scholar]
- Gaver, G.P. Observing stochastic processes and approximate transform inversions. Oper. Res. 2003, 14, 444–459. [Google Scholar] [CrossRef]
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).