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
| #!/bin/sh #===================================================== # - FileName: Energy test of diamond # - Created: Dong Fan # - Email: fandong[at]outlook.com # - Copyright: Dong Fan #=====================================================
cat>KPOINTS<<! K-Mesh 0 Monkhorst-Pack 8 8 8 0.0 0.0 0.0 ! # for i in `seq -w 400 20 800` do cat > INCAR << ! System = test_energy PREC = A ISTART = 0 ICHARG =2 ENCUT = $i EDIFF = 1e-5 EDIFFG = -0.01 IBRION = 2 NSW=500 ISIF = 2 ISMEAR = 0;SIGMA = 0.05 LCHARG = F LWAVE = F NPAR = 4 !
echo "ENCUT= $i eV"
yhrun -N 1 -n 24 -p work vasp_std > vasp.log 2>&1
E=`grep "TOTEN" OUTCAR | tail -1 | awk '{printf "%12.6f\n",$5}'` echo $i $E >> tet_ENCUT.dat done
|