Boyer, G., Robare, J., Park, N., Ely, T., Shock, E.L.
AqEquil is a Python 3 package that enables users to rapidly perform aqueous speciation calculations of water chemistry data for multiple samples by interfacing with geochemical speciation software EQ3/6 (Wolery 2013, Wolery 1979). AqEquil uses a modified version of EQ3/6 created by the 39Alpha research team for easy local installation.
Water sample data in CSV format is automatically converted to a format readable by EQ3 and then speciated. Distributions of aqueous species, mineral saturation indices, oxidation reduction potentials, and more are data-mined and returned as Pandas tables and interactive Plotly visualizations.
Speciated fluids can be further reacted with minerals or other fluids in mass transfer calculations to produce tables and interactive diagrams of reaction paths and composition changes as a function of reaction progress.
Development of AqEquil was made possible by National Science Foundation (NSF) grants EAR-1949030 and EAR-2149016.
AqEquil works on Linux, macOS, and Windows.
Python Requirements:
- Python >= 3.10
- pandas, numpy, matplotlib, plotly, and other dependencies (automatically installed)
Note: As of version 1.0.0, EQ3/6 executables are bundled with aqequil and no longer need to be installed separately. The package includes pre-compiled binaries for Linux, macOS, and Windows.
Install AqEquil using pip:
pip install aqequilThe bundled EQ3/6 executables will be automatically installed with the package. No additional configuration or environment variables are needed.
See this demo notebook for usage examples.
This package includes pre-compiled binaries from EQ3/6 v8.0a, a software package for geochemical modeling developed by Thomas Wolery at Lawrence Livermore National Laboratory and updated by 39 Alpha.
EQ3/6 License: BSD 3-Clause License Copyright: (c) 1987, 1990-1993, 1995, 1997, 2002, 2013 The Regents of the University of California, Lawrence Livermore National Laboratory.
See THIRD_PARTY_LICENSES.txt for the full EQ3/6 license text.
References:
- Wolery, T. J., and USDOE. EQ3/6 A Software Package for Geochemical Modeling. Computer software. December 13, 2010. https://www.osti.gov//servlets/purl/1231666. doi:https://doi.org/10.11578/dc.20210416.44.
- Wolery, T. J. and R. L. Jarek. Software User's Manual EQ36, Version 8.0. U.S. Tech. Rep. 2003. Department of Energy, Office of Civilian Radioactive Waste Management, Office of Repository Development. 10813-UM-8.0-00.