pyglenn Labbook — Thermochemical Worked Examples

A collection of twelve elaborated, self-contained Jupyter notebooks demonstrating the pyglenn thermochemical properties calculator. pyglenn reconstructs the standard-state molar properties \(C_p^\circ(T)\), \(H^\circ(T)\) and \(S^\circ(T)\) from NASA (Glenn) polynomial coefficients stored in a bundled SQLite database (~2035 species, 3795 temperature intervals).


Installation

Install pyglenn and its companion scientific libraries:

pip install pyglenn
pip install numpy pandas matplotlib scipy

Or, using conda / mamba:

conda install -c conda-forge pyglenn numpy pandas matplotlib scipy
# or, using the conda-forge channel specifier:
conda install conda-forge::pyglenn numpy pandas matplotlib scipy

To install from source:

git clone https://github.com/ProfLeao/pyglenn.git
cd pyglenn
pip install .


About

About the data

  • pyglenn’s h_relative (calculate_properties(...).h_relative) is the standardized molar enthalpy on the NASA scale — it already includes the enthalpy of formation. Consequently reference-state elements read \(H^\circ(298.15\,\mathrm{K}) \approx 0\), compounds read their \(\Delta_f H^\circ\), and reaction enthalpies are simple stoichiometric sums.

  • Since 0.2.0 the dedicated heat_of_formation_298K column is populated, so calculate_formation_enthalpy() returns \(\Delta_f H^\circ\) directly. Notebook 04 shows this route and the h_relative route agree.


Citing

If you use this repository in your research or teaching, please cite it via Zenodo:

Gonçalves Leão Junior, R. (2026). pyglenn-notebooks. Zenodo. https://doi.org/10.5281/zenodo.21324685