162 lines
6.0 KiB
Gnuplot
162 lines
6.0 KiB
Gnuplot
#!/bin/gnuplot
|
|
|
|
#set terminal pngcairo size 600,600 enhanced font 'Verdana,10'
|
|
#set output 'plot_pes.png'
|
|
#set terminal postscript eps size 5.3,3.0 enhanced color \
|
|
|
|
#set terminal postscript eps size 5.3,5.3 enhanced color \
|
|
# font 'Helvetica,24' linewidth 2
|
|
#set output 'fit_eq.eps'
|
|
set encoding iso_8859_1
|
|
|
|
###################################################################################
|
|
###################################################################################
|
|
# SYSTEM DEPENDENT PART:
|
|
xmin=2.30
|
|
xmax=2.80
|
|
|
|
set xrange[2.0:3.0]
|
|
|
|
# VIEW 1:
|
|
#set yrange[-2.3:-1.7]
|
|
#set yrange[-2.3:-2.1]
|
|
###################################################################################
|
|
###################################################################################
|
|
|
|
set format y "%.1f"
|
|
|
|
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"
|
|
set style line 9 dt 1 lw 1 linecolor rgb "purple"
|
|
|
|
set xlabel "Distance (a_{0})"
|
|
set ylabel 'Energy (Hartree)'
|
|
|
|
# function for fitting
|
|
#
|
|
f0(x) = D0*(1-exp(-a0*(x-xe0)))**2+C0
|
|
D0=0.30; a0=1.0; xe0=2.55; C0=-78.0
|
|
fit [xmin:xmax] [*:*] f0(x) 'pes_fci.dat' u 1:($2) via D0,a0,xe0,C0
|
|
#
|
|
f1(x) = D1*(1-exp(-a1*(x-xe1)))**2+C1
|
|
D1=0.30; a1=1.0; xe1=2.55; C1=-78.0
|
|
fit [xmin:xmax] [*:*] f1(x) 'pes_rhf.dat' u 1:($2) via D1,a1,xe1,C1
|
|
#
|
|
f2(x) = D2*(1-exp(-a2*(x-xe2)))**2+C2
|
|
D2=0.30; a2=1.0; xe2=2.55; C2=-78.0
|
|
fit [xmin:xmax] [*:*] f2(x) 'pes_CISD.dat' u 1:($2) via D2,a2,xe2,C2
|
|
#
|
|
f3(x) = D3*(1-exp(-a3*(x-xe3)))**2+C3
|
|
D3=0.30; a3=1.0; xe3=2.55; C3=-78.0
|
|
fit [xmin:xmax] [*:*] f3(x) 'pes_CISDT.dat' u 1:($2) via D3,a3,xe3,C3
|
|
#
|
|
f4(x) = D4*(1-exp(-a4*(x-xe4)))**2+C4
|
|
D4=0.30; a4=1.0; xe4=2.55; C4=-78.0
|
|
fit [xmin:xmax] [*:*] f4(x) 'pes_CISDTQ.dat' u 1:($2) via D4,a4,xe4,C4
|
|
#
|
|
f5(x) = D5*(1-exp(-a5*(x-xe5)))**2+C5
|
|
D5=0.30; a5=1.0; xe5=2.55; C5=-78.0
|
|
fit [xmin:xmax] [*:*] f5(x) 'pes_CIo1.dat' u 1:($2) via D5,a5,xe5,C5
|
|
#
|
|
f6(x) = D6*(1-exp(-a6*(x-xe6)))**2+C6
|
|
D6=0.30; a6=1.0; xe6=2.55; C6=-78.0
|
|
fit [xmin:xmax] [*:*] f6(x) 'pes_CIo1.5.dat' u 1:($2) via D6,a6,xe6,C6
|
|
#
|
|
f7(x) = D7*(1-exp(-a7*(x-xe7)))**2+C7
|
|
D7=0.30; a7=1.0; xe7=2.55; C7=-78.0
|
|
fit [xmin:xmax] [*:*] f7(x) 'pes_CIo2.dat' u 1:($2) via D7,a7,xe7,C7
|
|
#
|
|
f8(x) = D8*(1-exp(-a8*(x-xe8)))**2+C8
|
|
D8=0.30; a8=1.0; xe8=2.55; C8=-78.0
|
|
fit [xmin:xmax] [*:*] f8(x) 'pes_CIo2.5.dat' u 1:($2) via D8,a8,xe8,C8
|
|
#
|
|
f9(x) = D9*(1-exp(-a9*(x-xe9)))**2+C9
|
|
D9=0.30; a9=1.0; xe9=2.55; C9=-78.0
|
|
fit [xmin:xmax] [*:*] f9(x) 'pes_CIo3.dat' u 1:($2) via D9,a9,xe9,C9
|
|
#
|
|
f10(x) = D10*(1-exp(-a10*(x-xe10)))**2+C10
|
|
D10=0.30; a10=1.0; xe10=2.55; C10=-78.0
|
|
fit [xmin:xmax] [*:*] f10(x) 'pes_CIo3.5.dat' u 1:($2) via D10,a10,xe10,C10
|
|
#
|
|
f11(x) = D11*(1-exp(-a11*(x-xe11)))**2+C11
|
|
D11=0.30; a11=1.0; xe11=2.55; C11=-78.0
|
|
fit [xmin:xmax] [*:*] f11(x) 'pes_CIo4.dat' u 1:($2) via D11,a11,xe11,C11
|
|
#
|
|
f12(x) = D12*(1-exp(-a12*(x-xe12)))**2+C12
|
|
D12=0.30; a12=1.0; xe12=2.55; C12=-78.0
|
|
fit [xmin:xmax] [*:*] f12(x) 'pes_ooCISD.dat' u 1:($2) via D12,a12,xe12,C12
|
|
#
|
|
#f13(x) = D13*(1-exp(-a13*(x-xe13)))**2+C13
|
|
#D13=0.30; a13=1.0; xe13=2.55; C13=-78.0
|
|
#fit [xmin:xmax] [*:*] f13(x) 'pes_ooCISDT.dat' u 1:($2) via D13,a13,xe13,C13
|
|
#
|
|
f14(x) = D14*(1-exp(-a14*(x-xe14)))**2+C14
|
|
D14=0.30; a14=1.0; xe14=2.55; C14=-78.0
|
|
fit [xmin:xmax] [*:*] f14(x) 'pes_ooCIo1.dat' u 1:($2) via D14,a14,xe14,C14
|
|
#
|
|
f15(x) = D15*(1-exp(-a15*(x-xe15)))**2+C15
|
|
D15=0.30; a15=1.0; xe15=2.55; C15=-78.0
|
|
fit [xmin:xmax] [*:*] f15(x) 'pes_ooCIo1.5.dat' u 1:($2) via D15,a15,xe15,C15
|
|
#
|
|
#f16(x) = D16*(1-exp(-a16*(x-xe16)))**2+C16
|
|
#D16=0.30; a16=1.0; xe16=2.55; C16=-78.0
|
|
#fit [xmin:xmax] [*:*] f16(x) 'pes_ooCIo2.dat' u 1:($2) via D16,a16,xe16,C16
|
|
#
|
|
#f17(x) = D17*(1-exp(-a17*(x-xe17)))**2+C17
|
|
#D17=0.30; a17=1.0; xe17=2.55; C17=-78.0
|
|
#fit [xmin:xmax] [*:*] f17(x) 'pes_ooCIo2.5.dat' u 1:($2) via D17,a17,xe17,C17
|
|
#
|
|
#f18(x) = D18*(1-exp(-a18*(x-xe18)))**2+C18
|
|
#D18=0.30; a18=1.0; xe18=2.55; C18=-78.0
|
|
#fit [xmin:xmax] [*:*] f18(x) 'pes_ooCIo3.dat' u 1:($2) via D18,a18,xe18,C18
|
|
|
|
###################################################################################
|
|
###################################################################################
|
|
# SYSTEM DEPENDENT PART:
|
|
|
|
plot 'pes_rhf.dat' w lp ls 1 notitle, \
|
|
'pes_CISD.dat' w lp ls 3 notitle, \
|
|
'pes_CISDT.dat' w lp ls 3 notitle, \
|
|
'pes_CISDTQ.dat' w lp ls 3 notitle, \
|
|
'pes_CIo1.dat' w lp ls 4 notitle, \
|
|
'pes_CIo1.5.dat' w lp ls 5 notitle, \
|
|
'pes_CIo2.dat' w lp ls 4 notitle, \
|
|
'pes_CIo2.5.dat' w lp ls 5 notitle, \
|
|
'pes_CIo3.dat' w lp ls 4 notitle, \
|
|
'pes_CIo3.5.dat' w lp ls 5 notitle, \
|
|
'pes_CIo4.dat' w lp ls 4 notitle, \
|
|
'pes_ooCISD.dat' w lp ls 3 notitle, \
|
|
'pes_ooCIo1.dat' w lp ls 4 notitle, \
|
|
'pes_ooCIo1.5.dat' w lp ls 5 notitle, \
|
|
'pes_ooCIo2.dat' w lp ls 4 notitle, \
|
|
'pes_fci.dat' w lp ls 2 notitle, \
|
|
[xmin:xmax] f0(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f1(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f2(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f3(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f4(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f5(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f6(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f7(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f8(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f9(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f10(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f11(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f12(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f14(x) w l ls 9 notitle, \
|
|
[xmin:xmax] f15(x) w l ls 9 notitle#, \
|
|
# [xmin:xmax] f13(x) w l ls 9 notitle, \
|
|
# [xmin:xmax] f16(x) w l ls 9 notitle, \
|
|
# [xmin:xmax] f17(x) w l ls 9 notitle, \
|
|
# [xmin:xmax] f18(x) w l ls 9 notitle#, \
|
|
|
|
###################################################################################
|
|
###################################################################################
|
|
|
|
pause -1
|