Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Binder

Properties

Static properties describe measurements of thermodynamic properties, spatial structure and organization

  • Potential/kinetic energy, heat capacity, pressure, temperature

  • Radial distribution functions

  • Number of neighbors

  • Order

Dynamic properties describe the movements of atoms

  • Diffusion coefficients

  • Conductivity

  • Time-dependent spectroscopy

  • Viscosity

Let us make another trajectory of our soft-sphere system:

   Step     E_k   E_pot   E_tot       T       P  Eval r
      0   0.995   0.001   0.996   0.995   0.237    1849
   1000   0.675   0.321   0.996   0.675   3.790    1047
   2000   0.659   0.337   0.996   0.659   3.908    1027
   3000   0.630   0.366   0.996   0.630   4.213    1036
   4000   0.645   0.351   0.996   0.645   4.109    1043

Static properties

Static properties can be computed directly from trajectories:

  • Straightforward: Homogeneous, stationary (equilibrated) systems, where we can average over time and space

  • Inhomogeneous systems: Localized measurements instead of global averages

  • Nonstationary over time: No long-term time averaging

Static.png

Radial distribution function (pair correlation function) g(r)

g(r)g(r) describes the spherically averaged local organization around any given atom

g(r)=n‾(r)ρVshellg(r) = \frac{\overline{n}(r)}{\rho V_\mathrm{shell} }

with n‾(r)\overline{n}(r) the mean number of particles between distance rr and r+Δrr + \Delta r, and ρ\rho the number density N/VN/V

It can be derived from a histogram hnh_n of discretized pair separations, where n‾(rn)=hn∗2/N\overline{n}(r_n) = h_n*2/N, which is the number of atom pairs (i,j) for which nΔr≤rij<(n+1)Δrn \Delta r \leq r_{ij} < (n+1)\Delta r

For small Δr\Delta r:

  • 3 dimensions: g(r)≃n‾(r)4πr2Δrρg(r) \simeq \frac{\overline{n}(r)}{4\pi r^2\Delta r \rho} with Vshell=4π3(r+Δr)3−4π3r3≃4πr2ΔrV_\mathrm{shell} = \frac{4\pi}{3}(r+\Delta r)^3 - \frac{4\pi}{3}r^3 \simeq 4\pi r^ 2\Delta r

  • 2 dimensions: g(r)≃n‾(r)2πrΔrρg(r) \simeq \frac{\overline{n}(r)}{2\pi r\Delta r \rho} with Vshell=π(r+Δr)2−πr2≃2πrΔrV_\mathrm{shell} = \pi(r+\Delta r)^2 - \pi r^2 \simeq 2\pi r\Delta r

Characteristics:

  • ρg(r)dr→\rho g(r)d\overrightarrow{r} is proportional to the probability of finding an atom in the volume element dr→d\overrightarrow{r} at a distance rr from a given atom

  • ρVshell⋅g(r)\rho V_\mathrm{shell} \cdot g(r) is the mean number of atoms in a shell of radius rr and thickness Δr\Delta r surrounding the atom.

Typical behavior:

RDFs.png

What is it used for?

  • central role in liquid-state physics

  • functions that depend on the pair separation (potential energy, pressure) can be expressed in terms of integrals involving g(r)g(r). E.g. with the pair potential u(r)u(r): Epot=2πNρ∫0∞r2u(r)g(r)drE_\mathrm{pot} = 2\pi N\rho\int_0^\infty r^2 u(r)g(r)dr
    P=ρkbT−23πρ2∫0∞r3du(r)drg(r)drP = \rho k_b T - \frac{2}{3}\pi\rho^2\int_0^\infty r^3 \frac{du(r)}{dr}g(r)dr

  • g(r)g(r) is related to the experimentally measurable structure factor S(k→)S(\overrightarrow{k}) (k→\overrightarrow{k} is the scattering vector) by Fourier transformation S(k→)=1+ρ∫g(r→)e−ik→⋅r→dr→S(\overrightarrow{k}) = 1+\rho\int g(\overrightarrow{r})e^{-i\overrightarrow{k}\cdot\overrightarrow{r}}d\overrightarrow{r} It can therefore be derived experimentally from S(k→)S(\overrightarrow{k}) using neutron scattering or x-ray scattering data

  • g(r)g(r) can even be measured experimentally using microscopy for large particles

  • g(r)g(r) can be used to estimate errors in thermodynamic properties due to the energy cutoff. For example, for the mean potential energy: ΔEpot=2πρ∫rc∞r2u(r)g(r)dr\Delta E_\mathrm{pot} = 2\pi \rho \int_{r_c}^\infty r^2u(r)g(r)dr Since g(r)≃1g(r)\simeq 1 for large rr, the calculation can be simplified. For the LJ potential, it can even be evaluated analytically: ΔEpot=8πρ(19rc9−13rc3)\Delta E_\mathrm{pot} = 8\pi \rho \left( \frac{1}{9r_c^9}-\frac{1}{3r_c^3} \right)

  • Similarly, we can compute the error in the pressure.

Limitations

Radial distribution functions are less meaningful for very asymmetric systems:

RDF_Limit.png
11.180339885 111
<Figure size 640x480 with 1 Axes>
11.180339885 111
<Figure size 640x480 with 1 Axes>

Local order

Local order gives information about e.g. how molecules are organized, how large the exposed surface of a large molecule is, etc.

Voronoi subdivision (= tesselation)

Construct polyhedra around atoms/molecules such that all points that are closer to a particular atom/molecule than any other belong to its polyhedron. Adjacent atoms/molecules then share a common face of their polyhedra.

Voronoi.png

It is commonly used for:

  • Shape of polyhedra and their volume have a physical meaning

  • Accurate neighbor counts even for non-spherical molecules

  • Computation of solvation shells

  • For mixtures: Number of specific species in the x-th solvation shell

Voronoi2.png
<Figure size 640x480 with 1 Axes>
<Figure size 640x480 with 1 Axes>

We can easily obtain neighbor counts:

<Figure size 640x480 with 1 Axes>

Long-range order

g(r)g(r) primarily addresses the local structure, and gives only little direct information on long-range (crystalline) order.

The local density at a point r→\overrightarrow{r} can be expressed as a sum over atoms: ρ(r→)=∑jδ(r→−rj→)\rho(\overrightarrow{r}) = \sum_j \delta(\overrightarrow{r} - \overrightarrow{r_j})

Fourier-transforming ρ(r→)\rho(\overrightarrow{r}) gives ρ(k→)=1N∑je−ik→⋅rj→\rho(\overrightarrow{k}) = \frac{1}{N} \sum_j e^{-i\overrightarrow{k} \cdot \overrightarrow{r_j}}

To test for long-range order, we compute ∣ρ(k→)∣|\rho(\overrightarrow{k})|, and can, for example, follow how a system solidifies.

In our simulation, the long-range order decreases over time, since we start from an ordered system that then gets more and more random:

<Figure size 640x480 with 1 Axes>

Dynamic properties

Dynamic properties are related to nonequilibrium properties. For example, transport coefficients like the diffusion, shear and bulk viscosity, and thermal conductivity arise from mechanical perturbations (concentration, velocity, thermal gradients).

Linear response theory relates the reaction of an equilibrium system to a small external perturbation via equilibrium correlation functions. We can thus compute dynamic properties from equilibrium trajectories.

Namely, the Green-Kubo formalism connects a macroscopic property (=response property of a system) to its equilibrium fluctuations. For example, diffusion is the response to concentration inhomogeneity.

Diffusion coefficient

Diffusion coefficients DD accessible from the mean-square displacement (\textbf{Einstein expression}): D=limt→∞⟨Δr2(t)⟩6t=limt→∞16Nt∑jΔrj2D = \mathrm{lim}_{t \rightarrow \infty} \frac{\langle \Delta r^2(t) \rangle}{6t} = \mathrm{lim}_{t \rightarrow \infty} \frac{1}{6Nt} \sum_j \Delta r_j ^2

Derivation:

  • Fick’s law with ρ\rho... local density or concentration: ∂ρ(r,t)∂t=D∇2ρ(r,t)\frac{\partial \rho(\mathbf{r},t)}{\partial t} = D \nabla^2\rho(\mathbf{r},t)

  • Multiply by Δr2\Delta r^2 and integrate along r\mathbf{r}: ∂∂t∫drΔr2ρ(r,t)=D∫drΔr2∇2ρ(r,t)\frac{\partial}{\partial t} \int \mathrm{d}\mathbf{r} \Delta r^2\rho(\mathbf{r},t) = D \int \mathrm{d}\mathbf{r} \Delta r^2 \nabla^2\rho(\mathbf{r},t)

  • Integrate by parts and assume ρ\rho is normalized to 1: \hfill ∂∂t∫drΔr2ρ(r,t)=2D⋅d=6D\frac{\partial}{\partial t} \int \mathrm{d}\mathbf{r} \Delta r^2\rho(\mathbf{r},t) = 2D\cdot d = 6D

  • Integral is an expectation value since ρ\rho behaves like a probability: ∂∂t⟨Δr2(t)⟩=6D\frac{\partial}{\partial t} \langle \Delta r^2(t) \rangle = 6D

  • ⟨Δr2(t)⟩\langle \Delta r^2(t) \rangle is linear at long time scales: limt→∞⟨Δr2(t)⟩t=6D\mathrm{lim}_{t \rightarrow \infty} \frac{\langle \Delta r^2(t) \rangle}{t} = 6D

  • ⟨Δr2(t)⟩\langle \Delta r^2(t) \rangle is the average over the particles: limt→∞∑jΔrj(t)2Nt=6D\mathrm{lim}_{t \rightarrow \infty} \frac{\sum_j \Delta r_j(t)^2}{Nt} = 6D

We thus relate the miscroscopic dynamics (⟨Δr2(t)⟩\langle \Delta r^2(t) \rangle) with a macroscopic property (DD)

For periodic boundary conditions, we need the true atomic displacements without periodic wraparound (we need to “unfold the trajectory”)!

Unwrapping the trajectory

Diffusion via Einstein expression

<Figure size 640x480 with 1 Axes>
np.float64(0.06550639059451377)

Diffusion via Velocity Autocorrelation Function (Green-Kubo)

Alternative without unfolding: Green-Kubo expression based on the velocity autocorrelation function:

D=13∫0∞⟨v(t)⋅v(0)⟩dtD = \frac{1}{3}\int_0^\infty \left\langle \mathbf{v}(t) \cdot \mathbf{v}(0)\right\rangle dt

Derivation:

  • Start with: \hfill D=limt→∞16t⟨Δr2(t)⟩D = \mathrm{lim}_{t \rightarrow \infty} \frac{1}{6t}\langle \Delta r^2(t) \rangle

  • Reformulate Δr(t)\Delta \mathbf{r}(t) as ∫0tdt′v(t′):\int_0^t \mathrm{d}t'\mathbf{v}(t'): \hfill D=limt→∞16t∫0tdt′∫0tdt′′⟨v(t′)v(t′′)⟩D = \mathrm{lim}_{t \rightarrow \infty} \frac{1}{6t}\int_0^t \mathrm{d}t'\int_0^t \mathrm{d}t''\langle\mathbf{v}(t')\mathbf{v}(t'')\rangle

  • One can show that ∫0tdt′∫0tdt′′⟨v(t′)v(t′′)⟩=2∫0τdτ(t−τ)⟨v(τ)v(0)⟩\int_0^t \mathrm{d}t'\int_0^t \mathrm{d}t''\langle\mathbf{v}(t')\mathbf{v}(t'')\rangle = 2\int_0^\tau \mathrm{d}\tau (t-\tau) \langle\mathbf{v}(\tau)\mathbf{v}(0)\rangle, which at limt→∞\mathrm{lim}_{t \rightarrow \infty} turns into 2t∫0∞dτ⟨v(τ)v(0)⟩2t\int_0^\infty \mathrm{d}\tau\langle\mathbf{v}(\tau)\mathbf{v}(0)\rangle: \hfill D=13∫0∞dτ⟨v(τ)v(0)⟩D = \frac{1}{3}\int_0^\infty \mathrm{d}\tau \langle\mathbf{v}(\tau)\mathbf{v}(0)\rangle

Important (for Einstein or Green-Kubo relation): For very small box-sizes, we need to include a correction factor!

<Figure size 640x480 with 1 Axes>
np.float64(0.09285037676101865)

Shear viscosity

The shear viscosity η\eta can be obtained via

η=limt→∞16TVt⟨∑x<y[∑jmjrjx(t)vjy(t)−∑jmjrjx(0)vjy(0)]2⟩\eta = \mathrm{lim}_{t \rightarrow \infty} \frac{1}{6TVt}\left\langle \sum_{x<y} \left[ \sum_j m_j r_{jx}(t)v_{jy}(t) - \sum_j m_j r_{jx}(0)v_{jy}(0)\right]^2\right\rangle

where ∑x<y\sum_{x<y} denotes a sum over the three pairs of components xy, yz and zx. It characterizes the rate at which some component (e.g. y) of momentum diffuses in a perpendicular (x) direction. This expression is unfortunately unusable with periodic boundary conditions!

Alternative: Green-Kubo expression based on the pressure tensor autocorrelation function:

η=V3T∫0∞⟨∑x<yPxy(t)Pxy(0)⟩dt\eta = \frac{V}{3T}\int_0^\infty \left\langle \sum_{x<y} P_{xy}(t) P_{xy}(0)\right\rangle dt with Pxy=1V[∑jmjvjxvjy+12∑i≠jrijxfijy]P_{xy} = \frac{1}{V}\left[ \sum_j m_jv_{jx}v_{jy} + \frac{1}{2} \sum_{i\neq j} r_{ijx}f_{ijy} \right]

Thermal conductivity

The thermal conductivity λ\lambda can be obtained via

λ=limt→∞16T2Vt⟨∑x[∑jrjx(t)ej(t)−∑jrjx(0)ej(0)]2⟩\lambda = \mathrm{lim}_{t \rightarrow \infty} \frac{1}{6T^2Vt}\left\langle \sum_{x} \left[ \sum_j r_{jx}(t)e_j(t) - \sum_j r_{jx}(0)e_{j}(0)\right]^2\right\rangle

where ej=12mvj2+12∑i≠ju(rij)−⟨e⟩e_j = \frac{1}{2}mv_j^2 + \frac{1}{2}\sum_{i\neq j} u(r_{ij}) - \langle e \rangle is the instantaneous excess energy of atom jj, ⟨e⟩\langle e \rangle is the mean energy and ∑x\sum_{x} is a sum over vector components. This expression is unfortunately unusable with periodic boundary conditions!

Alternative: Green-Kubo expression based on the heat flux autocorrelation function:

λ=V3T2∫0∞⟨S(t)S(0)⟩dt\lambda = \frac{V}{3T^2}\int_0^\infty \left\langle \mathbf{S}(t) \mathbf{S}(0)\right\rangle dt with S=1V[∑jejvj+12∑i≠jrij(fij⋅vj)]\mathbf{S} = \frac{1}{V}\left[ \sum_j e_j\mathbf{v}_{j} + \frac{1}{2} \sum_{i\neq j} \mathbf{r}_{ij}(\mathbf{f}_{ij}\cdot \mathbf{v}_j)\right]