Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
DERIVATIVE RATIO TEST OF FLUID SAMPLING CLEANUP
Document Type and Number:
WIPO Patent Application WO/2019/190981
Kind Code:
A1
Abstract:
A method for performing a formation fluid test in a borehole penetrating a subsurface formation includes disposing a fluid tester in the borehole, extracting a sample of fluid from the subsurface formation using the fluid tester, and analyzing the sample using the fluid tester to provide test data for a process used to analyze the sample. The method also includes fitting an equation to the test data and calculating a ratio of a first derivative of the equation to a second derivative of the equation. The method further includes continuing to extract the sample from the subsurface formation in response to the ratio indicating a clean sample will be forthcoming and terminating the extracting of the sample from the subsurface formation in response to the ratio indicating a clean sample will not be forthcoming.

Inventors:
DIFOGGIO ROCCO (US)
POHL BERNARDO E (US)
Application Number:
PCT/US2019/023871
Publication Date:
October 03, 2019
Filing Date:
March 25, 2019
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
BAKER HUGHES A GE CO LLC (US)
International Classes:
G01N1/10; G01N1/40; G06F17/11
Foreign References:
US20060236758A12006-10-26
US7711488B22010-05-04
US20070129901A12007-06-07
US20170370215A12017-12-28
US7346460B22008-03-18
Attorney, Agent or Firm:
COTRONE, Carlo et al. (US)
Download PDF:
Claims:
CLAIMS

What is claimed is;

1. A method for performing a formation fluid test in a borehole (2) penetrating a subsurface formation (4), the method (50) characterized by:

disposing a fluid tester (10) in the borehole (2);

extracting a sample of fluid from the subsurface formation (4) using the fluid tester

(io);

analyzing the sample using the fluid tester (10) to provide test data for a process used to analyze the sample;

fitting an equation to the test data using a processor (17);

calculating a ratio of a first derivative of the equation to a second derivative of the equation using the processor (17);

continuing to extract the sample from the subsurface formation (4) in response to the ratio indicating a clean sample will be forthcoming; and

terminating the extracting of the sample from the subsurface formation (4) in response to the ratio indicating a clean sample will not be forthcoming.

2. The method according to claim 1, wherein the analyzing comprises measuring at least one of the sample’s light absorbance, refractive index, sound speed or its inverse slowness, density, and viscosity.

3. The method according to claim 1, wherein the equation is developed by fitting a series of piecewise fits of a quadratic equation to the test data.

4. The method according to claim 1, wherein the sample is extracted using a probe (8) having a single opening and the ratio being characterized within a specified limit as having a slope greater than minus one and less than or equal to zero is indicative that a clean sample will be forthcoming.

5. The method according to claim 4, wherein the ratio comprises an asymptotic power law fit to the test data.

6. The method according to claim 1, wherein the sample is extracted using a concentric probe (8) having a first opening to extract the sample and a second opening surrounding the first opening and the ratio being characterized within a specified limit as having a horizontal line is indicative that a clean sample will be forthcoming.

7. The method according to claim 6, wherein the ratio comprises an exponential power law fit.

8. The method according to claim 1, further comprising resetting a packer in the borehole (2) to another location in the borehole (2) and extracting another sample at another location in the borehole (2).

9. The method according to claim 1, further comprising estimating an amount of time to continue extracting the sample in order to obtain a clean sample by calculating curve fitting coefficients for the equation.

10. A system for performing a formation (4) fluid test in a borehole (2) penetrating a subsurface formation (4), the system characterized by:

a fluid tester (10) conveyable in the borehole (2) by a carrier (5) and configured to extract a sample of fluid from the subsurface formation (4) and to analyze the sample to provide test data for a process used to analyze the sample;

a processor (17) configured to:

fit an equation to the test data;

calculate a ratio of a first derivative of the equation to a second derivative of the equation; and

determine from the ratio one of (a) a clean sample will be forthcoming and (b) a clean sample will not be forthcoming;

a user interface configured to provide indication to a user that one of the clean sample will be forthcoming and the clean sample will not be forthcoming in response to the determination by the processor (17).

11. The system according to claim 10, further comprising a probe (8) having a single opening configured to extract the sample and the processor is further configured to identify the ratio as being characterized within a specified limit as having a slope between and inclusive of zero and minus one in order to indicate that a clean sample will be forthcoming.

12. The system according to claim 10, further comprising a concentric probe (8) having a first opening to extract the sample and a second opening surrounding the first opening and the processor is further configured to identify the ratio as being characterized within a specified limit as having a horizontal line to indicate that a clean sample will be forthcoming.

13. The system according to claim 10, wherein the fluid tester (10) is configured to measure at least one of the sample’s light absorbance, refractive index, sound speed or its inverse slowness, density, and/or viscosity.

14. The system according to claim 10, wherein the processor (17) is further configured to estimate an amount of time to continue extracting the sample in order to obtain a clean sample by calculating curve fitting coefficients for the equation.

15. The system according to claim 10, wherein the carrier (5) comprises one of a wireline (6), a slickline, a drill string, and coiled tubing.

Description:
DERIVATIVE RATIO TEST OF FLUID SAMPLING CLEANUP

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application claims the benefit of an earlier filing date from U.S.

Application Serial No. 62/649,348 filed March 28, 2018, the entire disclosure of which is incorporated herein by reference.

BACKGROUND

[0002] Geologic formations may be used for many applications such as hydrocarbon production, geothermal production, and carbon dioxide sequestration. Typically, boreholes are drilled into the formations to access the Various downhole tools or instruments may be conveyed in the boreholes in order to characterize the formations and fluids within.

Characterization of the formations and the fluids within provides useful inform ation related to the intended use of the formations so that drilling and production resources can be used efficiently.

[0003] One type of downhole instrument is a fluid tester that extracts a sample of the formation fluid and performs analyses of that sample using a downhole analyzer. In general, early in the process of pumping fluid from the formation, the fluid is highly contaminated with mud filtrate and, as pumping continues, the fluid typically cleans up. Often, after pumping for an hour or two, a sufficiently clean formation fluid sample is collected in a downhole sample tank whose capacity may be approximately a liter for example. Some fluid analyses may be performed immediately, downhole, during pumping. For more sophisticated analyses, the tank is returned to the surface and its fluid contents may be analyzed in a surface laboratory at some later date. When the mud filtrate is immiscible with the formation fluid that is being pumped from the formation, such as water-based mud (WBM) filtrate when taking a formation crude oil sample or oil-based mud filtrate (OBM) when taking a formation brine sample, then the initial flow consists of mixed phases of oil and water. Such mixed phase flow shows the spectral signatures of both oil and water in a rapidly changing and erratic pattern. Eventually, the spectral signature shows that the flow proceeds to the single phase of formation fluid that one wishes to collect for a sample, which is an obvious and dramatic spectral change. However, when the mud filtrate is miscible with the formation fluid that is being pumped from the formation, such as water-based mud (WBM) filtrate when taking formation brine samples or oil-based mud filtrate (OBM) when taking formation crude oil samples, then the cleanup towards pure formation fluid is more subtle. It is desired to collect as clean a sample as possible within economic reason to ensure that subsequent surface lab analyses reflect the actual formation fluid of interest and not the filtrate. An offshore drilling rig can cost one to two million dollars per day ($42 to $83 thousand per hour), so pumping an extra hour or two to achieve only a marginal improvement in sample purity might not make economic sense. However, on critical wildcat wells, some operators have pumped for 10-12 hours with associated cost. Hence, innovations that improve the speed and efficiency of fluid sample cleanup monitoring would be well received in the drilling and production industries.

BRIEF SUMMARY

[0004] Disclosed is a method for performing a formation fluid test in a borehole penetrating a subsurface formation. The method includes: disposing a fluid tester in the borehole; extracting a sample of fluid from the subsurface formation using the fluid tester; analyzing the sample using the fluid tester to provide test data for a process used to analyze the sample; fitting an equation to the test data using a processor; calculating a ratio of a first derivative of the equation to a second derivative of the equation using the processor;

continuing to extract the sample from the subsurface formation in response to the ratio indicating a clean sample will be forthcoming; and terminating the extracting of the sample from the subsurface formation in response to the ratio indicating a clean sample will not be forthcoming.

[0005] Also disclosed is a system for performing a formation fluid test in a borehole penetrating a subsurface formation. The system includes: a fluid tester conveyable in the borehole by a carrier and configured to extract a sample of fluid from the subsurface formation and to analyze the sample to provide test data for a process used to analyze the sample and a processor. The processor is configured to: fit an equation to the test data; calculate a ratio of a first derivative of the equation to a second derivative of the equation; and determine from the ratio one of (a) a clean sample will be forthcoming and (b) a clean sample will not be forthcoming. The system also includes a user interface configured to provide indication to a user that one of the clean sample will be forthcoming and the clean sample will not be forthcoming in response to the determination by the processor.

BRIEF DESCRIPTION OF THE DRAWINGS

[0006] The following descriptions should not be considered limiting in any way. With reference to the accompanying drawings, like elements are numbered alike: [0007] FIG. 1 illustrates a fluid tester tool disposed in a borehole penetrating the earth;

[0008] FIG. 2 illustrates a graph of a ratio of a first derivative of absorbance to a second derivative of absorbance over time having a negative slope;

[0009] FIG. 3 illustrates a graph of a ratio of a first derivative of absorbance to a second derivative of absorbance over time having a zero slope;

[0010] FIG. 4 illustrates a graph of a ratio of a first derivative of absorbance to a second derivative of absorbance over time having a negative slope where the absorbance equation includes a logarithm;

[0011] FIGS. 5 A and 5B, collectively referred to as FIG. 5, illustrate aspects of an interpretation of a derivative ratio test; and

[0012] FIG. 6 is a flow chart for a method for performing a formation fluid test.

DETAILED DESCRIPTION

[0013] A detailed description of one or more embodiments of the disclosed apparatus and method are presented herein by way of exemplification and not limitation with reference to the Figures.

[0014] As noted above, drilling rig time can be very expensive. That is why it is helpful, as disclosed herein, to fit a cleanup curve to a sensor response (e.g., absorbance) in order to forecast the eventual sensor response at terminal purity and to forecast how much more pumping time would be needed to achieve various fractions (such as 95%) of terminal purity. With regard to light absorbance, by Beer’s Law, the optical absorbance of the filtrate- contaminated fluid is the volume fraction of filtrate multiplied by the filtrate spectrum plus the volume fraction of formation fluid multiplied by the formation fluid spectrum. As disclosed herein, such cleanup fitting curves may be a Power Law or an Exponential

However, for complete generality, a derivative-ratio method of this disclosure is designed to automatically handle both types of curves. Inability to fit either type of curve can also serve as an early warning that there is a seal leak, formation fracture, or some other problem that would prevent a clean sample from ever being collected no matter how long one pumped and, thereby, to avoid wasting expensive pumping time. In such a case, early in the pumping process, the tool would be unseated, moved, and reseated at another location in the well.

[0015] T his disclosure addresses the case of miscible fluid contamination. Its benefits include 1) a test of whether the fluid will ever cleanup, 2) a flag as to whether fitting with a Power Law or with an Exponential would be better, and 3) calculating the corresponding best curve fitting coefficients so that the current progress in cleanup can be extrapolated to future times to estimate how much more pumping time is needed

[0016] Methods and apparatuses are presented for obtaining a clean sample of a formation fluid for analysis using a downhole fluid tester disposed in a borehole penetrating a formation of interest. The term“clean” relates to the sample having a selected level of purity (i.e., uncontaminated or nearly uncontaminated by an unwanted fluid, such as mud filtrate). The level of purity, as a fraction of the ultimate level of purity after pumping for an infinite time, is determined by a downhole analyzer that is configured to analyze the sample using a selected method. For teaching purposes, the analysis method discussed is absorbance of light by the sample. For example, if the formation fluid is crude oil, which is dark, and a contaminate is OBM mud filtrate, which is usually more transparent than crude oil, then initially it is expected that early fluid flow would have less absorbance than later fluid flow as the later fluids are contaminated with less filtrate. That is, absorbance at some wavelength (sample darkness) would rise and level off over time. In some cases, when the formation crude oil is very light, the situation is reversed so that the absorbance would fall and level off over time. Other analysis methods could also be monitored over time (or over volume of fluid pumped) such as the fluid’s refractive index, sound speed (or its inverse,“slowness”), density, or viscosity.

[0017] As absorbance data is obtained over time, a rolling set of small, piecewise quadratic fits to the data is performed to provide a smoothed version of the data. A ratio of a first derivative to a second derivative of that smoothed data with respect to time is then calculated. The plot of the ratio is then used to determine whether further sampling will eventually lead to obtaining a clean sample or whether further sampling will not lead to eventually obtaining a clean sample. If the plot of the ratio indicates that a clean sample will be obtained, then operators will know that their time is not being wasted by waiting for the clean sample. An offshore rig can cost one or two million dollars per day so pumping unnecessarily for ten hours would waste $400 to $800 thousand dollars, which illustrates the commercial importance of having an early test of whether the sample will or will not eventually clean up. If the plot of the ratio indicates that a clean sample will not be obtained, then that can indicate a problem such as a fractured formation, a leaking packer, or a leaking probe seal in the fluid tester as non-limiting examples. In one or more embodiments when a problem is detected, the fluid tester can be moved to a new location in the borehole with fluid testing being repeated at the new location. Alternatively, the fluid tester can be retrieved from the borehole and inspected. [0018] FIG. 1 illustrates a cross-sectional view of an embodiment of a downhole fluid tester tool 10 disposed in a borehole 2 penetrating the earth 3, which includes an earth formation 4. The fluid tester tool 10 is conveyed through the borehole 2 by a carrier 5, which can be an armored wireline as illustrated in an embodiment referred to as wireline logging. Alternatively, the carrier 5 can be a drill string or coiled tubing in an embodiment referred to as logging- while-drilling (LWD) or measurement-while-drilling (MWD). A rig 11 is configured to convey the fluid tester tool 10 in the borehole 2. The carrier 5 may include telemetry 6 for transmitting data to a surface receiver 7, such as a computer processing system 17. In one or more embodiments, the telemetry 6 is a communication line, pulsed- mud, or wired drill pipe. Downhole electronics 16 may perform data processing functions, control operation of the fluid tester tool 10, and/or act as an interface with the telemetry 6.

[0019] The downhole fluid tester 10 includes a probe 8 that is configured to extend and seal to a wall of the borehole 2. The probe 8 may include a pliable region that interfaces with and conforms to the borehole wall to provide a seal so that surrounding fluid does not contaminate the sample. In one or more embodiments, the probe 8 is a conventional probe having a single opening or a concentric probe having one or more openings surrounding a central opening. The downhole fluid tester 10 may include a brace 15 that is configured to extend in order to hold the tester 10 in place while the probe 8 seals to the borehole wall. The downhole fluid tester 10 may also include a pump 9 configured to pump and therefore extract a sample of formation fluid via the probe 8. The sample is provided to an analyzer 12 that is configured to measure a characteristic of the sample that is indicative of an amount of contamination in the sample. In one or more embodiments, analyzer 12 measures light absorbance by the sample and provides absorbance data values to the surface receiver 7. In one or more embodiments, a light source 13 illuminates the sample and a photodetector 14 measures an amount of light that is not absorbed by the sample. In this embodiment, the computer processing system 17 is configured to use the absorbance data values to calculate the ratio of the first and second derivatives of an equation fit to the data values over time. Using the calculated ratio, the computer processing system 17 can provide output to a user where the output indicates if the sampling over time will provide a clean sample or not. In addition, the computer processing system 17 can provide an amount of time the pump 9 must conti nue pumping in order to obtain a sample with a desired or selected amount of purity.

[0020] Taking the ratio of the first to second derivative of the piecewise smoothed fluid sampling cleanup trend can be a useful test that can be displayed to a user in real time while pumping fluid samples during formation testing. For conventional probe sampling, this ratio is expected to be a straight line of negative slope between zero and minus one (Power Law fit). For concentric probe sampling, this ratio is expected to be a horizontal line

(Exponential fit). If there is a seal leak, formation fracture, or some other problem that will prevent the user from ever collecting a clean sample, then this ratio will either not be a straight line or it will be a straight line with a positive slope or a straight line with negative slope that is more negative than minus one. Therefore, this test can serve as an early warning to the field engineer to stop pumping and to reset a packer elsewhere. This test can be useful when performing downhole fluid sampling, where the progress of sample cleanup is monitored while pumping by using a downhole fluid analyzer and fitting a curve to its data and then extrapolating the trend in order to estimate the percentage of the ultimate endpoint value that one has obtained so far. Also, the time remaining to get to the clean sample can be estimated.

[0021] X imits for the slope of the line can be set so that line can be characterized as being either "horizontal" or "negative sloping.” In addition, limits can be set for the straightness of the curve of the ratio to iden tify it as being a line or not. For absorbance data (A) versus time in seconds, a slope that is between -0.1 and +0.1 can be considered horizontal in one or more embodiments. This guideline can be revised for the case of absorbance versus volume by rescaling by the normal flow rate, which can be 10-15 cc/sec for the standard probe and 0.1-0.2 cc/sec (seldom above 3 to 4 cc/sec) for the central line of the concentric probe.

[0022] Next, Asymptotic Power Law fit with respect to the ratio of the first (A’) and second (A”) derivatives is discussed. The Asymptotic Power Law: Ratio, A7A”, varies linearly with t (where“t” in this disclosure may be used to represent time) with a slope of -1 / (p+1) so that p = - 1 - 1/slope. See FIG. 2. By the process below, Ao, m, to, and p can be solved for. Here, p must be > 0 so that the t p term will get smaller with increasing time. If the A7A” slope = -1, then p = 0 and it is not a Power Law for there is no longer be any dependence on time. For p < 0, the t p term gets larger with time so it is not an asymptotic curve. It is as an Asymptotic Pow ? er fit only when the A7A” slope is between zero and minus one so that p > 0.

[0023] The ratio rises and levels off to Ao when m < 0, while the ratio falls and levels off to Ao when m > 0

[0024] If A(t) = : A0 + m (t --- to) p , then. A’ = dA/dt = -p m (t - to)-* 5 1 , A” = : d 2 A/dt 2 = -p (-p-1) m (t - to) p 2 , and A7 A” = (dA/dt) / (d 2 A/dt 2 ) = - (t - to) / (p+1) = [-t / (p+1)] + [to /

(p+1)]. [0025] So regressing A7 A” vs t provides Slope = [-1 / (p+l)] and Intercept = [to / (p+1)]. Thus, p = - (1 + 1/Slope) and to ::: - (Intercept / Slope)

[0026] Using to and p, regress A(t) vs (t - to) p whose new Slope=m and Intercept = Ao.

[0027] Thus, t— » 0 ==> A(t)— > Ao - m to p ; t— > ¥ ==> A(t)— > Ao.

[0028] FracTermPurity = |(A CUrrent - A 0 + m t 0 p ) / (m to p )| where FracTermPurity represents Fractional Terminal Purity or the fraction of the way to terminal or ultimate purity at infinite pumping time.

[0029] Assuming A(t) = 0 at t = 0, then Ao = m to p and FracTermPurity = |Ac Urre / A 0 |.

[0030] Next, Exponential Power Law fit with respect to the ratio of the first (A’) and second (A”) derivatives is discussed. The Exponential Law Fit: Ratio, A7A”, is a constant, -t, so slope is zero. See FIG. 3. By the process below', Ao, A 2 , and x can be solved for. It is not necessary to solve separate}}’ for Ai or to, because A 2 combines the effects of both, which is enough.

[0031 ] If A(t) = Ao + Ai e (t t0) ' t = Ao + A 2 e * ! t where A 2 = Ai e 10 ' then, A’

[0032] Ratio, A7 A” = (dA/dt) / (d 2 A/dt 2 ) = -x = Intercept regardless of to or sign of A 2.

[0033] Note:

[0034] When time, t ::: 0, then A(t) = Ao + A 2. At infinite time, A(t) ::: A 0 .

Fraction_of_Terminal_Purity = (Ao + A 2 - Acutrent)/ A 2.

[0035] If data rises and levels off, then A 0 is positive but Ai and A 2 will both be negative. For rising and leveling off, A 2 = Ai e t0 / c < 0.

[0036] The curve fit starts out at Ao + A2, which is below Ao, and ultimately rises to Ao with increasing time, as an ever- smaller magnitude, |A 2 e _t/T |, gets subtracted from Ao. Using t from above, regress A(t) vs e i ! x to get Intercept = A 0 > 0 and Slope== A 2 < 0.

[0037] If Aά' ϊά' falls and levels off, then Ao is positive and Ai and A 2 will both be positive. F or falling and leveling off, A 2 =Ai e to / -c > 0. The curve fit starts out at Ao + A 2 , which is above Ao, and ultimately falls to Ao with increasing time, as an ever-smaller magnitude, jA 2 e i ' t |, gets added to Ao. Using x from above, regress A(t) vs e i / t ίo get Intercept = Ao > 0 and Slope = A 2 > 0. [0038] Next, Semi-log in time fit with respect to the ratio of the first (A’) and second (A”) derivatives is discussed. Ratio, A’/A”, varies linearly with t, with Slope= -1 ,

Intercept= to. See FIG. 4. This is a non-asymptotic fit, which indicates that cleanup will never be achieved.

[0039] If A(t) = Ao + m In(t-to), then A’ = dA/dt = m (t-to) 1 and A” = d 2 A/dt 2 = - m (t-to) 2 . Thus, Ratio, A7 A” = - (t-to) = - 1 + to.

[0040] Here A7A” versus t has a Slope = -1 and an Intercept = to.

[0041] This fit is not an asymptotic Power Law fit for which p = - (1+1/Slope) for then, p = 0 if Slope = -1 but p must be positive for an asymptotic Power Law f p

[0042] FIG. 5 A illustrates aspects of Criteria for Straight Line Tests of Derivative Ratio, A7A”, vs Time. When the fluid property data are fit by an asymptotic Power Law (-1 < A7A’’ < 0) or by an Exponential (A7A’’ « 0), then it is appropriate to continue pumping to some desired fraction of terminal purity. When the fluid property data are fit by a non- asymptotic equation, then it is appropriate to terminate extracting sample from the subsurface formation because a clean sample will not be forthcoming. FIG. 5B illustrates aspects of a derivation of fitting coefficients when the derivative ratio, A7A”, is linear over time and A7A” « 0 (Exponential) or -1 < A7A” < 0 (asymptotic Power Law).

[0043] FIG. 6 is a flow chart for a method 60 for performing a formation fluid test in a borehole penetrating a subsurface formation. Block 61 calls for disposing a fluid tester in the borehole. Block 62 calls for extracting a sample of fluid from the subsurface formation using the fluid tester. Block 63 calls for analyzing the sample using the fluid tester to provide test data for a process used to analyze the sample. Non-limiting embodiments of the process include measuring at least one of the fluid sample’ s light absorbance, refractive index, sound speed (or its inverse,“slowness”), density, and/or viscosity. Block 64 calls for fitting an equation to the test data using a processor. In general, the test data may be a function of time (t) and, thus, the equation is also a function of time. Block 65 calls for calculating a ratio of a first derivative of the equation to a second derivative of the equation. Block 66 calls for continuing to extract the sample from the subsurface formation in response to the ratio indicating a clean sample will be forthcoming. Block 67 calls for terminating the extracting of the sample from the subsurface formation in response to the ratio indicating a clean sample will not be forthcoming.

[0044] The method 60 may also include relocating the formation tester to a new location and performing the formation fluid test at the new location, moving a packer, or inspecting the fluid tester in response to the ratio indicating a clean sample will not be forthcoming.

[0045] The method 60 may also include estimating an amount of time to continue extracting the sample in order to obtain a clean sample by calculating curve fitting

coefficients for the equation. The clean sample can be at terminal or asymptotic purity or a desired fraction of the terminal or asymptotic purity. In one or more embodiments, the equation is a function of time or has a time component. Hence, by inputting a desired fraction of terminal or asymptotic purity into the equation, the time to reach that desired fraction can be solved for.

[0046] Some novel features of the disclosure include informing a field engineer when to give up on a particular location, to stop pumping, and/or to reset the packer at another location because the sample is never going to clean up. Also, the disclosure can indicate which of the two expected trends, a power law or an exponential curve, the observed cleanup is following.

[0047] Set forth below are some embodiments of the foregoing disclosure:

[0048] Embodiment 1 . A method for performing a formation fluid test in a borehole penetrating a subsurface formation, the method comprising: disposing a fluid tester in the borehole; extracting a sample of fluid from the subsurface formation using the fluid tester; analyzing the sample using the fluid tester to provide test data for a process used to analyze the sampl e; fitting an equation to the test data using a processor; calculating a ratio of a first derivative of the equation to a second derivative of the equation using the processor;

continuing to extract the sample from the subsurface formation in response to the ratio indicating a clean sample will be forthcoming; and terminating the extracting of the sample from the subsurface formation in response to the ratio indicating a clean sample will not be forthcoming.

[0049] Embodiment 2. The method according to any prior embodiment, wherein the analyzing comprises measuring at least one of the sample’s light absorbance, refractive index, sound speed or its inverse slowness, density, and viscosity.

[0050] Embodiment 3. The method according to any prior embodiment, wherein the equation is developed by fitting a series of piecewise fits of a quadratic equation to the test data.

[0051] Embodiment 4. The method according to any prior embodiment, wherein the sample is extracted using a probe having a single opening and the ratio being characterized within a specified limit as having a slope greater than minus one and less than or equal to zero is indicative that a clean sample will be forthcoming.

[0052] Embodiment 5. The method according to any prior embodiment, wherein the ratio comprises an asymptotic power law tit to the test data.

[0053] Embodiment 6. The method according to any prior embodiment, wherein the sample is extracted using a concentric probe having a first opening to extract the sample and a second opening surrounding the first opening and the ratio being characterized within a specified limit as having a horizontal line is indicative that a clean sample will be

forthcoming.

[0054] Embodiment 7. The method according to any prior embodiment, wherein the ratio comprises an exponential power law 7 fit.

[0055] Embodiment 8. The method according to any prior embodiment, further comprising resetting a packer in the borehole to another location in the borehole and extracting another sample at another location in the borehole.

[0056] Embodiment 9. The method according to any prior embodiment, further comprising estimating an amount of time to continue extracting the sample in order to obtain a clean sample by calculating curye fitting coefficients for the equation.

[0057] Embodiment 10. A system for performing a formation fluid test in a borehole penetrating a subsurface formation, the system comprising: a fluid tester conveyable in the borehole by a carrier and configured to extract a sample of fluid from the subsurface formation and to analyze the sample to provide test data for a process used to analyze the sample; a processor configured to: fit an equation to the test data, calculate a ratio of a first derivative of the equation to a second derivative of the equation; and determine from the ratio one of (a) a clean sample will be forthcoming and (b) a clean sample will not be forthcoming; a user interface configured to provide indication to a user that one of the clean sample will be forthcoming and the clean sample will not be forthcoming in response to the determination by the processor

[0058] Embodiment 11. The system according to any prior embodiment, further comprising a probe having a single opening configured to extract the sample and the processor is further configured to identify the ratio as being characterized within a specified limit as having a slope between and inclusive of zero and minus one in order to indicate that a clean sample will be forthcoming.

[0059] Embodiment 12. The system according to any prior embodiment, further comprising a concentric probe having a first opening to extract the sample and a second opening surrounding the first opening and the processor is further configured to identify the ratio as being characterized within a specified limit as having a horizontal line to indicate that a clean sample will be forthcoming.

[0060] Embodiment 13. The system according to any prior embodiment, wherein the fluid tester is configured to measure at least one of the sample’s light absorbance, refractive index, sound speed or its inverse slowness, density, and/or viscosity

[0061] Embodiment 14. The system according to any prior embodiment, wherein the processor is further configured to fit a series of piecewise fits of a quadratic equation to the test data in order to fit the equation to the test data.

[0062] Embodiment 15. The system according to any prior embodiment, wherein the processor is further configured to estimate an amount of time to continue extracting the sample in order to obtain a clean sample by calculating curve fitting coefficients for the equation.

[0063] Embodiment 16. The system according to any prior embodiment, wherein the carrier comprises one of a wireline, a slickline, a drill string, and coiled tubing.

[0064] In support of the teachings herein, various analysis components may be used, including a digital and/or an analog system. For example, the fluid tester 10, downhole electronics 16, and/or the surface computer processing system 17 may include digital and/or analog systems. The system may have components such as a processor, storage media, memory, input, output, communications link (wired, wireless, optical or other), user interfaces (e.g., a display or printer), software programs, signal processors (digital or analog) and other such components (such as resistors, capacitors, inductors and others) to provide for operation and analyses of the apparatus and methods disclosed herein in any of several manners well-appreciated in the art. It is considered that these teachings may be, but need not be, implemented in conjunction with a set of computer executable instructions stored on a non-transitory computer readable medium, including memory (ROMs, RAMs), optical (CD- ROMs), or magnetic (disks, hard drives), or any other type that when executed causes a computer to implement the method of the present invention. These instructions may provide for equipment operation, control, data collection and analysis and other functions deemed relevant by a system designer, owner, user or other such personnel, in addition to the functions described in this disclosure.

[0065] Further, various other components may be included and called upon for providing aspects of the teachings herein. For example, a power supply (e.g., at least one of a generator, a remote supply and a battery, magnet, electromagnet, sensor, electrode, transmitter, receiver, transceiver, antenna, controller, optical unit, electrical unit or electromechanical unit may be included in support of the various aspects discussed herein or in support of other functions beyond this disclosure.

[0066] The term“carrier” as used herein means any device, device component, combination of devices, media and/or member that may be used to convey, house, support or otherwise facilitate the use of another device, device component, combination of devices, media and/or member. Other exemplary non-limiting carriers include drill strings of the coiled tube type, of the jointed pipe type and any combination or portion thereof. Other carrier examples include casing pipes, wirelines, wireline sondes, slickline sondes, drop shots, bottom-hole-assemblies, drill string inserts, modules, internal housings and substrate portions thereof

[0067] Elements of the embodiments have been introduced with either the articles“a” or“an.” The articles are intended to mean that there are one or more of the elements. The terms“including” and“having” and the like are intended to be inclusive such that there may be additional elements other than the elements listed. The conjunction“or” when used with a list of at least two terms is intended to mean any term or combination of terms. The term “configured” relates one or more structural limitations of a device that are required for the device to perform the function or operation for which the device is configured.

[0068] The flow diagram depicted herein is just an example. There may be many variations to this diagram or the steps (or operations) described therein without departing from the spirit of the invention. For instance, the steps may be performed in a differing order, or steps may be added, deleted or modified. All of these variations are considered a part of the claimed invention.

[0069] The disclosure illustratively disclosed herein may be practiced in the absence of any element which is not specifically disclosed herein.

[0070] While one or more embodiments have been shown and described,

modifications and substi tutions may be made thereto without departing from the scope of the invention. Accordingly, it is to be understood that the present invention has been described by way of illustrations and not limitation.

[0071] It will be recognized that the various components or technologies may provide certain necessary or beneficial functionality or features. Accordingly, these functions and features as may be needed in support of the appended claims and variations thereof, are recognized as being inherently included as a part of the teachings herein and a part of the invention disclosed. [0072] While the invention has been described with reference to exemplary embodiments, it will be understood that various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications will be appreciated to adapt a particular instrument, situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed as the best mode contemplated for earning out this invention, but that the invention will include all embodiments failing within the scope of the claims.