2021-11-03 18:08:46 +01:00
|
|
|
#!/bin/gnuplot
|
|
|
|
|
2022-01-28 20:50:37 +01:00
|
|
|
#set terminal pngcairo size 600,600 enhanced font 'Verdana,10'
|
2021-11-03 18:08:46 +01:00
|
|
|
#set output 'plot_pes.png'
|
2022-01-28 20:50:37 +01:00
|
|
|
#set terminal postscript eps size 5.3,3.0 enhanced color \
|
2021-11-03 18:08:46 +01:00
|
|
|
|
2022-01-28 20:50:37 +01:00
|
|
|
set terminal postscript eps size 5.3,5.3 enhanced color \
|
|
|
|
font 'Helvetica,24' linewidth 2
|
2022-01-14 17:05:13 +01:00
|
|
|
set output 'plot_pes.eps'
|
2022-01-28 20:50:37 +01:00
|
|
|
set encoding iso_8859_1
|
2022-01-14 17:05:13 +01:00
|
|
|
|
2022-01-28 20:50:37 +01:00
|
|
|
###################################################################################
|
|
|
|
###################################################################################
|
|
|
|
# SYSTEM DEPENDENT PART:
|
|
|
|
|
|
|
|
set xrange[0.7:4.0]
|
2022-01-14 17:05:13 +01:00
|
|
|
xmin=0.7
|
|
|
|
xmax=4.0
|
2022-01-28 20:50:37 +01:00
|
|
|
|
|
|
|
# VIEW 1:
|
|
|
|
#set yrange[-199.11:-198.90]
|
|
|
|
# VIEW 2:
|
|
|
|
set yrange[-109.30:-108.30]
|
2022-01-14 17:05:13 +01:00
|
|
|
ymin=-109.30
|
|
|
|
ymax=-108.30
|
2022-01-28 20:50:37 +01:00
|
|
|
###################################################################################
|
|
|
|
###################################################################################
|
2022-01-14 17:05:13 +01:00
|
|
|
|
2022-01-28 20:50:37 +01:00
|
|
|
set format y "%.1f"
|
|
|
|
|
|
|
|
if (!exists("MP_LEFT")) MP_LEFT = 0.19
|
|
|
|
if (!exists("MP_RIGHT")) MP_RIGHT = 0.98
|
|
|
|
if (!exists("MP_BOTTOM")) MP_BOTTOM = 0.10
|
|
|
|
if (!exists("MP_TOP")) MP_TOP = 0.97
|
|
|
|
if (!exists("MP_xGAP")) MP_xGAP = 0.05
|
|
|
|
if (!exists("MP_yGAP")) MP_yGAP = 0.08
|
|
|
|
|
|
|
|
set multiplot layout 1,2 rowsfirst \
|
|
|
|
margins screen MP_LEFT, MP_RIGHT, MP_BOTTOM, MP_TOP spacing screen MP_xGAP, MP_yGAP
|
|
|
|
|
|
|
|
set style line 1 dt 1 lw 3 linecolor rgb "gray60"
|
|
|
|
set style line 2 dt 1 lw 3 linecolor rgb "black"
|
|
|
|
set style line 3 dt 1 lw 3 linecolor rgb "light-red"
|
|
|
|
set style line 4 dt 1 lw 3 linecolor rgb "sea-green"
|
|
|
|
set style line 5 dt 2 lw 3 linecolor rgb "sea-green"
|
|
|
|
set style line 6 dt 1 lw 3 linecolor rgb "orange"
|
|
|
|
set style line 7 dt 2 lw 3 linecolor rgb "orange"
|
2022-02-01 20:49:03 +01:00
|
|
|
set style line 8 dt 1 lw 3 linecolor rgb "medium-blue"
|
2022-01-28 20:50:37 +01:00
|
|
|
|
|
|
|
set xlabel "Distance ({\305})"
|
2021-11-03 18:08:46 +01:00
|
|
|
set ylabel 'Energy (Hartree)'
|
|
|
|
|
2022-01-14 17:05:13 +01:00
|
|
|
# get the relation of x- and y-range
|
|
|
|
dx = xmax-xmin
|
|
|
|
dy = ymax-ymin
|
|
|
|
s1 = dx/dy
|
|
|
|
# get ratio of axes
|
2022-01-28 20:50:37 +01:00
|
|
|
#s2 = 3.0/5.3
|
|
|
|
s2 = 5.3/5.3*2
|
2022-01-14 17:05:13 +01:00
|
|
|
# helper function for getting the rotation angle of the labels in degree
|
|
|
|
deg(x) = x/pi*180.0
|
|
|
|
r(x) = deg(atan(s1*s2*x))
|
|
|
|
# function for fitting
|
|
|
|
f(x) = a*x+b
|
|
|
|
|
2022-01-28 20:50:37 +01:00
|
|
|
###################################################################################
|
|
|
|
###################################################################################
|
|
|
|
# SYSTEM DEPENDENT PART:
|
|
|
|
|
2022-01-14 17:05:13 +01:00
|
|
|
|
2022-01-28 20:50:37 +01:00
|
|
|
fit [1.7:1.8] [*:*] f(x) 'pes_rhf.dat' u 1:($2) via a,b
|
|
|
|
set label 1 'RHF' at 1.70,-108.42 rotate by r(a) center tc ls 1 #font 'Verdana,20'
|
|
|
|
fit [2.9:3.1] [*:*] f(x) 'pes_CISD.dat' u 1:($2) via a,b
|
|
|
|
set label 2 'CISD' at 3.1,-108.524 rotate by r(a) center tc ls 3 #font 'Verdana,20'
|
|
|
|
fit [2.9:3.1] [*:*] f(x) 'pes_CISDT.dat' u 1:($2) via a,b
|
|
|
|
set label 3 'CISDT' at 3.1,-108.588 rotate by r(a) center tc ls 3 #font 'Verdana,20'
|
|
|
|
fit [2.4:2.6] [*:*] f(x) 'pes_CISDTQ.dat' u 1:($2) via a,b
|
|
|
|
set label 4 'CISDTQ' at 2.6,-108.856 rotate by r(a) center tc ls 3 #font 'Verdana,20'
|
|
|
|
fit [3.6:3.8] [*:*] f(x) 'pes_CIo1.dat' u 1:($2) via a,b
|
|
|
|
set label 11 'CIo1' at 3.6,-108.326 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
2022-01-14 17:05:13 +01:00
|
|
|
fit [3.6:3.8] [*:*] f(x) 'pes_CIo2.dat' u 1:($2) via a,b
|
2022-01-28 20:50:37 +01:00
|
|
|
set label 12 'CIo2' at 3.6,-108.630 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
2022-01-14 17:05:13 +01:00
|
|
|
fit [3.6:3.8] [*:*] f(x) 'pes_CIo3.dat' u 1:($2) via a,b
|
2022-01-28 20:50:37 +01:00
|
|
|
set label 13 'CIo3' at 3.6,-108.834 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
2022-01-14 17:05:13 +01:00
|
|
|
fit [3.0:4.0] [*:*] f(x) 'pes_CIo4.dat' u 1:($2) via a,b
|
2022-01-28 20:50:37 +01:00
|
|
|
set label 14 'CIo4' at 3.6,-108.921 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
2022-01-14 17:05:13 +01:00
|
|
|
fit [3.0:4.0] [*:*] f(x) 'pes_fci.dat' u 1:($2) via a,b
|
|
|
|
set label 20 'FCI' at 3.7,-108.980 rotate by r(a) center tc ls 2 #font 'Verdana,20'
|
|
|
|
|
2022-01-28 20:50:37 +01:00
|
|
|
plot 'pes_rhf.dat' w l ls 1 notitle, \
|
|
|
|
'pes_CISD.dat' w l ls 3 notitle, \
|
|
|
|
'pes_CISDT.dat' w l ls 3 notitle, \
|
|
|
|
'pes_CISDTQ.dat' w l ls 3 notitle, \
|
2022-02-01 20:49:03 +01:00
|
|
|
'pes_s0.dat' w l ls 8 notitle, \
|
|
|
|
'pes_s2.dat' w l ls 8 notitle, \
|
|
|
|
'pes_s4.dat' w l ls 8 notitle, \
|
2022-01-28 20:50:37 +01:00
|
|
|
'pes_CIo1.dat' w l ls 4 notitle, \
|
2021-11-03 18:08:46 +01:00
|
|
|
'pes_CIo1.5.dat' w l ls 5 notitle, \
|
|
|
|
'pes_CIo2.dat' w l ls 4 notitle, \
|
|
|
|
'pes_CIo2.5.dat' w l ls 5 notitle, \
|
|
|
|
'pes_CIo3.dat' w l ls 4 notitle, \
|
|
|
|
'pes_CIo3.5.dat' w l ls 5 notitle, \
|
|
|
|
'pes_CIo4.dat' w l ls 4 notitle, \
|
2022-01-28 20:50:37 +01:00
|
|
|
'pes_fci.dat' w l ls 2 notitle
|
|
|
|
|
|
|
|
unset label
|
|
|
|
unset ylabel
|
|
|
|
set format y ""
|
|
|
|
|
|
|
|
a=0; b=0
|
|
|
|
|
|
|
|
fit [1.7:1.8] [*:*] f(x) 'pes_rhf.dat' u 1:($2) via a,b
|
|
|
|
set label 1 'RHF' at 1.70,-108.42 rotate by r(a) center tc ls 1 #font 'Verdana,20'
|
|
|
|
fit [2.9:3.1] [*:*] f(x) 'pes_CISD.dat' u 1:($2) via a,b
|
|
|
|
set label 2 'ooCISD' at 3.0,-108.53 rotate by r(a) center tc ls 3 #font 'Verdana,20'
|
|
|
|
fit [3.6:3.8] [*:*] f(x) 'pes_ooCIo1.dat' u 1:($2) via a,b
|
|
|
|
set label 11 'ooCIo1' at 3.5,-108.325 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
|
|
|
fit [3.6:3.8] [*:*] f(x) 'pes_ooCIo2.dat' u 1:($2) via a,b
|
|
|
|
set label 12 'ooCIo2' at 3.5,-108.644 rotate by r(a) center tc ls 4 #font 'Verdana,20'
|
|
|
|
fit [3.0:4.0] [*:*] f(x) 'pes_fci.dat' u 1:($2) via a,b
|
|
|
|
set label 20 'FCI' at 3.7,-108.980 rotate by r(a) center tc ls 2 #font 'Verdana,20'
|
|
|
|
|
|
|
|
plot 'pes_rhf.dat' w l ls 1 notitle, \
|
|
|
|
'pes_ooCISD.dat' w l ls 3 notitle, \
|
|
|
|
'pes_ooCIo1.dat' w l ls 4 notitle, \
|
|
|
|
'pes_ooCIo2.dat' w l ls 4 notitle, \
|
|
|
|
'pes_fci.dat' w l ls 2 notitle
|
|
|
|
# 'pes_ooCIo1.5.dat' w l ls 5 notitle, \
|
|
|
|
# 'pes_ooCIo2.5.dat' w l ls 5 notitle, \
|
|
|
|
|
|
|
|
###################################################################################
|
|
|
|
###################################################################################
|
|
|
|
|