A library of BASIC scripts of reaction rates for geochemical modeling using phreeqc
Introduction
In the last three decades, a large number of laboratory experiments have produced mineral dissolution rates in a wide range of temperatures, pH, and solution chemistry (see reviews by Brantley et al., 2008, pp. 151–210; Marini, 2007, pp. 211–266; Palandri and Kharaka, 2004; Schott et al., 2009). As a result, applications of reaction kinetics to water-rock interaction have also grown significantly in such fields as carbon dioxide sequestration (e.g., Knauss et al., 2005; Liu et al., 2011, 2012; Lu et al., 2011, 2013; 2015; Tutolo et al., 2015; White et al., 2005; Wilkin and DiGiulio, 2010; Xu et al., 2007; Xu et al., 2010; Zhang et al., 2013; Zhang et al., 2015; Zhang et al., 2016), diagenetic processes (Jones and Xiao, 2005, 2006; Lu and Cantrell, 2016; Roy et al., 2011; Whitaker and Xiao, 2010), geothermal systems (Dobson et al., 2004; Giambalvo et al., 2002; Spycher et al., 2003; Wanner et al., 2014; Xu and Pruess, 2001; Xu et al., 2004), and weathering (Maher et al., 2009; Perez-Fodich and Derry, 2019). Furthermore, advances in geochemical modeling software development have made application of kinetics to geochemical models much easier (Parkhurst and Appelo, 2013). Using thermodynamic data (e.g., equilibrium constants and activity coefficient models) and kinetic parameters (e.g., rate constants and activation energy), mineral dissolution and precipitation processes can be quantified with geochemical modeling software (e.g., EQ3/6: Wolery, 1992; Phreeqc: Parkhurst and Appelo, 1999, 2013; ToughReact: Xu et al., 2006, 2011; Crunchflow, Steefel et al., 2015).
Among the many geochemical simulation programs, the software package Phreeqc — a computer program for simulating aqueous speciation, reaction path, and 1-D reactive transport (Charlton and Parkhurst, 2011; Parkhurst and Appelo, 2013) — has gained popularity. This is partly because the program allows the user to describe the rate equations via BASIC scripts. These scripts are then run with the program along with other parts of input files and databases for kinetic model simulations. For example, Zhu et al. (2010) constructed a reaction path model for feldspar dissolution and secondary mineral precipitation in batch systems with their own Phreeqc database and kinetics scripts. Geochemical models of fluid-rock interaction have evolved from equilibrium only to kinetic approaches, thus addressing geochemical reactions on a real time scale (Zhu, 2009).
However, the databases that accompany the Phreeqc package only contain limited rate equations. Much of the kinetics data needed for geochemical modeling is scattered in the literature. Proper assembly of the kinetic data needed for modeling, such as preparing the codes for kinetic scripts and assembling other necessary parts for kinetic calculation, is an intimidating task for many users. To facilitate the use of kinetics in geochemical modeling, we collected the rate equations and kinetic parameters from the literature and compiled them into a library of scripts for Phreeqc. These BASIC language data blocks can be readily copied into input files or databases.
It is beyond the scope of this study to evaluate kinetic experiments and compile them into an internally consistent kinetic database. In fact, we took the kinetic parameters from the literature directly as they are and programmed them in easy-to-use formats. In this sense, users must be very careful about the conditions of these kinetic parameters are applicable. These conditions include the temperature, pH, solution chemistry, and saturation states. As they are in the original sources, the kinetic parameters for most minerals in this library were derived from dissolution experiments at far-from-equilibrium conditions. Extrapolation of them to near-equilibrium and precipitation conditions need careful verification. Users must be aware of this and other assumptions when applying this kinetic library to systems beyond the experimental conditions in the original studies.
The resulting library contains kinetic data for approximately 100 minerals. We understand that to derive a comprehensive and self-consistent kinetic rate database is a daunting task, and this library represents only the first effort in a long, multiphase project. The script and phase library and supporting materials can be downloaded from https://github.com/HydrogeoIU/PHREEQC-Kinetic-Library and doi.org/10.5967/41gq-yr13. The library of scripts are also included in an online version of Phreeqc, which can be accessed at the corresponding author's Indiana University web site www.hydrogeochem.earth.indiana.edu.
Section snippets
General expression of rates and rate equations
The readers are referred to the textbooks by Lasaga (1998), Marini (2007), Brantley et al. (2008), and Rimstidt (2014) for the background of geochemical kinetics. Here we only briefly introduce necessary background for presenting the kinetic library.
Geochemical reaction rates can be defined as the change of concentration of reactants and products with time over the course of a chemical reaction (Rimstidt, 2014, pp. 36–39; Zhu and Anderson, 2002):where rnet denotes net or overall
BASIC scripts library
The rate equations and parameters in this library can be classified into four categories: (1) Palandri and Kharaka (2004) rate equations; (2) parallel-mechanisms rate equations (e.g. Burch et al., 1993); (3) Langmuir-adsorption rate equations (e.g. Amram and Ganor, 2005); and (4) other specific rate equations.
Example application
To illustrate the utility of the script library, we simulated the reaction path of albite hydrolysis, using BASIC scripts for rate equations of Burch et al. (1993), Hellmann and Tisserand (2006), and Palandri and Kharaka (2004) for albite. The initial conditions for the simulations are the same for the three models and are shown in Table 2. To ensure that only the effect of the function on near-equilibrium rates and reaction path are compared, the rate constants in the three models were
Conclusions and remarks
We compiled a library of mineral dissolution rate parameters and equations from the literature and programmed BASIC scripts for the Phreeqc software. About 100 phases are included. Separately, a PHASE file was also developed to be used together with the RATES scripts. Phreeqc requires both data blocks to conduct kinetic modeling. These RATES script blocks and PHASE blocks can be easily copied and pasted into the input files ort append to the Phreeqc databases.
The majority of the rate equations
Computer code availability
Digital versions of the BASIC scripts, as well as future updates, can be downloaded for free from https://github.com/HydrogeoIU/PHREEQC-Kinetic-Library and doi.org/10.5967/41gq-yr13. The library of scripts are also included in an online version of Phreeqc, which can be accessed at the corresponding author's Indiana University web site www.hydrogeochem.earth.indiana.edu.
Authorship Statement
YZ developed the PHREEQC scripts for kinetics and phases and wrote part of the manuscript.
HB helped in developing the PHREEQC scripts for kinetics and testing the scripts and also wrote part of the manuscript.
YT helped in organizing the script library.
KT developed the online version of Phreeqc and linked to the kinetics library
CZ designed and supervised this project and wrote part of the manuscript.
Acknowledgment
First, we would like to thank David Parkhurst and Tony Appelo for their Phreeqc program and Jim Palandri and Yosef Kharaka for the kinetic database. This work has benefited greatly from discussions with and review by them. We thank all reviewers for their time and their comments have improved the quality and clarity of this paper. CZ acknowledges US NSF grant EAR-19267343. Although the work was partly sponsored by an agency of the United States Government, the views and opinions of authors
References (75)
- et al.
Rate law for galena dissolution in acidic environment
Chem. Geol.
(2007) - et al.
Change in the dissolution rates of alkali feldspars as a result of secondary mineral precipitation and approach to equilibrium
Geochem. Cosmochim. Acta
(1997) - et al.
The combined effect of pH and temperature on smectite dissolution rate under acidic conditions
Geochem. Cosmochim. Acta
(2005) - et al.
Reaction pathways for quartz dissolution determined by statistical and graphical analysis of macroscopic experimental data
Geochem. Cosmochim. Acta
(2008) - et al.
Free energy dependence of albite dissolution kinetics at 80 C and pH 8.8
Chem. Geol.
(1993) - et al.
Montmorillonite dissolution kinetics: experimental and reactive transport modeling interpretation
Geochem. Cosmochim. Acta
(2018) - et al.
Modules based on the geochemical model PHREEQC for use in scripting and programming languages
Comput. Geosci.
(2011) - et al.
Lizardite serpentine dissolution kinetics as a function of pH and temperature, including effects of elevated pCO2
Chem. Geol.
(2013) - et al.
Simulation of water–rock interaction in the Yellowstone geothermal system using TOUGHREACT
Geothermics
(2004) - et al.
Nontronite dissolution rates and implications for Mars
Geochem. Cosmochim. Acta
(2014)
Effect of fluid-sediment reaction on hydrothermal fluxes of major elements, eastern flank of the Juan de Fuca Ridge
Geochem. Cosmochim. Acta
The dissolution kinetics and apparent solubility of natural apatite in closed reactors at temperatures from 5 to 50 oC and pH from 1 to 6
Chem. Geol.
Thermodynamic and kinetic constraints on reaction rates among minerals and aqueous solutions II. Rate constants, effective surface area, and the hydrolysis of feldspar
Geochem. Cosmochim. Acta
Dissolution kinetics as a function of the Gibbs free energy of reaction: an experimental study based on albite feldspar
Geochem. Cosmochim. Acta
Chalcopyrite dissolution rate laws
Appl. Geochem.
Evaluation of the impact of CO2, co-contaminant gas, aqueous fluid and reservoir rock interactions on the geologic sequestration of CO2
Chem. Geol.
Muscovite dissolution kinetics as a function of pH at elevated temperature
Chem. Geol.
Chemical weathering rate laws and global geochemical cycles
Geochem. Cosmochim. Acta
Coupled reactive flow and transport modeling of CO2 sequestration in the Mt. Simon sandstone formation, Midwest USA
Int. J. Greenh. Gas Con.
CO2-caprock-brine interaction: reactivity experiments on Eau Claire Shale and a review of literature
Int. J. Greenh. Gas Con.
Coupled alkali feldspar dissolution and secondary mineral precipitation in batch systems: 2. New Experiments with Supercritical CO2 and Implications for Carbon Sequestration
Appl. Geochem.
The role of reaction affinity and secondary minerals in regulating chemical weathering rates at the Santa Cruz Soil Chronosequence, California
Geochem. Cosmochim. Acta
A database of dissolution and precipitation rates for clay-rocks minerals
Appl. Geochem.
Solubility and dissolution rate of silica in acid fluoride solutions
Geochem. Cosmochim. Acta
The effect of aluminum, pH, and chemical affinity on the rates of aluminosilicate dissolution reactions
Geochem. Cosmochim. Acta
General kinetic description of multioxide silicate mineral and glass dissolution
Geochem. Cosmochim. Acta
Oxalate-promoted forsterite dissolution at low pH
Geochem. Cosmochim. Acta
On the potential of CO2–water–rock interactions for CO2 storage using a modified kinetic model
Int. J. Greenh. Gas Con.
Organic acids and high soil CO2 drive intense chemical weathering of Hawaiian basalts: insights from reactive transport models
Geochem. Cosmochim. Acta
Rate equations for sodium catalyzed quartz dissolution
Geochem. Cosmochim. Acta
Rate equations for sodium catalyzed amorphous silica dissolution
Geochem. Cosmochim. Acta
Reactive-transport modeling of iron diagenesis and associated organic carbon remineralization in a Florida (USA) subterranean estuary
Earth Planet. Sci. Lett.
Chlorite dissolution kinetics at pH 3 – 10 and temperature to 275° C
Chem. Geol.
Illite dissolution kinetics from 100 to 280 °C and pH 3 to 9
Geochem. Cosmochim. Acta
Fluid flow and reactive transport around potential nuclear waste emplacement tunnels at Yucca Mountain, Nevada
J. Contam. Hydrol.
High performance reactive transport simulations examining the effects of thermal, hydraulic, and chemical (THC) gradients on fluid injectivity at carbonate CCUS reservoir scales
Int. J. Greenh. Gas Con.
Reactive transport modeling of the Dixie Valley geothermal area: insights on flow and geothermometry
Geothermics
Cited by (26)
Modelling biogeochemical reactions triggered by graphene's addition in a fertilized calcareous sandy soil
2023, Science of the Total EnvironmentRole of geochemical reactions on caprock integrity during underground hydrogen storage
2023, Journal of Energy StorageIon migration in in-situ leaching (ISL) of uranium: Field trial and reactive transport modelling
2022, Journal of HydrologyFluoride enrichment mechanisms and related health risks of groundwater in the transition zone of geomorphic units, northern China
2022, Environmental ResearchCitation Excerpt :dat database was chosen for the SI calculation of fluorite, gypsum, calcite, dolomite, and halite. Meanwhile, the newest BASIC scripts library of reaction rates for geochemical modeling, including the updated PHASES document and RATES blocks, was also used in this study (Zhang et al., 2019a). The negative value of SI represented that groundwater was under-saturated with respect to the mineral and vice versa.
- 1
These authors contributed equally to this work.