|
|
Line 55: |
Line 55: |
|
| |
|
| <math display="block"> | | <math display="block"> |
| \left[E_{\mathrm{electrostatic}} \right](\mathbf{G}=0) = \frac{1}{2}\rho_{\mathrm{elec}}(\mathbf{G}=0) V_{\mathrm{elec}}(\mathbf{G}=0) - \rho_{\mathrm{ion}}(\mathbf{G}=0) V_{\mathrm{elec}}(\mathbf{G}=0) + \frac{1}{2}\rho_{\mathrm{ion}}(\mathbf{G}=0) V_{\mathrm{ion}}(\mathbf{G}=0),
| | E_{\mathrm{electrostatic}}(\mathbf{G}=0) = \frac{1}{2}\rho_{\mathrm{elec}}(\mathbf{G}=0) V_{\mathrm{elec}}(\mathbf{G}=0) - \rho_{\mathrm{ion}}(\mathbf{G}=0) V_{\mathrm{elec}}(\mathbf{G}=0) + \frac{1}{2}\rho_{\mathrm{ion}}(\mathbf{G}=0) V_{\mathrm{ion}}(\mathbf{G}=0), |
| </math> | | </math> |
|
| |
|
| which, can be expressed through the reciprocal space Poisson equation as, | | which, can be expressed through the reciprocal space Poisson equation as, |
| <math display="block"> | | <math display="block"> |
| \left[E_{\mathrm{electrostatic}}\right](\mathbf{G}=0) = \frac{1}{\mathrm{G}^2} \left [\frac{1}{2}\rho_{\mathrm{elec}}(\mathbf{G}=0)^2 - \rho_{\mathrm{ion}}(\mathbf{G}=0)^2 + \frac{1}{2}\rho_{\mathrm{ion}}(\mathbf{G}=0)^2 \right].
| | E_{\mathrm{electrostatic}}(\mathbf{G}=0) = \frac{1}{\mathrm{G}^2} \left [\frac{1}{2}\rho_{\mathrm{elec}}(\mathbf{G}=0)^2 - \rho_{\mathrm{ion}}(\mathbf{G}=0)^2 + \frac{1}{2}\rho_{\mathrm{ion}}(\mathbf{G}=0)^2 \right]. |
| </math> | | </math> |
|
| |
|
Line 75: |
Line 75: |
| </math> | | </math> |
|
| |
|
| which cancels out the divergent terms in | | which cancels out the divergent terms in <math display="inline">E_{\mathrm{electrostatic}}(\mathbf{G}=0)</math> |
Revision as of 09:50, 16 October 2024
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 electron-electron, ion-electron and ion-ion energies in DFT and illustrate how this divergence is removed for charge neutral computations.
We then discuss why this divergence is present for charged systems and 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 makes use of 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 density DFT calculations by cancelling out individual divergences for the total electrostatic energy, which is the sum of electron-electron, ion-electron and ion-ion energies
which 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 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.
Recall that the term of a Fourier transformed quantity is its average, which implies that 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