Mass parameter (mu) incorporated
This commit is contained in:
parent
2067a01f42
commit
93fa3c4dc7
|
|
@ -14,7 +14,7 @@ n_max = 20
|
||||||
ns = collect(0:n_max)
|
ns = collect(0:n_max)
|
||||||
ls = fill(l, n_max + 1)
|
ls = fill(l, n_max + 1)
|
||||||
|
|
||||||
T = 1/μ * sp_T_matrix(ns, ls; ω=ω)
|
T = sp_T_matrix(ns, ls; ω=ω, μ=μ)
|
||||||
V = V1 .* V_Gaussian.(R1, l, ns, transpose(ns); ω=ω) + V2 .* V_Gaussian.(R2, l, ns, transpose(ns); ω=ω)
|
V = V1 .* V_Gaussian.(R1, l, ns, transpose(ns); ω=ω) + V2 .* V_Gaussian.(R2, l, ns, transpose(ns); ω=ω)
|
||||||
|
|
||||||
n_EC = 8
|
n_EC = 8
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ end
|
||||||
|
|
||||||
get_V_matrix(V_l, ls, ns) = throw("unimplemented")
|
get_V_matrix(V_l, ls, ns) = throw("unimplemented")
|
||||||
|
|
||||||
function sp_T_matrix(ns, ls; ω=1.0)
|
function sp_T_matrix(ns, ls; ω=1.0, μ=1.0)
|
||||||
mat = zeros(length(ns), length(ns))
|
mat = zeros(length(ns), length(ns))
|
||||||
for idx in CartesianIndices(mat)
|
for idx in CartesianIndices(mat)
|
||||||
(i, j) = Tuple(idx)
|
(i, j) = Tuple(idx)
|
||||||
|
|
@ -70,7 +70,7 @@ function sp_T_matrix(ns, ls; ω=1.0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return ω .* mat
|
return (ω / μ) .* mat
|
||||||
end
|
end
|
||||||
|
|
||||||
get_H_matrix(V_l, ns, ls) = get_T_matrix(ns, ls) + get_V_matrix(V_l, ns, ls)
|
get_H_matrix(V_l, ns, ls) = get_T_matrix(ns, ls) + get_V_matrix(V_l, ns, ls)
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ n_max = 15
|
||||||
ns = collect(0:n_max)
|
ns = collect(0:n_max)
|
||||||
ls = fill(l, n_max + 1)
|
ls = fill(l, n_max + 1)
|
||||||
|
|
||||||
T = 1/μ * sp_T_matrix(ns, ls; ω=ω)
|
T = sp_T_matrix(ns, ls; ω=ω, μ=μ)
|
||||||
V = V1 .* V_Gaussian.(R1, l, ns, transpose(ns); ω=ω) + V2 .* V_Gaussian.(R2, l, ns, transpose(ns); ω=ω)
|
V = V1 .* V_Gaussian.(R1, l, ns, transpose(ns); ω=ω) + V2 .* V_Gaussian.(R2, l, ns, transpose(ns); ω=ω)
|
||||||
|
|
||||||
cs = range(1.35, 0.9, 5)
|
cs = range(1.35, 0.9, 5)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue