NaCl FCC
5.55596202
0.5000000000000000 0.5000000000000000 0.0000000000000000
0.0000000000000000 0.5000000000000000 0.5000000000000000
0.5000000000000000 0.0000000000000000 0.5000000000000000
Na Cl
1 1
Direct
0.0000000000000000 0.0000000000000000 0.0000000000000000
0.5000000000000000 0.5000000000000000 0.5000000000000000
Gamma-centred 11x11x11 Monkhorst-Pack grid0 G11 11 110 0 0
PREC = High
ISMEAR = 0 ; ISIGMA = 0.01
EDIFF = 1.E-8
GGA = PS
PREC = High
ISMEAR = 0 ; ISIGMA = 0.01
EDIFF = 1.E-8
GGA = PS
ALGO = Exact
LOPTICS = .TRUE.
PREC = High
ISMEAR = 0 ; ISIGMA = 0.01
EDIFF = 1.E-8
GGA = PS
EDIFF = 1.E-8
#The ionic dielectric function can be calculated in two ways:################
#1# DFPT (faster), but does not allow for METAGGA use. ######################
IBRION = 8; LEPSILON=.TRUE.
#2# Finite differences (slower). ############################################
#IBRION = 6; LPEAD=.TRUE; LCALCEPS=.TRUE.
#NFREE = 2 ; POTIM = 0.015
#In both 1 and 2 the calculated dielectric function is in vasprun.xml #######
file=vasprun.xmlif [ -f $1 ]then file=$1fiecho \"大众extracting dielectric function from \公众 $fileawk '/<dielectricfunction/ { on=1 }on==1 && /<r>/ { print $2,($3+$4+$5)/3 } #on==1 && /<r>/ { print $2,$3,$4,$5 } on==1 && /<real>/ { print \"大众 \"大众 }on==1 && /<imag>/ { print \"大众 \"大众 }/<\/dielectricfunction/ { on=0 }' <$file >diel.dat
