ZacrosTools Logo
# Welcome to the ZacrosTools documentation [![PyPI](https://img.shields.io/pypi/v/zacrostools)](https://pypi.org/project/zacrostools/) [![License](https://img.shields.io/github/license/hprats/ZacrosTools)](https://github.com/hprats/ZacrosTools/blob/main/LICENSE) [![DOI](https://zenodo.org/badge/DOI/10.1021/acs.jpca.5c02802.svg)](https://doi.org/10.1021/acs.jpca.5c02802) [![CI](https://github.com/hprats/ZacrosTools/actions/workflows/ci.yml/badge.svg)](https://github.com/hprats/ZacrosTools/actions/workflows/ci.yml) ZacrosTools is a versatile toolkit designed to simplify the preparation and analysis of Kinetic Monte Carlo (KMC) simulations with **[Zacros](https://zacros.org/)**. ## 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](https://doi.org/10.1021/acs.jpca.5c02802) ## Installation ZacrosTools is available on PyPI and can be installed using `pip`: ```bash pip install zacrostools ``` Prerequisites: - **Python 3.8 or higher** - **[Scipy](https://scipy.org/)** - **[Pandas](https://pandas.pydata.org/)** Alternatively, the latest development version can be installed from GitHub as follows: ```bash 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](https://github.com/hprats/ZacrosTools/blob/main/CHANGELOG.md). ## 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](https://github.com/hprats/ZacrosTools/blob/main/LICENSE) file for details. ## Contributors - **Hector Prats** - [hector.prats@tuwien.ac.at](mailto:hector.prats@tuwien.ac.at) ## Acknowledgements - **Zeyu Wu** ```{eval-rst} .. toctree:: :maxdepth: 2 :caption: Contents citation.md gas_model.md energetics_model.md reaction_model.md lattice_model.md writing_input_files.md reading_output_files.md plotting_single_simulation.md plotting_heatmaps.md ```