Thermodynamic Ensembles: Choosing the Constraints
Microcanonical, canonical and grand canonical descriptions
Lesson 3701 of 4,500 · Statistical Thermodynamics and Phase Equilibria
Learning objectives
- Choose an ensemble from energy and particle-exchange constraints
- Identify the natural partition function and potential for three common ensembles
Introduction
Statistical thermodynamics predicts macroscopic properties by averaging over microscopic states. The first decision is not which equation to memorise but what the system can exchange with its surroundings. An isolated sample cannot exchange energy or particles; a sample touching a heat bath exchanges energy; an open sample can exchange both energy and particles. Those physical constraints determine the ensemble and the appropriate statistical sum.
Core explanation
An ensemble is a probability description of possible microstates for a specified macroscopic situation. In the microcanonical ensemble, E, V and particle number N are fixed. Accessible states in a narrow energy interval are assigned equal prior weight in equilibrium, and their count Ω gives entropy S = k ln Ω. Temperature is then inferred from how S changes with energy, rather than imposed by an external bath.
In the canonical ensemble, a system of fixed V and N exchanges energy with a much larger thermal reservoir at temperature T. Microstate j of energy E j has probability p j = exp(−E j/kT)/Q, where Q = Σ j exp(−E j/kT) is the canonical partition function. Energy fluctuates, while T is controlled. Its thermodynamic potential is Helmholtz energy A = −kT ln Q. Derivatives of ln Q give mean energy, pressure and fluctuations under the specified constraints.
In the grand canonical ensemble, a system can exchange particles as well as energy with reservoirs. Temperature T, volume V and chemical potential μ are fixed, while E and N fluctuate. A state with N particles and energy E carries weight exp[−(E − μN)/kT]. Summing over all N and their states gives the grand partition function Ξ = Σ N exp(μN/kT)Q N. Its potential is the grand potential Ω G = −kT ln Ξ, equal to A − μN for a simple one-component equilibrium system. The symbol Ω G for potential should not be confused with Ω used for a microstate count; context and notation should be made explicit.
Different ensembles can describe the same large bulk material when their average states correspond, but they make different fluctuations and boundary constraints explicit. A canonical calculation is convenient for a sealed container touching a thermostat; a grand canonical description is useful for adsorption sites exchanging molecules with a gas reservoir. The physical setup decides what is fixed and what varies. A mathematical ensemble is not an assertion that many physical copies literally exist in the laboratory.
Step-by-step reasoning
List energy exchange, particle exchange and volume change separately. If neither energy nor particles can cross and V is fixed, use microcanonical E,V,N. If only heat can cross, use canonical T,V,N. If heat and particles cross, use grand canonical T,V,μ for a single species. Write the matching statistical sum and potential, then check that any derivative is taken with the ensemble's natural fixed variables.
Visual explanation
Draw three boxes. The first has sealed, insulating walls and labels E,V,N. The second has a heat-conducting wall connected to a large T reservoir but no particle passage, labelled T,V,N. The third has both heat and particle openings to reservoirs, labelled T,V,μ. Beneath each box place respectively Ω count, Q and Ξ.
Real-world analogy
A fixed meal sealed in a thermos has neither food nor heat exchange in an idealised description. A sealed container in a temperature-controlled bath trades heat but not food. A buffet tray open to a kitchen can receive both warmed food and new portions. The analogy helps identify constraints, though particles in a thermodynamic ensemble are not chosen deliberately.
Real-world example
Adsorption of gas molecules onto a surface can be modelled grand canonically when sites exchange molecules with a large gas reservoir. The reservoir fixes T and μ, while the number of occupied sites changes. By contrast, a sealed gas cylinder in a thermostat has a fixed number of molecules but energy fluctuates, matching a canonical model more naturally.
Why?
Constraints determine which microstates are accessible and how likely they are. Holding E fixed gives equal weights among states at that energy; allowing energy exchange creates Boltzmann weights; allowing particle exchange adds the μN term. Selecting the correct ensemble makes the equilibrium probability distribution fit the physical boundary conditions.
Common misconception
“Canonical” does not mean energy is fixed; it means temperature is fixed by a bath while energy fluctuates. Similarly, grand canonical does not mean particle number has no average: N fluctuates around a mean controlled by μ. One must also distinguish the microstate count Ω from the grand potential, which is sometimes written with the same Greek letter in textbooks.
Worked example
Consider a porous material exposed to a large gas reservoir at 300 K. Molecules enter and leave its adsorption sites, but the reservoir maintains its own state. The adsorbent's N is variable, and heat can be exchanged, so choose the grand canonical ensemble. Its statistical weight for a state with N bound molecules and energy E is proportional to exp[−(E − μN)/kT]. If the pores were sealed after loading but still kept at 300 K, the fixed-N canonical ensemble would instead fit the preparation.
Quick check
1. A sealed rigid vessel is kept in a water bath at constant temperature. Which variables define its natural ensemble? Answer: It can exchange heat but not particles and has fixed volume, so the canonical variables T, V and N apply. Its energy fluctuates around a mean despite the constant bath temperature.
Exam focus
State what crosses the system boundary before naming an ensemble. Keep partition functions Q N and Ξ distinct, and write the Boltzmann factor with the correct E − μN sign. Match natural variables to derivatives. If pressure rather than volume is controlled, a different ensemble or thermodynamic potential may be more convenient than the three simple fixed-V cases.
Advanced insight
Ensemble equivalence emerges for many ordinary short-range interacting systems in the thermodynamic limit, where relative fluctuations vanish. Near criticality, in small systems or with long-range interactions, distinctions can matter. An ensemble choice is therefore both a practical calculation device and a statement about reservoir coupling and fluctuations.
Summary
Microcanonical E,V,N uses a count of equal-weight accessible states; canonical T,V,N uses Q and A = −kT ln Q; grand canonical T,V,μ uses Ξ and Ω G = −kT ln Ξ. Energy and particle exchange determine the choice. Large systems may yield the same bulk equations while retaining different fluctuation descriptions.
Practice questions
1. A crystal is thermally insulated and sealed in a rigid container. Which ensemble is the ideal starting point? Answer: Microcanonical, because E, V and N are fixed under those ideal constraints. Its entropy is linked to the count of accessible states. 2. Why is a canonical microstate probability not uniform across different energies? Answer: Energy exchange with a heat bath produces Boltzmann weights exp(−E j/kT); higher-energy states have smaller weight at positive T, although degeneracy can make an energy level collectively populous. 3. A pore can take up or release solvent molecules from a large reservoir at fixed T. What fluctuates in the grand canonical description? Answer: Both its energy E and particle number N fluctuate. The reservoirs control T and chemical potential μ, while V is fixed for the idealised pore.