Vasp Intro
Vasp Intro
Weine Olovsson
National Supercomputer Centre (NSC)
th
@Umeå University, HPC2N, 29 Oct 2019, room UB334
https://www.vasp.at/
Introduction
• Where to find information
• Starting files
• Important parameters
• Input/output
• Examples
… clickable links are underlined
• PAW-method
• Forum
• https://www.nsc.liu.se/~pla/
Peter Larsson’s old blog at NSC: info &
discussion
• constrained relaxation
https://www.vasp.at/
https://cms.mpi.univie.ac.at/vasp/vasp/vasp.html
https://cms.mpi.univie.ac.at/wiki/index.php/The_VASP_Manual
https://cms.mpi.univie.ac.at/wiki/index.php/The_VASP_Manual
https://www.hpc2n.umu.se/ Systems and Support > Software > VASP
https://www.hpc2n.umu.se/resources/software/vasp
https://www.nsc.liu.se/ Software > Installed software > Tetralith & Sigma software list > VASP
https://www.nsc.liu.se/software/installed/tetralith/vasp/
Example of day-to-day tools
• less / vi reading/editing files
• grace / gnuplot plotting tools
• Bash simple scripts
• cif2cell convert from .cif
• p4vasp analysis of VASP output
• xcrysden / vesta view structure
• Schrödinger create/view structure @Kebnekaise, Tetralith
Also of interest:
• Python / R analysis etc. (check out e.g. using jupyter)
• ASE different tools and Python modules
• Matlab / Octave analysis etc.
• Born-Oppenheimer MD
• + job script
SLURM batch queue system &
settings used by SNIC centers
INCAR parameters
• ALGO - wf optimisation
parallel
• NSIM - for RMM-DIIS algorithm (ALGO)
calcs.
• NCORE or NPAR - bands treated in parallel
• NSIM = 4 Typically OK
• IBRION = -1 (NSW=-1,0)
no update
or
MD
0 how ions are updated & movded
=2 ionic relaxation
POSCAR
A simple case of fcc Ni, refer to the VASP wiki example
Direct coordinates: expressed in terms of the lattice vectors (no lattice constant, scaling)
Cartesian coordinate: expressed as (x,y,z) with the scaling factor included
POSCAR
From the course examples, H and Si on Ag(111) surface:
100% H on Si on Ag(111)
10.007900
1.000000000000000 0.000000000000000 0.000000000000000
0.500000000000000 0.866025403784439 0.000000000000000
0.000000000000000 0.000000000000000 4.352531500114909 Selective dynamics
H Si Ag
Note order of atoms always for Direct coord.
14 14 108
T = relax
Selective dynamics Relax for different directions F = fixed
Direct
first H atom 0.758338000000000 0.052881600000000 0.605945000000000 T T T
0.505244000000000 0.118231000000000 0.605945000000000 T T T
0.050784500000000 0.196017000000000 0.605945000000000 T T T
Rest of H, 0.800359000000000 0.251903000000000 0.605945000000000 T T T
Si & Ag atoms 0.333333333333333 0.338902000000000 0.605945000000000 T T T
following 0.114191000000000 0.386244000000000 0.605945000000000 T T T
0.618474000000000 0.498058000000000 0.605945000000000 T T T
0.381262000000000 0.511313000000000 0.605945000000000 T T T
0.883071000000000 0.624684000000000 0.605945000000000 T T T
POSCAR
Some useful resources:
Crystallographic tools
POSCAR
A few examples on how to visualize and/or edit POSCAR:
• Where?
@Kebnekaise: $ echo $VASP_PP_PATH
/hpc2n/eb/software/Core/VASP-data/5.4/potPP
@Tetralith: /software/sse/manual/vasp/POTCARs
KPOINTS
A simple case of fcc Ni, 1 atom
k-points comment
0 = automatic generation of mesh 0
Monkhorst Pack Monkhorst-Pack method (M)
k-point mesh 11 11 11 odd kmesh - includes 𝚪-point
0 0 0 optional shift of k-mesh
Automatic mesh
0
First letter is sufficient, i.e.
Gamma Gamma method (G)
“G” for “Gamma”
2 2 1 - 𝚪-point included by default
0. 0. 0. - hexagonal structures only use this!
KPOINTS
For bandstructure calculations, provide a list of k-points, see example
• + modifications
e.g. constrained relaxation
Job script - Kebnekaise (HPC2N)
#!/bin/bash
#SBATCH -A snic2019-3-203
#SBATCH -J test
#SBATCH -t 3:59:00
#SBATCH —n 56 #SBATCH -N 2
ml icc/2017.4.196-GCC-6.4.0-2.28
ml ifort/2017.4.196-GCC-6.4.0-2.28
ml impi/2017.3.196
ml VASP/5.4.4-18Apr17-hpc2n
mpirun vasp_std
ml icc/2017.4.196-GCC-6.4.0-2.28
ml ifort/2017.4.196-GCC-6.4.0-2.28
ml impi/2017.3.196
ml VASP/5.4.4-18Apr17-hpc2n
mpirun vasp_std
ml icc/2017.4.196-GCC-6.4.0-2.28
ml ifort/2017.4.196-GCC-6.4.0-2.28
ml impi/2017.3.196
ml CUDA/9.1.85
ml VASP/5.4.4-18Apr17-p01-hpc2n
mpirun vasp_gpu
aprun -n 48 -N 24 vasp
#aprun -n 64 -N 32 vasp
• …
Output files
• DOSCAR - total, partial density of states (DOS)
• …
OSZICAR
Charge density
Min. residual vector
Step Total free Energy Energy diff. Eigenvalue diff.
algo
N E dE d eps ncg rms rms(c)
DAV: 1 -0.189343666468E+01 -0.18934E+01 -0.20040E+03 904 0.422E+02
DAV: 2 -0.108926039335E+02 -0.89992E+01 -0.87586E+01 1440 0.554E+01
DAV: 3 -0.109805531666E+02 -0.87949E-01 -0.87949E-01 1208 0.675E+00
DAV: 4 -0.109807517982E+02 -0.19863E-03 -0.19863E-03 1368 0.313E-01
DAV: 5 -0.109807519113E+02 -0.11307E-06 -0.11310E-06 1256 0.684E-03 0.519E+00
DAV: 6 -0.108723496529E+02 0.10840E+00 -0.69164E-02 1064 0.137E+00 0.317E+00
DAV: 7 -0.108218097854E+02 0.50540E-01 -0.13575E-01 1120 0.205E+00 0.163E-01
DAV: 8 -0.108228444695E+02 -0.10347E-02 -0.32972E-03 944 0.419E-01 0.706E-02
DAV: 9 -0.108230614389E+02 -0.21697E-03 -0.22028E-04 1312 0.111E-01 0.557E-02
DAV: 10 -0.108230846187E+02 -0.23180E-04 -0.25743E-05 560 0.381E-02
1 F= -.10823085E+02 E0= -.10823085E+02 d E =-.431458E-08
Final total free energy
-----------------------------------------------------------------------------
| |
| ADVICE TO THIS USER RUNNING 'VASP/VAMP' (HEAR YOUR MASTER'S VOICE ...): |
| |
| You have a (more or less) 'large supercell' and for larger cells |
For high accuracy (default) keep: | it might be more efficient to use real space projection operators |
LREAL=.FALSE. | So try LREAL= Auto in the INCAR file. |
| Mind: If you want to do a very accurate calculations keep the |
| reciprocal projection scheme (i.e. LREAL=.FALSE.) |
| |
-----------------------------------------------------------------------------