360.243 NSSC II — TU Wien
Ass. Prof. Esther Heid · Dr. Nico Unglert
This slide deck is interactive and best viewed in a browser.
In case you have a pdf version of it, I recommend viewing the slides at
https://nunglert.github.io/contents/presentations/nssc2_md
Use arrow keys to navigate · Press F for fullscreen
Companion exercise — soft-sphere LJ MD in Python
Truncating the Taylor expansion: Euler vs Velocity Verlet
Simple, but not symplectic — total energy drifts.
Three-stage practice: r from \(\mathbf{r}, \mathbf{v}, \mathbf{a}\) \(\to\) a from new positions \(\to\) v from old + new a.
Both are 2nd-order in \(\Delta t\), but Velocity Verlet is symplectic, it conserves a slightly modified energy exactly, so the true \(E\) only oscillates around its initial value rather than drifting.
Click the landscape to launch a deterministic trajectory — no thermostat, energy is conserved
Hover an atom to highlight its closest periodic image of every other atom
—
The bold square is the central cell; the eight pale squares are its periodic copies. The selected (red) atom is connected by dashed lines to the nearest image of every other atom — what the simulation actually uses.
Hover any atom to switch the selection. Push \(R_c\) past \(L/2\) and the cutoff disc overlaps its own periodic image — that's the constraint \(R_c < L/2\) made visible.
Different macroscopic constraints — different statistics
\(N\), \(V\), \(E\) fixed. Equal probability for all microstates at energy \(E\).
Plain Newtonian dynamics — nothing extra needed.
\(N\), \(V\), \(T\) fixed. System exchanges energy with a heat bath at \(\beta = 1/k_BT\).
Requires a thermostat (Nosé–Hoover, Langevin, …).
\(N\), \(P\), \(T\) fixed. Volume fluctuates; system exchanges both energy and work.
Requires thermostat + barostat (Parrinello–Rahman, …).
Velocity resampling at rate \(\nu\) lets the trajectory cross barriers and explore the full landscape
N = 64 atoms, velocity Verlet, periodic boundaries, velocity-rescaling thermostat
Ek/N: —
T(t): — target:
g(r) samples: 0
Analytical \(\varrho \propto e^{-\beta U}\) on the left, NVT MD samples on the right
Three families, each a different point on the cost / accuracy curve:
Two parameters fully determine the shape:
Minimum at \(r_{\min} = 2^{1/6}\sigma \approx 1.12\,\sigma\), depth \(-\varepsilon\).
Truncate & shift at \(r_{\min} = 2^{1/6}\sigma\) → purely repulsive. Used in the exercise notebook.
Systematic expansion into pair, triplet, … contributions
Expand any pair potential around its minimum → harmonic bond
Since \(V'(r_{\min}) = 0\), the series starts at order 2. Higher orders extend the accurate range outward from the minimum.
LJ, Morse, Buckingham — repulsive core + attractive well, different mathematical form
Sliders control LJ (\(\varepsilon\), \(\sigma\)); Morse and Buckingham are auto-tuned to match the same minimum position and well depth — the difference is shape only.
When the angle between three atoms matters
\(V_2(r)\) plus a three-body term penalising deviations from the tetrahedral angle:
Captures Si, GaN, and 2D crystals by enforcing local tetrahedral geometry.
Attractive part modulated by bond order \(b_{ij}\) from the local environment:
Molecular systems (with a bent toward organic molecules in fluid phases)
all-atom (AA)
united-atom (UA)
coarse-grained (CG)
A typical biomolecular force field: bonded + non-bonded
Combination rules \(A_{IJ} = \sqrt{A_I A_J},\;C_{IJ} = \sqrt{C_I C_J}\) keep the parameter count manageable.
Cubic switch: \(S(r) = 1 - 3t^2 + 2t^3\) with \(t = (r-R_s)/(R_c-R_s)\); \(S'(R_s) = S'(R_c) = 0\).
Quantum mechanics, machine-learned potentials
1900 Planck: Quantization of light
energy · constant · frequency
1905 Einstein: Quantization due to photons
momentum · speed of light · wavenumber \(k=2\pi/\lambda\)
1913 Bohr: Quantized electron orbits
1924 De-Broglie: Standing wave model
1926 Schrödinger: Wave equation
or \(E\Psi = -\tfrac{\hbar^2}{2m}\nabla^2\Psi + V(\mathbf{x})\Psi\)
1926 Born: Wave = probability amplitude
Classical Hamiltonian ($H: \Gamma \mapsto \mathbb{R} $)
A function eating a point in phase space $(r, p) \in \Gamma$
Equations of motion (Hamilton)
\(H(\mathbf r,\mathbf p)\) is the conserved energy.
Quantum Hamiltonian ($ \hat{H}: \mathcal{H} \mapsto \mathcal{H} $)
now an operator eating a wavefunction $\psi \in \mathcal{H}$, where $\mathcal{H}$ is a Hilbert space
Equation of motion (Schrödinger)
Stationary states: \(\hat H\phi = E\phi\)
A single quantum particle confined to \([0, L]\) — standing-wave eigenstates
Infinite walls at \(x = 0\) and \(x = L\): \(\phi(0) = \phi(L) = 0\). Inside, \(V = 0\) so the Schrödinger equation reduces to \(\phi'' = -\frac{2mE}{\hbar^2}\phi\).
Energy is quantised: discrete levels labelled by \(n\), spacing growing like \(n^2\).
Hydrogenic orbitals — xz cross-section of \(\psi(\mathbf{r})\)
For the hydrogen atom we can formulate the Hamiltonian in atomic units
Each orbital factorises as \(\psi_{n\ell m}(r,\theta,\phi) = R_{n\ell}(r)\,Y_\ell^m(\theta,\phi)\). The 2D slice through \(y = 0\) makes radial nodes (\(R = 0\)) and angular nodes (\(Y = 0\)) visible as white separators between red (+) and blue (−) lobes.
Fix the nuclei (Born–Oppenheimer), then solve for \(N_e\) interacting electrons
With nuclei fixed at \(\{\mathbf R_I\}\), the Born–Oppenheimer Hamiltonian for \(N_e\) electrons is
Eigenstate problem:
Connection to Classical stat. mech.:
Now using ${\mathbf x}$ for the nuclear positions, like on earlier slides
Two key assumptions underlie all ML force fields
Select an atom — neighbours within \(R_c\) contribute to its energy.
\(p(\mathbf{x})\) encodes the local environment, invariant to translation & rotation.
Atomic decomposition: one shared network \(E_\theta\) per atom, summed to \(E_{\text{total}}\)
\(E_{\text{total}}(\mathbf{x}) = \sum_i E_\theta\!\left(p(\mathbf{x}_i)\right)\) — one network \(E_\theta\) applied to every atom's local descriptor \(p(\mathbf{x}_i)\). Forces: \(\mathbf{F}_i = -\nabla_{\mathbf{x}_i} E_{\text{total}}\).
\(h_i^{(t)}\): atom state
\(m_{ij}^{(t)}\): message \(j{\to}i\)
\(\phi_m,\phi_u\): message/update function (learnable)
\(\mathcal{N}(i)\): neighbours
Now the descriptor generation itself is trainable and hence depends on a set of parameters $\theta$, i.e. $p_\theta(\mathbf x_i)$
165.144 VU Simulation of condensed matter: Lecture and exercises
165.166 VU Introduction to Theoretical Chemistry: Lecture and exercises
165.164 PR Selected Topics in Theoretical Chemistry Research project
165.171 VU AI in Chemistry: Lecture and exercises