Biochemistry¶
The base BiochemistryModel adds one population balance per configured
metabolic reaction to compositional flow. Hydrogen is the shared electron
donor. Reaction parameters, optional transport and biomass normalization
come from the setup; they are not universal properties of a storage site.
The selected storage comparison is on Hydrogen storage in depleted gas reservoirs.
The mobile-population formulation builds on
[AAC+25]; the current implementation extends the
published methanogenesis model to selectable MET, ACE and SRB populations.
Reaction pathways¶
The supported MET, ACE and SRB pathways can be written as
These are net pathway stoichiometries. The base SRB model transports sulfate and a non-volatile sulfide pool separately from the EOS. It does not solve the full proton/charge/speciation system represented by the balanced SRB reaction above. A configured volatile fraction enters the EOS H2S component; the complementary fraction enters the aqueous tracer. Detailed pH and mineral equilibria require the corresponding chemistry formulation.
Background on microbial hydrogen conversion and transport is provided in
[Hag17, TMS+21]. The executable parameter
database is bioChemFluidsStructs; examples can override its defaults.
Population storage and normalization¶
For population \(j\), the stored cell quantity is
Here \(PV\) is cell pore volume and \(n_j\) is nbact.
In the paper’s normalized-population notation,
\(n_j=N_j/N_{\mathrm{ref},j}\). The code stores this variable as
nbact and applies the density-weighted storage expression above.
Thus \(M_{B,j}\) is a scaled inventory, not a direct measurement
of physical biomass. If \(N_j\) is cells per liquid volume, physical
biomass per bulk volume would instead be
\(\phi S_l m_{\mathrm{cell}}N_{\mathrm{ref},j}n_j\).
Neither the plotted nbact values nor their density-weighted inventory
are calibrated cell counts without the associated reference conversion.
Changing between these conventions requires changing the associated
yield, population scale, bounds and decay parameters consistently.
Away from the numerical saturation floor, the population equation is
The base internal-face population transport consists of optional
diffusion and chemotaxis, not a general liquid-advection term.
Liquid well outflow can nevertheless remove populations, using local
liquid density and nbact; injected liquid carries no bacteria in the
current facility implementation. The PHREEQC-owned kinetic populations
are cell-local rather than spatially transported organisms.
Monod growth and decay¶
For the base model, a double-Monod coefficient is
\(x_{\mathrm{H_2}}\) is the liquid EOS mole fraction.
For MET and ACE, \(\chi_j\) is the liquid CO2 mole fraction.
For SRB, it is the sulfate concentration divided by the liquid molar
density, a mole-fraction proxy. The half-saturation parameters must use
the same concentration convention. GrowthBactRateSRC returns
\(\mu_j\) in \(\mathrm{s^{-1}}\), not a mass source.
Carbonate-buffered and active hybrid-chemistry configurations can replace
the CO2/sulfate proxies with their chemistry feedback and apply an
environmental response. CarbonLimitedGrowthRate additionally limits
carbon-consuming growth by the available aqueous carbon budget.
These modifications are setup/backend dependent; the simple Monod
expression alone does not include them.
The facility’s unconstrained population reaction rate per cell is
The specific decay coefficient is \(d_j=b_j\) for first-order decay, or \(d_j=b_j\max(n_j,0)\) for the legacy quadratic formulation. At the configured lower population bound, negative net reaction sources are suppressed. This active-bound treatment and the small regularization sink are part of the implementation, not additional metabolic pathways.
Component conversion¶
For positive molar hydrogen consumption \(r_{\mathrm{H_2},j}\) per bulk volume per second, the stoichiometric mass source is
Reactants have negative \(\gamma_{ji}\) and products positive. This relation connects the reaction pathways to component conservation; the model’s population/yield normalization determines the hydrogen consumption rate.
Implementation convention¶
Let \(\gamma_{ji}\) be a stoichiometric coefficient, negative for
reactants, \(M_i\) the component molar mass, \(Y_j\) the
configured Y_H2 scale, and \(N_j^{\mathrm{scale}}\) the
configured nbactMax scale. The base conversion code constructs
BactConvertionRate returns \(\widetilde Q_i\).
BiochemistryModel inserts
\(Q_i^{\mathrm{bio}}=\widetilde Q_i/\rho_l\) into the cell
component residual. Thus the corresponding bulk-volume source in the
continuum notation is
\(r_i=Q_i^{\mathrm{bio}}/V_{\mathrm{cell}}\).
The division by liquid density and the population/yield scales are
essential parts of the existing normalization. Raw
BactConvertionRate values are not directly comparable with
mol/s tracer rates.
The sulfide source is partitioned between volatile EOS H2S and the
non-EOS aqueous pool. SRBTracerConvRate uses the compatible density
scaling for its molar sources. A configured anhydrite source can also
release sulfate; net sulfate production therefore does not imply a
reversal of the SRB pathway.
Optional spatial migration¶
With microbial diffusion coefficient \(D_{B,j}\) and chemotaxis coefficient \(\chi_{B,j}\), the continuum counterparts of the implemented face fluxes are
Diffusion follows decreasing population concentration; chemotaxis follows increasing dissolved-H2 mole fraction. The two fluxes are added when both switches are enabled. These terms describe a continuum migration model, not trajectories of individual microbes. The selected five-cycle 2D bacterial/abiotic gallery disables both mechanisms.
Optional bioclogging¶
setupBioCloggingModel can reduce pore volume and permeability as
populations increase. Its default zero-biomass reference uses
\(n_{c,j}\) and \(c_{p,j}\) are configured characteristic
concentrations and clogging strengths. The alternative
reference='initial' multiplies the porosity numerator by
\(1+A\sum_j(n_{j,0}/n_{c,j})^2\), so that the initial effective
porosity equals \(\phi_0\).
The reference choice matters when comparing against an unclogged case.
This empirical feedback is not a resolved biofilm or geomechanics model.
Implementation and chemistry alternatives¶
GrowthBactRateSRC and DecayBactRateSRC: specific kinetic coefficients.
BactConvertionRate and BiochemistryGenericFacilityModel: conversion, population and well sources.
setupBioCloggingModel: porosity/permeability feedback and reference options.
These equations describe H2sim-owned kinetics. The compositional PHREEQC backend instead integrates its configured kinetic laws locally and disables the overlapping MRST reaction sources. The multirate backend retains H2sim kinetics but uses a bounded local integrator. See Discretization and coupling and PHREEQC coupling before comparing results between these formulations.