ZacrosTools Logo

Welcome to the ZacrosTools documentation

PyPI License DOI CI

ZacrosTools is a versatile toolkit designed to simplify the preparation and analysis of Kinetic Monte Carlo (KMC) simulations with Zacros.

Key features

  • Automatize the creation of Zacros input files

  • Perform scans over different pressures and temperatures

  • Quickly read, analyze, and process Zacros output files

  • Easily plot heatmaps from the simulation results

  • Extensive documentation with detailed examples to help users get started

Multiple heatmaps

How to cite

If you use ZacrosTools in your research, please cite:

Prats, H. ZacrosTools: A Python Library for Automated Preparation, Analysis, and Visualization of Kinetic Monte Carlo Simulations with Zacros. J. Phys. Chem. A 2025, 129, 6608–6614. DOI: 10.1021/acs.jpca.5c02802

Installation

ZacrosTools is available on PyPI and can be installed using pip:

pip install zacrostools

Prerequisites:

Alternatively, the latest development version can be installed from GitHub as follows:

git clone https://github.com/hprats/ZacrosTools.git
cd ZacrosTools
pip install .

Recent changes

Version 2.11 — 2025-11-04

Changed

  • Mode rename and new definition in dtof.py:

    • The former difference_type='relative' mode (which computed the ratio |TOF(main)/TOF(ref)|) has been renamed to difference_type='ratio'.

    • A new difference_type='relative' is introduced to compute the percent difference:
      ΔTOF_rel = (TOF(main) − TOF(ref)) / TOF(ref) × 100

Added

  • New difference_type options in plot_dtime:

    • Added support for difference_type='ratio':
      Δt = t(main) / t(ref)

      • The colorbar is logarithmic, spanning [10⁻ᴺ, 10⁺ᴺ], and centered at 10⁰.

    • Added support for difference_type='speedup':

      • Uses the same ratio definition as above, but the colorbar spans [10⁰, 10⁺ᴺ], showing only values ≥ 1.

Full details are available in the ZacrosTools CHANGELOG.

What’s next

We plan to continue improving ZacrosTools with additional features, optimizations, and support for more advanced Zacros functionalities. Contributions are welcome!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributors

Acknowledgements

  • Zeyu Wu