MID-INFRARED ACID SENSOR

20180231684 ยท 2018-08-16

    Inventors

    Cpc classification

    International classification

    Abstract

    A sensor is provided for monitoring a mineral acid dissolved in a liquid. The sensor includes an internal reflection window which, in use, is in direct contact with the liquid. The sensor further includes a mid-infrared light source which directs a beam of mid-infrared radiation into said window for attenuated internal reflection at an interface between the window and the liquid. The sensor further includes a first narrow bandpass filter which preferentially transmits mid-infrared radiation over a band of wavelengths corresponding to an absorbance peak of the dissolved mineral acid to filter internally reflected mid-infrared radiation received from the window. The sensor further includes an infrared detector which detects filtered mid-infrared radiation transmitted through the first filter. The sensor further includes a processor arrangement, operably coupled to the infrared detector, which measures the intensity of the detected mid-infrared radiation transmitted through the first filter, and determines therefrom an amount of the mineral acid dissolved in the liquid.

    Claims

    1. A sensor for monitoring a mineral acid dissolved in a liquid, the sensor comprising: an internal reflection window which, in use, is in contact with the liquid; a mid-infrared light source configured to direct a beam of mid-infrared radiation into the internal reflection window for attenuated internal reflection at an interface between the internal reflection window and the liquid; a first narrow bandpass filter configured to preferentially transmit mid-infrared radiation over a band of wavelengths corresponding to an absorbance peak of the dissolved mineral acid to filter internally reflected mid-infrared radiation received from the internal reflection window; an infrared detector configured to detect filtered mid-infrared radiation transmitted through the first narrow bandpass filter; and a processor arrangement, operably coupled to the infrared detector and configured to measure an intensity of the detected mid-infrared radiation transmitted through the first narrow bandpass filter and determine an amount of the mineral acid dissolved in the liquid from the measured intensity.

    2. The sensor according to claim 1, wherein the first narrow bandpass filter preferentially transmits mid-infrared radiation over a band of wavelengths corresponding to an absorbance peak of about 1050 cm.sup.1.

    3. The sensor according to claim 1, further comprising a second narrow bandpass filter configured to transmit mid-infrared radiation over a band of wavelengths corresponding to a reference portion of the absorbance spectrum of the liquid, the or a further infrared detector configured to detect filtered mid-infrared radiation transmitted through the second filter, and the processor arrangement configured to measure the reference intensity of the detected mid-infrared radiation transmitted through the second filter and use the measured reference intensity in the determination of the amount of the mineral acid in the fluid.

    4. The sensor according to claim 1, wherein the beam of mid-infrared light is pulsed.

    5. The sensor according to claim 1, wherein the internal reflection window is a diamond internal reflection window or a sapphire internal reflection window.

    6. The sensor according to claim 1, further comprising a heater which is operable to locally heat the internal reflection window, thereby cleaning the surface of the internal reflection window in contact with the liquid.

    7. The sensor according to claim 1, further comprising a pressure pulse arrangement which is operable to produce a pressure pulse in the fluid at the internal reflection window, thereby cleaning the surface of the internal reflection window in contact with the fluid.

    8. The sensor according to claim 1 which is configured for use downhole.

    9. Use of the sensor of claim 1 to determine an amount of a mineral acid dissolved in a liquid.

    10. A method of monitoring a mineral acid dissolved in a liquid, the method comprising: providing the sensor of claim 1 such that the internal reflection window is in direct contact with the liquid; and operating the sensor to determine an amount of the mineral acid dissolved in the liquid.

    11. A method of stimulating production from a well, the method comprising: injecting a liquid containing dissolved mineral acid into the well to stimulate production from a carbonate formation; providing the sensor of claim 1 such that the internal reflection window is in direct contact with the liquid; and operating the sensor to determine the amount of mineral acid deployed into the formation.

    12. The method of claim 11, further comprising: providing a further sensor for monitoring CO.sub.2 in a fluid, the further sensor including: a further internal reflection window which, in use, is in direct contact with a fluid; a further mid-infrared light source configured to direct a beam of mid-infrared radiation into the further internal reflection window for attenuated internal reflection at an interface between the further internal reflection window and the fluid; three further first narrow bandpass filters configured to preferentially transmit mid-infrared radiation over bands of wavelengths corresponding to respective absorbance peaks of water, oil and CO.sub.2 to filter internally reflected mid-infrared radiation received from the internal reflection window; one or more further infrared detector(s) which detect filtered mid-infrared radiation transmitted through the further first narrow bandpass filters; and a further processor arrangement, operably coupled to the infrared detector(s), configured to measure the intensity of the detected mid-infrared radiation transmitted through the first narrow bandpass filters and determine an amount of CO.sub.2 in the fluid from the measured intensity notwithstanding whether the fluid contacting the further internal reflection window is a liquid water-based phase, a liquid oil-based phase, a mixture of liquid water and liquid oil-based phases, or a gas phase; and operating the further sensor to determine an amount of CO.sub.2 in the fluid produced by the formation.

    13. A method for monitoring a mineral acid dissolved in a liquid, the method comprising: directing a beam of mid-infrared radiation into an internal reflection window contacting the liquid; passing an attenuated internal reflection from the internal reflection window of the mid-infrared radiation through a narrow bandpass filter to produce a filtered output beam of mid-infrared radiation, wherein the narrow bandpass filter is configured to preferentially transmit mid-infrared radiation over a band of wavelengths corresponding to an absorbance peak of the dissolved mineral acid; measuring an intensity of the filtered output beam; and determining an amount of the mineral acid dissolved in the liquid from the measured intensity.

    14. The method according to claim 13, wherein the narrow bandpass filter is configured to preferentially transmit mid-infrared radiation over a band of wavelengths corresponding to an absorbance peak of 1050 cm.sup.1.

    15. The method according to claim 13, further comprising: passing the attenuated internal reflection from the internal reflection window through a second narrow bandpass filter configured to transmit mid-infrared radiation over a band of wavelengths corresponding to a reference portion of the absorbance spectrum of the liquid to produce a reference output; and measuring an intensity of the reference output, wherein: determining an amount of the mineral acid dissolved in the liquid from the measured intensity comprises determining an amount of the mineral acid dissolved in the liquid from the measured intensity and the reference intensity.

    16. The method according to claim 13, wherein the beam of mid-infrared light is pulsed.

    17. The method according to claim 13, further comprising: rapidly heating the internal reflection window to remove contaminants from the internal reflection window.

    18. The method according to claim 13, further comprising: applying a pressure pulse to the liquid to remove contaminants from the internal reflection window.

    19. The method according to claim 13, further comprising: determining an amount of CO.sub.2 in the liquid.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0046] Embodiments of the invention will now be described by way of example with reference to the accompanying drawings in which:

    [0047] FIG. 1 shows schematically (a) a mid-infrared sensor, in accordance with an embodiment of the present disclosure, and (b) the sensor implemented as a module in a toolstring;

    [0048] FIG. 2 shows schematically a narrow bandpass filter based on Fabry-Perot interferometry, in accordance with an embodiment of the present disclosure;

    [0049] FIG. 3 shows variation of d.sub.m/.sub.mdT for a suite of filters fabricated with ZnSe as the low refractive index material and PbTe as the high refractive index material, in accordance with an embodiment of the present disclosure;

    [0050] FIG. 4 shows plots of transmissivity against wavelength at a range of temperatures from 25 to 200 C. for (a) a PbTe-based filter having a pass band centred at 4.26 m, and (b) a PbTe-based filter having a pass band centred at 12.1 m, in accordance with embodiments of the present disclosure;

    [0051] FIG. 5 shows (a) a reference intensity spectrum I.sub.0 obtained from a fluid not containing a given species, (b) an intensity spectrum I obtained from the fluid containing the species, and (c) the absorbance spectrum of the species;

    [0052] FIG. 6 shows intensity spectra obtained for dodecane dissolved in deuterated chloroform for increasing concentrations of dodecane, the spectra being superimposed with transmissivity plots for a first filter having a pass band of 3000 to 2800 cm.sup.1, and a second filter having a pass band of 2000 to 1800 cm.sup.1;

    [0053] FIG. 7 shows a plot of modified absorbance A against hydrocarbon content for dodecane dissolved in deuterated chloroform;

    [0054] FIG. 8 shows a plot of absorbance against dissolved CO.sub.2 concentration in water or hydrocarbon;

    [0055] FIG. 9 shows mid-infrared absorbance spectra of HCl in water, for different HCl concentrations from 0 to 40 wt %;

    [0056] FIG. 10 shows a plot of absorbance against HCl concentration for HCl in water;

    [0057] FIG. 11 shows mid-infrared absorbance spectra of DCl in D.sub.2O, for different DCl concentrations from 0 to 35 wt %;

    [0058] FIG. 12 shows a plot of absorbance against DCl concentration for DCl in D.sub.2O;

    [0059] FIG. 13 shows mid-infrared absorbance spectra of 4.2 M HCl in water, 4.7 M HBr in water and 4.5 M HI in water;

    [0060] FIG. 14 shows the plots of absorbance against acid concentration for HCl, HBr and HI in water;

    [0061] FIG. 15 shows (a) a mid-infrared absorbance spectrum for a water phase and CO.sub.2, and (b) a corresponding plot of absorbance against CO.sub.2 concentration for CO.sub.2 in H.sub.2O;

    [0062] FIG. 16 shows (a) a mid-infrared absorbance spectrum for an oil phase and CO.sub.2, and (b) a corresponding plot of absorbance against CO.sub.2 concentration for CO.sub.2 in oil;

    [0063] FIG. 17 shows a mid-infrared absorbance spectrum for a water phase, an oil phase and CO.sub.2; and

    [0064] FIG. 18 shows a plot of absorbance against CO.sub.2 concentration for CO.sub.2 in gas phase.

    [0065] In the appended figures, similar components and/or features may have the same reference label. Further, various components of the same type may be distinguished by following the reference label by a dash and a second label that distinguishes among the similar components. If only the first reference label is used in the specification, the description is applicable to any one of the similar components having the same first reference label irrespective of the second reference label.

    DETAILED DESCRIPTION

    [0066] The ensuing description provides preferred exemplary embodiment(s) only, and is not intended to limit the scope, applicability or configuration of the invention. Rather, the ensuing description of the preferred exemplary embodiment(s) will provide those skilled in the art with an enabling description for implementing a preferred exemplary embodiment of the invention, it being understood that various changes may be made in the function and arrangement of elements without departing from the scope of the invention.

    [0067] Specific details are given in the following description to provide a thorough understanding of the embodiments. However, it will be understood by one of ordinary skill in the art that embodiments maybe practiced without these specific details. For example, well-known circuits, processes, algorithms, structures, and techniques may be shown without unnecessary detail in order to avoid obscuring the embodiments.

    [0068] Also, it is noted that the embodiments may be described as a process which is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel or concurrently. In addition, the order of the operations may be re-arranged. A process is terminated when its operations are completed, but could have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a function, its termination corresponds to a return of the function to the calling function or the main function.

    [0069] Moreover, as disclosed herein, the term storage medium may represent one or more devices for storing data, including read only memory (ROM), random access memory (RAM), magnetic RAM, core memory, magnetic disk storage mediums, optical storage mediums, flash memory devices and/or other machine readable mediums for storing information. The term computer-readable medium includes, but is not limited to portable or fixed storage devices, optical storage devices, wireless channels and various other mediums capable of storing, containing or carrying instruction(s) and/or data.

    [0070] Furthermore, embodiments may be implemented by hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine readable medium such as storage medium. A processor(s) may perform the necessary tasks. A code segment may represent a procedure, a function, a subprogram, a program, a routine, a subroutine, a module, a software package, a class, or any combination of instructions, data structures, or program statements. A code segment may be coupled to another code segment or a hardware circuit by passing and/or receiving information, data, arguments, parameters, or memory contents. Information, arguments, parameters, data, etc. may be passed, forwarded, or transmitted via any suitable means including memory sharing, message passing, token passing, network transmission, etc.

    [0071] 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 the purpose of 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.

    [0072] FIG. 1(a) shows schematically a mid-infrared sensor, in accordance with an embodiment of the present disclosure, comprising a thermal broad band mid-infrared source 1, a mechanical chopper 2 that pulses a beam 3 of mid-infrared radiation which issues from the source, a diamond window 4, a set of selectively movable first narrow bandpass filters 5 and a second narrow bandpass filter 5, respective mid-infrared detectors 6 for the filters, and a processor arrangement 7. The sensor may be encased in a protective housing which allows the sensor to be deployed downhole, the window 4 being positioned for contact with the fluid to be monitored. In some embodiments of the present disclosure, mid-infrared waveguides (not shown) may optically connect the source, window and the detectors. Suitable waveguides can be formed from optical fibres (e.g. hollow fibres or chalcogenide fibres), solid light pipes (e.g. sapphire pipes), or hollow light pipes (e.g. air or vacuum filled) with a reflective (e.g. gold) coating.

    [0073] As the output from detector 6 changes with temperature, even small changes in temperature may cause a large drift in signal output. However, in some embodiments of the present disclosure, pulsing the beam 3 allows the output signal of the detector to be frequency modulated, enabling removal of the environmental temperature effects from the signal. More particularly, the environment effects can be largely removed electronically by a high pass filter, because the time constant for environment effects tends to be much longer than the signal frequency. In some embodiments of the present disclosure, the detector output is AC-coupled to an amplifier. The desired signal can then be extracted e.g. electronically by lock-in amplification or computationally by Fourier transformation.

    [0074] Instead of the thermal source 1 and the mechanical chopper 2, in some embodiments of the present disclosure, the pulsed beam 3 may be produced by a pulsable thermal source, light emitting diode or laser source and/or the like. Pulsing the source in this way can give the same benefit of frequency modulation measurement, plus it may reduce resistive heating effects.

    [0075] The beam 3 enters at one edge of the window 4, and undergoes a number of total internal reflections before emerging from the opposite edge. The total internal reflection of the infrared radiation at the fluid side of the window is accompanied by the propagation of an evanescent wave into the fluid. As the fluid preferentially absorbs certain wavelengths, depending on its chemical composition, this causes the emerging beam to have a characteristic variation in intensity with wavelength.

    [0076] In some embodiments of the present disclosure, the window 4 may be mechanically able to withstand the high pressures and temperatures typically encountered downhole. In some embodiments of the present disclosure, the window may be chemically stable to fluids encountered downhole and transparent in the mid-IR wavelength region. In some embodiments of the present disclosure, the window may comprise diamond, sapphire and/or the like.

    [0077] The first narrow bandpass filters 5 each transmit mid-infrared radiation over a band of wavelengths corresponding to an absorbance peak of a respective species in the fluid, while the second narrow bandpass filter 5 transmits mid-infrared radiation over a band of wavelengths corresponding to a reference portion of the absorbance spectrum of the fluid. The beam 3 then passes through a selected one of the narrow bandpass filters and is detected at the respective detector 6. Instead of having a plurality of detectors, each movable with its corresponding filter (as indicated by the double-headed arrow), a further option is to have a single detector in front of which the filters are selectively movable.

    [0078] The detector 6 can be e.g. semiconductor photo-diodes (particularly in subsea applications), thermopiles or pyroelectric detectors.

    [0079] In an embodiment of the present disclosure the processor arrangement 7 receives a signal from the respective detector 6, which it processes to measure the intensity of the detected mid-infrared radiation transmitted through each filter 5, 5, and may either detect the respective species in the fluid or determine from the measured intensity, as discussed in more detail below, an amount of the respective species in the fluid.

    [0080] Also discussed in more detail below, the sensor comprise have a heater 8 which is operable to locally heat the window 4, thereby cleaning the surface of the window in contact with the fluid. Other options, however, are to clean the window ultrasonically (as described for example in U.S. Pat. No. 7,804,598 incorporated by reference herein for all purposes), or with a mechanical wiper.

    [0081] FIG. 1(b) shows schematically how the sensor, in accordance with embodiments of the present disclosure may be implemented as a module in a toolstring. In an embodiment of the present disclosure, the source 1 and chopper 2 may be contained in a source unit 9 and filters 5, 5 and detectors 6 may be contained in a detector unit 10. These are located close to the window 4 that is in contact with a tool flowline 11. In some embodiments of the present disclosure, the sensor is packaged in a protective metal chassis 12 to withstand the high pressure of the fluid in the flowline. In some embodiments of the present disclosure, the window is sealed into the chassis also to withstand the high pressures, and its packaging ensures no direct source light strays into the detectors.

    Narrow Bandpass Filters

    [0082] In some embodiments of the present disclosure, the narrow bandpass filters 5, 5 may be based on Fabry-Perot interferometry. As shown in FIG. 2, in some embodiments of the present disclosure, each filter may comprise a substrate S of low refractive index and thickness d. On opposing surfaces of the substrate are stacked alternating high-reflectivity dielectric layers of high H and low L refractive index deposited onto the substrate using techniques such as ion-beam sputtering or radical-assisted sputtering. Each layer in the stacks of alternating layers of high H and low L refractive index has an optical thickness of a quarter wavelength.

    [0083] In an embodiment of the present disclosure, the optical thickness nd cos of the substrate S, where n is the refractive index of the substrate, is equal to an integer number of half wavelengths .sub.m, where .sub.m is the peak transmission wavelength, corresponding approximately to the centre wavelength of the pass band of the filter. The condition for the transmission of radiation of wavelength .sub.m through the filter is thus m.sub.m/2=nd cos , where m is an integer.

    [0084] The spectral region of conventional narrow bandpass dielectric filters designed to operate in the mid-infrared spectral regions shifts systematically to longer wavelengths with increasing temperature. The origin of the change in .sub.m with temperature is a change in the material properties with temperature of the dielectric materials that comprise the layers of the filter.

    [0085] However, in accordance with embodiments of the present disclosure, an approach for the configuration and fabrication of mid-infrared narrow bandpass filters is provided where the filters have substantially temperature invariant optical properties over a wide temperature range.

    [0086] In accordance with embodiments of the present disclosure, the approach can be considered by the design of the filter:


    (LH).sup.x1(LL).sup.y1(HL).sup.x2(LL).sup.y2 . . . (LL).sup.yN(HL).sup.xN+1

    consisting of a total of y half wavelength spacers (cavities) LL of low refractive index material in N cycles (y=y.sub.i), LH being the stacks of x.sub.i quarter wavelength layers of alternating of high and low refractive index material in the N cycles. The reflections wavelength of the quarter wavelength reflector stack (which is the only reflection to undergo constructive interference), irrespective of the values of x.sub.i and N, can be expressed as:


    .sub.m=2(n.sub.Ld.sub.L+n.sub.Hd.sub.H)

    for first order reflections (m=0). The temperature variation of the wavelength in the reflector stack d.sub.m/dT|.sub.s can be expressed as:

    [00001] d .Math. .Math. m dT .Math. | s = 2 .Math. .Math. n L .Math. d L ( C L + dn L n L .Math. dT ) + 2 .Math. .Math. n H .Math. d H ( C H + dn H n H .Math. dT )

    where C.sub.L and C.sub.H are the coefficients of linear expansion of the low and high refractive index materials, respectively. From eqn. [1] for first order reflection and normal incidence (i.e., m=1 and =0), the corresponding temperature dependence d.sub.m/dT|.sub.c of the cavity layer of low refractive index material is given by:

    [00002] d .Math. .Math. m dT .Math. | c = 2 .Math. .Math. yn L .Math. d L ( C L + dn L n L .Math. dT )

    noting that y is the total number of half wavelength cavity layers. The total change in wavelength with temperature dcustom-character.sub.m/dT|.sub.T is given by the sum of d.sub.m/dT|.sub.c and d.sub.m/dT|.sub.s:

    [00003] d .Math. .Math. m dT .Math. | T = 2 .Math. ( 1 + y ) .Math. n L .Math. d L ( C L + dn L n L .Math. dT ) + 2 .Math. .Math. n H .Math. d H ( C H + dn H n H .Math. dT ) or d .Math. .Math. m m .Math. dT .Math. | s = ( 1 + y ) .Math. ( C L + dn L n L .Math. dT ) + ( C H + dn H n H .Math. dT )

    noting that n.sub.Ld.sub.L=n.sub.Hd.sub.H at the temperature for which the filter is designed for use. Clearly d.sub.m/dT|.sub.T can only be zero if the value of dn/dT for one of the materials is negative. This condition can be fulfilled by high refractive index materials such as PbTe, PbSe or PbS. For close matching of the value of d.sub.m/dT|.sub.T to zero, the wavelength dependence of n, temperature and wavelength dependence of dn.sub.i/dT can be taken into account.

    [0087] The condition d.sub.m/dT|.sub.T=0 is given approximately by:

    [00004] dn H n H .Math. dT = - ( 1 + y ) .Math. dn L n L .Math. dT

    noting that C.sub.i is considerably smaller than dn.sub.i/n.sub.idT for most materials used in mid-infrared filters. The term (l+y) can be chosen to satisfy the above expression depending on the choice of low refractive index material. For example, with ZnSe and PbTe for the low and high refractive index materials, respectively, and using the material values of bulk phases n.sub.L=2 0.43, n.sub.H=6.10, dn.sub.L/dT=6.310.sup.5 K.sup.1 and dn.sub.H/dT=2.110.sup.3 K.sup.1 for .sub.m=3.4 custom-characterm, the expression is satisfied with y=13.3, i.e., approximately 13 half wavelength cavity layers are required to achieve the condition d.sub.m/dT|.sub.T=0.

    [0088] There is considerable variation in the values of the material properties (n.sub.H, dn.sub.H/dT, C.sub.H, etc.) that appear in for thin films in a multilayer structure and therefore in the predicted value of d.sub.m/.sub.mdT or the value of y required to achieve the condition d.sub.m/.sub.mdT=0. The uncertainty is particularly severe for the value of dn.sub.H/dT for PbTe in view of its magnitude and influence on the value of y. For example, the value of dn/dT for PbTe at .sub.m=5 m has been reported to be 1.510.sup.3 K.sup.1 by Zemel, J. N., Jensen, J. D. and Schoolar, R. B., ELECTRICAL AND OPTICAL PROPERTIES OF EPITAXIAL FILMS OF PBS, PBSE, PBTE AND SNTE, Phys. Rev. 140, A330-A343 (1965), 2.710.sup.3 K.sup.1 by Piccioli, N., Besson, J. M. and Balkanski, M., OPTICAL CONSTANTS AND BAND GAP OF PBTE FROM THIN FILM STUDIES BETWEEN 25 AND 300 K, J. Phys. Chem. Solids, 35, 971-977 (1974), and 2.810.sup.3 K.sup.1 by Weiting, F. and Yixun, Y., TEMPERATURE EFFECTS ON THE REFRACTIVE INDEX OF LEAD TELLURIDE AND ZINC SELENIDE, Infrared Phys., 30, 371-373 (1990). From the above expression, the corresponding values of y (to the nearest integer) are 9, 17 and 18, respectively.

    [0089] In view of the uncertainties in the value of dn/dT for PbTe and therefore the number of low refractive index half wavelength spacers required to achieve d.sub.m/dT=0, a more useful approach is to determine the experimental value of d.sub.m/dT as a function of the optical thickness of the low refractive index cavities for a suite of filters fabricated by the same method.

    [0090] FIG. 3 shows the variation of d.sub.m/.sub.mdT for a suite of filters fabricated with ZnSe as the low refractive index material and PbTe as the high refractive index material. The plot shows that a particular value of d.sub.m/.sub.mdT can be achieved by controlling the ratio of low to high refractive index materials in the filter (i.e., a parameter similar to y in the above expression). FIG. 3 shows that for .sub.m<5 m, the condition d.sub.m/.sub.mdT=0 is met by a 4:4:4 (i.e., 3 full wavelength or 6 half wavelength cavities (y=6)) filter, while for .sub.m>5 custom-characterm a 6:4:6 (y=8) filter is required.

    [0091] The approach illustrated by FIG. 3 can be used, in accordance with an embodiment of the present disclosure, to fabricate substantially temperature invariant filters over the entire mid-infrared spectral range. In some embodiments of the present disclosure, the substrate may be formed of Si, SiO.sub.2, Al.sub.2O.sub.3, Ge or ZnSe. In some embodiments of the present disclosure, high refractive index layers can be formed of PbTe, PbSe or PbS, although Ge is also an option. In some embodiments of the present disclosure, the low refractive index layers can be formed of ZnS or ZnSe.

    [0092] FIG. 4 shows plots of transmissivity against wavelength at a range of temperatures from 25 to 200 C. for (a) a PbTe-based filter having a pass band centred at 4.26 m with optimum optical matching to the substrate and 3 full wavelength thickness cavities (4:4:4), and (b) a degenerate PbTe-based filter having a pass band centred at 12.1 m with 3 half wavelength cavities (2:2:2). Similar filters can be produced having pass bands centred at other mid-infrared wavelengths. The value of d.sub.m/dT for the .sub.m=4.26 custom-characterm (4:4:4) filter varies from 0.04 nm/K at 20 C. to +0.03 nm/K at 200 C. and is essentially zero over the temperature range 80-160 C. The value of d.sub.m/dT for the .sub.m=12.1 custom-characterm (2:2:2) filter is 0.21 nm/K, over the temperature range 20-200 C. This allows such filters to deployed downhole, where temperatures can vary from about 25 to 200 C., without the pass band of the filter shifting to such an extent that it no longer corresponds to the absorbance peak of its respective species.

    Spectroscopy

    [0093] The Beer-Lambert law applied to the sensor of FIG. 1 provides that:


    A=log.sub.10(I/I.sub.0)

    where A is the absorbance spectrum by a species in the fluid having an absorbance peak at a wavelengths corresponding to the pass band of the filter 5, I is the intensity spectrum of the infrared radiation detected by the detector 6, and I.sub.0 is a reference intensity spectrum. For example, FIG. 5 shows (a) a reference intensity spectrum I.sub.0 obtained from a fluid not containing a given species, (b) an intensity spectrum I obtained from the fluid containing the species, and (c) the absorbance spectrum of the species.

    [0094] FIG. 6 shows intensity spectra obtained for dodecane dissolved in deuterated chloroform for increasing concentrations of dodecane. With increasing hydrocarbon content there is increased absorption in a first wavenumber range of 3000 to 2800 cm.sup.1. Conversely, the increasing hydrocarbon content has substantially no effect on absorption in a second wavenumber range of 2000 to 1800 cm.sup.1. The second range can thus be used as the reference to the first range. Superimposed on FIG. 6 are transmissivity plots for a first filter having a pass band of 3000 to 2800 cm.sup.1, and a second filter having a pass band of 2000 to 1800 cm.sup.1. Two spectra are thus, in effect, detected by the filters, the first spectrum being the unfiltered spectrum multiplied by the transmissivity of the first filter and the second sub-spectrum being the unfiltered spectrum multiplied by the transmissivity of the second filter. The pass band areas of the spectra (as determined by the strengths of the signals received by the photodiode detectors), correspond to respective intensity measurements BA and BA.sub.0. These are thus used to calculate a modified absorbance A for dodecane dissolved in deuterated chloroform which is ln(BA/BA.sub.0).

    [0095] FIG. 7 shows a plot of modified absorbance A against hydrocarbon content for dodecane dissolved in deuterated chloroform. The plot exhibits an approximately linear relationship between A and hydrocarbon content.

    [0096] Other species can be monitored in this way. For example, FIG. 8 shows a plot of absorbance against dissolved CO.sub.2 concentration in water or hydrocarbon under the high partial pressures and temperatures typical of oil field wellbore conditions.

    Mineral Acid Concentration

    [0097] A mid-infrared sensor, of the type discussed above, may be used to monitor mineral acid concentrations. For example, HCl is extensively pumped in coiled tubing for stimulation of carbonate formations. The high mineral acid concentration typically used in such operations often makes pH measurements unsuitable. However, the sensor can be deployed to enable HCl concentration to be monitored to evaluate acidisation efficiency. The ability of the sensor to operate under a full range of downhole temperatures is advantageous.

    [0098] FIG. 9 shows mid-infrared absorbance spectra of HCl in water, for different HCl concentrations from 0 to 40 wt %, and FIG. 10 shows a plot of absorbance against HCl concentration for HCl in water, using a band located on the 1050 cm.sup.1 absorbance peak and a band corresponding to a reference portion of the absorbance spectrum. The plot of FIG. 10 demonstrates good linearity between absorbance and concentration. NaCl is not a factor with respect to HCl use in the petrochemical industry, however, CaCl will be a return product in downhole HCl applications.

    [0099] The 1050 cm.sup.1 absorbance peak is apparently due to dissociated HCl, the peak only emerging as the HCl concentration rises. Further evidence that the peak is due to dissociated HCl comes from measurements of DCl in D.sub.2O. FIG. 11 shows mid-infrared absorbance spectra of DCl in D.sub.2O, for different DCl concentrations from 0 to 35 wt %. As expected, all the peaks shown in FIG. 9 are shifted in FIG. 11 to lower wavenumbers by approximately 1/2. For completeness, FIG. 12 shows a plot of absorbance against DCl concentration for DCl in D.sub.2O, using a band located on the 850 cm.sup.1 absorbance peak (shifted from 1050 cm.sup.1 in FIG. 9) and a band corresponding to a reference portion of the absorbance spectrum.

    [0100] The 1050 cm.sup.1 absorbance peak is also exhibited by HBr and HI, as illustrated by FIG. 13 which shows mid-infrared absorbance spectra of 4.2 M HCl in water, 4.7 M HBr in water and 4.5 M HI in water, suggesting that the peak is caused by a hydrated proton. FIG. 14 shows the corresponding plots of absorbance against acid concentration using a band located on the 1050 cm.sup.1 absorbance peak.

    Carbon Dioxide Concentration

    [0101] Another possible use for the sensor of the type discussed above is to monitor CO.sub.2 concentrations. The analysis of fluid samples from hydrocarbon wells for the determination of phase behaviour and chemical composition is a critical step in the evaluation of the producibility and economic value of the hydrocarbon reserves. An important factor in determining the economic value of gas and liquid hydrocarbon reserves is their chemical composition, particularly the concentration of gaseous components, such as carbon dioxide. Similarly, the monitoring of fluid composition during production operations can have an important bearing on reservoir management decisions, such as ceasing production from certain zones or applying chemical treatments to producing wells.

    [0102] A mid-infrared sensor, of the type discussed above, may be used to monitor CO.sub.2 concentrations downhole. In particular, the sensor may have three narrow bandpass filters 5 corresponding to respective absorbance peaks of water, oil and CO.sub.2, and a second narrow bandpass filter 5 for a reference portion of the absorbance spectrum. Such an arrangement allows the CO.sub.2 concentration to be determined when the window 4 is wetted by a liquid water phase, a liquid oil phase, a mixture of liquid water and liquid oil phases, or when the window is dry.

    [0103] For example, FIG. 15(a) shows an absorbance spectrum for the case where the window 4 is wetted by a water phase. The spectrum is characterised by high absorption by water at 3.00 m, almost no absorption by oil at 3.45 m. The CO.sub.2 concentration is proportional to the net CO.sub.2 absorption, which is the difference between the CO.sub.2 channel at 4.27 m and the reference channel at 4.00 m. The proportionality constant allowing CO.sub.2 concentration in the water phase to be determined from CO.sub.2 absorption can be obtained from an experimental plot of CO.sub.2 absorbance against dissolved CO.sub.2 concentration in water, such as shown in FIG. 15(b).

    [0104] Similarly, FIG. 16(a) shows an absorbance spectrum for the case where the window 4 is wetted by an oil phase. The spectrum is characterised by high absorption by oil at 3.45 um m almost no absorption by water at 3.00 m. Again, the CO.sub.2 concentration is proportional to the net CO.sub.2 absorption, which is the difference between the CO.sub.2 channel at 4.27 m and the reference channel at 4.00 m. The proportionality constant allowing CO.sub.2 concentration in the oil phase to be determined from CO.sub.2 absorption can be obtained from an experimental plot of CO.sub.2 absorbance against dissolved CO.sub.2 concentration in oil, such as shown in FIG. 16(b).

    [0105] Next, FIG. 17 shows an absorbance spectrum for the case where the window 4 is wetted by a mixture of water and oil phases. The spectrum is characterised by absorption by water at 3.00 m and by oil at 3.45 m. Again the CO.sub.2 concentration is proportional to the net CO.sub.2 absorption, which is the difference between the CO.sub.2 channel at 4.27 m and the reference channel at 4.00 m. However, the proportionality constant is slightly different for water and for oil because their refractive indices, and thus their depths of investigation, are different. Specifically, oil has higher refractive index than water, thus its depth of investigation is deeper and potentially more CO.sub.2 is sensed by the sensor in oil than in water. Thus, when the window is wetted by a mixture of both water and oil phase, the mixture proportionality constant is between those of water and oil, but can be calculated from therethem. For example, a simple approach is to use a lever rule, whereby if the water peak height is X % of its full height and the oil peak height is (100X) % of its full height, the mixture proportionality constant is the sum of X % of the water proportionality constant and (100X) % of the oil proportionality constant. More elaborate schemes can be used, but the simple lever rule approach works reasonably well because the difference between the water and oil proportionality constants is in any event not great.

    [0106] Under some circumstances, the sensor window 5 may be dry. The spectrum is characterised by almost no absorption by water at 3.00 m or by oil at 3.45 m. CO.sub.2 concentration is proportional to the net CO.sub.2 absorption, which is the difference between the CO.sub.2 channel at 4.27 m and the reference channel at 4.00 m. The proportionality constant allowing CO.sub.2 concentration in the gas phase to be determined from CO.sub.2 absorption can be obtained from an experimental plot of CO.sub.2 absorbance against CO.sub.2 concentration in gas phase, such as shown in FIG. 18.

    [0107] Monitoring of CO.sub.2 concentration can be particularly useful when performed in combination with monitoring of mineral acid concentrations. In particular, the mineral acid sensor can provide a measure of how much acid is being deployed to stimulate a carbonate formation, and the CO.sub.2 sensor, by measuring the amount of CO.sub.2 produced, can provide a measure of the effectiveness of that acid deployment.

    Heater

    [0108] As mentioned above, the sensor of FIG. 1 may comprise a heater 8 which is operable to locally heat the window 4, thereby cleaning the surface of the window in contact with the fluid.

    [0109] Cleaning the window in this manner is particularly effective, compared to other techniques such as ultrasonic cleaning or mechanical wiper cleaning.

    [0110] The window 4 can be formed, for example, of diamond (e.g. by chemical vapour deposition). In some embodiments of the present disclosure, a central (typically undoped) area of the window can be mid-infrared transmissive, while an annular encircling area of the window can be made semiconductive, e.g. by boron doping that part of the window. The heater 8 may comprise a simple electrical power source which sends a current through the window to induce resistive heating of the encircling area. The central area of the window is then heated by thermal conduction from the encircling area. Boron-doping of diamond components is discussed in U.S. Pat. No. 7,407,566, which is incorporated by reference herein for all purposes.

    [0111] In some embodiments of the present disclosure, the heater 8 may be able to heat the window to at least about 400 C. This is higher than the 374 C. super-critical point for water, where super-critical water is a good cleaner and oxidiser. In embodiments of the present disclosure, it may be unnecessary to keep the window at high temperature for a long time period. In particular, less than a microsecond at peak temperature may be enough for cleaning purposes, with longer periods requiring more power and increasing the risk of overheating of other parts of the sensor.

    Pressure Pulse Cleaner

    [0112] In addition, or as an alternative, to the above heater, cleaning of the window 4 may, in some embodiments of the present disclosure, be performed by providing the sensor with a pressure pulse arrangement. For example, the sensor may be located on a fluid flow line between a pump for the fluid and an exit port from the flow line. With the exit port in a closed position, the fluid pressure can be increased in front of the window to above hydrostatic pressure by the pump. Subsequent of opening the exit port creates a sudden pressure difference that flushes the flowline fluid, e.g. to the borehole. The sudden movement of dense fluid in front of the window dislodges and carries away window contamination. A 1000 psi (6.9 MPa) pressure pulse is generally sufficient in most cases.

    [0113] The foregoing outlines features of several embodiments so that those skilled in the art may better understand the aspects of the present disclosure. Those skilled 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 purposes and/or achieving the same advantages of the embodiments introduced herein. Those skilled in the art should also realize that such equivalent constructions do not depart from the scope of the present disclosure, and that they may make various changes, substitutions and alterations herein without departing from such scope.

    [0114] All references referred to above are hereby incorporated by reference.