Compute ionic forces and cell stress tensors accurately and avoid basis-incompleteness Pulay bias.
Analytic resultDerived in closed form from exact mathematical definitions without numerical approximation.
FI=−∂RI∂E=−⟨Ψ∣∂RI∂H^∣Ψ⟩
1. Physical Motivation & Context
Structural relaxation, ab initio molecular dynamics, and elastic constants require accurate ionic forces F_I and cell stress tensors sigma_{alpha beta}. The Hellmann–Feynman theorem eliminates wavefunction derivatives <dPsi/dR|H|Psi> only if the basis is position-independent or variationally complete.
2. Mathematical Formulation & Derivations
Hellmann–Feynman Theorem & Pulay Remainder
Differentiating E = <Psi|H|Psi>/<Psi|Psi> with respect to parameter lambda gives three terms; the wavefunction-derivative terms vanish for exact eigenstates or fixed plane waves:
dλdE=⟨Ψ∣∂λ∂H^∣Ψ⟩+Pulay term (vanishes for fixed PW)2Re⟨∂λ∂Ψ∣H^−E∣Ψ⟩
Nielsen–Martin Stress Tensor & Pulay Stress
When scaling cell vectors a -> (1 + eps) a at fixed E_cut, the discrete number of plane waves changes discontinuously, creating an artificial hydrostatic Pulay stress:
σαβ=−Ω1∂εαβ∂E,PPulay>0⟹artificially compressed V0 if Ecut is too small
3. Key Theorems, Exact Limits & Consequences
Final SCF Rule: Always run a fresh single-point SCF on the final vc-relax geometry so the FFT grid and plane-wave count match the relaxed cell.
Force Convergence: Use forc_conv_thr <= 1e-4 Ry/Bohr for geometry and <= 1e-5 Ry/Bohr before DFPT phonons.
4. Numerical Implementation & Quantum ESPRESSO Practice
Set tprnfor = .true. and tstress = .true. in &CONTROL; increase ecutwfc by 20–30% above energy-convergence values when running vc-relax.