The CHNOSZ package for R provides an integrated set of tools for thermodynamic calculations in aqueous geochemistry and geobiochemistry.
It has functions for writing balanced reactions to form species from user-selected basis species and for calculating the standard molal properties of species and reactions, including the standard Gibbs energy and equilibrium constant.
The thermodynamic properties of liquid water are calculated using Fortran code from SUPCRT92 (Johnson et al., 1992) or an implementation in R of the IAPWS-95 formulation (Wagner and Pruß, 2002).
Thermodynamic properties of other species are taken from a database for minerals and inorganic and organic aqueous species including biomolecules, or from amino acid group additivity for proteins (Dick et al., 2006).
The corresponding high-temperature properties are calculated using the Berman-Brown (1985) equations for minerals and the revised Helgeson-Kirkham-Flowers (1981) equations for aqueous species.
The HKF equations are augmented with the Deep Earth Water (DEW) model (Sverjensky et al., 2014) and estimates of parameters in the extended Debye-Hückel equation (Manning et al., 2013) to calculate standard-state properties and activity coefficients for given ionic strength at high pressure (to 6 GPa).
Activity coefficients are implemented via adjusted standard Gibbs energies at specified ionic strength (Alberty, 1996), which converts all activity variables in the workflow to molalities.
A related adjustment is available to convert standard Gibbs energies for gases from the 1 bar standard state used in SUPCRT to a variable-pressure standard state (Anderson and Crerar, 1993, Ch. 12).
Calculations of the non-equilibrium chemical affinity and equilibrium chemical activity of species can be portrayed on diagrams as a function of temperature, pressure, or activity of basis species; in two dimensions, this gives a maximum affinity or predominance diagram.
The diagrams have formatted chemical formulas and axis labels, and water stability limits can be added to Eh-pH, logf_{O2}-T, and other diagrams with a redox variable.
The package has been developed to handle common calculations in aqueous geochemistry, such as solubility due to complexation of metal ions, mineral buffers of redox or pH, and changing the basis species across a diagram ("mosaic diagrams").
CHNOSZ also has unique capabilities for comparing the compositional and thermodynamic properties of different proteins.
canprot is a package by the same author that uses CHNOSZ for compositional and thermodynamic analysis of proteomic datasets.
install.packages("CHNOSZ")
library(CHNOSZ)
data(thermo)
examples()
CHNOSZ is on R-Forge. Updates to the package will be made there before being posted to this website or to CRAN. Get the latest development version using:
install.packages("CHNOSZ", repos = "http://R-Forge.R-project.org")
Try out this Shiny app to plot Gibbs energies of TCA cycle intermediates, based on a diagram in Smith and Morowitz (2004).
Who's using CHNOSZ? Here's a list of citations.
CHNOSZ and canprot are free software made available under the GPL.
The maintainer of these packages is Jeffrey Dick. Please contact him at j3ffdick@gmail.com.
To cite CHNOSZ in publications, use this reference: Dick (2008). The thermodynamic database depends on the work of many researchers. If you publish results using any of these data, please cite the primary sources! For a list of references, use the thermo.refs() function in the package, or access the table of references here.