2020-01-27 14:08:14 +01:00
|
|
|
#!/bin/bash
|
2019-10-01 19:13:31 +02:00
|
|
|
|
|
|
|
WF=FCI
|
|
|
|
BASIS=avtz
|
2020-01-27 14:08:14 +01:00
|
|
|
BASIS2=aug-cc-pVTZ
|
2019-10-17 18:30:43 +02:00
|
|
|
METHOD=DFT
|
2019-10-01 19:13:31 +02:00
|
|
|
|
|
|
|
TYPE=relat
|
2020-01-20 18:37:01 +01:00
|
|
|
FILE=E_relat_dft
|
|
|
|
FILE2=E_relat_exact
|
2019-10-01 19:13:31 +02:00
|
|
|
OUT=${METHOD}_${BASIS}E_${TYPE}
|
|
|
|
#lt -1
|
|
|
|
cat << EOF > pouet.gp
|
2019-11-20 15:52:45 +01:00
|
|
|
set xrange [:5]
|
2019-10-17 18:30:43 +02:00
|
|
|
set key bottom
|
2020-01-27 14:08:14 +01:00
|
|
|
set format y "%.3f"
|
|
|
|
set format x "%.1f"
|
|
|
|
set grid
|
|
|
|
set title "$BASIS2"
|
2019-11-23 16:38:36 +01:00
|
|
|
|
2020-01-27 14:08:14 +01:00
|
|
|
set xlabel "Internuclear distance (bohr)"
|
2020-01-26 21:22:12 +01:00
|
|
|
set ylabel "Atomization energy (hartree)"
|
2019-11-23 16:38:36 +01:00
|
|
|
|
2020-01-27 14:08:14 +01:00
|
|
|
plot '${FILE}' using 1:2 smooth cspline notitle lt 2 , "" using 1:2 w p lt 2 ps 1 title "${WF}"
|
|
|
|
replot '${FILE}' using 1:5 smooth cspline notitle lt 8 , "" using 1:5 w p lt 8 ps 1 title "${WF}+SU-PBE-OT"
|
2020-01-20 18:37:01 +01:00
|
|
|
replot '${FILE2}' using 1:2 smooth cspline notitle lt 7 , "" using 1:2 w p lt 7 ps 1 title "Exact"
|
2020-01-27 14:08:14 +01:00
|
|
|
replot '${FILE}' using 1:2 smooth cspline notitle lt 2 , "" using 1:2 w p lt 2 ps 1 notitle
|
|
|
|
replot '${FILE}' using 1:5 smooth cspline notitle lt 8 , "" using 1:5 w p lt 8 ps 1 notitle
|
|
|
|
|
|
|
|
set terminal pdf enhanced\
|
|
|
|
font "Times" \
|
|
|
|
solid dashlength 1.0 linewidth 2. rounded \
|
|
|
|
size 4.0in, 3.0in
|
|
|
|
set output "${OUT}.pdf"
|
2019-10-01 19:13:31 +02:00
|
|
|
replot
|
|
|
|
|
2020-01-27 14:08:14 +01:00
|
|
|
|
2019-10-01 19:13:31 +02:00
|
|
|
EOF
|
|
|
|
|
|
|
|
gnuplot pouet.gp
|
|
|
|
if [[ $METHOD == "DFT" ]]; then
|
|
|
|
|
|
|
|
OUT=${METHOD}_${BASIS}E_${TYPE}_zoom
|
2020-01-20 18:37:01 +01:00
|
|
|
cat << EOF > pouet_relat.gp
|
2019-10-01 19:13:31 +02:00
|
|
|
set xrange [2.5:3.5]
|
2020-01-27 14:08:14 +01:00
|
|
|
set key bottom right
|
|
|
|
set format y "%.3f"
|
|
|
|
set format x "%.1f"
|
|
|
|
set grid
|
|
|
|
set title "$BASIS2"
|
2020-01-20 18:37:01 +01:00
|
|
|
|
2020-01-27 14:08:14 +01:00
|
|
|
set xlabel "Internuclear distance (bohr)"
|
2020-01-26 21:22:12 +01:00
|
|
|
set ylabel "Atomization energy (hartree)"
|
2020-01-20 18:37:01 +01:00
|
|
|
|
2020-01-27 14:08:14 +01:00
|
|
|
plot '${FILE}' using 1:2 smooth cspline notitle lt 2 , "" using 1:2 w p lt 2 ps 1 title "${WF}"
|
|
|
|
replot '${FILE}' using 1:3 smooth cspline notitle lt 9 , "" using 1:3 w p lt 9 ps 1 title "${WF}+PBE-UEG"
|
|
|
|
replot '${FILE}' using 1:4 smooth cspline notitle lt 4 , "" using 1:4 w p lt 4 ps 1 title "${WF}+PBE-OT"
|
|
|
|
replot '${FILE}' using 1:5 smooth cspline notitle lt 8 , "" using 1:5 w p lt 8 ps 1 title "${WF}+SU-PBE-OT"
|
2020-01-20 18:37:01 +01:00
|
|
|
replot '${FILE2}' using 1:2 smooth cspline notitle lt 7 , "" using 1:2 w p lt 7 ps 1 title "Exact"
|
2020-01-27 14:08:14 +01:00
|
|
|
replot '${FILE}' using 1:3 smooth cspline notitle lt 9 , "" using 1:3 w p lt 9 ps 1 notitle
|
|
|
|
replot '${FILE}' using 1:4 smooth cspline notitle lt 4 , "" using 1:4 w p lt 4 ps 1 notitle
|
|
|
|
replot '${FILE}' using 1:5 smooth cspline notitle lt 8 , "" using 1:5 w p lt 8 ps 1 notitle
|
|
|
|
|
|
|
|
set terminal pdf enhanced\
|
|
|
|
font "Times" \
|
|
|
|
solid dashlength 1.0 linewidth 2. rounded \
|
|
|
|
size 4.0in, 3.0in
|
|
|
|
set output "${OUT}.pdf"
|
2019-10-01 19:13:31 +02:00
|
|
|
replot
|
|
|
|
|
2020-01-27 14:08:14 +01:00
|
|
|
|
2019-10-01 19:13:31 +02:00
|
|
|
EOF
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
2020-01-20 18:37:01 +01:00
|
|
|
gnuplot pouet_relat.gp
|
|
|
|
exit
|
2019-10-01 19:13:31 +02:00
|
|
|
|
|
|
|
TYPE=error
|
|
|
|
FILE=data_${METHOD}_${BASIS}E_${TYPE}
|
|
|
|
OUT=${METHOD}_${BASIS}E_${TYPE}
|
|
|
|
#lt -1
|
|
|
|
cat << EOF > pouet.gp
|
|
|
|
set xrange [:7]
|
2020-01-26 21:22:12 +01:00
|
|
|
set xlabel "Internuclear distance (bohr) "
|
|
|
|
set ylabel "Atomization energy (hartree)"
|
2020-01-27 14:08:14 +01:00
|
|
|
set format y "%.3f"
|
|
|
|
set format x "%.1f"
|
|
|
|
set grid
|
|
|
|
set title "$BASIS2"
|
|
|
|
plot '${FILE}' using 1:2 smooth cspline notitle lt 2 , "" using 1:2 w p lt 2 ps 1 title "${WF}"
|
|
|
|
replot '${FILE}' using 1:5 smooth cspline notitle lt 8 , "" using 1:5 w p lt 8 ps 1 title "${WF}+PBEot{/Symbol z}"
|
|
|
|
replot '${FILE}' using 1:4 smooth cspline notitle lt 4 , "" using 1:4 w p lt 4 ps 1 title "${WF}+PBEot"
|
|
|
|
replot '${FILE}' using 1:3 smooth cspline notitle lt 9 , "" using 1:3 w p lt 9 ps 1 title "${WF}+PBE"
|
|
|
|
|
|
|
|
set terminal pdf enhanced\
|
|
|
|
font "Times" \
|
|
|
|
solid dashlength 1.0 linewidth 2. rounded \
|
|
|
|
size 4.0in, 3.0in
|
|
|
|
set output "${OUT}.pdf"
|
2019-10-01 19:13:31 +02:00
|
|
|
replot
|
|
|
|
|
2020-01-27 14:08:14 +01:00
|
|
|
|
2019-10-01 19:13:31 +02:00
|
|
|
EOF
|
|
|
|
|
|
|
|
gnuplot pouet.gp
|
|
|
|
|