VASP Preparation#
This guide is here to help you prepare VASP Calculations to be used with pyprocar.
Required files : PROCAR, OUTCAR (optional), KPOINTS (optional)
flag : code=’vasp’ (default)
In the VASP code, the wavefunction projection information is written into the PROCAR file when LORBIT=11
is set in the INCAR file. For band unfolding, set LORBIT=12
to include phase projections of the wave functions.
An OUTCAR file is required to extract the Fermi-energy and reciprocal lattice vectors. If a KPOINTS file is provided, the \(k\)-path will automatically be labeled in the band structure.
To perform spin colinear calculations set ISPIN = 2
in the INCAR
.
To perform spin non-colinear calculations set ISPIN = 2
and LNONCOLLINEAR = .TRUE.
.
First perform a self-consistent calculation with a \(k\)-mesh grid. Then set ICHARG=11
in the INCAR and create a KPOINTS file containing the :math:-k-path. This can be done with the K Path feature in PyProcar.
Preparing Calculations#
To use VASP with QE, one has to run various calculations in independent directories. Here, we will show examples for the different calculations.
Band Structure#
Create directory called
scf
.Perform self-consistent calculation in this
scf
directory.Create directory called
bands
.Move the CHGCAR file in the
scf
directory to thebands
directoryCreate a KPOINTS file containing the :math:-k-path. This can be done with the K Path feature in PyProcar.
Make sure to set
LORBIT=11
orLORBIT=12
for the INCAR inbands
directoryPerform a non-self consistent calculation in the
bands
by settingICHARG=11
in the INCAR.Run pyprocar.bandsplot(dirname = ‘bands’ ,mode = ‘plain’, code = ‘vasp’)
Density of States#
Create directory called
scf
.Perform self-consistent calculation in this
scf
directory.Create directory called
dos
.Move the CHGCAR file in the
scf
directory to thedos
directory.Make sure there is a kmesh in the KPOINTS file in the
dos
directory.Make sure to set
LORBIT=11
orLORBIT=12
for the INCAR indos
directoryPerform a non-self consistent calculation in the
dos
by settingICHARG=11
in the INCAR.Run pyprocar.dosplot(dirname = ‘bands’ ,mode = ‘plain’, code = ‘vasp’)
Band Structure and Density of States#
Run the band structure and dos calculation as stated above
Run pyprocar.bandsdosplot(bands_dirname = ‘bands’, dos_dirname = ‘dos’, bands_mode = ‘plain’, dos_mode = ‘plain’, code = ‘vasp’)
Fermi#
Create directory called
scf
.Perform self-consistent calculation in this
scf
directory.Create directory called
fermi
.Move the CHGCAR file in the
scf
directory to thefermi
directory.Make sure there is a kmesh in the KPOINTS file in the
fermi
directory.Make sure to set
LORBIT=11
orLORBIT=12
for the INCAR infermi
directoryPerform a non-self consistent calculation in the
fermi
by settingICHARG=11
in the INCAR.Run pyprocar.FermiHandler(dirname = ‘fermi’, code = ‘vasp’)
K-Points Format#
The \(k\)-path can be specified in KPOINTS
which is used for the band structure calculation. Here is an example with \(k\)-path
50 ! Grid points
Line_mode
reciprocal
0.0 0.0 0.0 ! GAMMA
0.5 -0.5 0.5 ! H
0.5 -0.5 0.5 ! H
0.0 0.0 0.5 ! N
0.0 0.0 0.5 ! N
0.0 0.0 0.0 ! GAMMA
0.0 0.0 0.0 ! GAMMA
0.25 0.25 0.25 ! P
0.25 0.25 0.25 ! P
0.5 -0.5 0.5 ! H
0.25 0.25 0.25 ! P
0.0 0.0 0.5 ! N
Magnetic Calculations#
Magnetic calculations follow the same steps as above, but it requires additional parameters
Colinear-Spin
To perform spin colinear calculations set ISPIN = 2
in the INCAR
.
Non-colinear-Spin
To perform spin non-colinear calculations set ISPIN = 2
and LNONCOLLINEAR = .TRUE.
.