Fcc Si DOS: Difference between revisions

From VASP Wiki
No edit summary
No edit summary
Line 23: Line 23:
  0 0 0
  0 0 0


*
*gg
awk 'BEGIN{i=1} /dos>/,\
<pre>
                /\/dos>/ \
awk 'BEGIN{i=1} /dos>/,\
                  {a[i]=$2 ; b[i]=$3 ; i=i+1} \
                /\/dos>/ \
      END{for (j=12;j<i-5;j++) print a[j],b[j]}' vasprun.xml &nbsp;>&nbsp; dos.dat
                {a[i]=$2 ; b[i]=$3 ; i=i+1} \
    END{for (j=12;j<i-5;j++) print a[j],b[j]}' vasprun.xml > dos.dat
ef=`awk '/efermi/ {print $3}' vasprun.xml`
 
ef=`awk '/efermi/ {print $3}' vasprun.xml`
cat >plotfile<<!
 
# set term postscript enhanced eps colour lw 2 "Helvetica" 20
cat >plotfile<<!
# set output "optics.eps"
# set term postscript enhanced eps colour lw 2 "Helvetica" 20
plot "dos.dat" using (\$1-$ef):(\$2) w lp
# set output "optics.eps"
!  
plot "dos.dat" using (\$1-$ef):(\$2) w lp
!  
gnuplot -persist plotfile
 
gnuplot -persist plotfile
rm dos.dat plotfile
 
rm dos.dat plotfile
</pre>


== Download ==
== Download ==

Revision as of 16:37, 4 June 2012

  • INCAR
System = fcc Si 
# ICHARG=11 #charge read file
ENCUT  =    240
ISMEAR = -5 #tetrahedron
LORBIT=11
  • KPOINTS
k-points
 0
Monkhorst Pack
 21 21 21
 0  0  0
  • POSCAR
fcc Si:
 3.9
 0.5 0.5 0.0
 0.0 0.5 0.5
 0.5 0.0 0.5
   1
cartesian
0 0 0
  • gg
awk 'BEGIN{i=1} /dos>/,\
                /\/dos>/ \
                 {a[i]=$2 ; b[i]=$3 ; i=i+1} \
     END{for (j=12;j<i-5;j++) print a[j],b[j]}' vasprun.xml > dos.dat

ef=`awk '/efermi/ {print $3}' vasprun.xml`

cat >plotfile<<!
# set term postscript enhanced eps colour lw 2 "Helvetica" 20
# set output "optics.eps"
plot "dos.dat" using (\$1-$ef):(\$2) w lp
! 

gnuplot -persist plotfile

rm dos.dat plotfile

Download

name.tgz


To the list of examples or to the main page