This R package calculates equilibrium constants for thermodynamic data files used in The Geochemist's Workbench®. It reads reactions from an input GWB data file, calculates equilibrium constants (logK) for the reactions using the OBIGT database in CHNOSZ, and writes them to an output GWB file.
install.packages("remotes")
remotes::install_github("jedick/logKcalc", build_vignettes = TRUE)
- Change the temperature and pressure for logK calculations.
- Add new species to the output file.
- List data references in the output file (requires CHNOSZ version > 1.3.6).
- Make plots comparing logK values from two data files.
- Update activity coefficient model blocks (Debye-Hückel, H2O, CO2) for specified T and P.