Initial commit

This commit is contained in:
2020-11-25 01:10:59 -05:00
commit 19042107cb
25 changed files with 1843 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
PROJECTNAME=energy16 energy1
SIMPLEQ=simpleq
DATS=simpleq16.dat mueq16.dat bigeq16.dat simpleq1.dat mueq1.dat bigeq1.dat
PDFS=$(addsuffix .pdf, $(PROJECTNAME))
TEXS=$(addsuffix .tikz.tex, $(PROJECTNAME))
all: $(PDFS)
$(PDFS): $(DATS)
gnuplot $(patsubst %.pdf, %.gnuplot, $@) > $(patsubst %.pdf, %.tikz.tex, $@)
pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
simpleq16.dat:
julia $(SIMPLEQ)/main.jl -p "tolerance=1e-11;order=100;maxiter=100;v_a=16" -M simpleq energy_rho > $@
mueq16.dat:
julia $(SIMPLEQ)/main.jl -p "tolerance=1e-11;order=100;maxiter=100;v_a=16" -M mueq energy_rho > $@
bigeq16.dat:
julia -p 8 $(SIMPLEQ)/main.jl -p "eq=bigeq;N=12;P=8;v_a=16" -M medeq energy_rho > $@
simpleq1.dat:
julia $(SIMPLEQ)/main.jl -p "tolerance=1e-11;order=100;maxiter=100;v_a=1" -M simpleq energy_rho > $@
mueq1.dat:
julia $(SIMPLEQ)/main.jl -p "tolerance=1e-11;order=100;maxiter=100;v_a=1" -M mueq energy_rho > $@
bigeq1.dat:
julia -p 8 $(SIMPLEQ)/main.jl -p "eq=bigeq;N=12;P=8;v_a=1" -M medeq energy_rho > $@
install: $(PDFS)
cp $^ $(INSTALLDIR)/
clean-aux:
rm -f $(addsuffix .tikz.tex, $(PROJECTNAME))
rm -f $(addsuffix .aux, $(PROJECTNAME))
rm -f $(addsuffix .log, $(PROJECTNAME))
clean-dat:
rm -f $(DATS)
clean-tex:
rm -f $(PDFS)
clean: clean-aux clean-tex
+37
View File
@@ -0,0 +1,37 @@
set title "$v(\\mathbf x)=e^{-|\\mathbf x|}$"
set ylabel "$\\displaystyle\\frac{\\tilde e}{\\rho}$" norotate offset -1,0
set xlabel "$\\rho$"
set xtics 1e-6, 100, 100
set xtics add ("$10^{-6}$" 0.000001, "$10^{-4}$" 0.0001, "$10^{-2}$" 0.01, "$1$" 1.0, "$10^2$" 100)
unset mxtics
set xrange [0.000001:100]
set ytics 8, 1, 13
set mytics 2
set yrange [7.5:13]
# default output canvas size: 12.5cm x 8.75cm
set term lua tikz size 8,6 standalone
set key bottom right box linetype rgbcolor"#999999" width 0.3 height 0.3 spacing 1.3
# set linestyle
set style line 1 linetype rgbcolor "#4169E1" linewidth 2 dashtype "."
set style line 2 linetype rgbcolor "#DC143C" linewidth 2
set style line 3 linetype rgbcolor "#32CD32" linewidth 2 dashtype "-"
set style line 4 linetype rgbcolor "#4B0082" linewidth 2
set style line 5 linetype rgbcolor "#DAA520" linewidth 2
set pointsize 1
set logscale x
plot \
"simpleq1.dat" using 1:($3<1e-5 ? ($2/$1) : 1/0) with lines ls 1 title "simple" ,\
"mueq1.dat" using 1:($3<1e-5 ? ($2/$1) : 1/0) with lines ls 3 title "med",\
"bigeq1.dat" using 1:($3<1e-5 ? ($2/$1) : 1/0) with lines ls 5 title "big",\
"2020-10-15+energy.dat" using 1:($2/$1) with points ls 2 title "QMC"
+37
View File
@@ -0,0 +1,37 @@
set title "$v(\\mathbf x)=16e^{-|\\mathbf x|}$"
set ylabel "$\\displaystyle\\frac{\\tilde e}{\\rho}$" norotate offset -1,0
set xlabel "$\\rho$"
set xtics 1e-6, 100, 100
set xtics add ("$10^{-6}$" 0.000001, "$10^{-4}$" 0.0001, "$10^{-2}$" 0.01, "$1$" 1.0, "$10^2$" 100)
unset mxtics
set xrange [0.000001:100]
set ytics 20, 40, 220
set mytics 2
set yrange [20:220]
# default output canvas size: 12.5cm x 8.75cm
set term lua tikz size 8,6 standalone
set key bottom right box linetype rgbcolor"#999999" width 0.3 height 0.3 spacing 1.3
# set linestyle
set style line 1 linetype rgbcolor "#4169E1" linewidth 2 dashtype "."
set style line 2 linetype rgbcolor "#DC143C" linewidth 2
set style line 3 linetype rgbcolor "#32CD32" linewidth 2 dashtype "-"
set style line 4 linetype rgbcolor "#4B0082" linewidth 2
set style line 5 linetype rgbcolor "#DAA520" linewidth 2
set pointsize 1
set logscale x
plot \
"simpleq16.dat" using 1:($3<1e-5 ? ($2/$1) : 1/0) with lines ls 1 title "simple",\
"mueq16.dat" using 1:($3<1e-5 ? ($2/$1) : 1/0) with lines ls 3 title "med",\
"bigeq16.dat" using 1:($3<1e-5 ? ($2/$1) : 1/0) with lines ls 5 title "big",\
"2020-08-27+16.dat" using 1:($2/$1) with points ls 2 title "QMC"