srDFT_SC/new/H10_vdz/plots/plot.sh

117 lines
3.5 KiB
Bash
Raw Normal View History

2020-01-27 14:20:58 +01:00
#!/bin/bash
2019-10-02 18:43:27 +02:00
WF=FCI
BASIS=vdz
2020-01-27 14:20:58 +01:00
BASIS2=cc-pVDZ
2019-10-02 18:43:27 +02:00
METHOD=DFT
TYPE=relat
FILE=data_${METHOD}_${BASIS}E_${TYPE}
OUT=${METHOD}_${BASIS}E_${TYPE}
#lt -1
cat << EOF > pouet.gp
2019-10-11 18:15:50 +02:00
set yrange [:0]
2019-10-17 18:30:43 +02:00
set xrange [:3.6]
2020-01-27 17:12:00 +01:00
set key at 3.1, -0.05
2020-01-27 14:20:58 +01:00
set format y "%.2f"
set format x "%.1f"
set grid
2020-01-27 17:12:00 +01:00
set style line 12 lc rgb '#dddddd' lt 1 lw 0.5
set grid xtics mxtics ytics mytics back ls 12, ls 12
2020-01-27 18:04:38 +01:00
#set label 1 at screen 0.01, 0.03 front "a) H_{10}, $BASIS2"
2019-11-23 16:38:36 +01:00
2020-01-27 14:20:58 +01:00
set xlabel "Internuclear distance (bohr)"
2020-01-26 16:00:22 +01:00
set ylabel "Atomization energy (hartree)"
2019-11-23 16:38:36 +01:00
2020-01-27 14:20:58 +01:00
plot '${FILE}' using 1:2 smooth cspline notitle lt 2 , "" using 1:2 w p lt 2 ps 1 title "(MRCI+Q)"
replot '${FILE}' using 1:5 smooth cspline notitle lt 8 , "" using 1:5 w p lt 8 ps 1 title "(MRCI+Q)+SU-PBE-OT"
2019-11-23 16:44:02 +01:00
replot '${FILE}' using 1:6 smooth cspline notitle lt 7 , "" using 1:6 w p lt 7 ps 1 title "Exact"
2020-01-27 14:20:58 +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\
2020-01-27 17:12:00 +01:00
font "Times,16" \
2020-01-27 14:20:58 +01:00
solid dashlength 1.0 linewidth 2. rounded \
size 4.0in, 3.0in
set output "${OUT}.pdf"
2019-10-02 18:43:27 +02:00
replot
2020-01-27 14:20:58 +01:00
2019-10-02 18:43:27 +02:00
EOF
gnuplot pouet.gp
if [[ $METHOD == "DFT" ]]; then
OUT=${METHOD}_${BASIS}E_${TYPE}_zoom
cat << EOF > pouet.gp
2019-10-11 18:15:50 +02:00
set xrange [1.5:2.4]
2019-11-23 16:38:36 +01:00
set yrange [:-0.495]
2019-10-11 18:15:50 +02:00
#set yrange [-0.38:-0.2]
2020-01-27 14:20:58 +01:00
set key top center
set format y "%.2f"
set format x "%.1f"
set grid
2020-01-27 17:12:00 +01:00
set style textbox opaque noborder
set style line 12 lc rgb '#dddddd' lt 1 lw 0.5
set grid xtics mxtics ytics mytics back ls 12, ls 12
2020-01-27 18:04:38 +01:00
#set label 1 at screen 0.01, 0.03 front "b) H_{10}, $BASIS2"
2020-01-27 17:12:00 +01:00
2019-10-17 18:30:43 +02:00
2020-01-27 14:20:58 +01:00
set xlabel "Internuclear distance (bohr)"
2020-01-26 16:00:22 +01:00
set ylabel "Atomization energy (hartree)"
2019-11-23 16:38:36 +01:00
2020-01-27 14:20:58 +01:00
plot '${FILE}' using 1:2 smooth cspline notitle lt 2 , "" using 1:2 w p lt 2 ps 1 title "MRCI+Q"
replot '${FILE}' using 1:3 smooth cspline notitle lt 9 , "" using 1:3 w p lt 9 ps 1 title "(MRCI+Q)+PBE-UEG"
replot '${FILE}' using 1:4 smooth cspline notitle lt 4 , "" using 1:4 w p lt 4 ps 1 title "(MRCI+Q)+PBE-OT"
replot '${FILE}' using 1:5 smooth cspline notitle lt 8 , "" using 1:5 w p lt 8 ps 1 title "(MRCI+Q)+SU-PBE-OT"
2019-11-23 16:44:02 +01:00
replot '${FILE}' using 1:6 smooth cspline notitle lt 7 , "" using 1:6 w p lt 7 ps 1 title "Exact"
2020-01-27 14:20:58 +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: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\
2020-01-27 17:12:00 +01:00
font "Times,16" \
2020-01-27 14:20:58 +01:00
solid dashlength 1.0 linewidth 2. rounded \
size 4.0in, 3.0in
set output "${OUT}.pdf"
replot
2019-10-02 18:43:27 +02:00
EOF
fi
gnuplot pouet.gp
2020-01-27 17:12:00 +01:00
exit 0
2019-10-02 18:43:27 +02:00
TYPE=error
FILE=data_${METHOD}_${BASIS}E_${TYPE}
OUT=${METHOD}_${BASIS}E_${TYPE}
#lt -1
cat << EOF > pouet.gp
2019-11-23 16:38:36 +01:00
2020-01-27 14:20:58 +01:00
set xrange [:3.6]
set xlabel "Internuclear distance (bohr)"
2020-01-26 16:00:22 +01:00
set ylabel "Atomization energy (hartree)"
2020-01-27 14:20:58 +01:00
set format y "%.2f"
set format x "%.1f"
set grid
2020-01-27 14:40:36 +01:00
set title "H_{10}, $BASIS2"
2020-01-27 14:20:58 +01:00
plot '${FILE}' using 1:2 smooth cspline notitle lt 2 , "" using 1:2 w p lt 2 title "${WF}"
replot '${FILE}' using 1:3 smooth cspline notitle lt 8 , "" using 1:3 w p lt 8 title "${WF}+PBE"
replot '${FILE}' using 1:4 smooth cspline notitle lt 4 , "" using 1:4 w p lt 4 title "${WF}+PBEot"
2019-11-23 16:38:36 +01:00
2019-10-02 18:43:27 +02:00
2020-01-27 14:20:58 +01:00
set terminal pdf enhanced\
2020-01-27 17:12:00 +01:00
font "Times,16" \
2020-01-27 14:20:58 +01:00
solid dashlength 1.0 linewidth 2. rounded \
size 4.0in, 3.0in
set output "${OUT}.pdf"
replot
2019-10-02 18:43:27 +02:00
EOF
gnuplot pouet.gp