Skip to article frontmatterSkip to article content

Statistical Mechanics in a Nutshell

Statistical mechanics links the behavior of a system at the microscopic level to its macroscopic properties, such as temperature, pressure, and volume. It provides a framework for understanding the thermodynamic properties of systems with a large number of particles by considering the statistical distribution of their microstates.

It is used to explain many phenomena in materials science. For example, the behavior of gases, liquids, and solids can be described using statistical mechanics, as well as phase transitions, chemical reactions, and the properties of materials at the atomic and molecular level.

Microstates and Macrostates

In statistical mechanics, a system is described by its microstates and macrostates. A microstate is a specific configuration of the particles in the system (atomic positions, molecular configurations), while a macrostate is a collection of microstates that share certain macroscopic properties, such as temperature, pressure, and volume. The behavior of a system is described by the probability distribution of its microstates, which gives the likelihood of finding the system in a particular microstate.

For example, consider the simple case of tossing a coin three times. Each possible outcome of the coin tosses (e.g., HHT, TTH, HTT, etc.) represents a microstate of the system. There are 23=82^3 = 8 possible microstates in total.

A macrostate, on the other hand, is defined by the number of heads and tails, regardless of the order. For instance, the macrostate with two heads and one tail includes the microstates HHT, HTH, and THH. The probability of each macrostate can be determined by counting the number of microstates that correspond to it and dividing by the total number of microstates. In this example, the macrostate with two heads and one tail has a probability of 38\frac{3}{8}.

Phase Space

The microstate is characterized by the positions (r\mathbf{r}) and momenta (p\mathbf{p}) of all the particles in the system. The collection of all possible microstates of a system is called the phase space (Γ(r,p)\Gamma(\mathbf{r},\mathbf{p})), which represents all the possible configurations of the system.

Ensemble

4 types of ensembles in statistical mechanics: microcanonical, canonical, isothermal-isobaric, and grand canonical.

4 types of ensembles in statistical mechanics: microcanonical, canonical, isothermal-isobaric, and grand canonical.

Ensemble is the actual microstates and the probability distribution within the phase space. It is a collection of microstates that share certain macroscopic properties, such as temperature (T), pressure (P), volume (V), number of particles (N). There are several types of ensembles in statistical mechanics, each corresponding to different constraints on the system.

P(E)=1Ω(E)P(E) = \frac{1}{\Omega(E)}

where Ω(E)\Omega(E) is the number of microstates with energy EE. The microcanonical ensemble describes the system’s behavior when it is isolated and not in contact with any external environment.

P(E)=1ZeβEP(E) = \frac{1}{Z}e^{-\beta E}
Z=eβEZ = \sum e^{-\beta E}

where ZZ is the partition function, β=1kBT\beta = \frac{1}{k_B T} is the inverse temperature, and EE is the energy of the microstate.

P(E,V)=1Zeβ(E+PV)P(E,V) = \frac{1}{Z}e^{-\beta (E+PV)}
Z=eβ(E+PV)Z = \sum e^{-\beta (E+PV)}

where ZZ is the partition function, PP is the pressure, and VV is the volume of the system.

P(E,N)=1Zeβ(EμN)P(E,N) = \frac{1}{Z}e^{-\beta(E-\mu N)}
Z=eβ(EμN)Z = \sum e^{-\beta(E-\mu N)}

where ZZ is the grand canonical partition function, μ is the chemical potential, and NN is the number of particles.

Each ensemble provides a different perspective on the system, allowing for the calculation of macroscopic properties and the understanding of thermodynamic behavior under various constraints.

Thermodynamic Properties

Once we know the partition function, we can calculate various thermodynamic properties of the system:

F=kBTlnZF = -k_B T \ln Z
U=lnZβ=kBT2lnZTU = -\frac{\partial \ln Z}{\partial \beta}=k_B T^2 \frac{\partial \ln Z}{\partial T}
S=FT=kBlnZ+kBTlnZTS = - \frac{\partial F}{\partial T} = k_B \ln Z+k_B T \frac{\partial \ln Z}{\partial T}
P=FV=kBTlnZVP = -\frac{\partial F}{\partial V}=k_B T \frac{\partial \ln Z}{\partial V}
H=U+PV=kBT2lnZβ+kBTVlnZVH = U + PV = k_B T^2 \frac{\partial \ln Z}{\partial \beta} + k_B T V \frac{\partial \ln Z}{\partial V}
G=F+PV=kBTlnZ+kBTVlnZVG = F + PV = -k_B T \ln Z + k_B T V \frac{\partial \ln Z}{\partial V}
Cv=UT=kBβ22lnZβ2C_v = \frac{\partial U}{\partial T} = k_B \beta^2 \frac{\partial^2 \ln Z}{\partial \beta^2}

where FF is the Helmholtz free energy, SS is the entropy, UU is the internal energy, CvC_v is the heat capacity at constant volume, PP is the pressure, VV is the volume of the system, HH is the enthalpy, and GG is the Gibbs free energy.

These equations allow us to relate the microscopic properties of the system to its macroscopic behavior and predict how the system will respond to changes in temperature, pressure, and volume.

Sampling the Phase Space

One of the main challenges in statistical mechanics is to sample the phase space effectively to obtain accurate statistical averages and thermodynamic properties. Two common methods for sampling the phase space are molecular dynamics and Monte Carlo simulations:

Ergodic hypothesis states that a system will explore all of its microstates over time. According to this hypothesis, the time average of a property of the system is equal to the ensemble average. This implies that by simulating the dynamics of a system for a sufficiently long time, we can obtain accurate statistical averages and thermodynamic properties. Therefore, MD and MC simulation will get the same statistical averages if the system is ergodic and is independent of the initial conditions.