Phase behavior and fluid properties¶
The flow equations need phase amounts, compositions, densities, viscosities and mobilities. H2sim supplies these through an EOS flash or precomputed black-oil tables. These are different closures of the Compositional model and Black-oil model, not interchangeable property settings. The comparison plots and tabulation commands are in Thermodynamics and PVT tabulation.
Gas-liquid equilibrium¶
For a two-phase compositional mixture, local equilibrium equates component fugacities:
Here \(\widehat\varphi_i^\alpha\) is a fugacity coefficient, not porosity. The flash uses the thermodynamic pressure \(p\) supplied to the EOS. A capillary correction to the phase-equilibrium fugacities is not implied by this expression; phase-pressure differences used in Darcy flow are handled separately by the flow model.
With vapor mole fraction \(\beta\), material balance and normalization require
For a two-phase flash, define \(K_i=y_i/x_i\). The associated Rachford-Rice relation is
MRST’s EOS framework also performs phase-stability checks and handles single-phase states. The vapor mole fraction is not gas saturation: if \(\bar v_l,\bar v_g\) are phase molar volumes, then
Component mass fractions in the conservation and diffusion equations are obtained from the phase mole fractions. For example,
where \(M_i\) is component molar mass.
Soreide-Whitson and Peng-Robinson¶
SoreideWhitsonEos extends MRST’s Peng-Robinson EOS. The underlying
cubic pressure-volume relation has the form
The mixture parameters use component properties and binary interactions:
with \(\boldsymbol\xi_l=\mathbf x\) and \(\boldsymbol\xi_g=\mathbf y\). The Soreide-Whitson implementation modifies the liquid-water attraction parameter and liquid interaction coefficients to account for salt molality. Vapor properties use the vapor mixing path. Inspect the configured mixture and interactions before comparing an SW calculation with a generic PR calculation.
The resulting compressibility factor \(Z_\alpha\) gives
Density, viscosity and relative permeability are distinct closures: choosing an EOS does not by itself specify the viscosity correlation or the rock’s saturation functions. The selected examples provide those through their MRST fluid models.
The SW formulation and hydrogen-water applications are described in [AMRN24, CTC+20, SW92]. H2sim also exposes MRST’s PR model for suitable compositional mixtures. Neither model is automatically calibrated for every gas/brine composition.
Hydrogen solubility and salinity¶
The HenrySetschenowH2BrineEos property utility evaluates a
hydrogen-solubility correlation:
Here \(p_{\mathrm{H_2}}\) is hydrogen partial pressure in Pa, \(m_{\mathrm{NaCl}}\) is NaCl molality in mol/kg water, and \(k_H(T)\) is the temperature-dependent coefficient used in the implementation, with matching pressure units. The numerical coefficients assume those molality units. This utility supplies dissolved-hydrogen mole fractions; it is not a multicomponent flash and does not predict water content in the gas.
Other supported property calculations include the Redlich-Kwong solubility-table route and bundled ePC-SAFT reference tables. The latter are comparison data, not an included live PC-SAFT solver. The ranges and assumptions of each correlation/reference must be checked before extrapolation.
Black-oil PVT closure¶
Black-oil flow reads tabulated formation-volume factors, solution/vaporization ratios and viscosities:
\(R_s\) describes dissolved hydrogen and \(R_v\) describes
vaporized water, using the corresponding surface-volume conventions.
The table-generation workflow obtains pure-component properties and
phase partitioning at matching temperature/pressure samples, then
exports the requested PVTO, PVDO and PVTG data.
During the supplied aquifer run these tables are read from the deck;
the EOS is not rerun as a separate flash in every reservoir cell.
For inventories, free and dissolved hydrogen must use the same surface conditions. A dissolved fraction of retained inventory is not the same quantity as consumption divided by injected hydrogen. See the dissolution definition on Hydrogen storage in saline aquifers.
EOS and aqueous chemistry have different roles¶
In the reservoir solve, the EOS supplies the gas-liquid split. The multirate equilibrium call is aqueous-only and leaves that split to the EOS. The compositional PHREEQC kinetic call also supplies a local gas phase and repartitions the passed volatile inventory before reconstructing an EOS-consistent reservoir state. PHREEQC supplies the selected aqueous speciation, acid-base equilibria, mineral changes and, for one backend, microbial kinetics. Aqueous analytical totals such as sulfate are not made EOS components merely because their concentrations affect reaction rates.
Implementation¶
SoreideWhitsonEos: liquid-water mixing, salt corrections and inherited flash operations.
HenrySetschenowH2BrineEos: the partial-pressure solubility correlation.
Thermodynamics and PVT tabulation: RK/SW/PR comparisons and black-oil PVT generation.
See Geochemistry for the different volatile-inventory handoffs. Continue with Biochemistry for reaction terms or Discretization and coupling for coupling order.