This simulation shows how a set of discrete molecular energy levels gives rise to the Boltzmann population distribution, and how that distribution in turn determines macroscopic properties like average energy, heat capacity, and entropy. Use it to see why heat capacity is near zero at low temperature (levels are “frozen out”) and rises toward the classical equipartition value as higher levels thaw.
For independent molecules with energy levels En (degeneracy gn), measured from the ground level (E0 = 0):
The partition function is:
where gn is the number of distinct states of level n.
The fraction of molecules with energy level n is
The average energy per molecule is:
The heat capacity per molecule divided by k is:
The entropy per molecule divided by k is:
Because E0 = 0, q is roughly the number of states thermally accessible: q → g0 = 1 as T → 0, and grows as more levels “thaw.” Per-mole quantities: ⟨E⟩molar = Rθ(⟨E⟩/ε) and Cv/R = Cv/k.
Schemes. Evenly spaced: En = nε, with gn = 1 (1-D oscillator), n+1 (2-D oscillator) or (n+1)(n+2)/2 (3-D oscillator). Rigid rotor: EJ = J(J+1)ε, gJ = 2J+1 (linear molecule; nuclear-spin/symmetry-number effects are ignored, so H2 and N2 rotation are idealized). Two-level: ground level (g = 1) and one excited level of degeneracy g. Custom: six evenly spaced levels with degeneracies you choose.
Regimes. Freeze-out: kT < ε/2 — excited levels have Boltzmann factors below e−2 ≈ 0.14, so nearly all molecules sit in the ground level and Cv ≈ 0 (that degree of freedom does not store energy). Thawing: ε/2 < kT < 2ε. Equipartition: kT > 2ε for an unbounded ladder, where Cv/k approaches the classical value: 1 (1-D oscillator, with each of the kinetic and potential terms contributing ½), 2 (2-D oscillator), 3 (3-D oscillator), 1 (linear rotor). Dashed lines mark these limits.
Finite systems. If only N levels exist, ⟨E⟩ is bounded and the populations approach gn/Σg as T → ∞ (all states equally likely). Cv passes through a maximum (Schottky anomaly) and then decays to zero — equipartition never occurs.
Numerics. For an unbounded ladder the sums are evaluated over all levels with e−E/kT > e−60, so the displayed thermodynamic values do not depend on the “levels shown” slider; that slider only sets how many levels are drawn.
Symbols.
This simulation was created in the Department of Chemical and Biological Engineering at University of Colorado Boulder for LearnChemE.com by John L. Falconer using Claude AI. It was prepared with financial support from the National Science Foundation (DUE 2336987 and 2336988). Address any questions or comments to LearnChemE@gmail.com.
level brightness ∝ e−E/kT