Three-cycle reactive storage in 2D¶
Follow hydrogen and microbial populations through build-up, injection, idle periods, and withdrawal in a layered storage model. The completed comparison extends to 347.4 days and three storage cycles, with all accepted states retained as packed simulations.
A 50 × 50 m cross-section with 10,116 cells. The well geometry and operating controls come from the existing 2D mineral-coupling example. This is an illustrative layered model, not a calibrated field forecast.¶
Open full-size — Storage aquifer between caprock and bedrock, with the well and the prescribed build-up and three-cycle gas schedule. · Download PDF — Storage aquifer between caprock and bedrock, with the well and the prescribed build-up and three-cycle gas schedule.
Region or property |
Value |
|---|---|
Storage aquifer |
Porosity 0.25; permeability 10 mD |
Caprock |
Porosity 0.10; permeability 0.0001 mD |
Bedrock |
Porosity 0.10; permeability 0.01 mD |
Temperature |
317.50 K |
Initial salinity |
2.865 mol/kg water NaCl |
Microbial pathways |
Methanogenesis (MET), acetogenesis (ACE), sulfate reduction (SRB) |
The paired simulations use compositional thermodynamics and the same grid and well schedule. The baseline solves mobile microbial populations with flow; the coupled case uses cell-local geochemical kinetics and mineral chemistry. Neither enables molecular diffusion, mechanical dispersion, bacterial diffusion, chemotaxis, or bioclogging. The workflow comparison therefore includes changes in kinetic formulation and population transport; it does not isolate mineral chemistry alone.
Movie preview¶
This is the compositional PHREEQC workflow from the comparison below. Its maps use fixed logarithmic limits throughout, without interpolated fields. Hydrogen is liquid-phase H₂ mole fraction, not gas saturation. Population fields are relative model scales, not calibrated cell counts. PHREEQC populations remain cell-local: their spatial changes represent growth and decay, rather than microbial transport or individual trajectories. The mobile comparison uses a different biomass representation, so equal relative values do not establish equal physical biomass.
Download the MP4,
GIF or
gallery provenance.
Hydrogen consumption and reaction pathways¶
Left: cumulative microbial consumption divided by cumulative prescribed hydrogen injection at each plotted time. Right: MET, ACE and SRB contributions; solid curves use PHREEQC, dashed curves use mobile kinetics. Dotted lines mark the starts of the three storage cycles.¶
Open full-size — Three-cycle consumed-hydrogen percentage and cumulative metabolic contributions, comparing compositional PHREEQC and mobile flow–biochemistry. · Download PDF — Three-cycle consumed-hydrogen percentage and cumulative metabolic contributions, comparing compositional PHREEQC and mobile flow–biochemistry.
The final consumed amounts are 5.915 kmol (9.947%) with compositional PHREEQC and 6.818 kmol (11.466%) with mobile flow–biochemistry. The final sequential hydrogen-balance residual is −0.049 kmol. The percentages measure metabolic conversion, excluding dissolved or unrecovered hydrogen. Unlike the 1D validation page, the denominator here grows with cumulative prescribed injection; it is not the final total injection used at every time.
Gas composition and aqueous chemistry¶
Compositional PHREEQC at the end of the third injection period (day 307.6). Gas compositions are hidden where gas saturation is below 10⁻⁶; pH is shown throughout the aqueous domain. No pressure map is needed to inspect the hydrogen plume and its chemical environment.¶
Open full-size — End-of-injection maps of gas-phase H2, CO2 and methane mole fractions, and aqueous pH in the coupled two-dimensional case. · Download PDF — End-of-injection maps of gas-phase H2, CO2 and methane mole fractions, and aqueous pH in the coupled two-dimensional case.
This selected mineral inventory represents Bentheimer sandstone: 2% dolomite and 98% inert rock by mass, with no initial calcite.
The chemical maps complement the bulk consumption curves: hydrogen exposure, carbon conversion, and pH evolve unevenly around the well. The comparison does not establish grid convergence.
Use the existing example¶
startupH2sim('phreeqc', true)
exampleCompositionalBacterial2DPhreeqcMinerals
This is the public entry point for the layered mineral-coupling setup. The displayed three-cycle results are saved continuations of that setup; they are not a claim that the default call reproduces the entire comparison. Save the setup and accepted states with the packed-simulation utilities to retain spatial fields and redraw figures without rerunning chemistry.
See also
PHREEQC coupling describes kinetic ownership and the supported coupling workflows. 2D compositional storage with three reactions covers mobile microbial transport in the separate depleted-reservoir example.
Download the consumption histories
and result provenance.
Regenerate the gallery from saved comparison files¶
The optional Python plotting tools read the three saved result segments per
workflow and the accepted snapshot state in their packed output folders.
They do not invoke MATLAB or PHREEQC. Supply a local JSON manifest with
mobile and phreeqc arrays, each listing the three result MAT files in
time order. The manifest contains local input paths and is not published.
python -m pip install -r tools/requirements-figures.txt
python tools/plot_phreeqc_2d_results.py --manifest /path/to/manifest.json
The exporter writes the movie, GIF, poster, PNG/PDF figures, selected-field data, histories and source provenance. It overwrites those gallery assets. The source result files and packed states remain unchanged.