The present invention claims priority to co-pending U.S. patent application Ser. No. 10/667,639 filed Sep. 22, 2003, entitled “Determining Fluid Chemistry of Formation Fluid by Downhole Reagent Injection Spectral Analysis,” which in turn claims priority to co-pending GB patent application no. 0227267.2 filed Nov. 22, 2002, entitled “Apparatus and Method for Analysing Downhole Water Chemistry,” wherein both of these patent applications are incorporated herein in their entirety.
The present invention relates to pH measurement of aqueous samples using pH sensitive reagents (such as dyes) and, more particularly, to a reagent mixture that allows accurate pH measurement over an extended measurement range.
Spectroscopic (or colorimetric) method for pH measurement is a well-established technique, wherein a pH sensitive reagent (or dye) changes color based on the pH of the solution. The theory of spectroscopic pH measurement using a single reagent indicator is well known (see Bates, “Determination of pH: Theory and Practice” Chapter 6 (1964), incorporated by reference herein in its entirety) and can be characterized by the following equation:
where Ka is the thermodynamic acid dissociation constant for the reagent, which is a function of temperature and pressure; A, B are concentrations of the acid and base forms of the reagent, respectively; γA, γB are activity coefficients of the acid and base forms of the reagent, respectively, which are a function of temperature, pressure and ionic strength of the solution.
The ratio of the base form to the acid form (B/A) of the reagent indicator may be calculated from spectral measurements using the following equations:
where ODλi is the optical density measured at wavelength λi; l is path length; A, B are the respective concentrations of acid and base forms of the reagent in the sample-reagent mixture; CT is the total reagent concentration in the sample-reagent mixture; εAλi, εBλi are molar extinction coefficients at wavelength λi for A, B, respectively; and ODRλ1λ2 is the optical density ratio as defined in Equation (5).
The pH of a sample can be determined using spectral measurements by substituting Equation (6) in Equation (1). Because the acid and base form concentrations appear only as a ratio in Equation (1) and the absolute concentration of the reagent does not appear in Equations (1) or (5), the pH calculation is independent of the reagent concentration and the volume of the reagent added to the sample. If the ionic strength of the sample is at least an order of magnitude greater than the reagent concentration in the reagent-sample mixture, then the ionic strength of the sample and the activity coefficients (see Equations (7) and (8) below) are independent of reagent concentration. Accordingly, the only requirements for reagent addition are that the reagent concentration be (a) within a range where Beer's law is satisfied, (b) below an upper limit depending on the buffer strength of the sample beyond which the addition of the reagent could alter the sample pH, and (c) high enough to allow a good signal-to-noise ratio.
The molar extinction coefficients for the acid and base forms are obtained by calibration using solutions having pH values wherein the reagent exists completely in either its acid form or its base form. Alternatively, if the total reagent concentration is known very accurately, pH may be determined by measuring absorption at a single wavelength. However, because small errors in absolute concentration (CT) can cause large errors in pH calculation, this method may not provide an accurate pH measurement. The pH of a sample may also be calculated using a continuous spectral scan in the relevant region and applying regression analysis to determine the base to acid ratio.
From Equation (1), as pH values move away from the pKa values of a given reagent, the acid or the base fraction of the reagent becomes very small. Due to the low signal-to-noise ratios, the error in the pH measurement increases as pH values move away from the pKa value. Thus, for example, for a pH value 2 units lower than the pKa value, the fraction of the base form of the reagent is only 1%. Consequently, the OD corresponding to the base form peak wavelength is very low, resulting in inadequate pH accuracy. With single reagent indicators, the typical range of pH measurement is limited to about 1 to 1.5 units on either side of the reagent's pKa value. Beyond this range, a different reagent with a more appropriate pKa value must be used. Accordingly, the spectroscopic technique is less flexible to implement because knowledge of the sample's pH range is required a priori so that the appropriate reagent indicator is selected.
A commonly used pH indicator uses a mixture of reagents to extend the range of pH measurement. Visual observation of color allows pH determination to within 1 unit (see Vogel, “Text-Book of Quantitative Inorganic Analysis” 3rd Edition, Chapter 1.30, page 59 (1961), incorporated by reference herein in its entirety). However, it is difficult to obtain highly accurate measurements using spectroscopic techniques because the visible spectrum of the mixed reagent is generally a cumulative addition of the spectra of individual reagents. Unless the individual spectra are well resolved, it is difficult to invert the fraction of each form for accurate pH calculation.
Additional factors must be considered when performing pH analysis downhole. For example, only a limited number of reagents (pH indicators) can be transported downhole, the nature of the sample cannot be determined a priori, and only limited spectral analysis can be performed downhole. Accordingly, it would be useful to have a broad pH indicator that allows for simple, yet accurate, pH determination. Further, it is difficult to control the amount of reagent added to the sample under investigation in the downhole environment. Accordingly, a pH measurement that is not dependent on reagent concentration would be preferred.
Accordingly, it is an object of the present invention to provide an indicator mixture that retains the advantages of the single reagent method and that is effective over a broad range of pH values.
It is a further object of the present invention to provide a spectroscopic technique to determine the pH of a sample with the accuracy levels comparable to single reagent spectroscopy over a broad range of pH values.
It is yet another object of the present invention to provide a reagent mixture suitable for use in a downhole environment.
The present invention relates to the use of a reagent mixture that allows pH measurement over a broader range of pH than available using conventional spectroscopic techniques. In one embodiment of the present invention, a fluids analyzer for determining the pH of formation fluid in a region of earth formation surrounding a borehole is disclosed comprised of: a reagent container having a mixture of two or more reagents wherein the reagent mixture is capable of detecting either: (1) a pH range broader than each reagent individually or (2) pH more accurately than each reagent individually; and means for mixing formation fluid with the reagent mixture downhole. The fluids analyzer may further include a spectral analyzer means, coupled to receive a mixture of formation fluid and the reagent-mixture from the mixing means for analyzing the optical density of the mixture of formation fluid and reagent mixture in two or more spectral channels. The reagent mixture is capable of measuring pH to an accuracy of about 0.5 units or better. Typical downhole spectral analyzers use spectral channels having bandwidths of approximately 10-20 nm.
A second embodiment of the present invention is a method of making a reagent mixture for determining the pH of a sample comprising: (a) identifying a target pH range; (b) mixing known relative quantities of two or more reagents to create a reagent mixture, wherein the reagent mixture is capable of detecting either: (i) a pH range broader than each reagent individually or (ii) pH to a better accuracy than the reagents individually; (c) optimizing the reagent mixture to identify one or more sets of reagents to be mixed that satisfy the targeted pH range; and (d) characterizing at least one set of reagents.
The sets of reagents may be optimized by identifying one or more sets of reagents by carefully selecting the thermodynamic acid dissociation constants of the reagents, adjusting the relative quantities of the reagents, or adjusting (the bandwidth and/or wavelength of) the spectral channels. This optimization process may be performed by trial and error, or experimentation. It is noted that in some cases optimization may be generally viewed as an error minimization technique; however, optimization may be performed to improve other parameters of interest, such as maximizing sensitivity of pH measurement or signal-to-noise ratio. Alternatively, forward models and algorithms may be developed based on thermodynamic acid dissociation constants, relative quantities (or fractions), and the spectral channels. Once “optimal” reagent sets are identified, at least one of the sets should be characterized to determine the detectable pH range of the mixture. Further, an error analysis should be performed to determine the accuracy of the mixture to measure pH. It is further noted that the absolute concentration of the reagent mixture may be optimized to improve signal-to-noise ratio and reduce the effects of error.
In a third embodiment, a method for determining the pH of formation fluid in a region of earth formation surrounding a borehole is disclosed comprising: (a) storing a reagent mixture in a reagent container coupled to a fluids analyzer, wherein the reagent mixture is capable of detecting either: (i) a pH range broader than each reagent individually or (ii) pH to a better accuracy than each reagent individually; (b) positioning the fluids analyzer downhole; (c) drawing formation fluid into the fluids analyzer; (d) mixing formation fluid and the reagent mixture; and (e) analyzing the optical density of said mixture of formation fluid and reagent mixture in one or more channels to determine the pH of the formation fluid. If only one spectral channel is used, the absolute concentration of the reagent mixture should also be determined. However, if two spectral channels are used, then it is not necessary to determine the absolute concentration of the reagent mixture.
Accordingly, the present invention provides a pH indicator mixture for spectroscopic techniques that is accurate over a broader pH range (as compared to conventional spectroscopic methods). As will be described in detail below, the method disclosed herein uses either (1) two or more spectral channels or (2) one spectral channel and accurate (absolute) reagent concentrations. If optical density (OD) measurements (or transmission, absorption or other spectral measurements which may be converted to OD) at two spectral channels are used, reagent concentration in the sample-reagent mixture is not needed; instead the relative quantities (fractions) of the reagent in the mixture may be used. Furthermore, the reagents need not have well resolved individual spectra. In fact, the accuracy of the method is enhanced if the spectra of the acid and base forms of one reagent are substantially similar to the spectra of the acid and base forms of the other, respectively. Because there is a vast pool of reagents to choose from, it is relatively simple to pick reagents that show similar direction of color change with pH though at different pKa values. Accordingly, the present invention includes algorithms to optimize for the choice of reagents (i.e., their pKa values) based on the pH measurement range of interest. Further, the individual reagent fractions in the mixture may be selected to obtain an optimized mixture over the pH range of interest. It is noted that while the discussion that follows relates to the use of two reagents, the method may be easily extended to three or more reagents.
For the purposes of the present invention, the term “optical techniques” is intended to apply to a broad range of techniques, including but not limited to, spectroscopic, calorimetric, optical, etc. It is further noted that for the purposes of the present invention, the terms “pH sensitive reagent,” “reagent,” and “dye indicator” are used interchangeably.
Further advantages and novel features of the invention will be set forth in the description which follows.
a) and (b) are plots: (a) comparing model predicted pH from experimental ODR values of
a) and (b) are plots: (a) showing a scenario where the acid form spectra of one reagent is identical to the base form spectra of the other and vice versa resulting in the pH being a non-unique function of ODR and (b) showing that pH is a unique function of ODR even when the acid and base forms of the two reagents have identical spectra.
a) and (b) are schematics describing the overall optimization algorithm.
The present invention relates to a spectroscopic technique accurate over a broader pH range (as compared to conventional spectroscopic methods) using reagent mixtures. As will be described in detail below, the method disclosed herein uses either (1) two or more spectral channels or (2) one spectral channel and accurate reagent concentrations. If two spectral channels are analyzed, reagent concentration in the sample-reagent mixture is not needed; instead the relative quantities (fractions) of the reagent in the mixture may be used. Furthermore, the reagents need not have well resolved individual spectra. In fact, the accuracy of the method is enhanced if the spectra of the acid and base forms of one reagent are substantially similar to the spectra of the acid and base forms of the other, respectively. Because there is a vast pool of reagents to choose from, it is relatively simple to pick reagents that show similar direction of color change with pH though at different pKa. Accordingly, the present invention includes algorithms to optimize for the choice of reagents (i.e., their pKa values) based on the pH measurement range of interest. Further, the individual reagent fractions in the mixture may be selected to obtain an optimized mixture over the pH range of interest. It is noted that while the discussion that follows relates to the use of two reagents, the method may be easily extended to three or more reagents.
Equations (1) through (6) may be rewritten for two reagents as follows:
where A1, B1 are acid and base form concentrations, respectively, of reagent 1 in the sample-reagent mixture; A2, B2 are acid and base form concentrations, respectively, of reagent 2 in the sample-reagent mixture; CT1, CT2 are total concentrations of reagent 1 and reagent 2, respectively, in the sample-reagent mixture; f1 is the mole fraction of reagent 1 in the reagent mixture; pKa1, pKa2 are dissociation constants for reagents 1 and 2, respectively.
From Equations (7) through (14):
From Equation (17), which is an analytical equation, once the reagents for the two-reagent mixture are chosen, the relative quantities, and wavelengths (width of the spectral channel) are selected, the ODR becomes a function only of the pH. It is independent of absolute reagent concentrations or volume of reagent mixture added to sample, and therefore retains the advantage of the single reagent measurement. The mixture may be characterized in terms of ODR and pH such that plots and look-up tables may be generated. Alternatively, Equation (17) may be inverted to express pH as an analytical function of ODR (such as by using a program like Mathematica by Wolfram Research, Inc.):
pH=f(ODRλ1λ2,
Equations (7) through (19) can be extended to a system of n reagents:
It is noted that Equations (22) and (24) are analytical expressions.
a) compares model predicted pH values calculated using measured ODR values of
The pH as calculated from Equation (24), however, is not necessarily always a unique function of ODR.
b) shows the pH vs. ODR plot for two reagents (pKa1=7.79, pKa2=6.11, f1=0.5) with identical spectra for its acid and base forms (εA1λj=εA2λj; εB1λj=εB2λj for all j). Here, the present invention works well. These results are contrary to conventional thinking where good spectral resolution would be preferred to calculate pH by inverting the spectra of the mixture for acid and base fractions of each reagent.
Like the single reagent measurement, the mixture of the present invention is independent of total amount of reagent added to the sample. Accordingly, the present methodology is easy to implement in batch or flow injection mode for measuring pH of aqueous samples. The method uses (1) a minimum of two spectral channels if concentration independence is desired or (2) one spectral channel and accurate reagent concentrations. The latter is very sensitive to absolute reagent concentrations and, hence, is potentially less robust. Alternatively, pH may be calculated using regression analysis, if spectral absorption (OD) data at more than two wavelengths or continuous scans are available.
Error Propagation and Analysis in pH Measurement
As mentioned above, a single reagent is sensitive only over a limited pH range around its pKa value. The extent of this range is determined by the accuracy required in the pH measurement and the spectroscopic noise. An error analysis should be performed to determine the measurable range as a function of these two parameters for single reagents and mixed reagents. An error analysis can also be performed to optimize for one or more of: the choice of reagents, relative quantities of the reagents, or spectral channels.
The method of error propagation is used to determine the standard deviation in pH measurement as a function of spectroscopic noise (standard deviation in OD) (Bevington et al., “Data Reduction and Error Analysis for the Physical Sciences,” 3rd Edition, Chapter 3, pages 36-41, (2003), incorporated by reference herein in its entirety).
For x=f(u,ν), the standard deviation in x (σx) as a function of standard deviations in u (σu) and v (σv) is given as:
For a given reagent mixture (fixed pKai, ε, fi) and for a given set of wavelengths (λ1, λ2), the error propagation algorithm may be applied to Equations (20) and (24):
Combining Equations (26) and (27), standard deviation in pH (σpH) measurement is obtained as a function of spectroscopic noise at the two wavelengths λ1 and λ2:
The derivative of pH with respect to ODR may be determined using the analytical expression of Equation (24) (which may be determined by inverting Equation (22) (such as by using packages such as Mathematica by Wolfram Research, Inc.).
Alternatively, because the expression is very long, the derivative from Equation (22) may be numerically calculated provided ODR is a continuous function of pH and differentiable at every point in the interval of interest.
From Equation (28), assuming equal noise at two wavelengths (σOD
Optimization of Reagent Mixtures
Using the error estimation algorithm described above, the reagent mole fraction in the mixture may be optimized to minimize the error over a desired pH range. A possible formulation for the objective function for desired accuracy of 0.1 pH units, for example, over the interval pH1 to pH2, could include:
where m is the number of discrete points into which the interval between pH1 and pH2 is divided and wi is the weight applied to the error contribution at each point. Both wi and p may be chosen to adjust the contribution of the error at each pH value in the desired range. This method provides the flexibility of having different levels of accuracy within a broader constraint of 0.1 pH units error. For example, by assigning a higher weight to the points in the interval between 5 and 6, one can optimize for 0.1 unit accuracy over the entire range of 4 to 9 with a higher level of accuracy between 5 and 6.
While this is one form of the optimization function, one skilled in the art would recognize that other algorithms may be used to optimize reagent mixtures.
Standard minimization routines (such as the non-gradient simplex or amoeba DUMPOL algorithm in IMSL package from Visual Numerics, Inc.) can be used for the optimization of reagent mole fractions in the mixture.
As discussed above, it is possible to obtain reagent combinations where the pH is a non-unique function of ODR. To prevent this, it is recommended that when a set of reagents are chosen, the mixture is forward modeled with known relative quantities or mole fractions of reagents to calculate pH as a function of ODR. The plot can be visually inspected or algorithms may be used to inspect the pH values to check for uniqueness. Generally, it is expected that when reagents in the mixture have different pKa values but their acid and base forms show similar color transformations with pH (for example, colors of all reagents changing from yellow to blue/red as they go from acid to base), the reagent combination should provide a unique pH vs. ODR plot.
It is also possible to optimize the reagent selection process (with a final check being done as discussed above for uniqueness). Thus, for a fixed mole fraction, pKa values of the reagents in the mixture may be optimized so as to maximize accuracy in the pH interval of interest.
Reagents may also be chosen to allow pH measurement over discontinuous pH intervals of interest. Thus, in a two-reagent mixture of phenol red (pKa=7.79), for example, and bromophenol blue (pKa=4.11) where the pKa values are separated by more than 3 units, the pH intervals on the low end (2.8-5.1 units) and the high end (6.6-8.7) may be simultaneously targeted without any sensitivity for regions in between.
The general method of making and optimizing the pH indicator mixture is described in
A non-limiting preferred algorithm is shown in
The procedure is then repeated for the optimized set of reagents 920c-920d using the optimized thermodynamic acid dissociation constants, relative weight fractions, and spectral channels. However, now the reagent sets are optimized to determine the optimal relative weight fractions for the reagent sets identified in 920b. The procedure is repeated once more for the optimized set of reagents 920e-920f using the optimized thermodynamic acid dissociation constants, the optimized relative weight fractions, and spectral channels. But, now the reagent sets are optimized to determine the optimal spectral channels for the reagent sets identified in 920d.
It is noted that each level of optimization need not be performed. One may chose to optimize for one or more (but not necessarily all) of: the thermodynamic equilibrium constants, relative quantities, or spectral channels at any time as shown by the dotted arrow to the left. At any point in the process, the optimized reagent sets may be checked for a unique correlation of pH as a function of ODR 930a and characterized for later use for spectroscopic pH measurement 930b. It is noted that the absolute concentration of the reagent mixture may also be adjusted to improve error (i.e., the signal to noise ratio.)
Apparatus Example
The present invention may be implemented in a laboratory or in various downhole fluid analysis tools. For example, the apparatus described in commonly owned co-pending U.S. patent application Ser. No. 10/667,639 filed Sep. 22, 2003, entitled “Determining Fluid Chemistry of Formation Fluid by Downhole Reagent Injection Spectral Analysis” (incorporated by reference herein in its entirety) is a preferred implementation of the present reagent mixture.
One non-limiting embodiment of the present invention, as shown in
While the invention has been described herein with reference to certain examples and embodiments, it will be evident that various modifications and changes may be made to the embodiments described above without departing from the scope and spirit of the invention as set forth in the claims
Number | Date | Country | Kind |
---|---|---|---|
0227267.2 | Nov 2002 | GB | national |
Number | Name | Date | Kind |
---|---|---|---|
7427504 | Torgersen et al. | Sep 2008 | B2 |
Number | Date | Country |
---|---|---|
2395555 | May 2004 | GB |
60202359 | Dec 1985 | JP |
Number | Date | Country | |
---|---|---|---|
20090084175 A1 | Apr 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10782209 | Feb 2004 | US |
Child | 12201588 | US |