PHREEQC (from the US Geological Survey) computes equilibrium in water: which species dissolved elements form, the solution's pH, ionic strength, and redox state, and whether minerals would dissolve or precipitate (saturation indices). It covers electrolyte and carbonate chemistry that gas-phase tools such as Cantera do not. The job runs PHREEQC 3.8.6 on CPU.
Modes
mode | What it computes |
|---|---|
speciation | The species distribution, pH, and saturation indices of one solution, from its temperature and dissolved components (with optional pH, pe, or charge balance) |
titration | The same, step by step, as a titrant is added |
mixing | The result of mixing two solutions in a given fraction |
Inputs
One of:
- a structured
problem_specfor the chosen mode (the simplest); - a complete PHREEQC input deck as text (
phreeqc_input), for anything the structured form doesn't cover; - an uploaded input file (
problem).
The thermodynamic database is phreeqc.dat by default, or one of wateq4f.dat, minteq.v4.dat, llnl.dat, and pitzer.dat (Pitzer for high-salinity brines). Uploading your own database isn't supported.
Outputs
species.csv: the aqueous species and their concentrations and activities.si.csv: mineral saturation indices (positive means supersaturated).summary.json: pH, pe, ionic strength, and run details.
Not covered
Reactive transport and flow (PHAST) aren't available.