-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvasp_makeTDPT_Cn.sh
executable file
·71 lines (55 loc) · 1.42 KB
/
vasp_makeTDPT_Cn.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
65
66
67
68
69
#!/bin/bash
natoms=64
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/Cn/POTCAR ~/bin/vasp_tools/Cn/INCAR ~/bin/vasp_tools/Cn/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 /EDIFF/s/06/04/ $j/INCAR
sed -i /PREC/s/accurate/normal/ $j/INCAR
done
for i in SR600_CONF* ; do
j=$(echo $i | sed s/SR600/K3SR600/)
cp -r $i $j
sed -i "s/2 2 2/3 3 3/" $j/KPOINTS
done
#for i in SR600_CONF* ; do
# j=$(echo $i | sed s/SR600/K4SR600/)
# cp -r $i $j
# sed -i "s/2 2 2/4 4 4/" $j/KPOINTS
#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 SR*CONF* ; do
cd $i
subvSHMAUI -p160 -m1 -t4 -n2 -q nesi_research
cd -
done
for i in K*SR* ; do
cd $i
subvSHMAUI -p160 -m2 -t8 -n2 -q nesi_research
cd -
done
for i in SO*CONF* ; do
cd $i
subvSHSOMAUI -p160 -m2 -t8 -n2 -q nesi_research
cd -
done