https://github.com/p-ortega/mf6rtm
A python package for reactive transport modeling via the MODFLOW 6 and PhreeqcRM APIs
https://github.com/p-ortega/mf6rtm
groundwater-modeling modflow modflow6 phreeqc reactive-transport
Last synced: 4 months ago
JSON representation
A python package for reactive transport modeling via the MODFLOW 6 and PhreeqcRM APIs
- Host: GitHub
- URL: https://github.com/p-ortega/mf6rtm
- Owner: p-ortega
- License: bsd-3-clause
- Created: 2024-05-10T02:47:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2026-01-12T04:00:23.000Z (5 months ago)
- Last Synced: 2026-01-12T10:23:36.513Z (5 months ago)
- Topics: groundwater-modeling, modflow, modflow6, phreeqc, reactive-transport
- Language: Python
- Homepage: https://mf6rtm.readthedocs.io/en/stable/
- Size: 133 MB
- Stars: 18
- Watchers: 4
- Forks: 7
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MF6RTM: Reactive Transport Model via the MODFLOW 6 and PHREEQCRM APIs


[](https://coveralls.io/github/p-ortega/mf6rtm?branch=main)
[](https://pypi.python.org/pypi/mf6rtm)
[](https://pypi.python.org/pypi/mf6rtm)
[](https://pypi.python.org/pypi/mf6rtm)
[](https://doi.org/10.5281/zenodo.17118951)
## Benchmarks
Benchmark comparing model results against PHT3D are in `benchmark/`. Each folder contains a Jupyter notebook to write and execute an MF6RTM model via the MUP3D class. Additionally, PHT3D files are provided in the corresponding `pht3d` directory for each example.
## Considerations
The current version is intended to work with structured grids (dis object in MF6), unstructured grids (disv) and one MF6 simulation that includes the flow and transport solutions. No support is currently provided for a 'flow then transport scheme,' meaning that advanced packages cannot be incorporated yet.
On the PHREEQC side, the following have been included:
- Solution
- Equilibrium phases
- Cation Exchange
- Surface Complexation
- Kinetic Phases
Most options for each phreeqc block can be passed by adding list with options. However, not all options had been tested, so please create an issue if any option is not working or crashing the model.
## Software requirements
All dependencies and executables are included in this repo. This package extensively uses [modflowapi](https://github.com/MODFLOW-USGS/modflowapi) and [phreeqcrm](https://github.com/usgs-coupled/phreeqcrm)
## Installation
The package can be installed through pip as:
```commandline
pip install mf6rtm
```
## Developing
We recommend forking and cloning a local version of this repo. A development Conda environment is provided in the `env.yml` file, which should install all required dependencies to run tests and modify the package on the fly. To install the environment, use the following command:
```commandline
conda env create -f env.yml
```
## Funding
The developing of mf6rtm was kindly funded and supported by [Intera, Inc](https://www.intera.com).
## Authors
Pablo Ortega (Portega)