A Computational Toolbox

Statistical Mechanics of ideal gases

⚛

Partition Functions · Thermodynamics · Heat Capacities · Chemical Equilibrium · Reaction Kinetics

Single-point analysis

Partition-function breakdown

QuantityFormulaValueUnit

Thermodynamic observables (per mole)

QuantityEquationValueUnit

All molecules at the current temperature

Sorted by class: monatomic → diatomic → polyatomic linear → polyatomic nonlinear.

MoleculeClassCV/RCP/RγS (J/mol·K)U (J/mol)

Heat capacity CV vs temperature

CV at the current slider temperature
—
For all molecules in the database.
MoleculeClassCV (J/mol·K)CV/RRatio to 3R/2

Temperature dependence

Reference plateaus: 3/2 (monatomic), 5/2 (diatomic rigid), 3 (nonlinear rotor), 7/2 (diatomic + one vib mode).

Chemical equilibrium from statistical mechanics

Build any reaction by choosing species and stoichiometric coefficients; the equilibrium constant follows from the standard-state molecular partition functions at $p^\circ = 1$ bar.

p∘ = 1 bar

Custom reaction builder

Reactants
⇌
Products

Reaction thermodynamics at the current temperature

QuantityEquationValueUnit

Equilibrium constant vs temperature

⚡ Reaction kinetics — rate constants from statistical mechanics

Build the reaction below (independent of the Equilibrium tab). The rate constant is computed by transition-state theory (TST) with the loose-TS approximation, displayed in full partition-function form, in effective Arrhenius form, and in its net power-law dependence on T before the plot.

Rate-constant reaction

—
Reactants
⇌
Products

Activation parameters

Rate-constant expression

Numerical breakdown of the rate constant at the current temperature

FactorSymbolValueUnits

Computed results at the current temperature

QuantityFormula / DefinitionValueUnit

Net temperature dependence of k(T)

Arrhenius plot

log₁₀ k plotted against 1000/T over 200–4000 K. A pure Arrhenius reaction gives a straight line whose slope is −Ea/(2.303 R). Curvature reflects the temperature dependence of the transition-state partition functions, plus Wigner tunneling when enabled.

Help & theoretical framework

All observable quantities are derived from a single molecular partition function $z(T)$. The bridge relations below are standard results of the canonical ensemble.

1. Partition functions

Total / canonical
$$Z(N,V,T)=\frac{z(T)^N}{N!},\qquad z = z_\text{trans}\,z_\text{rot}\,z_\text{vib}\,z_\text{elec}$$
Translational
$$z_\text{trans}=\frac{V}{\Lambda^3},\qquad \Lambda=\frac{h}{\sqrt{2\pi m k_B T}}$$
Rotational — linear (quantum)
$$z_\text{rot}=\frac{1}{\sigma}\sum_{J=0}^{\infty}(2J+1)\,e^{-\theta_\text{rot}J(J+1)/T}$$
Rotational — spherical top (quantum)
$$z_\text{rot}=\frac{1}{\sigma}\sum_{J=0}^{\infty}(2J+1)^2\,e^{-\theta_\text{rot}J(J+1)/T}$$
Rotational — asymmetric top (classical)
$$z_\text{rot}=\frac{\sqrt{\pi}}{\sigma}\sqrt{\frac{T^3}{\theta_A\theta_B\theta_C}}$$
Vibrational (harmonic)
$$z_\text{vib}=\prod_i\left(1-e^{-\theta_i/T}\right)^{-g_i}$$
Electronic
$$z_\text{elec}=g_e$$

2. Thermodynamics from $\ln z$

Bridge relations
$$L \equiv \ln\!\left(\frac{z}{N_A}\right),\quad U = RT^2\frac{\partial L}{\partial T},\quad H = U + RT$$ $$S = R\!\left[L + 1 + T\frac{\partial L}{\partial T}\right],\quad A = -RT\,(L+1)$$ $$G = -RT\,L,\quad C_V = \left(\frac{\partial U}{\partial T}\right)_V,\quad C_P = C_V + R,\quad \gamma = \frac{C_P}{C_V}$$

3. Chemical equilibrium

Equilibrium constant from partition functions
$$\sum_i\nu_i\,\mu_i = 0 \quad\Longrightarrow\quad \ln K_p = \sum_i\nu_i\ln q_i^\circ - \frac{\Delta E_0}{RT}$$ $$q_i^\circ = \frac{1}{\Lambda_i^3}\,\frac{k_B T}{p^\circ}\,z_\text{rot}\,z_\text{vib}\,z_\text{elec},\qquad \Delta E_0 = \sum_i \nu_i\,\Delta H_f^0(i)$$

4. Reaction kinetics module

Rate constant from transition-state theory
$$k(T) = \kappa\cdot\frac{k_B T}{h}\cdot \frac{q^\ddagger/V}{\prod_i (q_i/V)^{\nu_i}}\cdot e^{-E_0/RT}$$
$q^\ddagger$ = partition function of the transition state (reaction coordinate removed), $q_i$ = reactant partition functions, $\kappa$ = transmission coefficient, $E_0$ = classical barrier energy.
Loose-TS approximation
The transition state is built from the reactants:
  • $m^\ddagger = \sum_i c_i\, m_i$
  • $z_\text{rot}^\ddagger = \prod_i (z_{\text{rot},i})^{c_i}$
  • $z_\text{vib}^\ddagger = \prod_i (z_{\text{vib},i})^{c_i}$
  • $z_\text{elec}^\ddagger = \prod_i (g_{e,i})^{c_i}$
★ Net temperature dependence
In the loose-TS approximation, the internal partition functions ($z_\text{rot}$, $z_\text{vib}$, $z_\text{elec}$) cancel exactly, giving an exact closed-form power law: $$k(T) = C \cdot T^{n} \cdot e^{-E_0/(RT)},\qquad n = \frac{5}{2} - \frac{3}{2}N$$ where $N = \sum_i c_i$ is the total number of reactant molecules. The prefactor $C$ is exactly T-independent.
Exact activation energy
$$E_a = -R\,\frac{\partial\ln k}{\partial(1/T)} = E_0 + nRT$$
Activation parameters
$$\Delta G^\ddagger = -RT\ln\!\left[\frac{k\,h}{\kappa k_B T}\right]$$ $$\Delta H^\ddagger = -R\,\frac{\partial \ln K^\ddagger}{\partial(1/T)},\quad \Delta S^\ddagger = \frac{\Delta H^\ddagger - \Delta G^\ddagger}{T}$$
Wigner tunneling correction
$$\kappa_W = 1 + \frac{1}{24}\left(\frac{\theta^\ddagger}{T}\right)^2$$

5. Physical constants & numerical methods

CODATA 2018 (SI)
$$h = 6.62607015\times 10^{-34}\ \text{J·s}$$ $$k_B = 1.380649\times 10^{-23}\ \text{J/K}$$ $$N_A = 6.02214076\times 10^{23}\ \text{mol}^{-1}$$ $$R = 8.314462618\ \text{J/(mol·K)}$$
Standard state
$$p^\circ = 10^5\ \text{Pa} = 1\ \text{bar}$$
Numerical methods
• Rotor sums truncated at $J = 400$ (converged).
• log-sum-exp for stability at low $T$.
• Finite differences for $\partial L/\partial T$, $E_a$, activation parameters.
• HO modes with $\theta_i/T > 50$ treated as fully frozen.
• Kinetics limited to reactions of order 1 or 2.

6. Modelling notes

• Monatomic species (Ar, N, O) have $z_\text{rot}=z_\text{vib}=1$.
• Diatomic species use the linear quantum rotor and a single vibrational mode.
• Linear polyatomics (CO₂) use a linear rotor and $3n-5$ vibrational modes.
• Nonlinear polyatomics (H₂O, NO₂, O₃, CH₄) use classical rigid-rotor approximations; CH₄ uses the spherical-top quantum sum.
• Electronic degeneracies $g_e$ are included; low-lying excited electronic states are not.
• Standard 0 K formation energies $\Delta H_f^0$ from JANAF/NIST set the reaction reference energies.