MatRiFFlow (formerly IMDgroup-pymatgen)
Python and command-line tools for iterative development of computational workflows for VASP atomistic simulations, built on top of pymatgen.
Works with ordinary calculation directories produced manually, by scripts, or by any existing workflow tooling that writes standard VASP files. The independent commands do not require a workflow manager or prescribe how jobs must be executed.
Also includes gorun, a cluster-agnostic job-submission script for VASP,
MACE fine-tuning, ATAT, and generic GPU jobs on Slurm clusters.
Documentation: https://yantar92.github.io/MatRiFFlow/
mrf can handle large collections of calculations (including
running) and detect anomalies or incomparable results. It
deliberately does not automate fixing anomalies, leaving it up to
the user to explore the problems and identify the solutions (with the
optional help of mrf tooling).
Workflow manager compatibility
mrf operates directly on standard VASP directory trees without a
workflow manager-specific database or import. It can complement manual
calculations, custom scripts, and existing workflow managers.
mrf analyze groups runs by identical settings, mrf diff compares
INCAR settings and structures, and mrf analyze provides calculation
summaries.
High-throughput optimization
mrf can handle directory trees containing thousands of
calculations. Parsing VASP outputs (XML, OUTCAR) is costly on
supercomputer file systems, so the tools cache parsed results on disk
(with invalidation if the original data changes).
See the Python API for MRFVaspDir, the class providing cached
directory inspection.
Installation
pip install matrifflow
This installs the mrf and gorun commands.
Note: the lmdb dependency (on-disk result cache) links against the
native LMDB library. On some systems – especially HPC clusters – you
must provide it before pip install ., for example module load lmdb
or the system dev package (apt install liblmdb-dev,
dnf install lmdb-devel). If the build fails while compiling lmdb,
load the module and re-run pip install matrifflow.
Next steps
Quickstart: example graphite (mp-48) workflow
Why this exists: semi-automated workflow development
Contributing
Contributions are welcome.
Report bugs and propose features by opening an issue.
Ask questions and discuss design in GitHub Discussions.
Submit changes as pull requests.
You can also contact the maintainer directly by email
(yantar92@posteo.net) or on GitHub.
User guide
- Features
- Quickstart
- Installation
- Configuration
- 1. Create the starting directory
- 2. Switch functional to account for van der Waals correction
- 3. Set up relax calculation (ISIF=2)
- 4. Create graphite supercell
- 5. Insert Li (one-to-many)
- 6. Run
- 7. Monitor
- 8. Adjust setup for failed runs
- 9. Analyze
- 10. Diff (compare results)
- Command-line reference:
mrf - Job submission:
mrf run - Python API
- Acknowledgements
- Changelog
API reference