-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvasp_makeTDPT_Og.sh
executable file
·66 lines (51 loc) · 1.32 KB
/
vasp_makeTDPT_Og.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
natoms=61
if [ $4 ] ; then
natoms=$4
fi
echo "Using $natoms atoms..."
mkdir SHIFT
for i in $(seq $1 $2 $3) ; do
head -n7 XDATCAR > SHIFT/conf$i.POSCAR
grep "Direct configuration=[' ']*$i$" XDATCAR -A $natoms >> SHIFT/conf$i.POSCAR
done
cp ~/bin/vasp_tools/Og/POTCAR ~/bin/vasp_tools/Og/INCAR ~/bin/vasp_tools/Og/KPOINTS SHIFT/
cd SHIFT
for i in $(seq $1 $2 $3) ; do
mkdir SR600_CONF${i}_SP
cp INCAR POTCAR KPOINTS SR600_CONF${i}_SP
cp conf${i}.POSCAR SR600_CONF${i}_SP/POSCAR
done
for i in SR600_CONF* ; do
j=$(echo $i | sed s/SR600/SR400/)
cp -r $i $j
sed -i /ENCUT/s/600/400/ $j/INCAR
sed -i /PREC/s/accurate/normal/ $j/INCAR
sed -i /EDIFF/s/6/4/ $j/INCAR
done
for i in SR600_CONF* ; do
j=$(echo $i | sed s/SR600/K2SR600/)
cp -r $i $j
sed -i "s/1 1 1/2 2 2/" $j/KPOINTS
sed -i /KPAR/s/1/2/ $j/INCAR
done
for i in SR*CONF* ; do
cd $i
subvSHMAUI -p80 -m1 -n1 -t24 -q nesi_research
cd -
done
for i in SR600_CONF* ; do
j=$(echo $i | sed s/SR600/SO600/)
cp -r $i $j
sed -i /LSORBIT/s/FALSE/TRUE/ $j/INCAR
done
for i in SO*CONF* ; do
cd $i
subvSHSOMAUI -p80 -m1 -n1 -t24 -q nesi_research
cd -
done
for i in K2SR600*CONF* ; do
cd $i
subvSHMAUI -p80 -m1 -n1 -t24 -q nesi_research
cd -
done