Wrap-around errors

Wrap-around errors arise if the Fast Fourier transformation (FFT) meshes are not sufficiently large. It can be shown that no errors exist if the FFT meshes contain all $\displaystyle{ \mathbf{G} }$ vectors up to $\displaystyle{ 2 G_{\rm cut} }$.

Wrap_errors_spheres

Fig. 1: Sphere intersections for $\displaystyle{ G_{\mathrm{cut}} }$

It can be shown that the charge density contains components up to $\displaystyle{ 2 G_{\mathrm{cut}} }$, where $\displaystyle{ 2 G_{\mathrm{cut}} }$ is the “longest” plane wave in the basis set:

The wavefunction is defined as

$\displaystyle{ | \phi_{n\mathbf{k}} \rangle = \sum_\mathbf{G} C_{\mathbf{G}n\mathbf{k}} | \mathbf{k}+\mathbf{G}\rangle, }$

and in real space it is given by

$\displaystyle{ \langle \mathbf{r}| \phi_{n\mathbf{k}} \rangle = \sum_\mathbf{G} \langle \mathbf{r}| \mathbf{k}+\mathbf{G}\rangle \langle \mathbf{k}+\mathbf{G}|\phi_{n\mathbf{k}} \rangle = \frac{1}{\Omega^{1/2}} \sum_\mathbf{G} e^{i(\mathbf{k}+\mathbf{G})\mathbf{r}} C_{\mathbf{G}n\mathbf{k}}. }$

Using FFTs one can define

$\displaystyle{ C_{\mathbf{r}n\mathbf{k}}= \sum_{\mathbf{G}} C_{\mathbf{G}n\mathbf{k}} e^{i\mathbf{G} \mathbf{r}} \qquad \qquad \qquad C_{\mathbf{G}n\mathbf{k}}= \frac{1}{N_{\mathrm{FFT}}} \sum_{\mathbf{r}} C_{\mathbf{r}n\mathbf{k}} e^{-i\mathbf{G} \mathbf{r}}. }$

Therefore the wavefunction can be written in real space as

$\displaystyle{ \langle\mathbf{r}| \phi_{n\mathbf{k}} \rangle = \phi_{n\mathbf{k}}(r) = \frac{1}{\Omega^{1/2}} C_{\mathbf{r}n\mathbf{k}} e^{i\mathbf{k}\mathbf{r}}. }$

The charge density is simply given by

$\displaystyle{ \rho^{\mathrm{ps}}_{\mathbf{r}} \equiv \langle \mathbf{r} |\rho^{\mathrm{ps}} | \mathbf{r} \rangle = \sum_\mathbf{k} w_{\mathbf{k}} \sum_n f_{n\mathbf{k}} \phi_{n\mathbf{k}}(r) \phi^{*}_{n\mathbf{k}}(r) , }$

and in the reciprocal mesh it can be written as

$\displaystyle{ \rho^{\mathrm{ps}}_\mathbf{G} \equiv \frac{1}{\Omega} \int \langle\mathbf{r} | \rho^{\mathrm{ps}}| \mathbf{r}\rangle e^{-i \mathbf{G}\mathbf{r}}\, d \mathbf{r} \to \frac{1}{N_{\mathrm{FFT}}} \sum_{\mathbf{r}} \rho^{\mathrm{ps}}_{\mathbf{r}} e^{-i \mathbf{G}\mathbf{r}}. }$

Using the above equations for $\displaystyle{ \rho^{\mathrm{ps}}_{\mathbf{r}} }$ and $\displaystyle{ C_{\mathbf{r}n\mathbf{k}} }$ it is very easy to show that $\displaystyle{ \rho^{\mathrm{ps}}_{\mathbf{r}} }$ contains Fourier-components up to $\displaystyle{ 2 G_{\mathrm{cut}} }$.

Generally it can be shown that a the convolution $\displaystyle{ f_r=f^1_r f^2_r }$ of two functions $\displaystyle{ f^1_r }$ with Fourier-components up to $\displaystyle{ G_1 }$ and $\displaystyle{ f^2_r }$ with Fourier-components up to $\displaystyle{ G_2 }$ contains Fourier-components up to $\displaystyle{ G_1+G_2 }$.

The property of the convolution comes once again into play, when the action of the Hamiltonian onto a wavefunction is calculated. The action of the local-potential is given by

$\displaystyle{ a_{\mathbf{r}} = V_{\mathbf{r}} C_{\mathbf{r}n\mathbf{k}}. }$

Only the components $\displaystyle{ a_{\mathbf{G}} }$ with $\displaystyle{ |\mathbf{G}| < G_{\mathrm{cut}} }$ are taken into account (see section ALGO: $\displaystyle{ a_{\mathbf{G}} }$ is added to the wavefunction during the iterative refinement of the wavefunctions $\displaystyle{ C_{\mathbf{G}n\mathbf{k}} }$, and $\displaystyle{ C_{\mathbf{G}n\mathbf{k}} }$ contains only components up to $\displaystyle{ G_{\mathrm{cut}} }$). From the previous theorem we see that $\displaystyle{ a_{\mathbf{r}} }$ contains components up to $\displaystyle{ 3 G_{\mathrm{cut}} }$ ($\displaystyle{ V_{\mathbf{r}} }$ contains components up to $\displaystyle{ 2 G_{\mathrm{cut}} }$).

If the FFT mesh contains all components up to $\displaystyle{ 2 G_{\mathrm cut} }$ the resulting wrap-around error is once again 0. This can be easily seen in Fig. 1. Here we see that the small sphere contains all plane waves included in the basis set $\displaystyle{ G

PREC, ENCUT, NGX, NGY, NGZ

Energy cutoff and FFT meshes