FAU Erlangen-Nürnberg
Part I — Thermodynamics & statistical mechanics
Part II — Classical atomistic simulation
A thermodynamic system is described by a small set of state variables:
An equation of state relates them, e.g. for the ideal gas:
\[f(P,V,N,T) = 0 \quad\Longleftrightarrow\quad PV = N k_B T\]
To define change, we must define not-change — equilibrium.
Two systems in contact are in:
Zeroth law: if \(A\sim B\) and \(B\sim C\) thermally, then \(A\sim C\).
\(\rightarrow\) Justifies temperature as an empirical state variable.
Internal energy \(U\) (“innere Energie”) = total energy stored in the system.
\[\Delta U = Q + W\]
Including volumetric work gives the enthalpy:
\[H = U + PV\]
Heat conduction, friction, fracture, explosions — all are irreversible.
A new state variable, entropy \(S\), is needed:
\[dS \geq \frac{\delta Q}{T}\]
For an isolated system,
\[\Delta S \geq 0\]
Equality holds only in the (idealised) reversible limit.
\(\rightarrow\) Lossless engines do not exist. Time has a direction.
The most general thermodynamic potential is the Gibbs free energy:
\[G = H - TS = U + PV - TS\]
Choose the potential whose natural variables match the experimental constraints.
Heat capacity = ability to store energy as \(T\) changes:
\[C_V = \left(\frac{\partial U}{\partial T}\right)_V, \qquad C_P = \left(\frac{\partial H}{\partial T}\right)_P\]
Third law (Nernst): \(S \to 0\) as \(T \to 0\) for a perfect crystal.
\(\rightarrow\) Sets an absolute zero of entropy.
Macroscopic thermodynamics is powerful but incomplete — it does not explain how \(T\), \(S\), \(P\) emerge from atomic motion. That is the job of statistical mechanics.
At a phase boundary (e.g. solid-liquid), the Gibbs free energies of two phases are equal:
\[G_1(T,P) = G_2(T,P)\]
Differentiating along the coexistence curve gives the Clausius-Clapeyron relation:
\[\frac{dP}{dT} = \frac{\Delta S}{\Delta V} = \frac{L}{T \Delta V}\]
with latent heat \(L = T \Delta S\).
\(\rightarrow\) Foundation for phase diagrams, the focus of later MG units.
Three empirical laws were combined into one:
Combining all four:
\[PV \propto NT \quad\Longrightarrow\quad PV = N k_B T = n R T\]
with Boltzmann constant \(k_B\), gas constant \(R = N_A k_B\), and \(n\) in moles.
A cubic box, side \(L\), volume \(V=L^3\), with \(N\) particles obeying
\[m_i \ddot{\mathbf{x}}_i = \mathbf{f}_i\]
\[P = \frac{\langle F\rangle}{L^2}\]
A particle hitting a wall (normal \(\hat{x}\)) reverses \(v_x \to -v_x\), transferring momentum
\[\Delta p = 2 m v_x\]
Time between successive hits on the same wall: \(\tau = 2L/v_x\).
Average force per particle and total force:
\[F_i = \frac{2 m v_x}{2L/v_x} = \frac{m v_x^2}{L}, \qquad \langle F\rangle = \frac{N m}{L}\langle v_x^2\rangle\]
\[\boxed{\,PV = N m \langle v_x^2\rangle\,}\]
Isotropy: \(\langle v_x^2\rangle = \langle v_y^2\rangle = \langle v_z^2\rangle\), so \(\langle v^2\rangle = 3\langle v_x^2\rangle\).
\[PV = \tfrac{1}{3} N m \langle v^2\rangle = \tfrac{2}{3} N \langle E_\text{kin}\rangle\]
Comparing with \(PV = N k_B T\) gives
\[\langle E_\text{kin}\rangle = \tfrac{3}{2} k_B T\]
— the equipartition theorem: \(\tfrac{1}{2}k_B T\) per quadratic degree of freedom.
Goal: probability density \(f(\mathbf{v})\) of velocities at temperature \(T\).
The unique solution (Maxwell 1860, Boltzmann 1872):
\[f(\mathbf{v}) = \left(\frac{m}{2\pi k_B T}\right)^{3/2} \exp\!\left[-\frac{m\,|\mathbf{v}|^2}{2 k_B T}\right]\]
Equivalently in kinetic energy:
\[f(E_\text{kin}) = \left(\frac{m}{2\pi k_B T}\right)^{3/2} \exp\!\left[-\frac{E_\text{kin}}{k_B T}\right]\]
The exponential weight \(\exp(-E/k_B T)\) is our first hint of the Boltzmann distribution.
Speed distribution (multiply \(f(\mathbf{v})\) by \(4\pi v^2\)):
\[F(v) = 4\pi v^2 \left(\frac{m}{2\pi k_B T}\right)^{3/2} e^{-mv^2/2k_B T}\]
Three speed scales:
Higher \(T\) broadens and shifts the curve to higher speeds.
Macroscopic system: \(N\sim N_A \sim 10^{23}\) — tracking trajectories is hopeless.
Particles obey Newton’s equations under a potential \(V(\mathbf{x}_1,\dots,\mathbf{x}_N)\).
The total energy is the classical Hamiltonian:
\[\mathcal{H} = E_\text{kin} + E_\text{pot} = \sum_{i=1}^{N} \frac{m_i}{2}\, \mathbf{v}_i^{\,2} + V(\mathbf{x}_1,\dots,\mathbf{x}_N)\]
We replace impossible time averages by ensemble averages:
Boltzmann’s tombstone equation:
\[\boxed{\,S = k_B \ln \Omega\,}\]
An ensemble = collection of hypothetical copies of a system, all sharing the same macroscopic constraints.
For a system in the canonical ensemble (fixed \(N,V,T\), in contact with a heat bath), the probability of a microstate of energy \(E_i\) is
\[\boxed{\,p_i = \frac{1}{Z}\exp\!\left[-\frac{E_i}{k_B T}\right]\,}\]
Normalisation gives the canonical partition function \(Z\):
\[Z = \sum_i g(E_i)\,e^{-E_i/k_B T} = \int_0^\infty g(E)\, e^{-E/k_B T}\, dE\]
Internal energy as a \(Z\)-derivative:
\[U = \langle E\rangle = \frac{1}{Z}\sum_i g(E_i)\,E_i\,e^{-E_i/k_B T} = -\frac{\partial \ln Z}{\partial(1/k_B T)}\cdot\frac{1}{k_B}\]
Comparing with \(F = U - TS\) at fixed \(N,V\) gives the central identity:
\[\boxed{\,F = -k_B T \ln Z\,}\]
| Ensemble | Fixed | Potential |
|---|---|---|
| Microcanonical | \(N,V,E\) | \(S = k_B\ln\Omega\) |
| Canonical | \(N,V,T\) | \(F = -k_BT\ln Z\) |
| Grand canonical | \(\mu,V,T\) | \(\Omega_\text{gp}\) |
| Isothermal-isobaric | \(N,P,T\) | \(G\) |
A general potential expands in \(n\)-body terms:
\[V = \sum_i V_1(i) + \tfrac{1}{2}\sum_{i\neq j}V_2(i,j) + \tfrac{1}{6}\sum_{i\neq j\neq k}V_3(i,j,k) + \cdots\]
Harmonic spring (near equilibrium):
\[\phi_\text{spring}(r) = \tfrac{1}{2}k(r-r_0)^2\]
Lennard-Jones (van der Waals):
\[\phi_\text{LJ}(r) = 4\epsilon\!\left[\!\left(\frac{\sigma}{r}\right)^{\!12}\!\!-\!\left(\frac{\sigma}{r}\right)^{\!6}\right]\]
For charged particles, Coulomb interaction:
\[\phi_C(r_{ij}) = \frac{1}{4\pi\epsilon_0}\frac{q_i q_j}{r_{ij}}\]
Pair potentials fail for metals — bonding depends on local density, not just pair distances.
Embedded-atom method (Daw & Baskes 1984):
\[V_\text{EAM} = \sum_i F\!\left(\bar\rho_i\right) + \tfrac{1}{2}\sum_{i\neq j}\phi(r_{ij}), \quad \bar\rho_i = \sum_{j\neq i}\rho(r_{ij})\]
Covalent solids need explicit angles and breakable bonds:
\[V_\text{SW} = \sum_{i<j}\phi_2(r_{ij}) + \sum_{i<j<k}\phi_3(r_{ij},r_{ik},\theta_{jik})\]
Machine-learning potentials promise DFT accuracy at force-field cost:
Pair-distance evaluation costs \(\mathcal{O}(N^2)\) — too much for large \(N\).
Set all velocities to zero: \(\mathbf{v}_i = \mathbf{0}\). The Hamiltonian collapses to
\[\mathcal{H} = V(\mathbf{x}_1,\dots,\mathbf{x}_N)\]
Stable structures are local minima of the PES:
\[\nabla_i V = \mathbf{0} \quad\Longleftrightarrow\quad \mathbf{f}_i = \mathbf{0}\;\;\forall i\]
All find a local minimum — global optimisation needs additional strategies (basin hopping, simulated annealing, genetic algorithms).
Uniformly scale the cell volume, relax atoms at each \(V\), record \(E(V)\).
Fit a third-order Birch-Murnaghan EoS:
\[E(V) = E_0 + \tfrac{9 V_0 B_0}{16}\!\left[\!\left((V_0/V)^{2/3}\!-\!1\right)^{\!3}\! B_0' + \left((V_0/V)^{2/3}\!-\!1\right)^{\!2}\!\!\left(6 - 4 (V_0/V)^{2/3}\right)\right]\]
Limitation: \(T=0\) only — no entropy, no diffusion, no phase transitions.
MD = direct numerical integration of Newton’s equations:
\[m_i \ddot{\mathbf{x}}_i = \mathbf{F}_i = -\nabla_i V(\mathbf{x}_1,\dots,\mathbf{x}_N)\]
The standard time integrator (Allen & Tildesley 1987, Frenkel & Smit 2002):
\[\mathbf{x}_i(t+\Delta t) = \mathbf{x}_i(t) + \mathbf{v}_i(t)\Delta t + \tfrac{\mathbf{F}_i(t)}{2m_i}\Delta t^2\]
\[\mathbf{F}_i(t+\Delta t) = -\nabla_i V\!\left(\mathbf{x}_1(t+\Delta t),\dots\right)\]
\[\mathbf{v}_i(t+\Delta t) = \mathbf{v}_i(t) + \frac{\mathbf{F}_i(t)+\mathbf{F}_i(t+\Delta t)}{2m_i}\Delta t\]
\(\rightarrow\) The right tool for sampling NVE.
Plain Verlet samples NVE. To target NVT, modify velocities or add fictitious dynamics:
To target constant pressure, allow the simulation cell to fluctuate:
Radial distribution function \(g(r)\):
\[g(r) = \frac{V}{N^2}\!\left\langle\sum_{i\neq j}\delta(r - r_{ij})\right\rangle\]
Mean-square displacement:
\[\text{MSD}(t)=\langle|\mathbf{r}_i(t)-\mathbf{r}_i(0)|^2\rangle\]
Long-time slope \(\to\) diffusion constant
\[D = \lim_{t\to\infty}\frac{\text{MSD}(t)}{6t}\]
Virial pressure:
\[P = \frac{N k_B T}{V_\text{box}} + \frac{1}{3 V_\text{box}}\!\left\langle\sum_{i<j}\mathbf{r}_{ij}\!\cdot\!\mathbf{F}_{ij}\right\rangle\]

© Philipp Pelz - Materials Genomics