Oil-based mud (OBM) contamination monitoring (OCM) was developed to estimate the contamination level of incoming fluid during non-focused sampling. For focused sampling, the same OCM approach has been used to estimate the contamination of synthetic commingled fluids utilizing measured flow rates of sample and guard flowlines, assuming that the commingled flow of a focused sampling tool behaves like a non-focused sampling tool. However, in focused sampling, the contamination level in the sample flowline cannot be accurately estimated during early phases of cleanup because it is too early to accurately estimate the optical density (OD) of a formation fluid using the behavior of a commingled flow. That is, average contamination is still too high to obtain accurate estimation, due to slow cleanup at the guard inlet. Moreover, the commingled behavior of a focused sampling tool is not identical to the cleanup behavior of a non-focused sampling tool, such that large discrepancies are observed with non-zero differential pressure between the sample and guard inlets. The computation of commingled flow based on flow measurements with error may also introduce greater uncertainty.
This summary is provided to introduce a selection of concepts that are further described below in the detailed description. This summary is not intended to identify indispensable features of the claimed subject matter, nor is it intended for use as an aid in limiting the scope of the claimed subject matter.
The present disclosure introduces a method that includes obtaining in-situ, real-time data associated with fluid obtained by a downhole sampling tool disposed in a borehole that extends into a subterranean formation. The obtained fluid includes native formation fluid and filtrate contamination resulting from formation of the borehole. The downhole sampling tool is in electrical communication with surface equipment disposed at a wellsite surface from which the borehole extends. The obtained data includes values of a fluid property of the obtained fluid relative to: (1) a pumpout volume of the fluid pumped from the subterranean formation by the downhole sampling tool; or (2) a pumpout time during which the fluid is pumped from the subterranean formation by the downhole sampling tool. The method also includes, via operation of at least one of the downhole sampling tool and the surface equipment: generating a population of values for Ĉ, where each value of Ĉ is an estimated value of the fluid property for the native formation fluid; iteratively fitting the obtained data to a predetermined model in linear space, where the model relates the fluid property to the pumpout volume or time, and where each iterative fitting utilizes a different one of the values for Ĉ; identifying as Ĉ* which one of the values for Ĉ minimizes model fit error in linear space based on the iterative fitting of the obtained data; selecting ones of the values for Ĉ that are near Ĉ*; and determining which one of the selected ones of the values for Ĉ near Ĉ* has a minimum integral error of nonlinearity (IEN) in logarithmic space.
The present disclosure also introduces a method that includes obtaining in-situ, real-time data associated with fluid obtained by a downhole sampling tool disposed in a borehole that extends into a subterranean formation. The obtained fluid includes native formation fluid and filtrate contamination resulting from formation of the borehole. The downhole sampling tool is in electrical communication with surface equipment disposed at a wellsite surface from which the borehole extends. The obtained data includes values of a fluid property of the obtained fluid relative to: (1) a pumpout volume of the fluid pumped from the subterranean formation by the downhole sampling tool; or (2) a pumpout time during which the fluid is pumped from the subterranean formation by the downhole sampling tool. The method also includes, via operation of at least one of the downhole sampling tool and the surface equipment: generating a population of values for Ĉ, where each value of Ĉ is an estimated value of the fluid property for the native formation fluid; and determining which one of the values for Ĉ has a minimum integral error of nonlinearity (IEN) in logarithmic space.
The present disclosure also introduces a method that includes obtaining in-situ, real-time data associated with fluid obtained by a downhole sampling tool disposed in a borehole that extends into a subterranean formation. The downhole sampling tool is in electrical communication with surface equipment disposed at a wellsite surface from which the borehole extends. The obtained data includes values of a fluid property of the obtained fluid. The method also includes, via operation of at least one of the downhole sampling tool and the surface equipment, filtering the obtained data utilizing a robust moving percentile (RMP) filter. Filtering the obtained data utilizing the RMP filter includes: obtaining parameters for a data window to be moved through multiple window locations individually utilized to collectively filter the obtained data, where the parameters include a window size and a window target percentile range between upper and lower percentiles; and at each of the window locations: (i) determining which of the obtained data values correspond to the upper and lower percentiles of the obtained data within the window at the current window location; (ii) replacing the obtained data within the window at the current window location with random data having values ranging between the obtained data values determined to correspond to the upper and lower percentiles; (iii) smoothing the random data; and (iv) determining a filtered data point for the current window location based on the smoothed random data.
These and additional aspects of the present disclosure are set forth in the description that follows, and/or may be learned by a person having ordinary skill in the art by reading the materials herein and/or practicing the principles described herein. At least some aspects of the present disclosure may be achieved via means recited in the attached claims.
The present disclosure is understood from the following detailed description when read with the accompanying figures. It is emphasized that, in accordance with the standard practice in the industry, various features are not drawn to scale. In fact, the dimensions of the various features may be arbitrarily increased or reduced for clarity of discussion.
It is to be understood that the following disclosure provides many different embodiments, or examples, for implementing different features of various embodiments. Specific examples of components and arrangements are described below to simplify the present disclosure. These are, of course, merely examples and are not intended to be limiting. In addition, the present disclosure may repeat reference numerals and/or letters in the various examples. This repetition is for simplicity and clarity, and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. Moreover, the formation of a first feature over or on a second feature in the description that follows may include embodiments in which the first and second features are formed in direct contact, and may also include embodiments in which additional features may be formed interposing the first and second features, such that the first and second features may not be in direct contact.
Formation fluid may be obtained from a subterranean formation by a downhole sampling tool via focused or non-focused sampling. In non-focused sampling, a mixture of formation fluid and filtrate contamination is pumped through one or more inlets of the downhole sampling tool (and then into the borehole) during a cleanup operation until an acceptably low level of filtrate contamination is achieved, at which time the sufficiently “clean” formation fluid is directed to a sample chamber of the downhole sampling tool. In focused sampling, after a substantially shorter cleanup operation, sufficiently clean formation fluid flows into a sampling inlet and corresponding flowline, while contaminated fluid continues to flow into a separate guard inlet and corresponding flowline. Thus, the contaminated fluid can be separated from the native (or at least less contaminated) formation fluid in an earlier stage of the sampling process, thereby decreasing the length of the cleanup operation and expediting collection of a sufficiently decontaminated sample of the native formation fluid in the sample chamber of the downhole sampling tool.
Current OCM processes were originally developed for non-focused sampling. Based on theoretical studies conducted in the past, it has been observed that the late-phase behavior of formation fluid contamination cleanup is exponential.
The mixing rules utilized for OCM may be as set forth below in Equation (1).
where:
In the following description, OD is used as an example. However, the description may be adapted for use with other fluid properties, such as GOR, mass density, shrinkage factor, formation volume factor, fluorescence, dielectric constant, viscosity, and/or composition, among other examples. The description may also be adapted for use with the f function or the g function set forth below in Equations (2) and (3).
f=[GOR0−(GOR0−GOR)b] (2)
g=(GOR0−GOR)b (3)
The description may also be adapted for water-based mud (WBM) contamination monitoring (WCM). In such implementations, mass density and/or conductivity (reciprocal of resistivity) may be utilized instead of OD, among other example substitute parameters.
During OCM according to one or more aspects of the present disclosure, OD0 is estimated by fitting the asymptotic, exponential model set forth below in Equation (4) to the OD measurement data in the least-squares sense.
OD(V)=C−D×V−γ (4)
where C is OD0, and where D and γ are the fitting parameters controlling the evolution of contamination.
Based on previous analytical studies for non-focused sampling, the value of the exponent γ in the model of Equation (4) was fixed as a constant. With a fixed exponent γ, OD0 can be determined using linear least squares fitting, because the problem becomes linear in parameters, as set forth below in Equation (5).
However, the sample flowline behavior of focused sampling is significantly more complicated than that of non-focused sampling, which makes the fixed-power law inapplicable. For example,
In existing OCM algorithms, assuming that the commingled flow of a focused sampling tool behaves like a non-focused sampling tool, the same method with a fixed exponent has been used to estimate OD0. In such implementations, a synthetic commingled flow is computed using measured flow rates of the sample and guard flowlines. As described above, however, the contamination level of the sample flowline cannot be accurately estimated even when the sample flowline reaches very low contamination level, because it is still too early to accurately estimate OD0 based on the synthetic commingled flow. Moreover, the computation of commingled flow based on flow measurements with error can exacerbate uncertainty.
Thus, as described below, the present disclosure introduces methods for estimating OD0 using the sample flowline OD measurements by estimating the three parameters (C, D, and γ) of the model set forth above in Equation (4). This makes the problem nonlinear, which can be solved with an iterative optimization algorithm via nonlinear curve fitting. However, the result of the nonlinear curve fitting can be sensitive to measurement data noise.
For example,
As shown in
For non-Gaussian noise, conventional linear filters (e.g., finite impulse response (FIR) filters) do not produce accurate results, because they produce a more skewed signal due, for example, to the non-symmetric distribution of the noise. Statistical filters such as median and Hampel filters produce better performance, but these filters do not perform smoothing, which makes it difficult to use numerical differentiation methods on their filtered signals. There are more advanced techniques, such as robust LOWESS (locally weighted scatterplot smoothing), that can produce both smoothing and robust filtering for non-Gaussian noise. However, these techniques are computationally expensive, which are not suitable for real-time contamination monitoring.
The present disclosure introduces a robust moving percentile (RMP) filter that combines advantages of both statistical filters and LOWESS.
At the current window location, the data values corresponding to the upper and lower percentiles of the window are then determined (120). For example, if the obtained (110) upper and lower window target percentiles are 75% and 25%, respectively, the data values corresponding to the 75% and 25% percentiles are determined (120). The upper and lower data values determined (120) to correspond to the upper and lower percentiles, respectively, are then utilized as respective upper and lower bounds for a random resampling (130). That is, the raw measurement data within the window is replaced by random data ranging between the upper and lower data values determined (120) to correspond to the upper and lower percentiles. For example, if the obtained (110) window size is 100 data points, some of the data points will fall outside of the upper and lower data values determined (120) to correspond to the upper and lower percentiles. However, the random resampling (130) replaces the 100 raw data points with 100 random values ranging between the upper and lower data values determined (120) to correspond to the upper and lower percentiles. The random resampling (130) may thus reduce temporal correlations and/or biases.
The randomly resampled (130) data is then smoothed (140), such as by utilizing a weighted linear regression and/or other smoothing techniques, perhaps including algorithms such as ridge regression (also known as Tikhonov regularization) to solve ill-posed problems due to non-unique, unevenly spaced volume data. However, other regression and/or other solutions of ill-posed problems may also or instead be utilized to smooth (140) the randomly resampled (130) data. For example, smoothing (140) the randomly resampled (130) data within the window may comprise weighting the data based on proximity to the center of the window, with centrally located data being weighted more heavily than data near the ends of the window. An example weighting function that may be utilized for weighted linear regression within each individual window is set forth below in Equation (6).
where:
y is the weighting applied to each data point in the window;
N is the number of data points in the window; and
x is the location of each data point within the window.
The smoothing (140) is then utilized to determine (150) the filtered data point to utilize for the current window location. For example, if the smoothing (140) includes linear regression (weighted or otherwise) to fit the randomly resampled (130) data to a linear relationship between the data and volume or time, determining (150) the filtered data point to utilize for the current window location may utilize that linear relationship to determine the value corresponding to the center volume or time within the current window. As an example, if the smoothing (140) results in a linear expression Z(V)=A*V+B, where Z is the output of the linear fit model for given data (e.g., randomly resampled data) as a function of pumpout volume V, and where A and B are constants determined via linear regression during the smoothing (140), then determining (150) the filtered data point to utilize for the current window location entails determining A*Vc+B, where Vc is the central volume value within the window (or the average of Vs, the volume value at the start of the window at the current window location, and Ve, the volume value at the end of the window at the current window location).
The window is then moved (160) to the next window location to repeat the determination (120) of the data values corresponding to the upper and lower percentiles in the new window location, the randomly resampling (130) between the determined (120) upper and lower data values, and the smoothing (140) within the new window location. Moving (160) the window may entail moving the window by one, ten, 100, or some other number of data points. For example, if the original data includes twenty data points, the window size is ten data points, and moving (160) the window entails moving the window by one data point, the first iteration of determining (120) the data bounds, resampling (130), smoothing (140), and determining (150) the resulting filtered data point for the first window location may utilize the first through tenth data points from the original 100 data points, the second iteration may utilize the second through eleventh data points, the third iteration may utilize the third through twelfth data points, and so on, resulting in determining (150) eleven filtered data points each corresponding to one of eleven different locations of the moving window.
The method (100) may also comprise downsampling (170) the raw measurement data prior to data filtering and smoothing. For example, the raw measurement data frequency may be high and/or oversampled, such as in implementations in which the raw data is obtained at one Hertz (Hz) intervals, which can result in higher computational cost. The downsampling (170) may reduce the raw data by some multiple or percentage of the measurement frequency utilized to obtain the raw data. For example, raw data obtained with a measurement frequency of 1.0 Hz may be downsampled to a frequency of about 0.33 Hz, thus truncating the raw data to the first data point of each three consecutive data points, or perhaps replacing each set of three consecutive data points with the median or Winsorized mean of the three consecutive data points, among other examples within the scope of the present disclosure. However, the downsampling (170) may utilize various other known or future-developed algorithms.
The RMP filtering method (100) may produce more accurate and noticeably smoother fitting compared to statistical filters, as shown in
The RMP filtering method (100) also provides flexibility to investigate different sizes of the moving window, such as when measurement noise may have a non-zero-mean. For example, the percentile range utilized for the moving window in the example shown in
After utilizing one or more implementations of the method (100) to filter the raw measurement data, the filtered data may be utilized for the iterative optimization algorithm via nonlinear curve fitting to estimate OD0 by estimating the three parameters (C, D, and γ) of the model set forth above in Equation (4). The nonlinear curve fitting utilizes a fit start point. However, the method of determining the fit start point utilized for non-focused sampling data may not be acceptable for focused sampling data.
Fluid property data having derivatives that exhibit an increasing trend may not be included in the fitting range due to the monotonicity of the model of Equation (4). Accordingly, the fit start point for focused sampling data may be determined to be at the pumpout volume (or time) at which the derivative of the data reaches a maximum value, or at least not earlier than this volume (or time). For example, if the fluid property data is OD data being utilized for the presently introduced optimization to estimate OD0, the fit start point for the nonlinear curve fitting of the optimization may be determined to be no earlier than the pumpout volume (or time) at which the derivative of the OD data with respect to pumpout volume (or time), or dOD/dV (or dOD/dt), reaches a maximum value. In the example depicted in
After determining the start point for fitting the filtered data to the associated model, the fitting may commence. The following description pertains to fitting via parameter estimation using integral error of nonlinearity in logarithmic space. The following description is presented in the context of fitting filtered optical density data. However, as above, optical density is merely an example, and the following description may be adapted for fitting other fluid properties, such as GOR, mass density, shrinkage factor, formation volume factor, fluorescence, conductivity, dielectric constant, viscosity, composition, the f function, or the g function, among other examples.
A common solution for nonlinear parameter estimation problems is to use an iterative optimization algorithm to find a subset of parameters that minimizes model fit error (i.e., nonlinear curve fitting). However, when local optimization algorithms (e.g., Levenberg-Marquardt, trust region algorithms, etc.) are used, the algorithms may produce local solutions with large estimation error. Global optimization algorithms (e.g., genetic algorithms) may produce more accurate estimation in these cases. However, global optimization algorithms may be too computationally intensive to be used for real-time contamination monitoring.
In addition, the nonlinear curve fitting in linear scale using an iterative method may show large sensitivity to different fitting ranges. In the OCM algorithm introduced by the present disclosure, the linearity of the late-phase behavior in logarithmic scale may be used to obtain more accurate and robust extrapolation results.
The OCM model set forth above in Equation (4) may be rearranged as set forth below in Equation (7).
C−OD(V)=D·V−γ (7)
Taking the logarithm on both sides of Equation (7) provides a linear relationship in terms of log {C−OD(V)} versus log(V), as set forth below in Equation (8).
log{C−OD(V)}=log D−γ·log V (8)
where D and γ may be estimated using a linear least squares method (Equation (5)) because the problem becomes linear. This may eliminate some uncertainties caused by initial parameter values in nonlinear curve fitting with local optimizers.
However, in the above form, C is also an unknown parameter (OD0) to be estimated. Thus, the present disclosure introduces estimating C based on a given population in an iterative manner, using the linearity of the late-phase behavior in logarithmic scale.
The integral error of nonlinearity (IEN) in logarithmic scale is defined as the integral of the difference between the function Ĉ=OD(V) and a straight line in logarithmic scale, where the straight line is formed by the first and last points of the function Ĉ−OD(V). Thus, the IEN may be expressed as set forth below in Equation (9).
IEN=∫e dV*, where: e=log{Ĉ−OD(V)}−(aV*+b); and V*=log V (9)
where a and b are constants of the straight line determined by the first and last points of the function Ĉ−OD(V).
An example is depicted in
The iterative optimization of the present disclosure determines the IEN for multiple different values of Ĉ and determines which Ĉ the IEN. Thus, C(OD0) may be estimated independently without determining the other parameters (D and γ) of the model, which reduces the dimension of the problem and the uncertainty of the resulting estimation. By changing the solution space, the analysis may focus more on the late-phase behavior, because the IEN may show larger sensitivity toward the end of the data, which may aid in improving estimation accuracy. The analysis conducts the estimation based on the overall linearity of the data in logarithmic scale, whereas nonlinear curve fitting estimates parameters based on overall fitting accuracy. Therefore, the OCM algorithm introduced herein may be less sensitive to the range of fitting relative to previously utilizing nonlinear curve fitting techniques.
However, parameter estimation in logarithmic space may have some numerical issues. If a value for Ĉ is significantly less than C, the function Ĉ−OD(V) becomes negative, because OD measurement becomes larger than Ĉ. In this case, the function log {Ĉ−OD(V)} becomes undefined. In addition, if a value for Ĉ is significantly larger than C, the function log {Ĉ−OD(V)} starts losing concavity due to logarithmic scale, which may mislead the selection of Ĉ based on the integral error. To avoid these issues, the model fit errors in linear space may also be computed using linear least squares fitting, such as by utilizing Equations (10)-(14) set forth below. Then, the determination of Ĉ is conducted within a small range around the solution obtained by the model fit error in linear space.
log D−γ·log V=log{Ĉ−OD(V)} (10)
Let p1=log D, p2=γ (11)
{circumflex over (D)}=e
p
(with natural log), {circumflex over (γ)}=p2 (13)
Model fit error in linear space: e=OD(V)−[Ĉ−{circumflex over (D)}×V−{circumflex over (γ)}] (14)
To test the performance of the presently introduced algorithm on actual field data, a set of focused sampling sample flowline OD measurement data was used. The raw measurement data was significantly corrupted by scattering noise. After filtering by the robust moving percentile filter as described above, the maximum derivative peak was located and used as the fitting start point. To understand the sensitivity to fitting range, the algorithm was tested with two different fitting ranges. As shown in Table 1 set forth below, the presently introduced algorithm produced more consistent results compared to nonlinear curve fitting. In addition, the algorithm introduced herein showed faster computation speed.
The population of the various values of Ĉ may then be generated (220) based on the obtained (210) range and population values. The IEN in logarithmic space is then determined (230) for each of the values of Ĉ within the generated (220) population. The regression described above with respect to Equations (10)-(14) is then performed to determine the model (Equation (4)) fit error in linear space to determine (240) corresponding cost functions for each of the values of Ĉ within the generated (220) population. The fittings performed to determine (230) the IEN and to determine (240) the cost functions of model fit error in linear space may each utilize a fit start point determined by the OD derivative as described above.
The value of Ĉ that minimizes the model fit error in linear space, denoted by Ĉ*, may then be found (250). The values of Ĉ within the vicinity of Ĉ* are then searched to identify (260) which value of Ĉ near Ĉ* minimizes the IEN in logarithmic space. The identified (260) value of Ĉ that minimizes the IEN in logarithmic space near Ĉ* is the final estimation of OD0. The values of within the vicinity of Ĉ* that are searched may include those values of Ĉ that vary from the value of Ĉ* by a predetermined percentage (e.g., 10%, 25%, etc.) or other threshold, or may simply include a predetermined number of the values of Ĉ that range around Ĉ*, such as the five, ten, or other number of values of Ĉ that form the smallest range having an average or median of Ĉ*.
As shown in
The drillstring 312 may be raised and lowered by turning the lifting gear with the winch, which may sometimes include temporarily unhooking the drillstring 312 from the lifting gear. In such scenarios, the drillstring 312 may be supported by blocking it with wedges (known as “slips”) in a conical recess of the rotary table 316, which is mounted on a platform 321 through which the drillstring 312 passes.
The drillstring 312 may be rotated by the rotary table 316, which engages the kelly 317 at the upper end of the drillstring 312. The drillstring 312 is suspended from the hook 318 and extends through the kelly 317 and the rotary swivel 319 in a manner permitting rotation of the drillstring 312 relative to the hook 318. Other example well site systems within the scope of the present disclosure may utilize a top drive system to suspend and rotate the drillstring 312, whether in addition to or instead of the illustrated rotary table system.
The surface system may further include drilling fluid or mud 326 stored in a pit or other container 327 formed at the wellsite. As described above, the drilling fluid 326 may be OBM or WBM. A pump 329 delivers the drilling fluid 326 to the interior of the drillstring 312 via a hose or other conduit 320 coupled to a port in the swivel 319, causing the drilling fluid to flow downward through the drillstring 312, as indicated in
The BHA 350 may comprise one or more specially made drill collars near the drill bit 355. Each such drill collar may comprise one or more logging devices, thereby permitting measurement of downhole drilling conditions and/or various characteristic properties of the formation 302 intersected by the borehole 311. For example, the BHA 350 may comprise a logging-while-drilling (LWD) module 370, a measurement-while-drilling (MWD) module 380, a rotary-steerable system and motor 360, and perhaps the drill bit 355. Of course, other BHA components, modules, and/or tools are also within the scope of the present disclosure, e.g., as represented in
The LWD module 370 may comprise capabilities for measuring, processing, and storing information pertaining to the formation 302, including for obtaining a sample stream of fluid from the formation 302 and performing fluid analysis on the sample stream as described above. The MWD module 380 may comprise one or more devices for measuring characteristics of the drillstring 312 and/or drill bit 355, such as for measuring weight-on-bit, torque, vibration, shock, stick slip, direction, and/or inclination, among other examples within the scope of the present disclosure. The MWD module 380 may further comprise an apparatus (not shown) for generating electrical power to be utilized by the downhole system. This may include a mud turbine generator powered by the flow of the drilling fluid 326. However, other power and/or battery systems may also or instead be employed.
The wellsite system 300 also comprises a logging and control unit and/or other surface equipment 390 communicably coupled to the LWD and MWD modules 370, 375, and 380. One or more of the LWD and MWD modules 370, 375, and 380 comprise a downhole sampling apparatus operable to obtain downhole a sample of fluid from the subterranean formation and perform DFA to measure or determine various fluid properties of the obtained fluid sample. Such DFA may be utilized for OCM according to one or more aspects described above. The resulting data may then be reported to the surface equipment 390.
The operational elements of the BHA 350 may be controlled by one or more electrical control systems within the BHA 350 and/or the surface equipment 390. For example, such control system(s) may include processor capability for characterization of formation fluids in one or more components of the BHA 350 according to one or more aspects of the present disclosure. Methods within the scope of the present disclosure may be embodied in one or more computer programs that run in one or more processors located, for example, in one or more components of the BHA 350 and/or the surface equipment 390. Such programs may utilize data received from one or more components of the BHA 350, for example, via mud-pulse telemetry and/or other telemetry means, and may be operable to transmit control signals to operative elements of the BHA 350. The programs may be stored on a suitable computer-usable storage medium associated with one or more processors of the BHA 350 and/or surface equipment 390, or may be stored on an external computer-usable storage medium that is electronically coupled to such processor(s). The storage medium may be one or more known or future-developed storage media, such as a magnetic disk, an optically readable disk, flash memory, or a readable device of another kind, including a remote storage device coupled over a telemetry link, among other examples.
The downhole sampling tool 420 comprises an elongated body 426 encasing a variety of electronic components and modules schematically represented in
One or more fluid sampling and analysis modules 432 are provided in the tool body 426. Fluids obtained from the formation 402 and/or borehole 412 flow through a flowline 433 of the fluid analysis module or modules 432, and then may be discharged through a port 439 of a pumpout module 438. Alternatively, formation fluids in the flowline 433 may be directed to one or more sample chambers 434 for receiving and retaining the fluids obtained from the formation 402 for transportation to the surface.
The fluid sampling means 429, 431, the fluid analysis modules 432, the flow path (including through the flowline 433, the port 439, and the sample chambers 434), and/or other operational elements of the downhole sampling tool 420 may be controlled by one or more electrical control systems within the downhole sampling tool 420 and/or the surface equipment 424. For example, such control system(s) may include processor capability for characterization of formation fluids in the downhole sampling tool 420 according to one or more aspects of the present disclosure. Methods within the scope of the present disclosure may be embodied in one or more computer programs that run in a processor located, for example, in the downhole sampling tool 420 and/or the surface equipment 424. Such programs may utilize data received from, for example, the fluid sampling and analysis module 432, via the wireline cable 422, and to transmit control signals to operative elements of the downhole sampling tool 420. The programs may be stored on a suitable computer-usable storage medium associated with the one or more processors of the downhole sampling tool 420 and/or surface equipment 424, or may be stored on an external computer-usable storage medium that is electronically coupled to such processor(s). The storage medium may be one or more known or future-developed storage media, such as a magnetic disk, an optically readable disk, flash memory, or a readable device of another kind, including a remote storage device coupled over a switched telecommunication link, among others.
An example downhole sampling tool 500 that may be utilized in the example systems 300 and 400 of
An example downhole fluid analyzer 550 that may be used to implement DFA in the example downhole sampling tool 500 shown in
The processing system 900 may comprise a processor 912 such as, for example, a general-purpose programmable processor. The processor 912 may comprise a local memory 914, and may execute coded instructions 932 present in the local memory 914 and/or another memory device. The processor 912 may execute, among other things, machine-readable instructions or programs to implement the methods and/or processes described herein. The programs stored in the local memory 914 may include program instructions or computer program code that, when executed by an associated processor, permit surface equipment and/or downhole controller and/or control system to perform tasks as described herein. The processor 912 may be, comprise, or be implemented by one or more processors of various types suitable to the local application environment, and may include one or more of general-purpose computers, special-purpose computers, microprocessors, digital signal processors (“DSPs”), field-programmable gate arrays (“FPGAs”), application-specific integrated circuits (“ASICs”), and processors based on a multi-core processor architecture, as non-limiting examples. Of course, other processors from other families are also appropriate.
The processor 912 may be in communication with a main memory 917, such as may include a volatile memory 918 and a non-volatile memory 920, perhaps via a bus 922 and/or other communication means. The volatile memory 918 may be, comprise, or be implemented by random access memory (RAM), static random access memory (SRAM), synchronous dynamic random access memory (SDRAM), dynamic random access memory (DRAM), RAMBUS dynamic random access memory (RDRAM) and/or other types of random access memory devices. The non-volatile memory 920 may be, comprise, or be implemented by read-only memory, flash memory and/or other types of memory devices. One or more memory controllers (not shown) may control access to the volatile memory 918 and/or the non-volatile memory 920.
The processing system 900 may also comprise an interface circuit 924. The interface circuit 924 may be, comprise, or be implemented by various types of standard interfaces, such as an Ethernet interface, a universal serial bus (USB), a third generation input/output (3GIO) interface, a wireless interface, and/or a cellular interface, among others. The interface circuit 924 may also comprise a graphics driver card. The interface circuit 924 may also comprise a communication device such as a modem or network interface card to facilitate exchange of data with external computing devices via a network (e.g., Ethernet connection, digital subscriber line (“DSL”), telephone line, coaxial cable, cellular telephone system, satellite, etc.).
One or more input devices 926 may be connected to the interface circuit 924. The input device(s) 926 may permit a user to enter data and commands into the processor 912. The input device(s) 926 may be, comprise, or be implemented by, for example, a keyboard, a mouse, a touchscreen, a track-pad, a trackball, an isopoint, and/or a voice recognition system, among others.
One or more output devices 928 may also be connected to the interface circuit 924. The output devices 928 may be, comprise, or be implemented by, for example, display devices (e.g., a liquid crystal display or cathode ray tube display (CRT), among others), printers, and/or speakers, among others.
The processing system 900 may also comprise one or more mass storage devices 930 for storing machine-readable instructions and data. Examples of such mass storage devices 930 include floppy disk drives, hard drive disks, compact disk (CD) drives, and digital versatile disk (DVD) drives, among others. The coded instructions 932 may be stored in the mass storage device 930, the volatile memory 918, the non-volatile memory 920, the local memory 914, and/or on a removable storage medium 934, such as a CD or DVD. Thus, the modules and/or other components of the processing system 900 may be implemented in accordance with hardware (embodied in one or more chips including an integrated circuit such as an application specific integrated circuit), or may be implemented as software or firmware for execution by a processor. In particular, in the case of firmware or software, the embodiment can be provided as a computer program product including a computer readable medium or storage structure embodying computer program code (i.e., software or firmware) thereon for execution by the processor.
In
In view of the entirety of the present disclosure, including the figures and the claims, a person having ordinary skill in the art should readily recognize that the present disclosure introduces a method comprising: obtaining in-situ, real-time data associated with fluid obtained by a downhole sampling tool disposed in a borehole that extends into a subterranean formation, wherein the obtained fluid comprises native formation fluid and filtrate contamination resulting from formation of the borehole, wherein the downhole sampling tool is in electrical communication with surface equipment disposed at a wellsite surface from which the borehole extends, and wherein the obtained data includes a plurality of values of a fluid property of the obtained fluid relative to: a pumpout volume of the fluid pumped from the subterranean formation by the downhole sampling tool; or a pumpout time during which the fluid is pumped from the subterranean formation by the downhole sampling tool. The method also includes, via operation of at least one of the downhole sampling tool and the surface equipment: generating a population of values for Ĉ, wherein each value of Ĉ an estimated value of the fluid property for the native formation fluid; iteratively fitting the obtained data to a predetermined model in linear space, wherein the model relates the fluid property to the pumpout volume or time, and wherein each iterative fitting utilizes a different one of the values for Ĉ; identifying as Ĉ* which one of the values for Ĉ minimizes model fit error in linear space based on the iterative fitting of the obtained data; selecting ones of the values for Ĉ that are near Ĉ*; and determining which one of the selected ones of the values for Ĉ near Ĉ* has a minimum integral error of nonlinearity (LEN) in logarithmic space.
The method may further comprise, via operation of at least one of the downhole sampling tool and the surface equipment, determining a fit start to be utilized for the iterative fitting of the obtained data, wherein determining the fit start may be based on a derivative of the obtained fluid property values with respect to the pumpout volume or time. The fit start may be determined to be no earlier than the pumpout volume or time at which the derivative of the obtained fluid property values reaches a maximum value.
The fluid property may be optical density (OD), and the method may further comprise, via operation of at least one of the downhole sampling tool and the surface equipment, determining the IEN for each of the selected ones of the values for Ĉ near Ĉ* utilizing Equation (9) set forth above. In such implementations, the method may further comprise, via operation of at least one of the downhole sampling tool and the surface equipment, truncating the obtained OD(V) data based on the derivative of the obtained OD(V) data with respect to V, and determining the IEN may utilize the truncated OD(V) data. Truncating the obtained OD(V) data may comprise excluding the obtained OD(V) data obtained prior to the derivative of the obtained OD(V) data reaching a maximum value.
The method may further comprise, via operation of at least one of the downhole sampling tool and the surface equipment, obtaining a range and size of the population of values for Ĉ. Obtaining the range and size may comprise obtaining user inputs and/or obtaining a predetermined range and size.
Iteratively fitting the obtained data to the predetermined model in linear space may comprise performing linear regression to determine one or more adjustable parameters of the predetermined model using linear least squares fitting.
The method may further comprise, via operation of at least one of the downhole sampling tool and the surface equipment, filtering the obtained data utilizing a robust moving percentile (RMP) filter prior to iteratively fitting the obtained data. Filtering the obtained data utilizing the RMP filter may comprise: obtaining parameters for a data window to be moved through a plurality of window locations individually utilized to collectively filter the obtained data, wherein the parameters include a window size and a window target percentile range between upper and lower percentiles; and at each of the plurality of window locations: (i) determining which of the obtained data values correspond to the upper and lower percentiles of the obtained data within the window at the current window location; (ii) replacing the obtained data within the window at the current window location with random data having values ranging between the obtained data values determined to correspond to the upper and lower percentiles; (iii) smoothing the random data; and (iv) determining a filtered data point for the current window location based on the smoothed random data. Smoothing the random data may utilize a weighted linear regression of the random data within the window at the current window location. The weighted linear regression may weight the random data based on position within the window at the current window location, such that the random data located centrally within the window may be weighted more heavily than the random data located near ends of the window.
The present disclosure also introduces a method comprising: obtaining in-situ, real-time data associated with fluid obtained by a downhole sampling tool disposed in a borehole that extends into a subterranean formation, wherein the obtained fluid comprises native formation fluid and filtrate contamination resulting from formation of the borehole, wherein the downhole sampling tool is in electrical communication with surface equipment disposed at a wellsite surface from which the borehole extends, and wherein the obtained data includes a plurality of values of a fluid property of the obtained fluid relative to: a pumpout volume of the fluid pumped from the subterranean formation by the downhole sampling tool; or a pumpout time during which the fluid is pumped from the subterranean formation by the downhole sampling tool. The method also comprises, via operation of at least one of the downhole sampling tool and the surface equipment: generating a population of values for Ĉ, wherein each value of Ĉ is an estimated value of the fluid property for the native formation fluid; and determining which one of the values for Ĉ has a minimum integral error of nonlinearity (LEN) in logarithmic space.
The fluid property may be optical density (OD), and the method may further comprise, via operation of at least one of the downhole sampling tool and the surface equipment, determining the IEN for each of the values for Ĉ utilizing Equation (9) set forth above. In such implementations, the method may further comprise, via operation of at least one of the downhole sampling tool and the surface equipment, truncating the obtained OD(V) data based on a maximum value of the derivative of the obtained OD(V) data with respect to V, and determining the IEN may utilize the truncated OD(V) data.
The present disclosure also introduces a method comprising: obtaining in-situ, real-time data associated with fluid obtained by a downhole sampling tool disposed in a borehole that extends into a subterranean formation, wherein the downhole sampling tool is in electrical communication with surface equipment disposed at a wellsite surface from which the borehole extends, and wherein the obtained data includes a plurality of values of a fluid property of the obtained fluid; and via operation of at least one of the downhole sampling tool and the surface equipment, filtering the obtained data utilizing a robust moving percentile (RMP) filter. Filtering the obtained data utilizing the RMP filter comprises: obtaining parameters for a data window to be moved through a plurality of window locations individually utilized to collectively filter the obtained data, wherein the parameters include a window size and a window target percentile range between upper and lower percentiles; and at each of the plurality of window locations: (i) determining which of the obtained data values correspond to the upper and lower percentiles of the obtained data within the window at the current window location; (ii) replacing the obtained data within the window at the current window location with random data having values ranging between the obtained data values determined to correspond to the upper and lower percentiles; (iii) smoothing the random data; and (iv) determining a filtered data point for the current window location based on the smoothed random data.
Smoothing the random data may utilize a weighted linear regression of the random data within the window at the current window location. The weighted linear regression may weight the random data based on position within the window at the current window location, such that the random data located centrally within the window may be weighted more heavily than the random data located near ends of the window. Obtaining the parameters of the moving data window may comprise obtaining user inputs.
The foregoing outlines features of several embodiments so that a person having ordinary skill in the art may better understand the aspects of the present disclosure. A person having ordinary skill in the art should appreciate that they may readily use the present disclosure as a basis for designing or modifying other processes and structures for carrying out the same functions and/or achieving the same benefits of the embodiments introduced herein. A person having ordinary skill in the art should also realize that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that they may make various changes, substitutions and alterations herein without departing from the spirit and scope of the present disclosure.
The Abstract at the end of this disclosure is provided to comply with 37 C.F.R. § 1.72(b) to permit the reader to quickly ascertain the nature of the technical disclosure. It is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims.
This application claims the benefit of and priority to U.S. Provisional Application No. 62/098,204, entitled “Estimating Contamination During Focused Sampling,” filed Dec. 30, 2014, the entire disclosure of which is hereby incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
6108608 | Watts, III | Aug 2000 | A |
6274865 | Schroer et al. | Aug 2001 | B1 |
6350986 | Mullins et al. | Feb 2002 | B1 |
9557312 | Zuo et al. | Jan 2017 | B2 |
20020016703 | Barroux | Feb 2002 | A1 |
20030182061 | Ferworn | Sep 2003 | A1 |
20040104341 | Betancourt | Jun 2004 | A1 |
20070119244 | Goodwin | May 2007 | A1 |
20090030858 | Hegeman | Jan 2009 | A1 |
20140360257 | Indo | Dec 2014 | A1 |
Number | Date | Country | |
---|---|---|---|
20160186562 A1 | Jun 2016 | US |
Number | Date | Country | |
---|---|---|---|
62098204 | Dec 2014 | US |