From cbd046060016ab6e14073f93a5c6f0cf4be2cd05 Mon Sep 17 00:00:00 2001 From: ysyapa Date: Mon, 7 Aug 2023 19:46:19 +0000 Subject: [PATCH] Chose potential for new paper --- ComplexScaling-FV.jl | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ComplexScaling-FV.jl diff --git a/ComplexScaling-FV.jl b/ComplexScaling-FV.jl new file mode 100644 index 0000000..032b5a9 --- /dev/null +++ b/ComplexScaling-FV.jl @@ -0,0 +1,28 @@ +include("Hamiltonian.jl") +mode = cpu_tensor +T = Float32 # single-precision mode + +using Plots + +V_gauss(r2) = + -10 * exp(-(sqrt(r2)) ^ 2) + +d = 3 +n = 2 +N = 32 +L = 16 +ϕ = pi/5 + +s = system{T}(d, n, N, L) +H = Hamiltonian{T}(s, V_gauss, ϕ, 0, mode) +@time evals, _, info = eig(H, 20) + +print(info.numops, " operations") +display(evals) + +scatter(real.(evals), imag.(evals); legend=false) +xlabel!("Re E") +ylabel!("Im E") +xlims!(0, 0.5) +ylims!(-0.5, 0) +savefig("temp/ComplexScaling-FV.png") \ No newline at end of file