A Python-Based Thermodynamic Equilibrium Library for Gibbs Energy Minimization: A Case Study on Supercritical Water Gasification of Ethanol and Methanol
This work aims to present tes-thermo, a Python library developed to solve thermodynamic equilibrium problems using the Gibbs energy minimization approach. The library is a variant of TeS v.3, a standalone executable developed for the same purpose. The tool formulates the chemical equilibrium problem of combined phases as a nonlinear programming problem, implemented using Pyomo (Python Optimization Modeling Objects) and solved with IPOPT (Interior Point OPTimizer). To validate the tool and demonstrate its robustness, the supercritical water gasification (SCWG) of methanol and ethanol was investigated. The Peng–Robinson equation of state was employed to account for non-idealities in the gas phase. Experimental and simulated data from the literature were used for validation, and, in both cases, the results were satisfactory, with root mean square errors consistently below 0.23. The SCWG processes studied revealed that hydrogen production is favored by increasing temperature and decreasing pressure. For both methanol and ethanol, increasing the carbonaceous substrate fraction in the feed promotes hydrogen formation; however, it also leads to reduced hydrogen relative yield due to the enhanced formation of methane and carbon monoxide under these conditions. Consequently, although hydrogen production increases, the hydrogen molar fraction in the dry gas stream tends to decrease with the higher substrate content. As expected, the SCWG of methanol produces more hydrogen and less carbon monoxide compared to ethanol under similar conditions. This behavior is consistent with the higher carbon content in ethanol, which favors reactions leading to carbon oxides. In summary, tes-thermo proves to be a robust and reliable tool for conducting research and studies on topics related to thermodynamic equilibrium.
Authors
- Adriano Pinto Mariano (ORCID: https://orcid.org/0000-0003-2934-992X)
- Antônio Carlos Daltro de Freitas (ORCID: https://orcid.org/0000-0002-9370-1046)
- Julles Mitoura dos Santos (ORCID: https://orcid.org/0000-0002-0891-9965)
Institutions
- Universidade Estadual de Campinas (UNICAMP) (BR)
- Universidade Federal do Maranhão (BR)
Publication Details
- Journal
- Eng—Advances in Engineering
- Published
- 2025-08-30
- DOI
- https://doi.org/10.3390/eng6090208
- Citations
- 1
- Primary Topic
- Subcritical and Supercritical Water Processes
- Type
- article
- Field-Weighted Citation Impact
- 0.67