
Why a leaking binary mixture changes its composition
Two nonreacting species share a vessel at fixed temperature. Their pressures initially add according to the ideal-gas law, but the molecules hitting a small hole have a speed bias. Predict whether the gas left behind or the gas escaping initially is richer in the light species.
Open editable notebook · Download .ipynb · Chapter 7 · Pressure and effusion from molecular motion

Design a thermometer with a countable energy spectrum
How precisely can a single equilibrated degree of freedom measure temperature? Derive the reading distribution from the canonical ensemble, find the gap that makes it most informative, and analyse a detector that records no excitations at all.

Put a thermometer on a bounded spin spectrum
A collection of identical two-level degrees of freedom has both a lowest and a highest energy. Count the accessible states at each energy and determine from adjacent entropy differences which way energy flows when two systems are brought into weak thermal contact.
Open editable notebook · Download .ipynb · Statistical mechanics from microscopic counting to material response

Weigh a colloid by counting where it spends its time
Brownian motion spreads a dilute suspension through a cell whilst buoyancy biases its vertical position. Derive the equilibrium concentration, predict counts in finite camera bins and estimate a buoyant mass without measuring how quickly any individual sphere falls.
Open editable notebook · Download .ipynb · Counting, correlations and thermal measurements
Fundamentals / Physics / Thermodynamics and statistical physics
Thermodynamics and statistical physics · Computational notebooks
Change an input, run the Python cells and compare the result with the derivation. You can also download each notebook for Jupyter.