Skip to main content
PetThermoTools: a fast, flexible, and accessible Python3 package for performing thermodynamic calculations

PetThermoTools: a fast, flexible, and accessible Python3 package for performing thermodynamic calculations

This is a Preprint and has not been peer reviewed. This is version 1 of this Preprint.

Add a Comment

You must log in to post a comment.


Comments

There are no comments or no comments have been made public for this article.

Downloads

Download Preprint

Authors

Matthew Lloyd Morgan Gleeson , Penny E Wieser , Paula Antoshechkina, Nicolas Riel

Abstract

We present PetThermoTools - an open-source Python3 tool for performing thermodynamic simulations of mantle and magmatic processes. Thermodynamic modeling forms a central component to many research projects in igneous petrology. However, few studies utilize the full potential of these methods due to the steep learning curve associated with existing code or text-based interfaces (e.g., ENKI/thermoengine, alphaMELTS, Theriak-Domino) and the limited model flexibility provided by spreadsheet and GUI based packages (e.g., MELTS for Excel). We designed PetThermoTools to bridge this divide, providing logical, easy-to-use functions with well-documented examples for novice users, while retaining the potential for customization and model automation desired by more experienced users. PetThermoTools also provides the opportunity to directly compare multiple different thermodynamic models and approaches, by integrating with both the alphaMELTS and MAGEMin packages. Furthermore, PetThermoTools model outputs seamlessly integrate with other Python-based packages created for petrological research (e.g., PySulfSat), and provide speed and stability advantages over existing free MELTS-based software owing to the use of parallel processing routines.

DOI

https://doi.org/10.31223/X5ZX8F

Subjects

Physical Sciences and Mathematics

Keywords

MELTS, Thermodynamic Modelling, python, Open Access, volcanology

Dates

Published: 2025-12-11 18:14

Last Updated: 2025-12-11 18:14

License

CC BY Attribution 4.0 International

Additional Metadata

Conflict of interest statement:
None

Data Availability (Reason not available):
All code developed for this study is available at https://github.com/gleesonm1/PetThermoTools