Login: ssh [username]@[serverIP]
Password: [password]
Copying a file from your local machine to the destination server:
scp ~/[local file path] [username]@[serverIP]:~
Copying a file from the server to your local machine:
scp [username]@[serverIP]:~/[server file path]
~/[local file path]
Copying a folder from your local machine to the destination
server: scp -r ~/[local file path] [username]@[serverIP]:~
Check CPU% of server and status of files: top or
htop
Finding a job directory from PID #: pwdx [PID#]
See files in the working directory: ls
Delete files: rm [filename]
Delete folders + contents: rm -r [foldername]
Make a directory: mkdir [foldername]
Copy folders + contents: cp [foldername] [destinationfolder]
View & edit a file: vim [filename]
Rename a file: mv [oldfilename] [newfilename]
:wq + entermv POSCAR.vasp POSCARpotcreate Si Fe Ce in command
line, which matches the order of molecules in the
POSCAR filepotshow Si
vaspkit in the terminal01 for VASP Input-Files Generator103 to generate POTCAR file with default settings
### INCAR-Template for VASP Calculations - Martin
Changed 2015-12-22
## General Parameters/Electronic Relaxation
PREC =Accurate # Precision
ENCUT = 500 # cutoff energy for the planewave basis
set
in eV.
EDIFF = 1E-8 # convergence condition for the
electronic
loop
NELM = 150 # maximum number of electronic
iterations
NELMIN = 4 # minimum number of electronic
iterations
KPAR = 2 # no. of nodes (max. no. of k-points)
NCORE = 4 # no. of cores per node
#LWAVE = .FALSE.# Do not write WAVECAR
## Structure Optimization (or static for NSW=0)
EDIFFG = 1E-6 # convergence criterion for ionic
loops
(pos=energy; neg=forces)
NSW = 1000 # number of ionic steps
IBRION = 1 # ionic update: 1:QN, 2:CG (for bad
guesses)
ISIF = 3 # freedom: 2=ions; 4=ions,shape;
3=ions,shape,vol
MAXMIX = 80 # max number steps stored in Broyden
mixer,
when negative: resets after ionic step
ISMEAR = 1 # smearing: -5-insul/scond/DOS 0-large
systems (with SIGMA 0.05) 1-metals (with SIGMA
0.2)
## DOS and Band Structure Calcuations (for
ICHARG=11
prev. CHGCAR required)
#NEDOS = 1001 # number of DOS gridpoints
#LORBIT = 10 # DOSCAR and PROCAR are written
#ISMEAR = -5 # smearing: -5-insul/scond/DOS 0-large
systems 1-metals (with SIGMA)
## Bader Charge and Electron localization
function
#LAECHG = .TRUE.
#LELF=.TRUE.
#NPAR = 1
## COHP Analysis (via LOBSTER)
#LWAVE = .TRUE.
#NSW = 0
#ISYM = -1
#NBANDS = 600 ! should equal the total number of
orbitals
#LORBIT = 12
#ISTART = 0
## Phonon Dispersion via finite displacements
#EDIFF = 1E-8 # delete other EDIFF tags!!!
#ISMEAR = 0
#SIGMA = 0.01
#ADDGRID = .TRUE.
## Hybrid Calculations
LHFCALC=.TRUE. # use of HF/DFT hybrid
functionals
AEXX = 0.25 # fraction of exact exchange
AGGAX = 0.75 # fraction of GGA
ALGO = Damped # electronic minimisation algorithm
(damped velocity friction algo.)
TIME = 0.05 # time step for ALGO
PRECFOCK = FAST # controls FFT grid for the exact
exchange
HFSCREEN = 0.2 # determines the range separation
parameter
NKREDX = 2 # grid reduction factors
NKREDY = 2 # grid reduction factors
NKREDZ = 2 # grid reduction factors
## Stress Tensor Calculation
#ENCUT = 600 # delete other ENCUT tags!!!
#IBRION = 6
#ISIF = 6
#NSW = 1
#NFREE = 2
## additionally for DFPT:
#IBRION = 8
#NWRITE = 3
#NSW = 1
## Supercell (band offset) calculations
#LVHAR = .TRUE.
#AMIN = 0.1
## Born Effective Charge
#LEPSILON = .TRUE. ! dielectric matrix
#LOPTICS = .TRUE. ! DFPT including empty bands for
hybrid functionals
## Spin-orbing Coupling
#LSORBIT = .TRUE.
#LNONCOLLINEAR = .TRUE.
##GGA+U, Coulomb interaction energy
#LDAU = .TRUE.
#LDAUTYPE = 1 !1 = Liechtenstein et al.; 2 =
Dudarev's
approach, only the difference (U-J) is
meaningfull
#LDAUPRINT = 0
#LDAUU = 0 3.71 0 0
#LDAUJ = 0 0 0 0
#LASPH = .TRUE.
vaspkit in the terminal, then 01 for VASP
Input-Files Generator, and 102 for KPOINTS file.vaspkit in your terminal.mpirun is a command used to launch parallel programs written using the Message
Passing Interface (MPI) standard.
sbatch jobsqscancel [job no.] (job number shown by sq)mpirun -np 16 vasp_std>1& (Oliynyk lab - use sbatch job after setting
job file) in the
command line while in the directory of the folder with your
files. "1" indicates the first run, "2" indicates the second,
and "3" indicates the third. I do this to keep track of
everything, but you can just repeat the same command after
copying CONTCAR to POSCAR.Vim + 1tail 1 (only displays last couple of
lines)grep TOTEN OUTCARcp CONTCAR POSCARmpirun -np 4 vasp_std>2& (Oliynyk lab - use sbatch job after
setting job file)cp CONTCAR POSCARmpirun -np 4 vasp_std>3& (Oliynyk lab - use sbatch job after
setting job file)cp CONTCAR POSCARgrep TOTEN
OUTCAR to see the final energy of the
optimized structure, which is the last iterated value
at the bottom.
vim
POSCARcp CONTCAR POSCAR at
the end of our third optimization iteration.vim CONTCAR, but we
want to export POSCAR later for further calculations –
so it’s best to do the first command in 1.
LWAVE = .FALSE.) in INCAR as we need the WAVECAR file for this.
ISPIN=1 (non-spin-polarized) and ISPIN=2 (spin-polarized)
calculations.LORBIT=11-14: Individual orbitals are lm-resolved/decomposed (e.g., px, py, pz, etc.).
LORBIT=0, 1, 2, 5, 10: Orbitals are grouped (e.g., total p-orbital contributions).mpirun -np 16 vasp_std>Dos1& (Oliynyk lab - use sbatch job after setting
job file)mpirun -np 8 vasp_std>Dos2& (Oliynyk lab - use sbatch job after
setting job file)mpirun -np 16 vasp_std>Elf& (Oliynyk lab - use sbatch job after setting
job file)-np 8 vasp_std>Bader& (Oliynyk lab - use sbatch job after setting
job file)chgsum.pl AECCAR0 AECCAR2
bader CHGCAR -ref CHGCAR_sum
vim commandgrep ZVAL POTCAR
vim POSCAR if you forget the order of the molecules to
determine which charge is which molecule
! First, enter the energetic window in eV (relative to the
Fermi level):
COHPstartEnergy -10
COHPendEnergy 5
!
! Then, specify which types of valence orbitals to use:
includeorbitals s p d
! You can also specify the basis functions per element
manually, e.g.:
! basisfunctions Ga 4s 4p
! basisfunctions Sr 5s 4s 4p ! Sr_sv potential
!
! Now define the pairs for which COHP analysis etc. should be
done.
! The atoms are numbered as per order in the PAW-code control
file.
!cohpbetween atom 1 atom 10
!
! If you are interested in single orbital COHPs, you can get
all the pairs ! like s-s, s-p_x, ..., p_z-p_z. Uncomment this
line to switch it on:
! cohpbetween atom 1 atom 2 orbitalwise
!
! If you want to generate the COHPPairs automatically, use this
to include ! all pairs in a given distance range (in Angstrom,
not in atomic units):
cohpGenerator from 1 to 2.5 type Si type Fe
cohpGenerator from 1 to 3.3 type Gd type Si
cohpGenerator from 1 to 3.3 type Gd type Fe
cohpGenerator from 1 to 2.6 type Si type Si
! and in the latter case only between the specified
elements
- of course adjust accordingly to your atomic interactions and
optimized structure's bond distances.mpirun -np 20 vasp_std>COHP& (Oliynyk lab - use sbatch job after setting
job file)lobsterLWAVE = .FALSE.) in INCAR as we need the WAVECAR file for this.
vaspkit into the terminal/powershell03 to select K-Path for Band-Structure303 for bulk structurecp KPOINTS KPOINTS_old to back up your old KPOINTScp KPATH.in KPOINTS to use the new K-pathKPATH.in will become your KPOINTS for the band structure only.
VASPKIT automatically suggests a K-Path based on your structure's symmetry.ERROR FEXCP: supplied exchange-correlation table is too small, maximal index: 5536
internal error in FOCK_FCC: number of k-points incorrect 5 18 2 2 2
grep NELECT OUTCAR after an optimization
will give you the number of electrons, and grep
NIONS OUTCAR will give you the number of ionsgrep VRHFIN POTCAR may also give you the
number of bands (not certain, have to double check)