Charged systems with density functional theory: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
Line 1: Line 1:
On this page, we describe technical issues with computing the energies of charged systems with periodic density functional theory calculations.
On this page, we describe technical issues with computing the energies of charged systems with periodic density functional theory (DFT) calculations.
We then discuss why the energies of charged systems diverge for systems with lower dimensionality, such as with surfaces (2D), nanowires (1D) and molecules (0D) while potentially providing useful information for bulk (3D) systems.
We then discuss why the energies of charged systems diverge for systems with lower dimensionality, such as with surfaces (2D), nanowires (1D) and molecules (0D) while potentially providing useful information for bulk (3D) systems.
Finally, we present methods implemented in VASP which allow for calculations of charged 3D, 2D and 0D systems.
Finally, we present methods implemented in VASP which allow for calculations of charged 3D, 2D and 0D systems.
Line 21: Line 21:


An obvious issue with computing <math display="inline">V(\mathbf{G})</math> is that it diverges for <math display="inline">\mathrm{G}\to 0</math>.
An obvious issue with computing <math display="inline">V(\mathbf{G})</math> is that it diverges for <math display="inline">\mathrm{G}\to 0</math>.
This divergence is handled in charge neutral density density functional theory calculations by cancelling out individual divergences for the electron-electron, ion-electron and ion-ion energies as can be seen by explicitly writing out their functional forms,
This divergence is handled in charge neutral density DFT calculations by cancelling out individual divergences for the electron-electron, ion-electron and ion-ion energies as can be seen by explicitly writing out their functional forms,


<math display="block">
<math display="block">
Line 44: Line 44:
<math display="block">
<math display="block">
E_{\mathrm{ion-ion}} = \frac{1}{2} \sum_{\mathrm{G}} \rho_{\mathrm{ion}}(\mathbf{G}) V_{\mathrm{ion}}(\mathbf{G})
E_{\mathrm{ion-ion}} = \frac{1}{2} \sum_{\mathrm{G}} \rho_{\mathrm{ion}}(\mathbf{G}) V_{\mathrm{ion}}(\mathbf{G})
</math>
The <math display="inline">\mathrm{G}=0</math> terms of <math display="inline">E_{\mathrm{electron-electron}}</math>, <math display="inline">E_{\mathrm{ion-electron}}</math> and <math display="inline">E_{\mathrm{ion-ion}}</math> are given by,
<math display="block">
\frac{1}{2}\rho_{\mathrm{elec}}(\mathbf{G}=0) V_{\mathrm{elec}=0}(\mathbf{G}=0) - \rho_{\mathrm{ion}}(\mathbf{G}=0) V_{\mathrm{elec}}(\mathbf{G}=0) + \frac{1}{2}\rho_{\mathrm{ion}}(\mathbf{G}) V_{\mathrm{ion}}(\mathbf{G})
</math>
</math>

Revision as of 08:43, 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 then discuss why the energies of charged systems diverge for systems with lower dimensionality, such as with surfaces (2D), nanowires (1D) and molecules (0D) while potentially providing useful information for bulk (3D) systems. Finally, we present methods implemented in VASP which allow for calculations of charged 3D, 2D and 0D 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 electron-electron, ion-electron and ion-ion energies as can be seen by explicitly writing out their 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,