Lab 6.13 · 35 min

Lab: dielectric constant and rotation by hand

The dielectric constant ε says how strongly a liquid screens charges, and it controls ion pairing, solvation and conductivity. In a simulation it comes from the fluctuations of the total dipole of the box, and how the molecules rotate decides how fast those fluctuations relax. We compute the box dipole and ε by hand, measure rotational correlation functions for small-step and jump-like rotation, and see why ε is one of the slowest quantities to converge.

The setup

Every polar molecule carries a dipole μᵢ. Their sum is the box dipole M = Σ μᵢ. With Ewald sums and conducting ("tin-foil") boundaries, the default in most codes:

ε = 1 + (⟨M²⟩ − ⟨M⟩²) / (3 ε₀ V k_B T) Kirkwood factor G_K = ⟨M²⟩ / (N μ²) = 1 for independent dipoles > 1 if neighbours point the same way rotation: C₁(t) = ⟨u(0)·u(t)⟩, C₂(t) = ⟨P₂(u(0)·u(t))⟩, P₂(x) = (3x² − 1)/2

To keep the physics visible we use a model: 216 unit dipoles on a 6 × 6 × 6 lattice (periodic), each rotating by small random steps (rotational diffusion D_r = 1), with a coupling J between nearest neighbours (k_BT = 1). Real dipolar liquids also need the long-range dipole–dipole interaction, which Ewald handles.

Step 1

The box dipole and ε by hand

Why: ε is built from M, so first compute M for a few molecules, then put real numbers for water into the fluctuation formula. Comparing with independent dipoles shows how much the molecules' cooperation matters.

three dipoles (D): (1.2, 0.8, −1.5), (−0.4, 2.1, 0.9), (0.7, −1.0, 1.9) M = (1.5, 1.9, 1.3) D; |M|² = 7.55 D²; Σ|μ|² = 14.81 D² water-like: μ = 2.35 D = 7.839×10⁻³⁰ C m, n = 33.4 nm⁻³, T = 300 K independent dipoles (G_K = 1): ε − 1 = n μ² / (3 ε₀ k_B T) = 3.340×10²⁸ × 6.145×10⁻⁵⁹ / 1.1002×10⁻³¹ = 18.65 ε = 19.7 water models give ε ≈ 70 -> G_K = 69 / 18.65 = 3.70

What the numbers say: Three dipoles pointing in different directions partly cancel (|M|² = 7.55 against Σ|μ|² = 14.81). If water molecules pointed independently, ε would be only about 20; the real value near 70–80 needs G_K ≈ 3.7: hydrogen bonds make neighbouring dipoles point the same way, so their fluctuations add up. This is why ε is a sensitive test of a water model: a small change in how molecules orient together changes ε a lot. Limitation: the formula assumes conducting boundaries; with a reaction field or vacuum boundary it changes form, and for ionic systems the translational current also contributes to M and has to be separated.

Step 2

The Kirkwood factor in the lattice model

Why: With the model we can switch the neighbour coupling on and off and watch G_K respond. For J = 0 the answer must be exactly 1.

coupling JG_K = ⟨M²⟩/Nwater-like ε = 1 + 18.65 G_K
0 (independent)0.968 ± 0.04019.1 ± 0.7
+0.4 (parallel)3.104 ± 0.15558.9 ± 2.9
−0.4 (antiparallel)0.514 ± 0.01510.6 ± 0.3
200 000 steps each, errors from 10 blocks; ⟨M⟩²/N ≤ 0.016

What the numbers say: Independent dipoles give G_K = 0.97 ± 0.04, consistent with 1. A modest preference for parallel neighbours (J = 0.4 k_BT) triples G_K and would raise ε from 19 to 59; antiparallel neighbours halve it. ε measures correlations between molecules, not the dipole of one molecule. That is also why ε is hard to fit: small errors in the orientational correlations are multiplied by 18.65 (for water) in ε.

Step 3

Rotational correlation functions: P1, P2, diffusion or jumps

Why: How does one molecule change direction? C₁ (from the first Legendre polynomial) is what dielectric spectroscopy sees; C₂ is what NMR, Raman and fluorescence anisotropy see. For small random rotations theory says τ₁/τ₂ = 3; for big jumps to new directions, τ₁/τ₂ = 1. So the ratio tells the mechanism.

one molecule's axis, t = 0..3 ps: t u(0)·u(t) = cos θ P₂ = (3cos²θ − 1)/2 0 1.000 1.000 1 0.933 0.806 2 0.640 0.114 3 0.800 0.460
rotationC₁ (t = 0.1, 0.2, 0.5)C₂ (t = 0.1, 0.2, 0.5)τ₁τ₂τ₁/τ₂
small steps, D_r = 10.820 0.673 0.3710.552 0.304 0.0500.5080.1693.01
jumps, 2 per time unit0.817 0.667 0.3650.816 0.666 0.3610.5000.4861.03
theory: diffusion τ₁ = 1/(2D_r) = 0.500, τ₂ = 1/(6D_r) = 0.167 jumps τ₁ = τ₂ = 1/rate = 0.500

What the numbers say: P₂ falls faster than cos θ for small steps, because squaring makes it sensitive to small tilts (0.933 → 0.806 already at t = 1). Both mechanisms give the same τ₁ = 0.5, so C₁ alone cannot tell them apart; the ratio τ₁/τ₂ can: 3.01 for diffusion, 1.03 for jumps, exactly as theory predicts. In water the ratio is below 3, a signature of the large-angle jumps by which molecules swap hydrogen-bond partners. Limitation: real molecules are not spheres; a non-spherical molecule has different rates about different axes, and a single τ hides that.

Step 4

One molecule vs the whole box

Why: Dielectric spectroscopy measures how fast the box dipole M relaxes, not one molecule. Are they the same? Compare the single-dipole τ₁ with τ_M, the area of ⟨M(0)·M(t)⟩/⟨M²⟩.

coupling Jsingle τ₁box τ_Mτ_M / τ₁G_K
00.4880.4400.900.97
+0.40.5731.5392.683.10
−0.40.5580.2590.460.51

What the numbers say: For independent dipoles the box forgets at the same rate as one molecule (0.44 vs 0.49, equal within noise). With parallel coupling the box dipole lives 2.7 times longer than any single molecule's orientation: a fluctuation of M involves many aligned molecules and decays slowly. With antiparallel coupling it decays faster. τ_M / τ₁ follows G_K (2.68 vs 3.10, 0.46 vs 0.51). So a dielectric relaxation time is not a molecular rotation time; comparing the two needs a theory that includes these correlations. For ionic liquids the translational current adds its own contribution to the measured spectrum.

Step 5

Convergence: why ε needs very long runs

Why: G_K is built from M, one vector for the whole box, relaxing on the slow time τ_M. Like the conductivity (Lab 6.7) and the viscosity (Lab 6.10) it gets no help from the number of molecules. How precise is it after a given run length?

run length (steps)time unitsin units of τ_Mspread of G_Kspread of water-like ε
10 00020130.62 (20 %)± 11.6
20 00040260.49 (16 %)± 9.1
50 000100650.39 (12 %)± 7.2
200 0004002600.16 (5 %, blocks)± 2.9

What the numbers say: Even 65 relaxation times of M give G_K only to ±12 %, which would be ±7 in a water-like ε. Getting ε to a few percent takes hundreds of τ_M; for water that means tens of nanoseconds, and for viscous ionic liquids, where M relaxes in nanoseconds, microseconds or many independent runs. A quoted ε without a run length and an error bar is hard to interpret. Bigger boxes do not help, because M is one number per frame whatever N is.

Step 6

Practical notes

Why: A few choices in real codes change the formula or the number, and are easy to overlook.

boundary condition formula tin-foil Ewald (default) ε = 1 + ⟨δM²⟩/(3ε₀Vk_BT) reaction field ε_RF (ε − 1)(2ε_RF + 1)/(2ε_RF + ε) = ⟨δM²⟩/(3ε₀Vk_BT) vacuum boundary (ε − 1)/(ε + 2) = ⟨δM²⟩/(9ε₀Vk_BT) δM² = M² − ⟨M⟩²: subtract the mean (it should be ≈ 0) molecules split across the box wall: use unwrapped molecules ions: M also contains the ionic current; separate the rotational part or use the frequency-dependent formalism

What the numbers say: With the same ⟨δM²⟩ the three boundary conditions give different ε, so the formula must match the electrostatics of the run. A nonzero ⟨M⟩ usually signals an error (molecules broken across the periodic boundary, or a slowly drifting system) and must be subtracted. GROMACS: gmx dipoles (which also prints G_K); LAMMPS: compute dipole with your own post-processing.

Summary

quantitymerit (number)limitation (number)
ε from ⟨δM²⟩water: G_K = 3.7 explains ε ≈ 70 vs 19.7formula depends on the boundary condition
Kirkwood G_Kmeasures orientational correlation (0.51–3.10)errors × 18.65 in a water-like ε
C₁ and C₂τ₁/τ₂ = 3.01 (diffusion) vs 1.03 (jumps)non-spherical molecules need more than one τ
box dipole relaxationτ_M/τ₁ = 2.68 when neighbours alignnot a single-molecule rotation time
convergence±5 % after ~260 τ_M±12 % after 65 τ_M; box size does not help