Next: Exchange and Correlation Functionals
Up: Implementation
Previous: Density and Force Calculations
Contents
Index
In an implementation of the plane wave/pseudopotential method it is possible
to use the special structure of the wavefunctions to save computer time.
If the Kohn-Sham orbitals are only calculated at the
-point then
the wavefunctions can be taken as real quantities. The plane wave expansion coefficients
of real functions have to following symmetry property
 |
(235) |
and
is real.
Therefore it is possible to store only half of the coefficients and recalculate the others
whenever needed. In addition the symmetry can be used in calculating overlap integrals
 |
(236) |
The sum can be restricted to half of the G-vectors
Re |
(237) |
This sum can be implemented efficiently using real arithmetic avoiding multiplication of complex numbers.
Another direct use of the symmetry of the wavefunctions can be made when using Fourier transforms.
The Fourier transform pair is defined by
where in our case t is the direct (real) space and
is reciprocal space (G - space).
We want to make use of the special structure of our wavefunctions
is real |
(238) |
that allows to perform two transforms together.
First we investigate a real to complex transform.
We define a new function
then we get for the transformed function
We can calculate the two new functions
and
.
and we find
For the complex to real transform we define
then we get for the functions in direct (time) space
Finally, we can take advantage of the fact that the wavefunction cutoff
is only
of the density cutoff.
Therefore in reciprocal space only the values
of grid points inside a sphere of radius N/4 are non-zero, where
for simplicity we assume a simple cubic box with N
grid points.
In a three dimensional FFT there will be many one dimensional transforms
that can be avoided.
In table 4 the amount of work for a full transform and a
transform that makes use of the sparsity of the data set are compared.
In both transforms the savings amount to about a factor of two.
Table 4:
Comparison of number of one dimensional FFT's needed in a full transform
and a transform making use of the sparsity of the data set in reciprocal space
| Reciprocal space to direct space transform |
Direct space to reciprocal space transform |
| full transform |
sparse transform |
full transform |
sparse transform |
N
|
N
|
N
|
N
|
N
|
N
|
N
|
N
|
N
|
N
|
N
|
N
|
3 N
|
N
|
3 N
|
N
|
|
Next: Exchange and Correlation Functionals
Up: Implementation
Previous: Density and Force Calculations
Contents
Index
Costas Bekas
2008-09-04