Definitioncore
Canonical ensemble
Also called NVT ensemble.
The distribution of states at fixed particle number, volume and temperature, with probability proportional to exp(-E/kT).
The canonical ensemble is the probability distribution of a system with a fixed number of particles and a fixed volume that exchanges energy with a large heat bath at temperature . A state of energy has a probability proportional to the Boltzmann factor , so low energies are favoured and the temperature sets how strongly. It is the ensemble of most experiments at a fixed temperature, of Metropolis Monte Carlo, and of molecular dynamics with a thermostat such as Langevin dynamics or the Nose-Hoover thermostat. Its normalization is the partition function , and the Helmholtz free energy is .
Definition
Let be a point of phase space with the positions in the volume , and let with . Let . The canonical ensemble at is the probability density
in dimensions, where is Planck's constant, which fixes the units of , and counts the exchanges of identical particles. The average of an observable is .
Three facts follow at once and are used on every thermostat page:
- It factors. , so the momenta are independent of the positions. Each momentum component is normal with mean 0 and variance : the Maxwell-Boltzmann distribution. The positions have the density , with the configurational integral . Monte Carlo methods sample this part alone.
- The kinetic energy has a gamma law. is a sum of squares of independent normals, so it has the density proportional to , with mean and variance . Here is the number of velocity degrees of freedom: , minus if the total momentum is fixed, minus one for each holonomic constraint. A simulation reports the kinetic temperature , so it must give .
- It is the microcanonical ensemble averaged over the energy. , where is the density of states of the microcanonical ensemble. So is the Laplace transform of .
The energy fluctuates. From and one more derivative,
with the heat capacity at fixed and (a theorem). For a system of particles, and grow as , so the relative size of the fluctuation is , and for large the canonical ensemble is concentrated near one energy. Averages of local quantities agree with the microcanonical ones up to . Fluctuations do not agree: the variance of above is the canonical value, and it is different at fixed energy.
Sampling it. A method samples the canonical ensemble if (or its marginal in , for a method with extra variables) is a stationary density of the method and the method is ergodic, so that time averages converge to ensemble averages. Stationarity can be proved for a given method. Ergodicity holds for stochastic methods such as Langevin dynamics and the Andersen thermostat under mild conditions, and it is a hypothesis for deterministic methods such as the Nose-Hoover thermostat. A time-stepping method keeps only up to its time step error unless a Metropolis test corrects it.
Examples and non-examples
One harmonic oscillator. Take with in reduced units. Then and are independent standard normals: , , and , half from each square. The probability of is . Compare the microcanonical ensemble at the same mean energy : there has the arcsine law on , with and . The ratio is a simple test of whether a thermostat samples the canonical ensemble.
Energy fluctuation of the oscillator. is the sum of two independent terms and , each a half of a chi-squared variable with one degree of freedom, with variance . So . The formula gives the same, since and .
A two-level system. Two states with energies 0 and , and . Then , the upper state has probability , and . The variance is , so .
The kinetic energy of 20 particles. Take 20 particles on a line with and no constraint, so . The canonical law of has mean 10 and variance 10, so the standard deviation of the kinetic temperature is times . A run that reports the mean of only does not test the ensemble; the variance is the stronger test, and the thermostat pages of this area use these two numbers.
Non-example: the Berendsen thermostat. The Berendsen thermostat relaxes toward its target. For free particles the variance of goes to 0, not to , so it does not sample this ensemble.
Non-example: one oscillator with one Nose-Hoover thermostat. The canonical density is stationary for the Nose-Hoover equations, but on one harmonic oscillator the motion is not ergodic. A long run gives and instead of 1 and 3 (a measurement on the Nose-Hoover page). Nose-Hoover chains repair this case.
Non-example: plain molecular dynamics. Molecular dynamics without a thermostat conserves the energy, so it samples the microcanonical ensemble at best. Its kinetic energy fluctuates, but with the microcanonical variance.
Related definitions
- Microcanonical ensemble. Fixed , and . The canonical ensemble is its average over with the weight .
- Partition function. The normalization . Derivatives of give the mean energy, the heat capacity and, through , the free energy, which free energy perturbation and thermodynamic integration compute as differences.
- Isothermal-isobaric ensemble. Fixed , and , with density proportional to and the volume as an extra variable. The Parrinello-Rahman barostat together with a thermostat samples a form of it.
- Boltzmann distribution. The same weight on a discrete set of states, as in the two-level example and in the Ising model.
- Stationary distribution. A Monte Carlo chain such as Metropolis-Hastings is built so that is its stationary distribution, often through detailed balance.
References
- Michael P. Allen and Dominic J. Tildesley, Computer Simulation of Liquids, second edition, Oxford University Press, 2017, Chapter 2, statistical mechanics (the common ensembles and their fluctuations)
- Mark E. Tuckerman, Statistical Mechanics, Theory and Molecular Simulation, Oxford University Press, 2010, Chapter 4, the canonical ensemble
- Daan Frenkel and Berend Smit, Understanding Molecular Simulation, From Algorithms to Applications, second edition, Academic Press, 2002, Chapter 2 (statistical mechanics and ensembles)
- Ben Leimkuhler and Charles Matthews, Molecular Dynamics, With Deterministic and Stochastic Numerical Methods, Springer, 2015, Chapter 6, the canonical distribution and stochastic differential equations
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 4VMCW9 Edit this page History Report an error Markdown