-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvasp_makeTDPT_Al.sh
executable file
·55 lines (43 loc) · 1.1 KB
/
vasp_makeTDPT_Al.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
#!/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 --binary-files=text "Direct configuration=[' ']*$i$" XDATCAR -A $natoms >> SHIFT/conf$i.POSCAR
done
cp ~/bin/vasp_tools/Al/POTCAR ~/bin/vasp_tools/Al/INCAR ~/bin/vasp_tools/Al/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/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* ; do
cd $i
subvMAUI -p80 -m1 -t24 -n1 -q nesi_research
cd -
done
if [ $4 ] ; then
for i in K2SR* ; do
cd $i
subvMAUI -p160 -m1 -t24 -n2 -q nesi_research
cd -
done
fi