Skip to the content.

neqsim.thermo.util.mineral calculates the thermodynamic limit of heterogeneous reactions between pure solids, liquid water and gases. The built-in case is

\[\mathrm{FeS(troilite)} + \mathrm{H_2O(l)} + \mathrm{CO_2(g)} \rightleftharpoons \mathrm{FeCO_3(siderite)} + \mathrm{H_2S(g)}\]

which bounds how much H2S an iron-sulfide-bearing rock can release into a CO2-bearing fluid.

Method

Each StandardStateSpecies carries phase-specific thermochemistry at $p^\circ = 1$ bar. The apparent Gibbs energy uses the Benson-Helgeson convention,

\[G_i(T) = \Delta_f H^\circ_{i,298} + \left[H_i(T) - H_{i,298}\right] - T S_i(T),\]

so element terms cancel in any atom-balanced reaction (checked by checkElementBalance()). The standard constant is $\ln K^\circ = -\sum_i \nu_i G_i / (RT)$. At pressure $P$ the equilibrium gas fugacity quotient is

\[\prod_{\mathrm{gas}} \left(\frac{f_i}{p^\circ}\right)^{\nu_i} = K^\circ(T)\,\exp\!\left(-\frac{\sum_{\mathrm{cond}} \nu_j I_j(T,P)}{RT}\right) \prod_{\mathrm{cond}} a_j^{-\nu_j}, \qquad I_j = \int_{p^\circ}^{P} V_j\,dp .\]

Solids use constant molar volumes; liquid water uses the IAPWS-IF97 Region 1 Gibbs function. Gas non-ideality is not added as a separate volume term: solveGasExchange takes the fugacities $f_i = x_i \varphi_i P$ from the NeqSim equation of state of the supplied fluid and adjusts the product-gas amount until the quotient is met. Total pressure cancels only in the ideal-gas part when $\Delta\nu_{\mathrm{gas}} = 0$; fugacity coefficients still matter.

Mode Behaviour
FIXED_REACTANT CO2 held constant; H2S adjusted (large CO2 inventory)
CONSERVE_GAS_SUM CO2 converted to H2S one-for-one (closed system, excess solid)

Data

Species Source Range
Troilite FeS NIST-JANAF (Chase, 1998), three Shomate segments with the 411 K and 598 K transitions; $V$ = 18.20 cm³/mol (Robie and Hemingway, 1995) 298–1463 K
Siderite FeCO3 Robie and Hemingway (1995): $\Delta_f H^\circ$ = −755.9 ± 5.5 kJ/mol, $S^\circ$ = 95.47 ± 0.2 J/(mol K), $V$ = 29.38 cm³/mol 298–600 K
H2O(l) NIST-JANAF; pressure term from IAPWS-IF97 298–500 K
CO2(g), H2S(g) NIST-JANAF ideal gas 298–1200/1400 K

Below 298.15 K and above the fitted range the heat capacity is held constant and the result carries a warning. Above 373 K the 1-bar liquid-water reference is metastable (IF97 Region 1 continuation), which is also reported.

Example

SolidGasReactionEquilibrium reaction = SolidGasReactionEquilibrium.ironSulfideToSiderite();
double log10K = reaction.getLog10K(298.15);

SystemInterface fluid = new SystemSrkEos(273.15 + 100.0, 500.0);
fluid.addComponent("methane", 0.95);
fluid.addComponent("CO2", 0.05);
fluid.addComponent("H2S", 1.0e-6);
fluid.setMixingRule("classic");

SolidGasReactionEquilibrium.GasExchangeResult result = reaction.solveGasExchange(fluid, "H2S",
    "CO2", SolidGasReactionEquilibrium.ExchangeMode.FIXED_REACTANT);
double h2sPpm = result.getProductMoleFraction() * 1.0e6;
List<String> warnings = result.getWarnings();

Original H2S in reservoir fluids (mineral buffer)

In clastic reservoirs with pyrite and an Fe-bearing carbonate, H2S is buffered by

\[4\,\mathrm{FeS_2} + \mathrm{CH_4} + 3\,\mathrm{CO_2} + 6\,\mathrm{H_2O} \rightleftharpoons 4\,\mathrm{FeCO_3} + 8\,\mathrm{H_2S}\] \[8 \ln f_{\mathrm{H_2S}} = \ln K(T,P) + \ln f_{\mathrm{CH_4}} + 3 \ln f_{\mathrm{CO_2}} + 6 \ln a_{\mathrm{H_2O}} - 4 \ln a_{\mathrm{FeCO_3}}, \qquad y_{\mathrm{H_2S}} = \frac{f_{\mathrm{H_2S}}}{\varphi_{\mathrm{H_2S}} P}.\]

The reaction enthalpy is about 55 kJ per mol H2S, matching the apparent enthalpy of the Håland et al. (1999) correlation of H2S versus temperature in Norwegian sandstone reservoirs (54 kJ/mol). Applied to 454 measured NCS reservoir-fluid compositions with SRK, the buffer gives 0.61 times the correlation without fitting; an Fe-carbonate activity of 0.38 (Fe in ankerite or a carbonate solid solution) reproduces it within about 30 % from 60 to 180 °C. The phase rule excludes the alternatives: at NCS CO2 levels siderite, not magnetite, is the stable Fe phase, and pyrite, not pyrrhotite, is stable at the buffered H2S level.

MineralH2SBuffers holds the balanced reactions (pyrite–siderite, pyrite–pyrrhotite, pyrite–magnetite, pyrrhotite–magnetite, pyrrhotite–siderite, anhydrite TSR and the siderite–magnetite boundary). SolidGasReactionEquilibrium.solveForGas(fluid, "H2S") solves any of them with the other gas fugacities from the fluid. ReservoirH2SEstimator wraps the pyrite–siderite buffer with the NCS-calibrated activity, the stability checks and warnings for the kinetic regime below about 70 °C and for thermochemical sulfate reduction.

SystemInterface reservoirFluid = new SystemSrkEos(273.15 + 140.0, 550.0);
reservoirFluid.addComponent("CO2", 0.03);
reservoirFluid.addComponent("methane", 0.80);
reservoirFluid.addComponent("ethane", 0.08);
reservoirFluid.addComponent("propane", 0.04);
reservoirFluid.addComponent("n-hexane", 0.05);
reservoirFluid.setMixingRule("classic");

ReservoirH2SEstimator estimator = new ReservoirH2SEstimator();
estimator.setWaterActivity(0.97);
ReservoirH2SEstimator.Estimate estimate = estimator.estimate(reservoirFluid);
double originalH2sPpm = estimate.getH2SPpm();
boolean consistent = estimate.isBufferConsistent();

The thermochemical data alone (siderite enthalpy ±5.5 kJ/mol) give a factor of about 2.3 per standard deviation in H2S; the composition spread of NCS fluids at a given temperature gives about a factor 1.4. Values are the original, pre-production level: seawater-injection souring (see neqsim-reservoir-souring-correlation) adds to it later.

Equilibration temperature (H2S palaeothermometer)

equilibrationTemperature(fluid, measuredPpm) inverts the buffer. It finds the temperature at which the buffered H2S of the fluid, at its present pressure and fixed composition, equals a measured value; an optional overload takes the search bounds in K. The difference from the present reservoir temperature tests whether the buffer kept the H2S of an earlier, hotter burial stage. At fixed composition, doubling H2S corresponds to roughly 20 K at 140 °C. That is about twice the step implied by the NCS-wide apparent enthalpy, because across the shelf CO2 also rises with depth. In an NCS study, uplifted Barents Sea wells gave only +6 °C, against +39 to +58 °C for a buffer frozen at maximum burial, so the buffer re-equilibrates on cooling. The method returns NaN when the measured value lies outside the buffered range between the bounds.

The same framework gives the upper limits of elemental mercury (cinnabar and liquid mercury) with the buffered H2S of this section: see Mercury limits in reservoir fluids.

Verification

SolidGasReactionEquilibriumTest checks:

JANAF and USGS troilite entropies differ by 2–3 J/(mol K) between 400 and 500 K because the compilations treat the 411 K transition differently.

Limitations

References