..
2024-05-30 11:37:31 +02:00
2024-04-08 20:31:36 +00:00
2023-04-11 14:58:48 +02:00
2024-05-30 13:20:50 +02:00

Description of barite benchmark

Quick start

mpirun -np 4 ./poet barite.R barite_results
mpirun -np 4 ./poet --interp  barite_interp_eval.R barite_results

List of Files

  • barite_het.R: POET input script with homogeneous zones for a 5x2 simulation grid
  • barite_200.R: POET input script for a 200x200 simulation grid
  • barite_200ai_surrogate_input_script.R: Defines the ai surrogate functions to load a pretrained model and apply min-max-feature scaling on the model inputs and target. Prediction validity is assessed with a threshold of 3e-5 on the mass balance of Ba and Sr.
  • barite_200min_max_bounds: Minimum and maximum values from 50 iterations of the barite_200 benchmark. Used for feature scaling in the ai surrogate.
  • barite_200model_min_max.keras: A sequential keras model that has been trained on 50 iterations of the barite_200 benchmark with min-max-scaled inputs and targets/outputs.
  • db_barite.dat: PHREEQC database containing the kinetic expressions for barite and celestite, stripped down from phreeqc.dat
  • barite.pqi: PHREEQC input script defining the chemical system

Chemical system

The benchmark depicts an isotherm porous system at 25 °C where pure water is initially at equilibrium with celestite (strontium sulfate; brute formula: SrSO4). A solution containing only dissolved Ba2+ and Cl^- diffuses into the system causing celestite dissolution. The increased concentration of dissolved sulfate SO42- induces precipitation of barite (barium sulfate; brute formula: BaSO42-). The overall reaction can be written:

Ba2+ + celestite → barite + Sr2+

Both celestite dissolution and barite precipitation are calculated using a kinetics rate law based on transition state theory:

rate = -Sm kbarite (1-SRm)

where the reaction rate has units mol/s, Sm (m2) is the reactive surface area, k (mol/m2/s) is the kinetic coefficient, and SR is the saturation ratio, i.e., the ratio of the ion activity product of the reacting species and the solubility constant, calculated internally by PHREEQC from the speciated solution.

For barite, the reaction rate is computed as sum of two mechanisms, r/acid/ and r/neutral/:

ratebarite = Sbarite (k/acid/ + k/neutral/) * (1 - SRbarite)

where:

k/acid/ = 10-6.9 e-30800 / R ⋅ act(H+)0.22

k/neutral/ = 10-7.9 e-30800 / R

R (8.314462 J K-1 mol-1) is the gas constant.

For celestite the kinetic law considers only the acidic mechanism and reads:

ratecelestite = Scelestite 10-5.66 e-23800 / R ⋅ act(H+)0.109 ⋅ (1 - SRcelestite)

The kinetic rates as implemented in the db_barite.dat file accepts one parameter which represents reactive surface area in m2. For the benchmarks the surface areas are set to

  • Sbarite: 50 m2
  • Scelestite: 10 m2

A starting seed for barite is given at 0.001 mol in each domain element.

Nucleation (TODO)

Geochemical benchmark inspired by Tranter et al. (2021) without nucleation.

POET simulations

Currently these benchmarks are pure diffusion simulations. There are 7 transported species: H, O, Charge, Ba, Cl, S(6), Sr.

barite.R

  • Grid discretization: square domain of 1 ⋅ 1 m2 discretized in 20x20 cells
  • Boundary conditions: E, S and W sides of the domain are closed; the N boundary has a fixed concentration (Dirichlet) of 0.1 molal BaCl2
  • Diffusion coefficients: isotropic homogeneous α = 1E-06
  • Time steps & iterations: 20 iteration with Δ t = 250 s
  • DHT parameters:

    H O Charge Ba Cl S(6) Sr
    10 10 3 5 5 5 5

barite_interp_eval.R

  • Grid discretization: rectangular domain of 40 ⋅ 20 m2 discretized in 400 ⋅ 200 cells
  • Boundary conditions: all boundaries are closed. The center of the domain at indeces (200, 100) has fixed concentration of 0.1 molal of BaCl2
  • Diffusion coefficients: isotropic homogeneous α = 1E-06
  • Time steps & iterations: 200 iterations with Δ t = 250 s
  • DHT parameters:

    H O Charge Ba Cl S(6) Sr
    10 10 3 5 5 5 5

References

  • Tranter, Wetzel, De Lucia and Kühn (2021): Reactive transport model of kinetically controlled celestite to barite replacement, Advances in Geosciences, 56, 57-65, 2021. https://doi.org/10.5194/adgeo-56-57-20211