-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathband.sh
32 lines (23 loc) · 1.08 KB
/
band.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
### IMPORTANT ###
# Edit as required
### INSTRUCTIONS ###
# This script makes new directory "bs" and runs band structure calculation and data extraction
# Run this script using: bash band.sh
# You can edit k-path as required by manually editing
echo "-----------------------------------------------------------------------------------------------"
cd .. #Go to upper directory
mkdir bs #Make new directory 'bs'
cd bs #Enter directory 'bs'
cp -r ../dos/* ./ #Copy all files from 'dos' directory into current directory
cp INCAR INCAR.st #Copy INCAR as INCAR.st for backup
sed -i '5 i ICHARG = 11' INCAR #Insert ICHARG tag into INCAR
#### Runing VASP ####
nohup mpirun -np $(grep -c ^processor /proc/cpuinfo) vasp
echo -e "303\n" | vaspkit > vaspkit.txt #Call vaspkit for auto generated k-path
cp KPOINTS KPOINTS.r #Copy KPOINTS as KPOINTS.r for backup
cp KPATH.in KPOINTS #Copy KPATH as KPOINTS for simulation
#### Runing VASP ####
nohup mpirun -np $(grep -c ^processor /proc/cpuinfo) vasp
echo -e "211\n1\n" | vaspkit > vaspkit.txt #Extract band structure data
cd ../_scripts