Professional Documents
Culture Documents
Running A DFT Calculation in Vasp: ICME Fall 2012
Running A DFT Calculation in Vasp: ICME Fall 2012
VASP
ICME Fall 2012
Laalitha Liyanage
lsiliyanage@gmail.com
Codes
Exchange-Correlation functional:unknown
Approximations: LDA, GGA (PW91, PBE)
Kohn-Sham scheme
Well-converged calculation
Choose XC functional
For metals
Energy cutoff
Pseudopotentials
What is VASP?
One of the software packages that uses DFT to solve the
quantum problem for materials
Uses periodic boundary conditions
Uses pseudopotential method
with a plane waves basis set
Can model systems with maximum
no. of atoms in the range of 100-200
Commercial software package ~$5000
Manual http://cms.mpi.univie.ac.at/vasp/vasp/PREC_tag.html
POSCAR
POTCAR
KPOINTS
Our system
Al
4 atoms, fcc structure
Translational lattice vectors
a1 = (4.0; 0.0; 0.0)
a2 = (0.0; 4.0; 0.0)
a3 = (0.0; 0.0; 4.0)
Basis vectors
Concatenate the same type of POTCAR files to make a single POTCAR file
E.g. cat POTCAR_Al POTCAR_Mg >> POTCAR
The order of the POTCAR types should correspond to the ordering of atoms
in POSCAR
POSCAR file
If negative value is given then it is taken as the volume of the unit cell.
INCAR file
Minimal setup
LREAL: use of
reciprocal/real space
ISMEAR
Default: 1 MethfesselPaxton
-5: Tetrahedron method
KPOINTS file
For Al bulk system
k- point convergence
http://cms.mpi.univie.ac.at/vasp/vasp/Automatic_k_mesh_generation.html
http://cms.mpi.univie.ac.at/vasp/vasp/Number_k_points_method_smearing.html
#im-smear
N iteration count
E Total energy
dE change of total
energy
No wrap-around errors
Energy difference ~ 0.00001eV = 0.01meV
Therefore PREC=Normal with EDIFF=1e-04 is accurate enough.
Data from stdout are written to OSZICAR file as well.
http://cms.mpi.univie.ac.at/vasp/vasp/stdout_OSZICAR_file.html
OUTPUT files
CONTCAR
Contains position of the system after the calculation
has completed
OSZICAR
Contains data of electronic steps and ionic steps
OUTCAR
Complete output of run including input file data.
CHGCAR
Charge density of system after run
Since Al is metallic
Use ISMEAR = 1 for
IBRION tag: determines how the ions are
relaxation run
updated and moved.
If away from minimum use IBRION = 2
ENCUT is increased to
(Conjugate -gradient)
1.3*ENMAX to
If close to minimum use IBRION=1 (quasiaccommodate cell volume
newton)
change.
http://cms.mpi.univie.ac.at/vasp/vasp/IBRI
ON_tag_NFREE_tag.html
Bulk relaxation:Procedure
1. Using the relaxation setup INCAR do the first run
with ISMEAR=1 (since metallic) and ISIF=2/3
http://cms.mpi.univie.ac.at/vasp/vasp/Accurate_bul
k_relaxations_with_internal_parameters_one.html
Extracts
Final volume/ion
Energy/atom
Time for calculation
Curve fitting
pbs script
For RAPTOR
For TALON
Start with a system that has at least 5 layers of atoms and 5 layers of
vacuum.
Good rule of thumb: make system big enough that surface to surface distance is
at least 10 applies for any defect (vacancy, interstitial, stacking fault)
Since in one direction there is a vacuum and it is longer than other translational
lattice vectors set revelent k-point to 1
For the other 2 directions start off with values used for bulk calculation and do
convergence
Finally keeping the k-points and all other parameters fixed change
no. of bulk and vacuum layers
http://cms.mpi.univie.ac.at/vasp/vasp/most_important
_parameters_source_errors.html
Homework 1
Each group will use different XC functional
LDA, GGA-PW 91 and GGA-PBE
DFT calculations
Energy-volume curves
Elastic constants
Vacancy formation energy
Interstitial formation energy (Both octahedral and tetrahedral)
Surface formation energy for (111), (110) and (001) surfaces
Extrinsic and intrinsic stacking fault energies
Plot generalized stacking fault curve
Visulization tools
VESTA
http://jp-minerals.org/vesta/en/
Windows, Mac and Linux
VMD
http://www.ks.uiuc.edu/Research/vmd/
Windows, Mac and Linux
OVITO
www.ovito.org/
Windows and Linux
XCrysDen
www.xcrysden.org/
Mac and Linux
References
VASP documentation
http://cms.mpi.univie.ac.at/vasp/vasp/