Systems and methods for downhole fluid compatibility

Methods for performing downhole fluid compatibility tests include obtaining an downhole fluid sample, mixing it with a test fluid, and detecting a reaction between the fluids. Tools for performing downhole fluid compatibility tests include a plurality of fluid chambers, a reversible pump and one or more sensors capable of detecting a reaction between the fluids.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates broadly to oil and gas exploration or production. More particularly, this invention relates to systems and methods for testing and analyzing the compatibility of a reservoir with treating fluids, wellbore fluids, and the compatibility of these fluids with each other.

2. State of the Art

It is well known in the arts of oil and gas exploration and production that it can be advantageous to introduce certain fluids into the well bore and/or the formation. For example, during drilling, fluid is typically introduced into the annulus between the drill string and the wellbore. During exploration, fluid may be injected into the formation in order to obtain information related to the formation. During production, certain additives may be injected into the formation to enhance production.

Before introducing any significant quantity of fluid into the wellbore or the formation, it is desirable to determine whether the fluid will create an undesirable reaction. Thus, one or more fluid compatibility tests are preferably performed prior thereto. The testing process may include checks for compatibility of treating fluids and/or wellbore fluids with a reservoir formation and reservoir fluids. In general, fluids are compatible if their mixture does not adversely affect the permeability of the formation, or cause the development of any undesirable products (such as asphaltenes, waxes, or scale) in the wellbore, production tubing, surface facilities, and flowlines.

Where treating fluids are to be utilized, the treating fluid should remove existing damage (typically caused during drilling) without creating additional damage such as precipitates or emulsions through interactions with the formation rock or fluids. In extreme cases, it is possible that a seemingly benign fluid can create significant reactions that may permanently damage the permeability of the reservoir.

Presently, fluid compatibility tests are performed in a laboratory using fluids obtained from a wellbore and/or formation. In some cases, the fluids are obtained using a borehole tool which samples formation fluids as is well known in the art. A tool is lowered into a borehole which traverses a formation and is then brought into contact with the formation. A formation fluid sample is obtained by reducing the pressure in the borehole tool below the formation pressure. The tool with the fluid sample is then brought to the surface. The fluid sample is retrieved and sent to a laboratory for testing. Other methods for obtaining a fluid sample are known in the art, and include retrieving a sample from a producing well, during well testing or during well production exploitation.

The previously incorporated applications disclose downhole tools for formation testing via injection of non-formation (test) fluids into the formation and thereafter sampling the formation fluids. The tools include various sensors and circuits for monitoring and analyzing downhole formation fluid characteristics. However, it is desirable that, before injecting anything into the formation, compatibility tests be performed. It would be desirable if fluid compatibility tests could be performed downhole either contemporaneous with or prior to the testing which requires injection of non-formation fluids into the formation.

SUMMARY OF THE INVENTION

It is therefore an object of this disclosure to provide systems and methods for downhole fluid compatibility testing and analysis.

It is another object of this disclosure to provide systems for delivering test fluids downhole.

It is a further object of this disclosure to provide systems for collecting fluid samples downhole.

It is another object of this disclosure to provide systems for collecting test fluids downhole.

It is also an object of this disclosure to provide downhole systems for selectively mixing a test fluid with a fluid sample.

It is another object of this disclosure to provide systems for injecting test fluids into the formation.

It is an additional object of this disclosure to provide downhole systems for detecting and analyzing reactions that take place in the mixture of test fluid and fluid sample.

It is still another object of this disclosure to provide downhole systems for determining the compatibility of a test fluid with a downhole fluid sample based on the detected and analyzed reaction of their mixture.

It is yet another object of this disclosure to provide methods for determining downhole the compatibility of test fluids with formation fluids or drilling fluids.

In accord with these objects, which will be discussed in detail below, according to an exemplary embodiment, the disclosed systems include a tool having a plurality of chambers for storing test fluids and a mixing chamber. The chambers are connected to flowlines, a pump and a plurality of valves for obtaining downhole fluid samples and selectively delivering two or more fluids into the mixing chamber. The mixing chamber may include some mixing means, e.g. a spinner. The mixing chamber is provided with one or more sensors (inside or outside the chamber) for detecting the occurrence of a reaction in the mixing chamber. A circuit or circuits coupled to the one or more sensors are used in interpreting the output of the sensor(s) and making a determination of fluid compatibility. In some cases, the circuits are coupled to telemetry equipment for conveying the results of the test to surface equipment and for receiving instructions regarding sampling and testing. In other cases, the sampling and testing process is controlled by a downhole controller using executing software instructions stored on a memory chip. Generally, if no reaction is detected, the fluids are determined to be compatible. If a reaction is detected, then the consequences of this reaction are evaluated with respect to the intended use of the test fluid. For example, on the one hand, asphaltene is typically encountered in medium to heavy oil reservoirs. It is known that concentration increases with decreasing API gravity (increasing density) and increasing viscosity of the reservoir oil. On the other hand, carbon dioxide injection can be used to maintain the pore pressure in a reservoir despite depletion of the reservoir through production. However, carbon dioxide injection can cause the precipitation of asphaltene which is often detrimental to production because it may reduce the permeability of the reservoir. Thus, if carbon dioxide test fluid produces a detectable precipitation of asphaltene, it will be considered incompatible with the reservoir fluids. The asphaltene precipitation can be detected with an optical scattering detector of the type described in the art, or any other method.

According to an alternate embodiment, downhole samples are obtained by capturing a core and processing it in the tool to extract a formation fluid sample. In another alternate embodiment, tests are conducted in-situ by injecting a test fluid into the formation and providing one or more sensors which are specifically located so that they are capable of detecting a reaction occurring at the injection site. According to another alternate embodiment, a test fluid is injected into the formation, allowed to mix with formation fluid and the mixture is extracted from the formation into the tool where the reaction is detected and analyzed.

Combined test fluid and fluid sample collected at a first depth can be injected back into the reservoir at a second depth. Also, the fluid injected at the first depth and then recovered at a first depth can be treated and/or purified for re-injection at a second depth. The first and the second depth may be the same or different. Injection rate and injection pressure may be sensed and analyzed.

According to other alternate embodiments, the test fluids may be placed in chambers before the tool is delivered downhole; the test fluids can be obtained downhole from the wellbore (e.g. drilling mud or completion fluid); the test fluid can be supplied as needed from the surface (e.g., via coiled tubing); the test fluid can be generated downhole (e.g., heating water to obtain steam as a test fluid or reacting two or more chemicals to generate a desired fluid); the test fluid may be obtained in-situ from another formation zone during the same or an earlier logging run.

Detectable reactions between test fluids and fluid samples include: the formation of solid particles (e.g. asphaltene, waxes, or precipitates), the formation of emulsions, a change in viscosity of the fluid sample, the generation of a gas, the generation of heat, or the change of any other thermophysical property of the fluid sample (e.g. density, phase envelope, etc.).

The reaction between the test fluid and the fluid sample is detected and measured over time using one or more sensors. The sensors may be located inside and/or outside (e.g., an X-ray sensor or gamma-ray sensor) the mixing chamber. They may be located along flowlines in the tool. In cases where the reaction is detected in the formation, the sensors may be located on or near the exterior of the tool body.

Useful sensors include sensors that can measure, among other things, one or more of density, pressure, temperature, viscosity, composition, phase boundary, resistivity, dielectric properties, nuclear magnetic resonance, neutron scattering, gas or liquid chromatography, optical spectroscopy, optical scattering, optical image analysis, scattering of acoustic energy, neutron thermal decay or neutron scattering, conductance, capacitance, carbon/oxygen content, hydraulic fracture growth or propagation, radioactive and non-radioactive markers, bacterial activity, streaming potential generated during injection, H2S, trace elements, and heavy metals.

The downhole tool of this disclosure can be deployed with a wireline, a tractor, or coiled tubing in an open or cased hole. Alternatively, it can be deployed as part of a logging while drilling (LWD) tester that can be incorporated in a drill string and used while drilling.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

Turning now toFIG. 1, the basics of a reservoir exploration (borehole logging) system are shown. A borehole tool or sonde10is shown suspended in a borehole14of a formation11by a cable12, although it could be located at the end of coil tubing, coupled to a drill pipe, or deployed using any other means used in the industry for deploying exploration tools. The wall of the borehole14is usually lined with a mudcake11athat may assist testing of the reservoir formation with the tool or sonde10. Cable12not only physically supports the borehole tool10, but typically, signals are sent via the cable12from the borehole tool10to surface located equipment5. Electrical power may be provided to the tool via the cable12as well. The surface located equipment5may include a signal processor, a computer, dedicated circuitry, or the like which is well known in the art. Typically, the equipment/signal processor5takes the information sent uphole by the borehole logging system10, processes the information, and generates a suitable record such as a display log18or the like. Suitably, the information may also be displayed on a screen and recorded on a data storage medium or the like.

A first embodiment of a system or tool in accordance with this disclosure is illustrated schematically inFIG. 2A. The system or tool100includes a plurality of test fluid chambers, e.g. chambers102,104,106, a reversible pump108, a mixing chamber110, and a probe or packer112. The chambers102,104,106,110and the probe or packer112are selectively coupled to the pump108via conduits102a,104a,106a,110a,112aand valves102b,104b,106b,110b,112b. The pump108is further selectively coupled to the wellbore via conduit112cand valve112d. Optionally, one or more sample chambers114(one shown) is/are selectively coupled to the pump108via one or more conduits114a(one shown) and one or more valves114b(one shown). According to this embodiment one or more sensors116are associated with the mixing chamber110and the mixing chamber110is provided with a mixing device such as a spinner110c. The one or more sensors116may be inside the mixing chamber110and/or simply near it depending on what type of sensors are used. For example, pressure and temperature sensors are preferably located inside the mixing chamber or at least in fluid communication with the mixing chamber. X-ray and sonic sensors can be located outside the chamber. If the chamber is clear or is provided with windows, optical spectroscopy sensors can be located outside the chamber. The sensors116are preferably coupled to a circuit or circuits118which process, pre-process or otherwise analyze the sensor outputs. The processed sensor output is preferably conveyed to surface equipment via a telemetry unit120coupled to the analysis circuits118. When possible, the telemetry120is bidirectional and receives commands from the surface equipment to operate the valves, the pump, and the injector/extractor. Though not shown in the Figures, it will be appreciated that the remotely controlled components are coupled to the telemetry. It should be appreciated that the tool could operate autonomously using a downhole controller executing software instructions.

In one example, the chambers102,104,106,110and114if applicable, are equipped with a sliding piston capable of reciprocating in the chamber. The piston may define one side of the chamber in fluid communication with the wellbore. Thus, fluids located on the other side of the chambers are maintained at wellbore pressure.

In one example, the probe or packer112is an extendable probe. Probe112may be selectively recessed below the outer surface of the tool, or extended into sealing engagement with the wellbore wall. In the extended position, the extendable probe112establishes a fluid communication between the tool and the formation. The extendable probe112may alternatively be in fluid communication with the wellbore in the retracted position. Alternatively, the probe or packer112may be an inflatable straddle packer, and provide a function similar but not identical to an extendable probe.

In another example, the probe or packer112isolates a guard zone and a sample zone on the borehole wall (11inFIG. 1). Usually, the guard zone surrounds the sample zone. Fluid drawn from the guard zone by a pump (not shown) may be disposed in the wellbore (not shown). Fluid drawn simultaneously from the sample zone by the pump108may be used for the compatibility testing. This arrangement eventually provides a formation fluid substantially free of mud filtrate or other wellbore fluid. In this arrangement, the compatibility testing performed on the fluid drawn from the sample zone may be essentially identical to the compatibility testing performed on pristine formation fluid. In yet another example where the wellbore is cased with a casing, the probe or packer includes a mechanism for perforating the casing, such as a drilling mechanism, and a mechanism for plugging the casing after testing.

In another example, the pressure and/or the temperature in the mixing chamber110may be adjusted and the sensors116may detect a reaction occurring in the mixing chamber at various pressures and/or temperatures.

FIG. 2Billustrates a tool100′ in accordance with this disclosure. The components of the tool100′ are nearly identical to those of the tool100. The similar components have the same reference numerals. The difference in this embodiment is that the sensors116′ are located in or adjacent to a flowline such as the conduit110awhich couples the mixing chamber110with the pump108. If desired, sensors can be provided at both locations, i.e., in or adjacent the flowline between the pump and the mixing chamber as well as in or adjacent the mixing chamber.

In the arrangement ofFIG. 2B, the sensors116′ may be used to perform measurements on fluids flowing from the probe or packer112prior to mixing with test fluids in the mixing chamber110. For example, the sensors116′ may be used to perform measurements on wellbore or formation fluids. The sensors116′ may also be used to perform measurements on fluids flowing from test fluid chambers102,104or106prior to mixing with another fluid in the mixing chamber110.

The sensors116′ may further be used to perform measurements on fluid mixtures flowing from the mixing chamber110. In one example, a sampled formation fluid and a test fluid react with each other in the mixing chamber and the product of the reaction is a solid or a gas. The produced solid or gas may segregate by gravity from other materials in the mixing chamber. The conduit110ais connected for example to the bottom of the mixing chamber110. When materials are flowed from the mixing chamber through the sensor116′ and the conduit110ais connected to the bottom of the mixing chamber110, the sensor116′ perform measurements on materials with decreasing densities as the mixing chamber110is emptied, thus facilitating in some cases the detection of the reaction that occurred in the mixing chamber110.

FIG. 3illustrates a second embodiment of a tool200in accordance with this disclosure. The components of the tool200are nearly identical to those of the tool100. The similar components have similar reference numerals increased by one hundred. The difference in this embodiment is that the mixing of one test fluid flowing from one of the chambers202,204or206and the fluid flowing from the probe or extendable packer212occurs in an inline mixer230. The inline mixer230may be of any types know in the art, capable of mixing fluids flowing from flow lines210aand210b. The mixture may flow then through conduit212cand be dumped into the borehole. The mixture may alternatively flow through conduit214aand be captured in a sample chamber214.

In the arrangement ofFIG. 3, the proportion of the test fluid and the sampled fluid in the mixture may be controlled by the ratio of the pumping rates of pumps208and208′. This proportion can be modified according to the objectives of the compatibility test. The sensor216is capable of performing a measurement on the mixture having various proportions of sampled fluid and test fluid. As shown, the sensor216is further capable of measuring the fluid coming out of mixer230. Thus, the information provided by the sensor216may be used to advantage to decide when to collect a sample in the chamber214.

In one example, the function of pump208may be combined with the function of chambers202,204and/or206. For example, a pressure providing apparatus such as a pump (or a valve coupled to the borehole) could be provided in conjunction with each chamber to controllably force fluid out of the chamber. Alternatively, the fluids in the chambers202,204,206could be kept at high pressure and controllably released for mixture simply by opening a respective associated valve202b,204b,206b.

FIG. 4illustrates a third embodiment of a tool300in accordance with this disclosure. The components of the tool300are nearly identical to those of the tool100. The similar components have similar reference numerals increased by two hundred. The difference in this embodiment is that the sensors316are located to sense reactions occurring in the formation as described in more detail below with reference toFIG. 9. Since the reactions will take place in the formation, no mixing chamber is required for mixing the test fluid with a formation fluid. It should be appreciated nevertheless that a mixing chamber may be provided if the test requires injecting a mixture of test fluids that for any reason, is not mixed before the tool is run in the hole.

In the arrangement ofFIG. 4, the reaction in the formation is detected by the sensors316and analyzed by the circuits318. The mixture of test fluid and formation fluid may further be extracted from the formation by the probe or packer312and captured in a chamber314if desired.

The sensors316may be located on the body of tool300or on the probe or packer312. These sensors measure characteristics of the mixture of formation fluid and test fluid that is still in the formation. Alternatively or additionally these sensors measure characteristics of the formation rock in the presence of test fluid. Thus the sensors316may be used to determine the compatibility of the test fluids carried downhole by the tool300with the formation fluid and/or the formation rock.

Some examples of sensors that could be used are sensors that measure multi-depth resistivity properties, dielectric properties, nuclear magnetic resonance (NMR) properties, neutron spectroscopic properties such as thermal decay and carbon/oxygen ratio.

Alternatively or additionally, remote sensors may be deployed in the formation, as shown for example in U.S. Pat. No. 6,766,854, assigned to the assignee of the present invention, and the complete disclosure of which is incorporated herein by reference. Remote sensors may sense a fluid or a formation property. The remote sensors preferably communicate the sensed property to the downhole tool for analysis.

Although only one probe or packer312is shown inFIG. 4, a first probe or packer312may be used for injecting test fluids and a second probe or packer (not shown) may be used for extracting fluid or fluid mixtures from the formation. The first probe or packer may be similar to or different from the shape, size or type of the second probe or packer. Each probe or packer may have its own dedicated pump. The probe/packer used for extracting fluid and the probe/packer used for injecting test fluid may be disposed with respect to each other in various ways, including having the injection probe/packer surrounding the extracting probe/packer.

FIG. 5illustrates a fourth embodiment of a tool400in accordance with this disclosure. The components of the tool400are nearly identical to those of the tool100. The similar components have similar reference numerals increased by three hundred. The difference in this embodiment is that the probe/packer112(FIG. 2) has been replaced with a core capture and process apparatus412for obtaining formation samples as described in more detail below with reference toFIG. 12.

FIG. 6illustrates a fifth embodiment of a tool500in accordance with this disclosure. The components of the tool500are similar to those of the tool100. The similar components have similar reference numerals increased by four hundred. The difference in this embodiment is that the test fluid chambers and their associated valves and conduits have been replaced with a conduit502aand a valve502bwhich are arranged to receive test fluid from the surface while the tool500is downhole as described in more detail below with reference toFIG. 10.

FIG. 7is a flow chart of a first embodiment of a method in accordance with this disclosure which can be performed with the tools100,100′, or400. Referring now toFIGS. 2A and 7, the method begins at600by filling the test fluid chambers102,104,106of tool100. The tool100is then lowered downhole at602. An option is selected at604to extract formation fluid, borehole fluid or drilling fluid if applicable. If formation fluid is to be extracted at606, the probe or packer112is extended into contact with the formation. If drilling fluid is to be extracted at608, the probe or packer112is not extended beyond the drilling fluid. In either case, the fluid is extracted by opening the valves112band operating the pump108. When desired, the valve110bmay be opened. This causes the extracted fluid to flow to the mixing chamber110at610. When sufficient sample fluid has filled the mixing chamber, the pump is stopped and the valve112bis closed. Test fluid is sent to the mixing chamber at612by opening one or more of the valves102b,104b,106band operating the pump. When sufficient test fluid has been sent to the mixing chamber110, the pump is stopped and all of the valves are closed. The fluids are mixed at614by operating the spinner110c. A reaction of the fluids with each other is detected at616using sensors116. The sensor output is analyzed at618using the analysis circuits118. The results of analysis are transmitted to the surface at620using the telemetry equipment120. Preferably, the mixing chamber110is emptied and flushed at622. The mixing chamber can be emptied by opening valve110b, and one of valves112b,114bor112dand operating the pump108to transfer the contents to back into the formation, into the container114or into the wellbore. The contents of mixing chamber112may be alternatively transferred into one of the preferably empty chambers102,104,106if desired. If one of the test fluid chambers102,104,106is filled with a non-reactive fluid, it can be used to flush the mixing chamber before performing the next test.

FIG. 8is a flow chart of a second embodiment of a method in accordance with this disclosure which can be performed with the tools100,100′, or400. Referring now toFIGS. 2A and 8, the method begins at700by lowering the tool downhole with at least one test fluid chamber102,104,106empty, e.g.,102. A test fluid is extracted downhole at702by opening the valves112band114b, and operating the pump108to collect downhole fluid into the sample chamber114. The test fluid may then be transferred into the chamber102at704by closing valve112b, opening valve102band reversing the pump108. The fluid collected might be drilling fluid or formation fluid. Formation fluid is then extracted at706in the same manner as described above with reference toFIG. 7. The tool might be moved to a different depth between the steps704and706. The fluid extracted at706can be pumped directly into the mixing chamber at708. The collected test fluid stored in chamber102is then added to the mixing chamber at710. The fluids are mixed at712and their reaction is detected at714. The reaction is analyzed at716and the results transmitted to the surface at718.

FIG. 9is a flow chart of a third embodiment of a method in accordance with this disclosure which, depending on the choice made at802can be performed with one of the tools100and100′ or with the tool300. According to this embodiment, test fluid is injected into the formation at800. The injection rate and injection pressure may be recorded and analyzed as described in detail below.

If one of the tool100and100′ is utilized for the test, a test fluid of one of the chamber102,104or106may be transferred into chamber110using the pump108. The test fluid may then be injected into the formation using the probe or packer112. Alternatively, a mixture of test fluid and sample fluid can be collected at the same or different depth, for example in chamber110or102. The mixture may be utilized at800as a test fluid. If the tool300is utilized for the test, any test fluid from chamber302,304and306can be injected into the formation using the probe or packer312of the tool300.

If the test is to be performed in-situ as determined at802, the tool300is preferably used and the in-situ reaction is detected at808using the sensors316(FIG. 4). If the determination at802is to perform the test in the mixing chamber110, (FIG. 2AorFIG. 2B) the combined test fluid and formation fluid are extracted at804and sent to the mixing chamber at806and their reaction is detected by the sensor(s)116or116′ (FIG. 2AorFIG. 2B). In either case, the output of the sensors is analyzed at810and the analysis transmitted to the surface at812. It will be appreciated that in the example given, the decision at802must be made before the tool is lowered downhole. Alternatively, the tool300could be modified to include a mixing chamber and two sets of sensors, one set arranged to detect in-situ reactions and another to detect reactions in the mixing chamber.

Injection rate and injection pressure may be correlated. Their relationship may be used to identify permeability damage due to the mixing of the test fluid and the formation fluid in the reservoir. Alternatively, a mixture exhibiting a reaction may be utilized as injection fluid. The relationship between injection rate and injection pressure may be utilized to assess the impact of this reaction on the permeability or mobility of in the formation in which the mixture is injected.

The method ofFIG. 9may be used in combination for example with the method ofFIG. 7. The method ofFIG. 7is applied first and the compatibility between the test fluid and the sample fluid is determined. In some cases, the fluids may be compatible. The method ofFIG. 9is then performed with the same test fluid being introduced into the formation. Knowing that the fluids are compatible, if an incompatibility in the formation occurs, an incompatibility between the test fluid and formation rock can be suspected.

FIG. 10is a flow chart of a fourth embodiment of a method in accordance with this disclosure which can be performed with the tool500(FIG. 6). Referring now toFIGS. 6 and 10, the tool500is lowered downhole at900. Using the probe or packer512, the pump508, associated valves and conduits, formation or drilling fluid is extracted at902and sent to the mixing chamber510at904. Using the pump508, conduit502aand valve502b, test fluid from uphole is sent to the mixing chamber510at906. The fluids are mixed at908and a reaction is detected at910. The output of sensors516is analyzed at912using the circuits518and the results of analysis are transmitted to the surface at914using the telemetry equipment520. It will be appreciated that test fluid from the surface could be delivered to the mixing chamber by gravity or surface pumps. In that case, the conduit502awould be coupled directly to the mixing chamber.

FIG. 11is a flow chart of a fifth embodiment of a method in accordance with this disclosure which can be performed with the tools100,100′,200or400. The tool is lowered downhole at1000. Formation fluid is extracted at1002and sent to the mixing chamber at1004. At1006, the test fluid is generated, e.g. by heating water to create steam, or by mixing two or more reactants together. When the reactants include a solid and a liquid, the liquid reactant can be pumped into the chamber containing the solid reactant, and the resulting test fluid may be sent to the mixing chamber at1008. When the reactants include two liquids, it is preferable to mix them prior to contacting the formation fluid. Thus, they are preferably introduced into the mixing chamber prior to sending the formation fluid into the chamber. Regardless, the test and formation fluids are mixed at1010and a reaction is detected at1012. The sensor output is analyzed at1014and the results of analysis are transmitted to the surface at1016.

FIG. 12is a flow chart of a sixth embodiment of a method in accordance with this disclosure which can be performed with the tool400. Referring now toFIGS. 5 and 12, the method begins at1100by filling the test fluid chambers402,404,406. The tool400is then lowered downhole at1102. A core sample is obtained at1104using the core capture and process module412which captures the core and extracts formation fluid from it at1106. The extracted fluid is sent to the mixing chamber410by opening the valves410band412band operating the pump408. This causes the extracted fluid to flow to the mixing chamber410at1108. When sufficient sample fluid has filled the mixing chamber, the pump is stopped and the valve412bis closed. Test fluid is sent to the mixing chamber at1110by opening one or more of the valves402b,404b,406band operating the pump. When sufficient test fluid has been sent to the mixing chamber410, the pump is stopped and all of the valves are closed. The fluids are mixed at1112by operating the spinner410c. A reaction of the fluids with each other is detected at1114using sensors416. The sensor output is analyzed at1116using the analysis circuits418. The results of analysis are transmitted to the surface at1118using the telemetry equipment420.

Detectable reactions between test fluids and fluid samples include among others: the formation of solid particles (e.g. asphaltene, waxes, or precipitates), the formation of emulsions, a change in viscosity of the fluid sample, the generation of a gas, the generation of heat, or the change of any other thermophysical property of the fluid sample e.g. density, viscosity, compressibility. Also, phase envelope may be estimated from downhole measurements as shown for example in US Patent Application 2004/0104341.

The reaction between the test fluid and the fluid sample is detected and measured over time using one or more sensors. The sensors may be inside or outside (e.g., an X-ray sensor) the mixing chamber. They may be located along flowlines in the tool. In cases where the reaction is detected in the formation, the sensors may be located on or near the exterior of the tool body.

Useful sensors include sensors that can measure among other things one or more of density, pressure, temperature, viscosity, composition, phase boundary, resistivity, dielectric properties, nuclear magnetic resonance, neutron scattering, gas or liquid chromatography, optical spectroscopy, optical scattering, optical image analysis, scattering of acoustic energy, neutron thermal decay, conductance, capacitance, carbon/oxygen content, hydraulic fracture growth, radioactive and non-radioactive markers, bacterial activity, streaming potential generated during injection, H2S, trace elements, and heavy metal.

The downhole tool of this disclosure can be deployed with a wireline, a tractor, or coiled tubing in an open or cased hole. Alternatively, it can be deployed as part of a logging while drilling (LWD) tester that can be incorporated in a drill string and used while drilling.

The downhole tool of this disclosure may send different information depending on the telemetry bandwidth available with its mode of deployment or conveyance. If deployed with a wireline, the downhole tool will benefit from a large telemetry bandwidth. Digitized sensor data may be sent uphole for processing by surface equipment5ofFIG. 1. If deployed on a drillstring equipped with mud pulse telemetry, the downhole tool may be attributed a very low telemetry bandwidth. Digitized sensor data may be stored in downhole memory for retrieval when the tool is back to surface. The retrieved data may be utilized at the well site or at other locations. The sensor data may be also processed downhole and processing results may be sent uphole, essentially in real time. The results are optionally sent with related confidence indicators.

Whether obtained with a surface data processor or with a downhole data processor, processing results may comprise a flag indicating whether a reaction has been detected or not. A further refinement includes varying the proportions of the test fluid and the sampled fluid in the mixture, and sending the proportions at which the reaction is detected (if applicable). Yet another refinement includes varying the pressure and/or the temperature of the mixture, and identifying the pressure and/or the temperature at which a reaction is detected (if applicable). If more than one sensor is used for detecting a reaction the information from these sensors can be combined and could be used for indicating the type of reaction that has been detected.

Referring now toFIGS. 13-15, by way of example only and not by way of limitation, the results of injecting carbon dioxide into a sample of formation fluid are illustrated by graphs of the output of three different sensors.FIG. 13shows the output of an optical spectrometer with respect to three different wavelength channels, channels FS9, FS11, and FS12 that are each in the range between 900 to 2200 nanometers, before and after the samples were injected with carbon dioxide test fluid. The notable changes in the optical densities of the fluid samples indicates in each case the precipitation of asphaltene. This may result in a determination that carbon dioxide and the formation fluids are incompatible.

FIG. 14shows the output of a fluorescence sensor before and after a formation fluid sample was injected with carbon dioxide test fluid. The change in fluorescence (Channel0) of the fluid samples indicates the precipitation of asphaltene. This graph also indicates the ratio of the resin to asphaltene molecules which is useful in estimating the potential damage caused by the asphaltenes.

FIG. 15shows the output of a density/viscosity sensor before and after a formation fluid sample was injected with carbon dioxide test fluid. The notable changes in viscosity and density indicate the precipitation of asphaltene.

Referring now toFIGS. 16 and 17, by way of example only and not by way of limitation, the results of injecting water into two different formation fluid samples are illustrated by graphs of the output of an optical spectrometer. FIG.16shows two spectral plots, A and B. Plot A is a spectral plot of light weight oil before it is injected with water and plot B is a spectral plot of the light weight oil after injection with water. These plots indicate that no emulsion was formed by injecting water as an emulsion would have caused large scattering in the visible and near infrared wavelengths. Thus, it may be determined that water and the light weight oil are compatible.FIG. 17shows two spectral plots for a different oil sample before and after injection with water. Plot A is a spectral plot of a medium weight oil and plot B is a spectral plot of the medium weight oil after injection with water. The increased and scattered optical density in the 900 to 2200 nanometer wavelength range indicates the formation of an emulsion. Emulsions can form in medium and heavy oils that contain a significant amount of asphaltenes. The asphaltenes act as surfactants with formation or treatment water. The resulting emulsion droplets have high-energy bonds creating a very tight dispersion of droplets that is not easily separated. These surface-acting forces can create both oil-in-water and/or water-in-oil emulsions. Such emulsions require temperature and chemical treating in surface equipment in order to separate. Thus, it may be concluded that water is incompatible with this oil sample.

There have been described and illustrated herein several embodiments of systems and methods for performing fluid compatibility testing and analysis downhole. While particular embodiments have been described, it is not intended that the invention be limited thereto, as it is intended that the invention be as broad in scope as the art will allow and that the specification be read likewise. Thus, while three test fluid chambers and one mixing chamber have been disclosed, it will be appreciated that a greater or fewer number of chambers could be used as well. In addition, while no particular downhole power source has been disclosed, it will be understood that any conventional means of powering a downhole testing tool can be used. Although a pump has been disclosed for delivering fluids to chambers, fluids can be delivered into and out of chambers by means other than a pump. For example, some or all of the fluids can be delivered via gravity, hydraulic pressure, etc. It should be understood that the downhole tool of this disclosure is not limited to mud pulse telemetry or wireline telemetry. It will therefore be appreciated by those skilled in the art that yet other modifications could be made without deviating from the spirit and scope of the claims.