Introduction
In the PAW method, the all-electron (AE) wavefunction (AEWFC)
Note that both AEWFC and PSWFC are defined on the Born-von Kármán (BvK)
supercell rather than the unit cell, therefore, the index j in
Eq.
The forms of the projector function
AEWFC and PSWFC
The AEWFC
where
In VASP
, cell-periodic part of the PSWFCs, i.e.
WAVECAR
file,
only that the plane-waves coefficients
where
The relation between the norm of
Note that the norm of the PSWFC can be larger or smaller than one, hence we
use “
To obtain the real-space representation of
The real-space representation of
Projector Function
The projector functions
where
Note in passing that
in VASP
does not necessarily satisfy the non-overlaping condition. For examples,and while a typical O-H bond length is about .
For simplicity, we only consider the projector functions located within the
first unit cell, i.e.
where REAL FUNCTION
where the phase term is due to the shifting property of FT.
Obviously,
In VASP
, the information of the projector functions are included in the
POTCAR
file, however, only radial parts of the real- and momentum-space
projector functions, i.e.
To evaluate the inner-product of the projector function and PSWFC, an extra
k-dependent projector function VASP
4
As a result, the inner product between the projector and PSWFC can be written as
Note that in practical implementation,
VASP
DOES NOT include the phase termin the actual calculation, since it does not change the occupation matrix or energy, as is explained in the nonl.F
ofVASP
source file.
One can clearly see from Eq.
that for the same projector function located at another unit cell , the inner product is simply right-hand-side of Eq. multiplied by .
With this definition, Eq.
- momentum-space method
In the first step, one has to find out all the plane-waves within the sphere
defined by Eq.
Note that this is what
VASP
does by settingLREAL = .F.
in theINCAR
.
- real-space method
First, the grid points within the PAW sphere
Note that this is what
VASP
does by settingLREAL = .T.
in theINCAR
.
Partial Waves
The AE/PS partial waves
The radial logarithmic grid is defined as
or equivalently
where
Note that
The AE/PS partial waves are again composed of radial and angular parts,
IT MUST BE STRESSED that POTCAR
file and are also the ones shown in Figure 2.
A few notes on the construction of AE/PS partial waves
-
The AE partial waves are chosen to be solution to Schrödinger equation for a fixed quantum number l and chosen reference energy. 5
-
The PS partial waves are, by definition, indential to the AE partial waves outside th augmentation sphere. Inside the sphere, the PS partial waves are chosen to be a smooth continuation of the AE ones.
VASP
expands the PS partial waves within the sphere in terms of a linear combination of spherical Bessel functions 5 6where the coefficients
and are determined so that the PS partial waves are two times continuously differentiable at .Alternatively, one can use polynomials of r with even powers 7 (Troullier-Martins pseudopotential 8) or Gaussian in the expansion.
Constructing AEWFC
As has been stated, the AEWFC
Alternatively, one can construct the cell-periodic part of the AEWFC
Similar to the evaluation of Eq.
IT MUST BE STRESSED that although the all-electron quantities can be obtained in principle, they are NEVER handled directly in practical calculations. The essence of the PAW method lies in the fact that there are NO CROSS TERMS between quantities on the regular (coarse) uniform grid and the quantities on the radial (fine) grid, and as a result the two kinds of quantities can be treated separately.
First of all, set the size of the new uniform grid that is used to represent
where
Secondly, Fourier transform the plane-wave ceofficients
The rest is to get the real-space representation of the on-site contribution
(the summation term in Eq.
real-space approach
The on-site term in real space is simply
This can be done similar to the the real-space evaluation of
momentum-space approach
Let’s now inspect the plane-wave expansion of the on-site terms
where
Note that the plane-waves are now determined by
The real-space on-site term can be obtained by Fourier transform of
AEWFC & PSWFC of CO2 Orbital
Here, we choose CO2 as an example to investigate the AEWFC and PSWFC.
In principle, the norm of AEWFC is unity and that of the PSWFC is different from
one according to Eq.
1
2
3
4
5
6
7
8
9
10
11
12
13
import numpy as np
from vaspwfc import vaspwfc
# the pseudo-wavefunction
ps_wfc = vaspwfc('WAVECAR', lgamma=True)
# Find out the band that has the most core contributions
for iband in range(ps_wfc._nbands):
# plane-wave coefficients of PSWFC
cg = ps_wfc.readBandCoeff(iband=iband+1)
# norm of the PSWFC
ps_norm = np.sum(cg.conj() * cg).real
print(f"#band: {iband+1:3d} -> {1 - ps_norm: 8.4f}")
The output is shown below, where one can see that band 7 and 8 possess the maximum contributions from the core region. One can also see that the contribution can be both positive and negative, which means that the norm of the PSWFC can be smaller (positive output) or larger (negative output) than unity.
1
2
3
4
5
6
7
8
9
10
11
12
#band: 1 -> -0.1033
#band: 2 -> -0.0744
#band: 3 -> 0.0302
#band: 4 -> 0.1362
#band: 5 -> 0.1362
#band: 6 -> 0.1391
#band: 7 -> 0.1993
#band: 8 -> 0.1993
#band: 9 -> -0.0010
#band: 10 -> 0.1494
#band: 11 -> 0.1494
#band: 12 -> 0.0067
We will choose band 8, which is also the HOMO orbital, to proceed. Below,
aecut=-25
means that
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from vaspwfc import vaspwfc
from aewfc import vasp_ae_wfc
# the pseudo-wavefunction
ps_wfc = vaspwfc('WAVECAR', lgamma=True)
# the all-electron wavefunction
ae_wfc = vasp_ae_wfc(ps_wfc, aecut=-25)
which_band = 8
phi_ae, phi_core_ae, phi_core_ps = ae_wfc.get_ae_wfc(
iband=which_band, lcore=True
)
phi_ps = ps_wfc.get_ps_wfc(
iband=which_band,
norm=False, ngrid=ae_wfc._aegrid
)
Below, we show the difference between PSWFC and AEWFC of CO2 HOMO.
-
PSWFC, AEWFC and Core AE/PS Partial WFC
Figure 3. 2D plot of CO2 HOMO orbital at x = 0 plane. The solid circles indicate the positions of the carbon and oxygen atoms while the dashed circles show the corresponding PAW sphere. The C-O bond length is 1.178 while the PAW cutoff radius for C and O are 0.809 and 0.822 , respectively. The related files used to generate this figure can be found in examples of the VaspBandUnfolding package. -
Wavefunctions
along the bond direction at different vertical distances .Figure 4. Comparison of all-electron (blue solid line) and pseudo-wavefunction (red dashed line) of the CO2 HOMO orbital, where is along the CO2 bond direction and is the direction perpendicular to the CO2 bond. The circles indicate the positions of the carbon and oxygen atoms. The related files used to generate this figure can be found in examples of the VaspBandUnfolding package.
Reference
-
pySBT: A python implementation of spherical Bessel transform (SBT) in O(Nlog(N)) time. ↩
-
Linear optical properties in the projector-augmented wave methodology ↩
-
From ultrasoft pseudopotentials to the projector augmented-wave method ↩ ↩2
-
In another VASP lecture note, 3-4 spherical Bessel functions are used in the expansion. ↩
-
As odd powers in r results in a kink in the functions at the origin, i.e. that the first derivatives are not defined at this point. ↩