Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHODS AND APPARATUS FOR THE DOWNHOLE ANALYSIS OF THE COMPOSITION OF FORMATION GASES
Document Type and Number:
WIPO Patent Application WO/2016/090118
Kind Code:
A1
Abstract:
Methods and apparatus are provided for determining down-hole the composition of natural gas from a formation. Some methods include downhole measurements of the near-infrared spectra and the Joule-Thomson coefficient of the gas, and processing the results of the downhole measurements in order to obtain a determination of the amounts of a plurality of natural gas components such as CH4, C2H6, CO2, N2, and H2S.

Inventors:
IYER JAISREE (US)
RAMAKRISHNAN TERIZHANDUR S (US)
Application Number:
PCT/US2015/063697
Publication Date:
June 09, 2016
Filing Date:
December 03, 2015
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SCHLUMBERGER CA LTD (CA)
SCHLUMBERGER SERVICES PETROL (FR)
SCHLUMBERGER TECHNOLOGY BV (NL)
SCHLUMBERGER TECHNOLOGY CORP (US)
International Classes:
E21B49/08; E21B47/06; G01V8/02
Foreign References:
US20070119244A12007-05-31
US20110042070A12011-02-24
US20120055242A12012-03-08
US20110029273A12011-02-03
US20140326063A12014-11-06
Attorney, Agent or Firm:
MATTHEWS, Daniel, S. et al. (IP Administration Center of ExcellenceRoom 472, Houston Texas, US)
Download PDF:
Claims:
WHAT IS CLAIMED IS:

1. A method of analyzing down-hole in a formation a formation gas sample, the method comprising:

storing portions of the formation gas sample in first and second downhole chambers of a downhole tool at respective first and second initial pressures;

flowing at least a portion of the formation gas sample through a porous element in the downhole tool or a throttling valve in the downhole tool, while permitting the first and second initial pressures to vary, where the first chamber is upstream the porous element and the second chamber is downstream the porous element;

measuring respective upstream and downstream temperatures and respective upstream and downstream pressures; and

using the respective upstream and downstream temperatures and respective upstream and downstream pressures to determine a Joule-Thomson coefficient (77) for the gas sample.

2. The method according to claim 1 , wherein:

the Joule-Thomson coefficient is determined according to η= d†/dP, where df / dP is an isenthalpic change in temperature T relative to a change in pressure P at a fixed composition.

3. The method according to claim 2, further comprising:

determining indications of the composition of the gas sample utilizing the Joule- Thomson coefficient 77.

4. The method according to claim 3, wherein: the determining comprises utilizing near-infrared spectra of the gas sample.

5. The method according to claim 4, wherein: the utilizing near-infrared spectra comprises estimating methane (CH4), ethane (C2H6) and carbon dioxide (C02) concentrations in the gas sample utilizing the near- infrared spectra.

6. The method according to claim 4, wherein: the determining comprises solving equations

p

C = 0

RTZ(T,P,XCH4,XC2 H6 ,XCO222 s) ' η— η(Τ, P, XQH4 , XC2 H6 > XCO2 > XN2 > H2 S) = 0, and CH4 + C2 H6 + XC02 + N2 ~*~ H2 S 1 = 0, where x is an indication of a mole fraction of an indicated constituent of the gas sample, fj is an estimated Joule-Thomson value for the gas sample, C is the total concentration of the formation gas sample, R is the gas constant, and Z is a compressibility factor of the gas sample.

7. The method according to claim 6, wherein the determining comprises finding the mole fractions of methane, ethane, carbon dioxide, nitrogen, and hydrogen sulfide.

8. The method according to claim 1, wherein the flowing comprises flowing the formation gas sample for a period of time until a system with the chambers and the porous element approaches or reaches a steady-state.

9. The method according to claim 1, wherein the storing comprises obtaining the formation gas sample from the formation and controllably directing the formation gas sample to the first and second downhole chambers.

10. A system for investigating gas from a formation traversing a borehole, the system comprising:

a selectively extendible fluid admitting assembly configured to selectively isolate a portion of a wall of the borehole and establish fluid communication with the formation; first and second chambers in fluid communication with the fluid admitting assembly, the first and second chambers configured to receive a gas sample from the fluid admitting assembly;

a porous element or a throttling valve, in fluid communication with the first and second chambers, wherein the first chamber is upstream of the porous element or the throttling valve and the second chamber is downstream of the porous element or the throttling valve;

an upstream pressure sensor f uidly coupled to the first chamber and configured to provide upstream pressure readings;

a downstream pressure sensor fluidly coupled to the second chamber and configured to provide downstream pressure readings; an upstream temperature sensor coupled to the upstream chamber and configured to provide upstream temperature readings;

a downstream temperature sensor coupled to the second chamber and configured to provide downstream temperature readings;

control valves disposed between the at least one of (a) a porous element and (b) a throttling valve and the first and second chambers and between the first and second chambers and the fluid admitting assembly; and

a processor configured to generate a determination of a Joule-Thomson coefficient (77) for the gas sample utilizing the readings from the upstream pressure sensor, the downstream pressure sensor, the upstream temperature sensor and the downstream temperature sensor.

11. The system of claim 10, wherein:

the processor is configured to generate the determination of the Joule-Thomson coefficient according to η = ΔΓ/ΔΡ, where ΔΓ/ΔΡ « d†/dP, the isenthalpic change in temperature T obtained from the readings of the upstream temperature sensor and the downstream temperature sensor relative to a change in pressure P obtained from the readings of the upstream pressure sensor and the downstream pressure sensor.

12. The system according to claim 11, wherein:

the processor is configured to generate indications of a composition of the gas sample utilizing the Joule-Thomson coefficient 77.

13. The system according to claim 12, further comprising:

an optical fluid analyzer fluidly coupled to the fluid admitting assembly and configured to detect near infrared spectra of the gas sample, the optical fluid analyzer coupled to the processor, wherein the processor is configured to utilize near infrared spectra to generate the indications of a composition of the gas sample.

14. The system according to claim 13, wherein:

the processor is configured to utilize the near-infrared spectra to estimate concentration of methane (CH4), ethane (C2H6) and carbon dioxide (C02) in the gas sample.

15. The system according claim 13, wherein:

the processor is configured to generate the indications of a composition of a gas sample by solving equations

p

C = 0

RTZ(T,P,XCH4,XC2 H6 ,XCO222 s) ' η— η(Τ, P, XQH4 , XC2 H6 > XCO2 > XN2 > H2 S) = 0, and CH4 + C2 H6 + XC02 + N2 ~*~ H2 S 1 = 0,

where x is an indication of a mole fraction of an indicated constituent of the gas sample, fj is an estimated Joule-Thomson value for the gas sample, C is the total concentration of the gas sample , R is the gas constant, and Z is a compressibility factor of the gas sample.

16. A system for investigating gas from a formation traversing a borehole, the system comprising: a borehole tool including

(i) a fluid admitting assembly configured to selectively isolate a

portion of a wall of the borehole and establish fluid communication with the formation,

(ii) an optical fluid analyzer in fluid communication with the fluid admitting assembly, the optical fluid analyzer configured to utilize a near infrared spectrum to analyze a gas sample obtained from the fluid admitting assembly, and

(iii) a Joule-Thomson coefficient analyzer including

(A) first and second chambers in fluid communication with the fluid admitting assembly,

(B) a porous element or a throttling valve, in fluid

communication with the first and second chambers,

(C) pressure sensors coupled to the first and second

chambers,

(D) temperature sensors coupled to the first and second

chambers, and

(E) control valves coupled between the porous element and the first and second chambers and between the first and second chambers and the fluid admitting assembly; and at least one processor coupled to the Joule-Thomson coefficient analyzer and to the optical fluid analyzer and configured to (i) utilize readings from the pressure sensors and the temperature sensors to generate a determination of a Joule -Thomson coefficient (77) for the gas sample, (ii) find concentrations of methane (CH4), ethane (C2H6) and carbon dioxide (C02) in the gas sample, and (iii) generate an indication of the

concentration or mole fraction of at least one of hydrogen sulfide (H2S) and

nitrogen (N2).

17. The system according to claim 16, wherein:

the at least one of hydrogen sulfide (H2S) and nitrogen (N2) comprises both hydrogen sulfide and nitrogen, and the at least one processor is configured to generate the indications of the mole fractions of methane, ethane, carbon dioxide, hydrogen sulfide and nitrogen by solving equations

p

C = 0

RTZ(T,P,XCH4,XC2 H6 ,XCO222 s) ' η— η(Τ, P, XQH4 , XC2 H6 > XCO2 > XN2 > H2 S) = 0, and CH4 + C2 H6 + XC02 + N2 ~*~ H2 S 1 = 0,

where x is an indication of a mole fraction of an indicated constituent of the gas sample, fj is an estimated Joule-Thomson value for the gas sample, C is the total concentration of the gas phase , R is the gas constant, and Z is a compressibility factor of the gas sample.

18. The system according to claim 17, wherein:

the first chamber is upstream of the porous element or throttling valve and the second chamber is downstream of the porous element or throttling valve;

the pressure sensors include an upstream pressure sensor fluidly coupled to the first chamber and providing upstream pressure readings, and a downstream pressure sensor fluidly coupled to the second chamber and providing downstream pressure readings;

the temperature sensors include an upstream temperature sensor coupled to the first chamber and configured to provide upstream temperature readings, and a

downstream temperature sensor coupled to the second chamber and configured to provide downstream temperature readings.

19. The system according to claim 16, wherein the at least one processor includes an uphole processor located up-hole from the borehole tool.

20. The system according to claim 19, wherein the uphole processor communicates with the borehole tool via a cable.

21. A system for investigating gas from a formation traversing a borehole, comprising: a borehole tool including (i) a fluid admitting assembly adapted to selectively isolate a portion of a wall of the borehole and establish fluid communication with the formation, (ii) an optical fluid analyzer in fluid communication with the fluid admitting assembly, the optical fluid analyzer configured to utilize a near infrared spectrum to analyze a gas sample obtained from the fluid admitting assembly, (iii) a Joule-Thomson coefficient analyzer including first and second chambers in fluid communication with the fluid admitting assembly, (iv) a porous element or a throttling valve, in fluid

communication with the first and second chambers, (v) pressure sensors coupled to the first and second chambers, (vi) temperature sensors coupled to the first and second chambers, and (vii) control valves coupled between the porous element and the first and second chambers and between the first and second chambers and the fluid admitting assembly; and

at least one processor coupled to the Joule-Thomson coefficient analyzer and to the optical fluid analyzer, the at least one processor being configured to (i) utilize readings from the pressure sensors and the temperature sensors and generate a

determination of a Joule-Thomson coefficient (77) for the gas sample, and (ii) find a concentration and a mole fraction of at least one of methane (CH4), ethane (C2H6), carbon dioxide (C02), hydrogen sulfide (H2S) and nitrogen (N2).

22. The system according to claim 21 , wherein:

the at least one processor is configured to generate the indications of the mole fractions of methane, ethane, carbon dioxide, hydrogen sulfide and nitrogen by solving equations

p

C = 0

RTZ(T,P,XCH4,XC2 H6 ,XCO222 s) ' η— η(Τ, P, XQH4 , XC2 H6 > XCO2 > XN2 > H2 S) = 0, and CH4 + C2 H6 + XC02 + N2 ~*~ H2 S 1 = 0,

where x is an indication of a mole fraction of an indicated constituent of the gas sample, fj is an estimated Joule-Thomson value for the gas sample, C is the total concentration of the gas phase , R is the gas constant, and Z is a compressibility factor of the gas sample.

Description:
METHODS AND APPARATUS FOR THE DOWNHOLE ANALYSIS OF THE COMPOSITION OF FORMATION GASES

TECHNICAL FIELD

[0001] The subject disclosure relates to the hydrocarbon industry. More particularly, the subject disclosure relates to apparatus and methods for evaluating down- hole the composition of formation gases.

BACKGROUND

[0002] Natural gas reserves include hydrocarbon components such as methane

(CH 4 ), ethane (C 2 H 6 ), propane (C3¾), and butane (C 4 H 10 ), and inorganics such as carbon dioxide (C0 2 ), hydrogen sulfide (H 2 S), nitrogen (N 2 ), oxygen (0 2 ), and helium (He). The composition of the gas reserves varies with the source type. Associated gas reserves have lower concentrations of inorganic components, such as C0 2 , H 2 S, and N 2 , than non- associated or shale gas reserves.

[0003] Table 1 (taken from multiple sources such as Bullin, K.A. and Krouskop,

P.E., "Compositional variety complicates processing plans for US shale gas", Oil and Gas Journal, Vol. 107, pp. 50-55 (2009), Moulijn, J. A., et al, Chemical Process Technology, John Wiley and Sons Ltd., Somerset, New Jersey, USA (2013), Rojey, A., et al, Natural gas production processing transport, Editions Technip, Paris, France (1997), and Hea, J.P., "Hydrocarbon wetness, NGL, and sulphur byproducts of natural gases in western Canada", Technical Report 2352, Geological Suvery of Canada (April 1991)) shows the range of concentrations for the five major components in natural gas reservoirs. For pricing purposes, it is useful to determine the composition-dependent heat of combustion of the varied gases,.

Table 1 : All values are in volume %, except for C 2 H 6 concentration in non-associated gas, which is given in mole %

[0004] Downhole gas composition determines the calorific value of the gas reserves; but data on the spatial variability of gas composition is also important for developing zonal production strategies. Additionally, information on the presence of corrosive gases such as H 2 S and C0 2 are desirable for the design and specification of completion and production hardware. Traditionally, the gas composition is determined by sampling down-hole followed by surface laboratory analysis such as gas

chromatography. Surface analysis is relatively expensive and slow, and sample integrity has to be ensured in storage. The number of samples that can be transported to the surface is also limited.

[0005] Several technologies have been proposed to carry out the downhole compositional analysis of gases. These include technologies based on (near) infrared spectroscopy (see, U.S. Patent No. 4,994,671 to Safmya et al, U.S. Patent No. 5,167,149 to Mullins et al, U.S. Patent No. 5,201,220 to Mullins et al, U.S. Patent No. 5,266,800 to Mullins et al, U.S. Patent No. 5,331,156 to Hines et al, U.S. Patent No. 5,859,430 to Mullins et al., all of which are hereby incorporated by reference herein in their entireties), photoacoustic spectroscopy (see, U.S. Patent No. 7,520,158 to DiFoggio which is hereby incorporated by reference herein in its entirety), mass spectroscopy, gas chromatography (see U.S. Patent Application Publication No. 2012/0053838 to Andrews et al., which is hereby incorporated by reference herein in its entirety), nuclear magnetic resonance (see U.S. Patent No. 7,126,332 to Blanz et al., which is hereby incorporated by reference herein in its entirety), and electrochemistry (see, U.S. Patent No. 8,519,713 to Lawrence et al., which is hereby incorporated by reference herein in its entirety). The most successful of these technologies has been infrared absorption spectroscopy as deployed in the downhole fluid analyzer (DFA) tool of Schlumberger.

[0006] The DFA uses two spectrometers with twenty and sixteen channels spanning wavelengths of 400-2100 nm and 1600-1800 nm respectively. Using absorption spectra, the DFA tool can determine the approximate relative fractions of methane, ethane, carbon dioxide, and the collective composition of all other

hydrocarbons in the gas stream. See, Dong, C, et al, "New downhole-fluid-analysis tool for improved reservoir characterization", SPE Reservoir Evaluation and Engineering 11(6), pp. 1107-1116 (2008). The limitation of infrared spectroscopy is that the composition of homonuclear diatomic molecules, e.g., nitrogen, oxygen, hydrogen, and inert gases such as helium cannot be determined. These gases are substantially infrared inactive.

SUMMARY [0007] This summary is provided to introduce a selection of concepts that are further described below in the detailed description. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used as an aid in limiting the scope of the claimed subject matter.

[0008] In accordance with some example embodiments, a method of analyzing down-hole in a formation a formation gas sample includes: storing portions of the formation gas sample in first and second downhole chambers of a downhole tool at respective first and second initial pressures; flowing at least a portion of the formation gas sample through at least one of (a) porous element in the downhole tool and (b) a throttling valve in the downhole tool, while permitting the first and second initial pressures to vary, where the first chamber is upstream the porous element and the second chamber is downstream the porous element; measuring respective upstream and downstream temperatures and respective upstream and downstream pressures; and using the respective upstream and downstream temperatures and respective upstream and downstream pressures to determine a Joule-Thomson coefficient (η) for the gas sample.

[0009] In accordance with some example embodiments, a system for

investigating gas from a formation traversing a borehole includes: a selectively extendible fluid admitting assembly configured to selectively isolate a portion of a wall of the borehole and establish fluid communication with the formation; first and second chambers in fluid communication with the fluid admitting assembly, the first and second chambers configured to receive a gas sample from the fluid admitting assembly; at least one of (a) a porous element and (b) a throttling valve, in fluid communication with the first and second chambers, wherein the first chamber is upstream of the at least one of (a) a porous element and (b) a throttling valve and the second chamber is downstream of the at least one of (a) a porous element and (b) a throttling valve; an upstream pressure sensor fluidly coupled to the first chamber and configured to provide upstream pressure readings; a downstream pressure sensor fluidly coupled to the second chamber and configured to provide downstream pressure readings; an upstream temperature sensor coupled to the upstream chamber and configured to provide upstream temperature readings; a downstream temperature sensor coupled to the second chamber and configured to provide downstream temperature readings; control valves disposed between the at least one of (a) a porous element and (b) a throttling valve and the first and second chambers and between the first and second chambers and the fluid admitting assembly; and a processor configured to generate a determination of a Joule-Thomson coefficient (η) for the gas sample utilizing the readings from the upstream pressure sensor, the downstream pressure sensor, the upstream temperature sensor and the downstream temperature sensor.

[0010] In accordance with some examples, a system for investigating gas from a formation traversing a borehole includes: a borehole tool including a fluid admitting assembly configured to selectively isolate a portion of a wall of the borehole and establish fluid communication with the formation, an optical fluid analyzer in fluid communication with the fluid admitting assembly, the optical fluid analyzer configured to utilize a near infrared spectrum to analyze a gas sample obtained from the fluid admitting assembly, and a Joule-Thomson coefficient analyzer including first and second chambers in fluid communication with the fluid admitting assembly, at least one of (a) a porous element and (b) a throttling valve, in fluid communication with the first and second chambers, pressure sensors coupled to the first and second chambers, temperature sensors coupled to the first and second chambers, and control valves coupled between the porous element and the first and second chambers and between the first and second chambers and the fluid admitting assembly; and at least one processor coupled to the Joule- Thomson coefficient analyzer and to the optical fluid analyzer and configured to (i) utilize readings from the pressure sensors and the temperature sensors to generate a determination of a Joule-Thomson coefficient ( for the gas sample, (ii) find

concentrations of methane (CH 4 ), ethane (C 2 H 6 ) and carbon dioxide (C0 2 ) in the gas sample, and (iii) generate an indication of the concentration or mole fraction of at least one of hydrogen sulfide (H 2 S) and nitrogen (N 2 ) .

[0011] In accordance with some examples, a system for investigating gas from a formation traversing a borehole includes: a borehole tool including (i) a fluid admitting assembly adapted to selectively isolate a portion of a wall of the borehole and establish fluid communication with the formation, (ii) an optical fluid analyzer in fluid

communication with the fluid admitting assembly, the optical fluid analyzer configured to utilize a near infrared spectrum to analyze a gas sample obtained from the fluid admitting assembly, (iii) a Joule-Thomson coefficient analyzer including first and second chambers in fluid communication with the fluid admitting assembly, (iv) at least one of (a) a porous element and (b) a throttling valve, in fluid communication with the first and second chambers, (v) pressure sensors coupled to the first and second chambers, (vi) temperature sensors coupled to the first and second chambers, and (vii) control valves coupled between the porous element and the first and second chambers and between the first and second chambers and the fluid admitting assembly; and at least one processor coupled to the Joule-Thomson coefficient analyzer and to the optical fluid analyzer, the at least one processor being configured to (i) utilize readings from the pressure sensors and the temperature sensors and generate a determination of a Joule-Thomson coefficient (η) for the gas sample, and (ii) find a concentration and a mole fraction of at least one of methane (CH 4 ), ethane (C 2 H 6 ), carbon dioxide (C0 2 ), hydrogen sulfide (H 2 S) and nitrogen (N 2 ).

[0012] In accordance with some examples, a method for determining down-hole the composition of natural gas from a formation includes a downhole measurement of the near-infrared spectrum and the Joule-Thomson coefficient of the gas, and processing the results of the downhole measurements in order to obtain a determination of the amounts of CH 4 , C 2 H 6 , C0 2 , N 2 , and H 2 S in the gas.

[0013] In accordance with some examples, an apparatus for determining downhole the composition of natural gas from a formation includes a formation testing tool including a fluid admitting assembly, a near-infrared optical fluid analyzer, a device for measuring Joule-Thomson coefficient, and one or more processors. The optical fluid analyzer is utilized to obtain indications of the amount of CH 4 , C 2 ¾, C0 2 in a gas sample obtained by the fluid admitting assembly. The Joule-Thomson coefficient analyzer includes two chambers that store formation gases obtained by the fluid admitting assembly, a porous element, upstream and downstream temperature sensors, upstream and downstream pressure sensors, and flow control elements such as valves. The flow control elements and the chambers are adapted to cause gas stored in one chamber at a first pressure to flow through the porous element to the other chamber, and the differences in measured pressures and temperatures are utilized to obtain a Joule- Thomson coefficient determination for the gas. With the information from the optical fluid analyzer and the Joule-Thomson coefficient analyzer, the processor(s) generates a determination of the amounts of N 2 and H 2 S in the gas.

[0014] Additional aspects, embodiments, objects and advantages of the disclosed methods may be understood with reference to the following detailed description taken in conjunction with the provided drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figures la and lb are plots of the Joule-Thomson coefficient as a function of temperature for hydrogen sulfide and nitrogen respectively.

[0016] Figure 2 is a schematic of an experimental arrangement for the measurement of the Joule-Thomson coefficient.

[0017] Figures 3 a and 3b are plots of predicted compositions and actual compositions for hydrogen sulfide and nitrogen respectively.

[0018] Figures 4a and 4b are plots of predicted compositions and actual compositions for hydrogen sulfide and nitrogen respectively, with different assumed errors in the Joule-Thomson coefficient measurement.

[0019] Figure 5 is a block diagram of a downhole apparatus for measuring composition of gases flowing from a formation. [0020] Figure 6 is a block diagram of a portion of the apparatus of Fig. 5, useful for measuring Joule-Thomson coefficients for the gases.

[0021] Figure 7 is a flow diagram of a method for measuring down-hole the composition of gas.

DETAILED DESCRIPTION

[0022] In one aspect, many natural gases from geological formations comprise one or more of CH 4 , C 2 H 6 , C0 2 , N 2 , and H 2 S. While apparatus and methods are known for downhole determination of the presence and concentrations of CH 4 , C 2 H 6 , and C0 2 using the near-infrared spectra, these apparatus and methods are ineffective in measuring and determining the amounts of N 2 and H 2 S in the gas.

[0023] Before turning to specific embodiments, a description of the underyling physics utilized by the embodiments may be helpful. In particular, the Joule-Thomson coefficient η of a gas is defined as the isenthalpic change (constant enthalpy H) of temperature T, with respect to pressure P. The fundamental equation for a

multicomponent gas system is of the form U = U(S, V, Nj), where U is the internal energy, S is the entropy, V is the volume, and N t is the number of moles of component i of the gas. By definition, T = dU/dS, P = -dU/dV, and H= U + PV. Given that U, V, and S are first order homogeneous extensive quantities with respect to N =∑ £ N and that C p , the specific heat at constant pressure, and x t (mole fraction) are positive, it can be shown that T = T (ρ,— , χ = f{P, h, x ), i.e., T may be expressed as a function of pressure, molar enthalpy h = H/N, and the mole fraction of the gas components. By definition, the Joule-Thomson coefficient 77 is η = δΤ/δΡ. (1)

[0024] The Joule-Thomson coefficient η delineates some components in a gas stream more effectively than measurements of gas density (p), viscosity (μ), and specific heat (C p ). For example, for a given T and P, sufficiently away from the critical point, gases with similar molecular weight have nearly the same p, but may differ in 77.

Furthermore, η takes on both positive and negative values, with a strong pressure dependence, as illustrated parametrically in Figs, la and lb. In particular, for three different pressures, Fig. la shows the variation of η for H 2 S, while Fig. lb shows the variation of η for N 2 , borh with resepect to temperature. A comparison of Figs, la and lb reveals entirely different pressure dependencies of η for the two gases. In addition, at the temperatures of relevance, the numerical value of η is enough to distinguish between the two gases.

[0025] For a gas-stream, η is measured by flowing gas through an insulated porous plug or a throttling valve and measuring upstream and downstream pressures and temperatures. The ratio of the temperature difference to the pressure difference is equal to the Joule-Thomson coefficient, because the flow is nearly isenthalpic. Since η varies with pressure and temperature, effort is taken to keep the flow rate small enough for the ratio to be unaffected by the magnitude of the pressure difference. At the same time, the flow rate should have a large enough magnitude for the temperature changes to be resolved. Since η has a magnitude of 1 K MPa "1 , for reasonable accuracy, about a one to two MPa pressure drop may be used in the flowing gas stream on an inlet gas stream at a few tens of MPa in pressure.

[0026] A schematic of an experimental setup that could be used to measure the

Joule-Thomson coefficient of a gas stream is shown in Fig. 2 and includes a flow line FL, insulation I around a portion of the flow line, a throttling valve V located in the insulated portion of the flow line FL, upstream temperature and pressure sensors, TU and PU respectively, located in the insulated portion of the flow line, and downstream

temperature and pressure sensors TD and PD respectively, located in the insulated portion of the flow line. As discussed hereinafter with reference to Fig. 6, in a downhole tool a similar arrangement can be provided by attaching an adiabatic throttling valve or a porous plug within the insulated flowline such that steady state temperature and pressure differences may be measured across the valve or the plug.

[0027] To determine whether the Joule-Thomson coefficient could be used to find the presence and concentrations of N 2 and H 2 S in a gas stream using an apparatus such as shown in Fig. 2, a calculation of 7 was first made for several natural gas mixtures having temperatures, pressures, and compositions similar to those found in gas reservoirs.

Accurate η measurement is difficult because of the small temperature differences compared to the accuracy of temperature sensors. Therefore, conservatively, a normally distributed error of 10% to the reported values of η was added i.e., the value of η used in the calculations was obtained from a Gaussian distribution centered at the η obtained from REFPROP (the National Institute of Standards and Technology (NIST) Reference Fluid Thermodynamic and Transport Properties Database Version 8.0), with a standard deviation of 10%. Then, an assumption was made that near-infrared absorption measurements can be used to determine the molar concentrations of CH 4 , C 2 H 6 , and C0 2 . Because these measurements do not provide exact results, a probability density function (PDF) of the errors in the concentration measurements of CH 4 , C 2 H 6 , and C0 2 from near- infrared absorption would be added. In the illustrative example, as an approximation, distributed error was added to the mole fraction because that error was specified in the data. For each of the three gases, the mole fraction errors allow the calculation of the synthetic concentration measurements, provided the total concentration had no errors. The synthetic concentrations are the product of the total concentration and the mole fractions. The PDFs were generated from the data reported by Fujisawa et al. (see, Fujisawa, G., et al., "Near-infrared compositional analysis of gas and condensate reservoirs fluids at elevated pressures and temperatures", Applied Spectroscopy 56(12) pp. 1615-1620 (2002)) and van Agthoven et al. (see, van Agthoven, M.A., et al, "Near- infrared spectral analysis of gas mixtures", Applied Spectroscopy 56(5) pp. 593-598 (2002)) and are tabulated in Table 2. Note that the concentration of "higher"

hydrocarbons (i.e., propane, butane, etc.) are not included in Table 2 because these are often not relevant for the mixtures considered here. To use the information in Table 2, three separate Gaussian distribution functions were fitted to the errors associated with the CH 4 , C 2 H 6 , and C0 2 mole fractions, although calculations could have been carried out with concentrations if error specification had been available. The mean and standard deviation of the Gaussian distribution for the errors in CH 4 , C 2 H 6 , and C0 2 mole fractions were -1.25% and 4.32%, -2.43% and 21.17% and 11.54% and 12.32%, respectively; however, if the computed mole fractions as measurement substitutes became negative, they were set to zero. From Table 2, it is evident that the error in the concentration measurement depends on the mole fraction value, with higher errors typically associated with lower mole fractions. In the absence of sufficient information, this mole fraction dependency of the error was not incorporated in the calculations.

Table 2— All numbers stated in percentages including errors.

[0028] Using the mixture Joule-Thomson coefficient as computed from

REFPROP at the T and P of interest, a noise value is added to η as a measurement substitute. The CH 4 , C 2 H 6 , and C0 2 concentrations as measurement substitutes are also known. The H 2 S and N 2 concentrations were then determined using REFPROP's model for Joule-Thomson coefficient of gaseous mixtures. More particularly, the concentrations of the constituents of the gas stream may be expressed according to Q = (¾, where ¾ is the mole fraction of the species i, and C is the total number of moles per unit volume, also called (total) concentration. These ¾ are unknowns for the species CH 4 , C 2 H 6 , C0 2 , H 2 S, and N 2 . For assumed values of these such that∑ £ x £ =l , reference software such as REFPROP may be used to predict the Joule-Thomson coefficient as a function of T, P, and The final consideration is the total number of molecules per unit volume, i.e., the concentration. A compressibility factor Z for a given set of T, P, and x may be calculated using a package such as REFPROP. Knowing the compressibility factor from PV = nZRT, the total concentration

C = n/V = P/ZRT (2) is obtained, where R is the gas constant.

[0029] Given the measurements η, T, P and the spectroscopic determination of the concentrations of methane, ethane, and carbon dioxide, the concentrations of H 2 S and N 2 are obtained as follows. First, using REFPROP, an estimated Joule-Thomson value fj (a function) may be constructed as fj(T, P, XQH 4 , X C 2 H 6 > X CO 2 > X N 2 > H 2 S) - (3)

Mole fraction values for N 2 and H 2 S may then be calculated by solving η— η( , P, X C H 4 , XC 2 H 6 > X CO 2 > X N 2 > X H 2 S) — 0, (5) and CH 4 + C 2 H 6 + x co 2 + N 2 + H 2 S - 1 = 0, (6) given that concentrations C H 4 ? CX C2 H 6 an d Cx C o 2 are known from calculations utilizing near infrared optical absorption measurements and η is the measurement for Joule-Thomson coefficient.

[0030] The predicted compositions generated by solving equations (4)-(6) are shown in Figs. 3a and 3b which respectively compare the predicted H 2 S and N 2 concentrations with the actual ones. For the purpose of this computation, the

measurement substitute for the Joule-Thomson coefficient i.e., the calculation with the noise added as stated previously, has been used. The presence of circles close to the solid black diagonal line indicates excellent agreement between the predictions and the actual concentrations. The black dashed lines indicate an error of ±0.05 (in mole fraction units). The root mean squre errors between the predicted mole fractions of N 2 and H 2 S and the actual compositions of N 2 and H 2 S are 0.06 and 0.08 (in mole fraction units) respectively. This is larger than the typical error associated with C H 4 ? X C 2 H 6 > an d *co 2 determined using near-infrared absorption, because components H 2 S and N 2 are added here.

Addition of these components also makes the concentration of the other components lower, thus increasing relative error. The test cases for which the errors in HzS and Nz are high occur when the measurement error associated with η is also high. In fact, if the error in the Joule-Thomson coefficient is reduced by half, the root mean squre error reduces to 0.05 and 0.06 for N 2 and H 2 S, respectively. These predictions are shown in Figs. 4a and 4b.

[0031] For a down-hole system, and as discussed in more detail hereinafer, the sampled gas may be first collected in a sample chamber. If desired, the sample may be throttled down to lower pressures in more chambers. In one aspect, it can be seen that η may be measured from a few liters of gas stored in a chamber at formation pressure. In another aspect, it can be shown that relatively quick measurements (e.g., measurements completed in less than 15 minutes) can be made unaffected by the nonlinearities inherent in such measurements.

[0032] Consider the flow of gas across a porous disc. In one aspect, it may be useful to fix the minimum temperature change that will be measured or is measurable, and then compute an appropriate pressure change. The pressure change gives an estimate for the velocity, from which the suitability of Darcy's law may be evaluated, thus providing a self-consistency check. An estimate for flow rate is then obtained based on suitable geometry for the porous medium. It is then relevant to estimate the time scale for temperature stabilization, and then compute the total amount of gas required. In one aspect, this total volume may be small compared to the collection chamber volume, while requiring a flow rate that will enable a reasonably small stabilization time.

[0033] Since the pressure drop is smaller than the absolute pressure, say 10%, a pressure scale is given by

P = μνΐ/k (7) where V is the characteristic velocity, L is the medium's length, and k is the permeability. For P = 2 MPa, L = 0.01 m, μ = 0.018 mPa s, and k = 0.001 μιη 2 , a velocity V =

0.011 m s "1 is obtained. Note that a permeability k of about 1 mD was chosen.

[0034] In order to ensure that the velocity is sufficiently low for Darcy's law to be applicable, a particle diameter may be estimated from the relationship k ~— r p where r p is the pore radius, is the porosity and m is the cementation exponent derived from electrical formation factor. A pore radius r p of about 0.61 μιη can be calculated for φ = 0.4 and m = 1.8. With a gas density of about 128 kg m "3 , the Reynolds number based on pore diameter is 0.1, sufficiently small for non-Darcy effects to be negligible.

[0035] The time scale is dictated by two separate criteria. The first time scale is given by a pressure diffusion time scale T p . The second time scale T cT is the convective transport of temperature as a result of the pressure drop. Other time scales, while present, are similar in magnitude to the other two. The pressure and convection time-scales may be shown to be respectively (c is the compressibility)

(8) and kP pCp (9) where p and C p are the density and the specific heat of the gas phase and p e and C pe are the effective density and specific heat respectively. [0036] With φ= 0.4, μ = 0.018 mPa s, c = 0.05 MPa "1 , k = 0.001 μηι 2 , and L =

0.01 m, consistent with previously used values, the pressure diffusion time T p ~ 36 ms. For thermal time, an effective density of 2200 kg m "3 and specific heat of 1476 J kg "1 K "1 with a gas constant-pressure specific heat of 3230 J kg "1 K "1 are used. For these values, the thermal transport time T cT is 6-7 s. Tool storage effects will amplify this time scale, but the calculation illustrates that the measurement is possible in a relatively short timeframe.

[0037] For the velocity calculated above, for a diameter of 1 cm for the porous sample, a pragmatic flow rate of 0.8-0.9 mL s "1 is obtained. A sampled volume of a few liters is sufficient. Assuming a time scale of 300 s to make the measurement, a total volume of about 250 mL would be required. Since the depletion from the sample volume is sufficiently small, a fairly stable ΔΓ across the porous disc should be obtained.

[0038] Given the time-scales and the resulting stabilization times, an adaption to a formation testing tool for the purpose of measuring η (and thereby determining concentrations of H 2 S and N 2 in a gas sample) is shown in Figs. 5 and 6. As seen in Fig. 5, a tool 10 for testing earth formations and analyzing the composition of fluid (e.g., gas) from the formation 14 is seen. Tool 10 is suspended in a borehole (or wellbore - the two being used interchangeably herein) 12 from the lower end of a typical

multiconductor cable 15 that is spooled in a usual fashion on a suitable winch (not shown) on the formation surface. On the surface, the cable 15 may be electrically coupled to an electrical control system 18 as described in more detail hereinafter. The tool includes an elongated body 19 which encloses the downhole portion of the tool control system 16. The elongated body 19 also carries a selectively extendable fluid admitting assembly 20 and a selectively extendable tool anchoring member 21 which are respectively arranged on opposite sides of the body. The fluid admitting assembly 20 is equipped for selectively sealing off or isolating selected portions of the wall of the borehole 12 such that presure or fluid communication with the adjacent earth formation is established. Also included with tool 10 are a fluid analysis module 25 through which the obtained fluid flows. The fluid may thereafter be expelled through a port (not shown) or may be sent to one or more fluid collecting chambers 22 and 23 which may receive and retain the fluids obtained from the formation. In one aspect, the fluid analysis module may include an optical fluid analyzer such as shown and described in previously incorporated U.S. Patent No. 4,994,671 to Safmya et al, U.S. Patent 5,167,149 to Mullins et al, U.S. Patent No. 5,201,220 to Mullins et al, U.S. Patent No. 5,266,800 to Mullins et al, U.S. Patent No. 5,331,156 to Hines et al, U.S. Patent No. 5,859,430 to Mullins et al, Fujisawa, G., et al., "Near-infrared compositional analysis of gas and condensate reservoirs fluids at elevated pressures and temperatures", Applied Spectroscopy 56(12) pp. 1615-1620 (2002), and van Agthoven, M.A., et al., "Near-infrared spectral analysis of gas mixtures", Applied Spectroscopy 56(5) pp. 593-598 (2002), and also as known with respect to tools of Schlumberger Technology Corporation such as the In Situ Fluid Analyzer system for real-time downhole fluid analysis and the downhole fluid analysis or DFA tool. The optical fluid analyzer generally includes a light source that emits light in at least a portion of the near infrared (NIR) spectrum, a sample cell having at least one window through which the NIR rays from the light source are directed, and spectral detector elements for detecting the spectra of at least the NIR rays which are scattered and/or transmitted through the formation gases in the sample cell. The optical fluid analyzer may be used, among other things, to find the concentrations of CH 4 , C 2 H 6 , and C0 2 using desired techniques. The processing required to determine the mole fractions may be accomplished down-hole utilizing a processor (not shown) and/or up-hole using processor 18 as described in more detail hereinafter.

[0039] In some embodiments, and as shown in Fig. 6, the tool 10 also includes a

Joule-Thomson coefficient analysis module 50 which may be a separate module or may be part of or share elements of the fluid analysis module 25. The Joule-Thomson coefficient analysis module 50 may be under control of up-hole electronics and processing unit 18 as described in more detail hereinafter. In one embodiment, the Joule- Thomson coeffficient analysis module 50 is provided with two chambers 52 and 54 with internal pistons 52a, 54a that may be controlled to cause the chambers 52 and 54 to empty or fill. The chambers 52 and 54 are coupled by pipes or tubes 60 to a source of formation gas via throttle valves 62, 64 which act as flow controllers. The formation gas may be provided directly from the formation or from a storage chamber such as a fluid (gas) collecting chamber 22 that may be kept at or near formation pressures. Various additional valves 66a, 66b, 66c are shown for controlling fluid flow through the pipes or tubes 60 to and from the chambers 52, 54 and 22. The chambers 52 and 54 are also coupled, via additional valves 72, 74 (and optionally through insulated conduits as in Fig. 2) to a porous element 80. Pressure sensor 82 is coupled to (upstream) chamber 52 to measure the gas pressure upstream of the porous element 80 while pressure sensor 84 is coupled to (downstream) chamber 54 to measure the gas pressure downstream of the porous disc 80. Temperature sensor 92 is likewise provided to measure the upstream temperature, while temperature sensor 94 is provided to measure the downstream temperature.

[0040] In some embodiments, pistons 52a, 54a are caused to bottom out, and the throttle valves 62 and 64 are opened (with valves 72 and 74 closed), thereby allowing gas from the formation (which may be stored in chamber 22 or another chamber) to enter the chambers 52, 54 and permitting pressure to build up in the chambers 52, 54. When, pressure sensors 82, 84 sense that desired upstream and downstream pressures are reached (e.g., an upstream pressure P u of say, 20MPa, and a downstream pressure Pa of say, 18MPa), valves 62 and 64 are respectively shut, thereby establishing a closed system including chambers 52, 54, valves 72, 74, porous element 80, and the respective upstream and downstream sensors 82, 92 and 84, 94. At this point, valves 72 and 74 may be opened to permit gas flow via the pipes or tubes 60 through the porous element. After a period of time (dictated by the pressure and convection time-scales), the closed system approaches or reaches a steady-state, and the resulting ratio of the temperature difference to the pressure difference across the disc provides a determination of the Joule-Thomson coefficient η for the formation gas according to equation (1).

[0041] In some embodiments, the sizes of chambers 52 and 54, the pressures at which gas is kept in the chambers, and the parameters of the porous element 80 are selected so that a steady-state is reached in a desired time frame as discussed above.

Thus, by way of example only and not by way of limitation, the porous element 80 may be a disc of thickness L = 0.01 m, having a permeability k = 1 mD and a porosity φ = 0.4. The material is preferably a relatively inert porous sintered ceramic, such as alumina. The material is available from Coors Tek of Golden, Colorado, and Soilmoisture Equipment Corp. of Santa Barbara, California. Also, by way of example only and not by way of limitation, the chambers 52 and 54 may have a capacity of two liters.

[0042] In some embodiments, the same gas sample that is subjected to a near infrared optical fluid analysis, is utilized in the experiment involving chambers 52, 54, and porous element 80. The gas sample may be provided to the system with chambers 52, 54, and disc 80 before the sample is provided to the near infrared optical fluid analysis, or vice versa. Alternatively, a gas sample may be divided with some of the sample being provided to the system for determining its Joule-Thomson coefficient and other of the sample being provided to the near infrared optical fluid analysis.

[0043] In some embodiments, once an experiment has been conducted down-hole to find the Joule-Thomson coefficient of a gas sample, the pistons 52a, 54a may be activated, and various valves may be opened (and closed) to cause the gas to be jettisoned from the module or stored in a desired location. The system may then be utilized to conduct additional experiments with a different gas sample obtained at the same or a different location in the borehole.

[0044] Turning now to Fig. 7, one example is provided of a method of determining the mole fractions of H 2 S and N 2 in a gas sample. At 102, upstream and downstream temperature and pressure measurements are made down-hole with respect to a closed system in which gas sample is flowing as discussed above with reference to Figs. 5 and 6. At 103, utilizing the change in temperature and pressure over time, the Joule-Thomson coefficient for the gas sample is calculated. At 104, an optical signal is measured for the gas sample as discussed above with reference to Figs. 5 and 6. At 106, the optical signal is processed in order to calculate a window-integrated absorption at a plurality of wavelength channels used in calibration. At 108, the concentrations of CH 4 , C 2 H 6 , and C0 2 are calculated from the absorption determinations and from the calibration data, e.g., using a least squares inversion. At 1 10, using REFPROP or any other fundamental equation, an expected or estimated Joule-Thomson coefficient for the gas sample is constructed as a function of temperature, pressure, and the mole fractions of the components of the gas sample; e.g., fj(T, P, X C H 4 > X C 2 H 6 > X CO 2 > X N 2 > H 2 S)- Then, at 1 12, with knowledge of the previously measured and determined Joule-Thomson coefficient for the gas sample, and with knowledge of the previously determined concentrations of CH 4 , C 2 H 6 , and C0 2 , the mole fractions for H 2 S and N 2 are calculated by simultaneously solving equations (4)-(6). It is noted that in equations (4)-(6), there are three equations and three unknowns: the mole fractions of H 2 S and N 2 (i.e., H2 s ? N 2 an d C. Once C is determined, the mole fractions of CH 4 , C 2 H 6 , and C0 2 are also obtained from the ratio of the individual concentrations to C.

[0045] The processor or processing system 18 that is provided may be located up- hole and/or down-hole and can be used to implement or perform any of the methods and processes for analyzing the composition of formation gases described above. The terms "processor" and "processing system" (hereinafter "processing system") should not be construed to limit the embodiments disclosed herein to any particular device type or system. The processing system may be a laptop computer, a desktop computer, or a mainframe computer. The processing system may also include a processor (e.g., a microprocessor, microcontroller, digital signal processor, or general purpose computer) for executing any of the methods and processes described above (e.g. processes 103, 106- 112 in Fig. 7). The processing system may further include a memory such as a semiconductor memory device (e.g., a RAM, ROM, PROM, EEPROM, or Flash- Programmable RAM), a magnetic memory device (e.g., a diskette or fixed disk), an optical memory device (e.g., a CD-ROM), a PC card (e.g., PCMCIA card), or other memory device. This memory may be used to store, for example, fundamental equation and/or instructions for performing the processes described above.

[0046] Any of the methods and processes described above (e.g. processes 103,

106-112 in Fig. 7) can be implemented as computer program logic for use with the processing system. The computer program logic may be embodied in various forms, including a source code form or a computer executable form. Source code may include a series of computer program instructions in a variety of programming languages (e.g., an object code, an assembly language, or a high-level language such as FORTRAN, C, C++, PYTHON, or JAVA). Such computer instructions can be stored in a non-transitory computer readable medium (e.g. memory), and executed by the processing system. The computer instructions may be distributed in any form as a removable storage medium with accompanying printed or electronic documentation (e.g. shrink wrapped software), preloaded within a computer system (e.g. on system ROM, solid-state drive or a hard disk), or distributed from a server or electronic bulletin board over a communication system (e.g. the Internet or World Wide Web).

[0047] As used herein (including in the claims), a recitation in the general form of "at least one of [A] and [B]" (including, for example, "at least one of [A], [B], and [C]", "at least one of [A], [B], [C], and [D]", etc.) should be construed as disjunctive. For example, the recitation in the general form of "at least one of [A] and [B]" should be construed to include each of the following: (i) both [A] and [B] are present; (ii) [A] is present, but [B] is not, and (iii) [B] is present, but [A] is not.

[0048] There have been described and illustrated herein several embodiments of methods and apparatus for analyzing the composition of formation gases. While particular embodiments and aspects have been described, it is not intended that the disclosure be limited thereto, and it is intended that the claims be as broad in scope as the art will allow and that the specification be read likewise. Thus, while the methods and apparatus were described with reference to analyzing the composition of formation gases containing five specific gases, it will be appreciated that the methods can be readily extended to analyzing the composition of formations having additional, fewer and/or different gases. In addition, it will be appreciated that while specific apparatus were disclosed for measuring the Joule-Thomson coefficient of a gas, it will be appreciated that other apparatus could be utilized. Also, while methods were disclosed utilizing particular equations that related to mole fractions of components of the gas stream being measured, it will be appreciated that different equations could be utilized and could utilize other indications of the quantities or relative quantities of the gas stream components. Further, while particular near-infrared absorption measurement techniques and apparatus were described for the purpose of obtaining information regarding carbon-containing gas components of the gas being investigated, it will be appreciated that other techniques and apparatus could be utilized to gain information regarding certain components of the gas stream that may permit an ultimate determination of the make-up of the formation gas utilizing the Joule-Thomson coefficient measurements. It will therefore be appreciated by those skilled in the art that yet other modifications could be made. Accordingly, all such modifications are intended to be included within the scope of this disclosure as defined in the following claims. In the claims, means-plus-function clauses, if any, are intended to cover the structures described herein as performing the recited function and not only structural equivalents, but also equivalent structures. It is the express intention of the applicant not to invoke 35 U.S.C. § 112, paragraph 6 for any limitations of any of the claims herein, except for those in which the claim expressly uses the words 'means for' together with an associated function.

[0049] Moreover, it should be understood that any of the features described herein may be provided in any suitable combination.