I am trying to solve a geometric problem with relation to my Schrödinger equation and its boundaries. Here is my code:
Clear["Global`*"];
m = 1;
ℏ = 1;
k = 1;
V = -k/Sqrt[1 + x^2 + y^2];
A = 8;
Δ = 10^-3;
SE[Etr_] := -ℏ^2/(2 m) \!\(
\*SubsuperscriptBox[\(∇\), \({x, y}\), \(2\)]\(ψ[x, y]\)\) +
V ψ[x, y] - Etr ψ[x, y] == 0
Ω = ImplicitRegion[x^2 + y^2 <= A^2, {x, y}];
BC = DirichletCondition[ψ[x, y] == Δ,
x^2 + y^2 == A^2];
Clear[Sol]
Sol = ParametricNDSolveValue[{SE[Etr], BC}, ψ[0,
0], {x, y} ∈ Ω, {Etr}]
Then when I insert a trial value for Etr, like so:
Sol[-0.5]
it gives a value but returns the following error:
ParametricNDSolve::femnr: "{x$54658,y$54659}\ [Element]ImplicitRegion[x$54658^2+y$54659^2<=64,{x$54658,y$54659}] is not a valid region specification."
Does anyone know how to fix this?
Sol[-0.5]
works for me, although I get the error earlier, on theParametricNDSolveValue
call. The error doesn't stop a solution being produced. You might tryNeeds["NDSolve
FEM"]; \[CapitalOmega] = ToElementMesh[ImplicitRegion[x^2 + y^2 <= A^2, {x, y}]];
and see if it works. I get no errors at any stage if I do that. $\endgroup$