Next: Conclusions Up: Accurate kinetic energy evaluation Previous: Localised discrete Fourier transform

# Tests and discussion

We have performed tests of the FD and FFT box methods for calculating the kinetic energy of localised functions. Choosing a particular type of support function with spherical symmetry, placing one at and another at , we rewrite the integral of equation (3) as

 (6)

For our first test we calculate the following quantity as a function of the distance between the centres and
 (7)

where is the exact value of the integral in the continuous representation of the support functions and is its approximation on the real space grid, either by FD or the FFT box method. We chose to be a 2s valence pseudo-orbital for a carbon atom, generated using an atomic norm-conserving carbon pseudopotential [13] within the local density approximation. The pseudo-orbital is confined in a spherical region of radius , and vanishes exactly at the region boundary [14]. It is initially generated as a linear combination of spherical Bessel functions, which are the energy eigenfunctions of a free electron inside a spherical box. Our functions are limited up to an energy of 800 eV, resulting in a combination of fourteen Bessel functions. The formula for calculating kinetic energy integrals between Bessel functions is known [15] and we used it to obtain for our valence pseudo-orbital. We then calculated with a grid spacing of (corresponding to a plane-wave cut-off of 839 eV) in an orthorhombic simulation cell, as we are restricted to do so by the FD method. With these parameters is , and hence it is trivial to perform the FFT of one support function on a single node. is plotted for the FFT box method and for various orders of the FD method in the top graph of figure 2.

It can be seen that low order FD methods are inaccurate as compared to the FFT box method, and only when order 28 FD is used does the accuracy approach that of the FFT box method. The A = 12 FD scheme, the highest order that has been used in practice for calculations [9], gives an error of at as compared to for the FFT box method. The feature that occurs in the top graph of figure 2, between and , is an artefact of the behaviour of our pseudo-orbitals at the support region boundaries where they vanish exactly, but with a finite first derivative. This causes an enhanced error in all the methods when the edge of one support function falls on the centre of another.

The error in the FFT box method is small, yet non-zero, and we attribute this to the inherent discretisation error associated with representing functions that are not bandwidth limited on a discrete real space grid. Convergence to the exact result is observed as the grid spacing is reduced, as expected.

As our next comparison of the FFT box and FD methods we used the same pseudo-orbitals as before, but considered the quantity

 (8)

as the measure of the error, where is the result obtained by Fourier transforming the support functions using the periodicity of the entire simulation cell. One may think of as being the result that would be obtained from a plane-wave code: the support functions may be considered as generalised Wannier functions. Calculating the kinetic energy integrals by performing a discrete Fourier transform on the support functions over the entire simulation cell (an process for all support functions) is equivalent to summing the contributions to the kinetic energy from all of the plane-waves up to the cut-off energy determined by the grid spacing. Thus our FFT box method can be viewed as equivalent to a plane-wave method that uses a contracted basis set (i.e. a coarse sampling in reciprocal space). In some ways is a better measure of the relative accuracy of the FD and FFT box methods as our goal is to converge to the `exact' result as would be obtained using a plane-wave basis set over the entire simulation cell. is plotted in the bottom graph of figure 2.

was computed using a cell that contained 256 grid points in each dimension. Increasing the cell size further had no effect on up to the eleventh decimal place ( ). The plots show that the FFT box method performs significantly better than all orders of FD that were tested. For example at the error for A = 28 FD is as compared to for the FFT box method. The fact that the FFT box error is so small shows that coarse sampling in reciprocal space has little effect on accuracy, as one would expect for functions localised in real space.

Our implementation can produce similar FFT box results to the above in regular grids of arbitrary symmetry (non-orthogonal lattice vectors) as long as we include roughly the same number of grid points in the support region sphere. As we described earlier the application of the FD method to grids without orthorhombic symmetry is not straightforward.

Furthermore, in our implementation the kinetic energy matrix elements for both the FFT box method and the FD method (of any order) are Hermitian to machine precision. This is a direct consequence of , our representation of the Laplacian operator on the grid, being Hermitian. As mentioned earlier, this is an important point. The matrix elements may always be made Hermitian by construction without itself being an Hermitian operator. This would ensure real eigenvalues, as is required. However, when it comes to optimisation of the support functions during a total-energy calculation, we require the derivative of the kinetic energy with respect to the support function values [12]:

 (9)

where the are grid points belonging to the support region of . These relations both hold only if is an Hermitian operator, and support function optimisation can only be performed in a consistent manner if there is one unique representation of for each support function . It is also worth noting that the evaluation of these derivatives is the reason why we prefer to perform the sum of equation (4) for the FFT box method in real space, rather than in its equivalent form in reciprocal space. Applying the FFT box method in reciprocal space would be no more costly as far as integral evaluation is concerned but we would require an extra FFT per support function for the subsequent evaluation of equation (9).

For all the methods we describe in this paper we observe variation in the values of the kinetic energy integrals when we translate the system of the two support functions with respect to the real space grid. This is to be expected as the discrete representation of the support functions changes with the position of the support region with respect to the grid. Such variations may have undesirable consequences when it comes to calculating the forces on the atoms. In FFT terminology, they result from irregular aliasing of the high frequency components of our support functions as they are translated in real space. Ideally, in order to avoid this effect, the reciprocal representation of the support functions should contain frequency components only up to the maximum frequency that corresponds to our grid spacing, in other words it should be strictly localised in reciprocal space. Unfortunately this constraint is not simultaneously compatible with strict real space localisation. It should be possible however to achieve a compromise, thus controlling the translation error by making it smaller than some threshold. Such a compromise should involve an increase in the support region radii of our functions by a small factor. This situation is similar to the calculation of the integrals of the nonlocal projectors of pseudopotentials in real space with the method of King-Smith et al. [16] which requires an increase of the core radii by a factor of 1.5 to 2. For example, if we consider two carbon valence pseudo-orbitals of support radius and with and translate them both in a certain lattice vector direction over a full grid spacing, the maximum variation in the value of the integral with the FFT box method is Hartree. If we then do the same with carbon pseudo-orbitals generated with precisely the same parameters but instead with a support radius of , the maximum variation with respect to translation is reduced to Hartree.

Next: Conclusions Up: Accurate kinetic energy evaluation Previous: Localised discrete Fourier transform
Peter D. Haynes 2002-10-31