On this page, we describe technical issues with computing the energies of charged systems with periodic density functional theory (DFT) calculations.
We first introduce the problem of divergence of the electrostatic energy in DFT calculations and illustrate how this divergence is removed for charge neutral computations.
We then discuss why this divergence is present for charged systems.
Finally, we present methods which have been implemented in VASP that allow for calculations of charged bulk, surface and molecular systems.
Treating divergence in charge neutral calculations
VASP utilizes efficient fast Fourier transforms (FFT) to compute the electrostatic potential from the charge density using the Poisson equation,
where and are all points in real space.
Fourier transforming the Poisson equation to reciprocal space,
where is the reciprocal lattice vector and is its norm.
An obvious issue with computing is that it diverges for .
This divergence is handled in charge neutral DFT calculations by cancelling out individual divergences for the total electrostatic energy,[1] which is the sum of electron-electron, ion-electron and ion-ion energies
Individually, these terms have the following functional forms,
where and are the electronic charge density and potential respectively.
where is the ion charge density.
VASP does not explicitly compute , but the potential of the ion is reflected through the eigenvalues.
The ion-ion interactions are treated by Ewald summation
where is the only component which sums over the vectors and has the form,
The summed terms of , and are given by,
which, can be expressed through the reciprocal space Poisson equation as,
Under the condition that , the individual divergences would cancel out and the total energy is convergent.
Since the term of a Fourier transformed quantity is its average, the above condition is satisfied when the average electron and ion charge density are the same, i.e. the system is charge neutral.
Divergences in charged calculations
The total energy does not converge when , i.e., when the system is not charge neutral.
Alternatively, we can think of this divergence as coming a compensating uniformly smeared out charge density, with energy
which cancels out the divergent terms in .
The consequences of adding a uniform compensating charge is system specific.
For highly screened systems, the potential coming from a moderate compensating charge presents an acceptable amount of error.
Conversely, systems containing vacuum (such as 2D materials, surfaces and molecules) have little screening and hence are more susceptible to artifacts caused by this compensating charge.
Treating charged systems in practice
We implement[2] two separate methods to deal with charged systems.
These methods are specific to the dimensionality of the system that is being computed.
Bulk charged systems in orthorhombic cells can be treated by applying analytical monopole-monolpole corrections (see LMONO for further practical details).
Surfaces and other two dimensional materials are treated with Coulomb kernel truncation methods.
These methods replace the Coulomb kernel , i.e., the in with a 2D kernel[3] () that removes electrostatic interactions between non-periodic replicas along the surface normal,[4]
where is the norm of the vector parallel to the surface and is the vector along the surface normal.
A similar change can be made to the Coulomb kernel to treat charged molecules (so-called 0D systems with )) to remove interactions with periodic replicas in all directions,
See KERNEL_TRUNCATION/LTRUNCATE for further details on applying these Coulomb truncation methods in practice.
Related tags and articles
KERNEL_TRUNCATION/LTRUNCATE,
KERNEL_TRUNCATION/LCOARSEN,
KERNEL_TRUNCATION/IDIMENSIONALITY,
KERNEL_TRUNCATION/ISURFACE,
LMONO
References
- ↑ J. Ihm, A. Zunger, M. L. Cohen, Journal of Physics C: Solid State Physics 12(21), 4409 (1979).
- ↑ S. Vijay, M. Schlipf, H. Miranda, F. Karsai, M. Marsman, G. Kresse, Manuscript in preparation (2024).
- ↑ C. A. Rozzi, D. Varsano, A. Marini, E. K. Gross, A. J. Rubio, Phys. Rev. B 73(20), 20511 (2006).
- ↑ T. Sohier, M. Calandra, and F. Mauri, Phys. Rev. B 96, 75448 (2017).