SchrodingerPDEComponent[vars,pars]
生成带有模型变量 vars 和模型参数 pars 的薛定谔偏微分方程项.
SchrodingerPDEComponent
SchrodingerPDEComponent[vars,pars]
生成带有模型变量 vars 和模型参数 pars 的薛定谔偏微分方程项.
更多信息
- 生成用于特征系统和瞬态分析的薛定谔方程. 给定变量和参数,返回一个 PDE 算符.
- SchrodingerPDEComponent 是非相对论量子力学中类似于牛顿第二定律的理论,描述了波函数在量子力学中的时间演化.
- SchrodingerPDEComponent 返回用作偏微分方程一部分的微分算子之和:
- SchrodingerPDEComponent 可用于模拟含有自变量
(单位为
)的薛定谔方程,因变量为
,单位为
,时间变量为
,单位为
. - 静态变量 vars 为 vars={Ψ[x1,…,xn],{x1,…,xn}}.
- 时间相关的模型变量 vars 为 vars={Ψ[t,x1,…,xn],t,{x1,…,xn}}.
- SchrodingerPDEComponent 基于动能项和势能项:
是约化普朗克常数,单位为
,
是薛定谔势,单位为
.- 质量
可以是各向同性、正交各向异性或各向异性的.
表示一个
x
的矩阵,由下式给出: - 对于磁场相互作用,SchrodingerPDEComponent 为:
表示粒子的电荷,单位为哥伦布
.
是磁矢势,单位为
,定义为
,其中
是磁通量密度,单位为
.- 薛定谔 PDE 项的单位为焦耳
乘以波函数的单位,
. - 可以给出以下模型参数 pars:
-
参数 默认值 符号 "AzimuthalQuantumNumber" None 
"MagneticVectorPotential" 0
,磁矢量势,单位为 
"Mass" 1
,质量,单位为 
"PlanckConstant" 
,普朗克常数,单位为 
"ReducedPlanckConstant" 
,约化普朗克常数,单位为 
"SchrodingerPotential" 0 
"RegionSymmetry" None 
"ParticleCharge" 1
,电荷,单位为 
- 所有参数可能取决于
、
和
中的任何一个,以及其他因变量. - 带单位的参数将转换为国际单位制基本单位.
- 普朗克常数和简化普朗克常数的默认值采用国际单位制基本单位.
- 参数 "RegionSymmetry" 的一个可能选择为 "Axisymmetric".
- "Axisymmetric" 区域对称性表示截断柱坐标系,其中柱坐标通过去除角度变量而简化,如下所示:
-
维度 简化 通用方程 1D 

2D 

- 如果 "RegionSymmetry" 被设为 "Axisymmetric",则
必须是各向同性的. - 对于 "AzimuthalQuantumNumber"
,SchrodingerPDEComponent 为: - With an "AzimuthalQuantumNumber"
and a "MagneticVectorPotential", the SchrodingerPDEComponent is: - 扩散分量影响 NeumannValue 的含义.
- 如果 SchrodingerPDEComponent 取决于在关联 pars 中指定为 …,keypi…,pivi,… 的参数
,则参数
将替换为
.
范例
打开所有单元 关闭所有单元基本范例 (3)
SchrodingerPDEComponent[{Ψ[x], {x}}, <||>](ℏ^2/2) /. {ℏ -> QuantityMagnitude[Quantity[1, "ReducedPlanckConstant"], "SIBase"]}为具有质量
、势能
和约化普朗克常数
的粒子指定一个偏微分方程算子:
SchrodingerPDEComponent[{Ψ[x], {x}}, <|"Mass" -> m, "SchrodingerPotential" -> V[x], "ReducedPlanckConstant" -> ℏ|>]定义一个具有约化普朗克常数
、谐振势
和质量
的哈密顿算符:
ℋ = SchrodingerPDEComponent[{Ψ[x], {x}}, <|"ReducedPlanckConstant" -> 1 / 10, "SchrodingerPotential" -> x ^ 2, "Mass" -> (1/2)|>]{vals, funs} = NDEigensystem[ℋ, Ψ[x], {x, -3, 3}, 10, Method -> {"PDEDiscretization" -> {"FiniteElement", {"MeshOptions" -> {MaxCellMeasure -> 0.05}}}}];Show[Plot[Evaluate[1 / 10 * funs + vals], {x, -3, 3}],
Plot[x ^ 2, {x, -3, 3}], ...]范围 (18)
一维 (7)
SchrodingerPDEComponent[{Ψ[x], {x}}, <||>]Activate[%]SchrodingerPDEComponent[{Ψ[x], {x}}, <|"PlanckConstant" -> h|>]SchrodingerPDEComponent[{Ψ[x], {x}}, <|"ReducedPlanckConstant" -> ℏ|>]SchrodingerPDEComponent[{Ψ[x], {x}}, <|"Mass" -> m|>]SchrodingerPDEComponent[{Ψ[x], {x}}, <|"SchrodingerPotential" -> V|>]SchrodingerPDEComponent[{Ψ[x], {x}}, <|"ReducedPlanckConstant" -> 1, "SchrodingerPotential" -> 𝒱ext + 𝒱H[ρ] + 𝒱xc[ρ]|>]定义薛定谔偏微分方程算子,其中
为约化普朗克常数,
为质量,
为磁矢量势,
为电荷:
SchrodingerPDEComponent[{Ψ[x], {x}}, <|"ReducedPlanckConstant" -> ℏ, "Mass" -> m, "MagneticVectorPotential" -> {Subscript[A, x], Subscript[A, y], Subscript[A, z]}, "ParticleCharge" -> q|>]二维 (1)
三维 (2)
为质量为
、约化普朗克常数为
及三维空间维度中势能为
的粒子指定偏微分方程算子:
SchrodingerPDEComponent[{Ψ[x, y, z], {x, y, z}}, <|"Mass" -> m, "ReducedPlanckConstant" -> ℏ, "SchrodingerPotential" -> V[x, y, z]|>]为外部磁场中电荷为
、质量为
并具有相应的磁矢量势
的粒子定义偏微分方程算子:
SchrodingerPDEComponent[{Ψ[x, y, z], {x, y, z}}, <|"ParticleCharge" -> q, "Mass" -> m, "ReducedPlanckConstant" -> ℏ, "MagneticVectorPotential" -> {Subscript[A, x], Subscript[A, y], Subscript[A, z]}|>]轴对称 (4)
为质量为
、约化普朗克常数为
和势能为
的粒子,指定轴对称与时间无关的薛定谔偏微分方程项,并简化为
:
ℋ = SchrodingerPDEComponent[{Ψ[r], {r}}, <|"RegionSymmetry" -> "Axisymmetric", "Mass" -> m, "ReducedPlanckConstant" -> ℏ|>]Activate[ℋ]为质量为
、约化普朗克常数为
和势能为
的粒子,指定轴对称与时间无关的薛定谔偏微分方程项,并简化为
:
ℋ = SchrodingerPDEComponent[{Ψ[r, z], {r, z}}, <|"RegionSymmetry" -> "Axisymmetric", "Mass" -> m, "ReducedPlanckConstant" -> ℏ|>]Activate[ℋ]使用约化普朗克常数
、质量
和方位量子数
定义偏微分方程算子:
ℋ = SchrodingerPDEComponent[{Ψ[r, z], {r, z}}, <|"ReducedPlanckConstant" -> ℏ, "Mass" -> m, "RegionSymmetry" -> "Axisymmetric", "AzimuthalQuantumNumber" -> l|>]ℋ /. {ℏ -> 1, m -> (1/2), l -> 1}Activate[ℋ]定义一个具有轴对称性、方位角量子数为
和磁矢势为
的偏微分方程算子:
SchrodingerPDEComponent[{Ψ[t, r, z], t, {r, z}}, <|"ParticleCharge" -> q, "Mass" -> m, "ReducedPlanckConstant" -> ℏ, "MagneticVectorPotential" -> {Ar, Aphi, Az}, "RegionSymmetry" -> "Axisymmetric", "AzimuthalQuantumNumber" -> l|>]与时间相关 (1)
材料对称性 (3)
SchrodingerPDEComponent[{Ψ[x, y, z], {x, y, z}}, <|"SchrodingerPotential" -> V, "Mass" -> m, "PlanckConstant" -> 1|>]定义一个偏微分方程算子,其势能为
,正交各向异性质量为
,普朗克常数为 1:
SchrodingerPDEComponent[{Ψ[x, y, z], {x, y, z}}, <|"SchrodingerPotential" -> V, "Mass" -> {Subscript[m, x], Subscript[m, y], Subscript[m, z]}, "PlanckConstant" -> 1|>]定义一个哈密顿算符,其势能为
,各向异性质量为
,普朗克常数为 1:
SchrodingerPDEComponent[{Ψ[x, y, z], {x, y, z}}, <|"SchrodingerPotential" -> V, "Mass" -> {{Subscript[m, xx], Subscript[m, xy], Subscript[m, xz]}, {Subscript[m, yx], Subscript[m, yy], Subscript[m, yz]}, {Subscript[m, zx], Subscript[m, zy], Subscript[m, zz]}}, "PlanckConstant" -> 1|>]推广和延伸 (1)
应用 (12)
计算与时间无关的薛定谔偏微分方程算子的特征系统,普朗克常数为 1,质量为 1,势能为
:
{en, funs} = NDEigensystem[{SchrodingerPDEComponent[{Ψ[x], {x}}, <|"Mass" -> 1, "PlanckConstant" -> 1, "SchrodingerPotential" -> 1 / (2π) x^2|>]}, Ψ[x], {x, -3, 3}, 4];Plot[funs, {x, -3, 3}, ...]找到具有约化普朗克常数
和分段势能的 10 个最小特征值和特征函数,其中对于
的负值,分段势能为
,对于
的正值,分段势能为
.
h = 1 / 10;
V[x_] := UnitStep[x] (2 x ^ 2) + UnitStep[-x] (x ^ 2 / 2)
ℋ = SchrodingerPDEComponent[{Ψ[x], {x}}, <|"SchrodingerPotential" -> V[x], "ReducedPlanckConstant" -> h, "Mass" -> (1/2)|>]Plot[V[x], {x, -3, 3}, ...]{vals, funs} = NDEigensystem[ℋ, Ψ[x], {x, -3, 3}, 10, Method -> {"PDEDiscretization" -> {"FiniteElement", {"MeshOptions" -> {MaxCellMeasure -> 0.05}}}}];valsShow[Plot[Evaluate[h * funs + vals], {x, -3, 3}],
Plot[V[x], {x, -3, 3}], ...]描述一个被限制在半径为
的二维圆盘内的粒子,假设具有围绕通过圆盘中心的轴对称性. 假设粒子的波函数不依赖于极坐标.
ℋ = SchrodingerPDEComponent[{Ψ[r], {r}}, <|"ReducedPlanckConstant" -> 1, "RegionSymmetry" -> "Axisymmetric"|>]R = 1;bc = DirichletCondition[Ψ[r] == 0, r == R];{en, funs} = NDEigensystem[{ℋ, bc}, Ψ[r], {r, 0, R}, 5, Method -> {"SpatialDiscretization" -> {"FiniteElement", "MeshOptions" -> {"MaxCellMeasure" -> (R/150)}}}];Table[RevolutionPlot3D[funs[[i]]^2, {r, 0, R}, ...], {i, Length[en]}]考虑一个模型,其中波函数可以通过以下方式分离:
,其中
、
和
分别是圆柱坐标系中的径向、方位角和高度坐标. 这里,
是方位角量子数.
这个特定示例考虑了一个被限制在具有无限势壁的环面内的粒子. 鉴于这些考虑,只需求解环面横截面中的
即可.
R = 4;Ω = DiscretizeRegion[Disk[{R, 0}, 1], "MaxCellMeasure" -> 0.001R];Graphics3D[{{Opacity[0.1], Torus[{0, 0, 0}, {R - 1, R + 1}]}, {MeshRegion[...]}}, Rule[...]]bc = DirichletCondition[ψ[r, z] == 0, True]创建一个辅助函数,使用偏微分方程算子找到不同方位角量子数值的六个特征态,假设在一个简化模型中,
且
,粒子在环面内的势能
:
findEigenstates[AzimuthalQuantumNumber_Integer] := Module[{en, funs, l = AzimuthalQuantumNumber},
ℋ = SchrodingerPDEComponent[{ψ[r, z], {r, z}}, <|"ReducedPlanckConstant" -> 1, "Mass" -> (1/2), "RegionSymmetry" -> "Axisymmetric", "AzimuthalQuantumNumber" -> l|>];
{en, funs} = NDEigensystem[{ℋ, bc}, ψ[r, z], {r, z}∈Ω, 6];
{l, {en, funs}}
]可以探索不同方位角量子数值下能级如何变化. 为了举例说明这一点,计算 0 到 5 之间的
的能量.
energiesVsl = Transpose[Table[{l, #}& /@ findEigenstates[l][[2, 1]], {l, -5, 5, 1}]];ListPlot[energiesVsl, ...]观察到随着
增大,能级呈非线性增长. 此外,可以注意到基态是非简并的,而第二和第三能级以及第四和第五能级是二重简并的.
要探究方位量子数对波函数的影响,可以绘制总波函数
的实部和虚部的图形. 为此,您可以选择任何
值,例如
.
{enl5, funsl5} = findEigenstates[5][[2]];Table[DensityPlot3D[# /. {r -> Sqrt[x^2 + y^2], ϕ -> ArcTan[x, y], l -> 5}, {x, -6, 6}, {y, -6, 6}, {z, -6, 6}, ...]& /@ {Re[E^-I l ϕ funsl5[[i]]], Im[E^-I l ϕ funsl5[[i]]]}, {i, Length[enl5]}]Table[DensityPlot3D[Abs[E^-I l ϕ funsl5[[i]]]^2 /. {r -> Sqrt[x^2 + y^2], ϕ -> ArcTan[x, y], l -> 5}, {x, -6, 6}, {y, -6, 6}, {z, -6, 6}, ...], {i, Length[enl5]}]可以研究量子弹球系统,特别是一个被限制在二维布尼莫维奇体育场内的粒子.
Ω = StadiumShape[{{-0.4, 0}, {0.4, 0}}, 0.4];
Graphics[{LightBlue, Ω}]Ω = DiscretizeRegion[Ω, MaxCellMeasure -> 0.01];ℋ = SchrodingerPDEComponent[{Ψ[x, y], {x, y}}, <|"ReducedPlanckConstant" -> 1, "Mass" -> (1/2)|>]bc = DirichletCondition[Ψ[x, y] == 0, True];{en, funs} = NDEigensystem[{ℋ, bc}, Ψ[x, y], {x, y}∈Ω, 100, Method -> {"Eigensystem" -> {"Arnoldi", "MaxIterations" -> 2000}}];ListPlot[en, AxesLabel -> {"n", "SubscriptBox[E, n]"}]ContourPlot[funs[[#]], {x, y}∈Ω, ...]& /@ {1, 7, 50}ℋ = SchrodingerPDEComponent[{Ψ[t, x], t, {x}}, <|"ReducedPlanckConstant" -> 1|>]solution = NDSolveValue[{ℋ == 0, Ψ[0, x] == Exp[-(x ^ 2)], Ψ[t, 5] == 0, Ψ[t, -5] == 0}, Ψ, {t, 0, 20}, {x, -5, 5}]将 Animate 应用于解:
Animate[Plot[Abs[solution[t, x]] ^ 2, {x, -5, 5}, PlotRange -> {0, 1}], {t, 0, 20, 0.01}, ...]设置一个时间相关的 Gross–Pitaevskii 偏微分方程算子:
ℋ = SchrodingerPDEComponent[{Ψ[t, x], t, {x}}, <|"ReducedPlanckConstant" -> 1, "SchrodingerPotential" -> Ψ[t, x]Ψ[t, x]|>]bc = {Ψ[t, -10] == 0, Ψ[t, 10] == 0};
ic = Ψ[0, x] == E^-x^2;sol = NDSolveValue[{ℋ == 0, ic, bc}, Ψ[t, x], {t, 0, 10}, {x, -10, 10}]DensityPlot[Abs[sol], {x, -10, 10}, {t, 0, 10}, ...]ℋ = SchrodingerPDEComponent[{Ψ[t, x], t, {x}}, <|"ReducedPlanckConstant" -> 1, "SchrodingerPotential" -> (x^2/2)|>]solution = NDSolveValue[{ℋ == 0, Ψ[0, x] == ((1/π))^(1/4)E^((-(x - 1)^2/2))}, Ψ, {t, 0, 20}, {x, -4, 4}]将势能缩小
,用 Animate 来绘制概率密度的动画:
Animate[Plot[{(Norm@solution[t, x])^2, (1/4)(x^2/2)}, {x, -4, 4}, ...], {t, 0, 20}, ...]建立一个带有约化普朗克常数和高斯势能
的时间相关薛定谔偏微分方程算子:
V[x_] := 6 E^-x^2
ℋ = SchrodingerPDEComponent[{Ψ[t, x], t, {x}}, <|"ReducedPlanckConstant" -> 1, "SchrodingerPotential" -> V[x]|>]ic = (1/2 π )^(1/(4))E^3I x - ((7 + x/2))^2;Plot[{Re[ic], Im[ic], V[x] / 6 }, {x, -12, 12}, ...]solution = NDSolveValue[{ℋ == 0, Ψ[0, x] == ic, DirichletCondition[Ψ[t, x] == 0, x == 15 || x == -15]}, Ψ, {t, 0, 5}, {x, -15, 15}, Method -> {"MethodOfLines", "SpatialDiscretization" -> {"FiniteElement", "MeshOptions" -> {"MaxCellMeasure" -> (1/30)}}}]DensityPlot[Abs[solution[t, x]], {x, -15, 15}, {t, 0, 5}, ...]Animate[Plot[{Abs[solution[t, x]], (1/6) 6 E^-x^2}, {x, -15, 15}, ...], {t, 0, 5, 0.0001}, ...]ℋ = SchrodingerPDEComponent[{Ψ[t, x, y], t, {x, y}}, <|"ReducedPlanckConstant" -> 1|>]Ω = RegionDifference[Rectangle[{-18, -18}, {18, 18}], RegionUnion[Rectangle[{-18, 0}, {-slitWidth - (separation/2), thickness}], Rectangle[{-(separation/2), 0}, {(separation/2), thickness}], Rectangle[{(separation/2) + slitWidth, 0}, {18, thickness}]]] /. {slitWidth -> 2,
separation -> 2,
thickness -> 0.25};
RegionPlot[Ω]ic = (E^2 I y + (1/18) (-x^2 - (10 + y)^2)/Sqrt[3] π^1 / 4);GraphicsRow[{DensityPlot[Re[ic], ...], DensityPlot[Im[ic], ...]}]solution = NDSolveValue[{ℋ == 0, Ψ[0, x, y] == ic, DirichletCondition[Ψ[t, x, y] == 0, True]}, Ψ, {t, 0, 8}, {x, y}∈Ω, Method -> {"MethodOfLines", "SpatialDiscretization" -> {"FiniteElement", "MeshOptions" -> {"MaxCellMeasure" -> 0.1}}}]ListAnimate[Table[DensityPlot[Abs[solution[t, x, y]], {x, y}∈ Ω, ...], {t, 0, 8, 0.1} ], ...]可以对指向
方向的磁场中的无自旋带电粒子进行建模. 粒子由初始波包描述,目标是研究磁场相互作用下概率密度的演化. 由于这是磁场中的带电粒子,因此可以预期其概率密度反映某种圆形轨迹,类似于经典带电粒子的行为. 因此,选择了非常高的磁通密度,使得回旋加速器半径达到埃的数量级.
ℏ = UnitConvert[Quantity[1, "ReducedPlanckConstant"], "SIBase"];
m = UnitConvert[Entity["Particle", "Electron"][EntityProperty["Particle", "Mass"]], "SIBase"];
B = UnitConvert[Quantity[15000, "Teslas"], "SIBase"];
e = UnitConvert[Quantity[1, "ElementaryCharge"], "SIBase"];fs = UnitConvert[Quantity[1, "Femtoseconds"], "SIBase"]//QuantityMagnitude ;粒子的初始条件将由动量为
的波包来描述,这意味着如果没有磁场相互作用,它将沿直线移动.
k = Quantity[1, "Angstroms"^-1];N[(ℏ k/e B)]A = (1/2) {0, 0, B[[1]]}⨯{x, y, z}Ω = Rectangle[{-25, -25}, {25, 25}];由于长度单位为 Angstroms (
),定义 PDE 算符时需要考虑到这一点. 因此, "ScaleUnits" -> {"Meters" -> "Angstroms"} 被用在 SchrodingerPDEComponent 的参数中.
ℋ = SchrodingerPDEComponent[{Ψ[t, x, y], t, {x, y}}, <|"ReducedPlanckConstant" -> ℏ, "Mass" -> m, "ParticleCharge" -> -e, "MagneticVectorPotential" -> A, "ScaleUnits" -> {"Meters" -> "Angstroms"}|>]ic = Ψ[0, x, y] == (E^-I k[[1]] x + (1/18) (-x^2 - (-8 + y)^2)/Sqrt[3] π^1 / 4)ℏ = UnitConvert[ℏ, QuantityUnit[ℏ] /. {"Meters" -> "Angstroms"}]使用 NeumannValue 求解透明边界条件的问题:
Monitor[solution = NDSolveValue[{ℋ == NeumannValue[QuantityMagnitude[-I (ℏ /2 m)]Ψ[t, x, y], True], ic}, Ψ, {t, 0, 18fs}, {x, y}∈Ω, Method -> {"MethodOfLines", "SpatialDiscretization" -> {"FiniteElement", "MeshOptions" -> {"MaxCellMeasure" -> 0.4}}}, EvaluationMonitor :> (monitor = Row[{"t = ", CForm[t]}])];, monitor]animation = Table[DensityPlot[Abs[solution[t, x, y]]^2, {x, -25, 25}, {y, -25, 25}, ColorFunction -> "SunsetColors", PlotPoints -> 50, PlotRange -> {0, 0.7}], {t, 0, 18fs, 0.1 fs}];ListAnimate[animation, AnimationRunning -> False, SaveDefinitions -> True]作为 Aharonov–Bohm 效应的演示,我们对在磁矢量势的影响下穿过两个狭缝的波包的散射过程进行了建模. 请注意,整个求解域的磁通密度为零,但磁矢量势却不然.
例如,域由两个狭缝和一个小孔定义,表示一个长螺线管,在其内部产生磁通密度,进而在整个域的其余部分产生磁矢量势场. 请注意,波函数不能与磁通密度非零的区域相互作用.
Ω = [image];定义变量和参数,质量为非各向同性的,其值为有重空穴 (heavy hole) 的
(一种常见的半导体材料)的有效质量. 此处,"MagneticVectorPotential" 是磁通密度为
,半径为的
的螺线管的参数,被转换为直角坐标.
vars = {Ψ[t, x, y], t, {x, y}};
pars = <|"Mass" -> {0.34, 0.7}Entity["Particle", "Electron"][EntityProperty["Particle", "Mass"]], "ReducedPlanckConstant" -> Quantity[1, "ReducedPlanckConstant"], "ParticleCharge" -> Entity["Particle", "Electron"][EntityProperty["Particle", "Charge"]], "MagneticVectorPotential" -> TransformedField[ "Polar" -> "Cartesian", {0, (Quantity[1000, "Teslas"]/2 r)}, {r, ϕ} -> {x, y}], "ScaleUnits" -> {"Meters" -> "Nanometers"}|>;
fs = QuantityMagnitude[Quantity[1, "Femtoseconds"], "SIBase"];ℋ = SchrodingerPDEComponent[vars, pars] ;solution = NDSolveValue[{ℋ == 0, Ψ[0, x, y] == E^-2 I y - (1/20)(x^2 + (y - 10)^2), DirichletCondition[Ψ[t, x, y] == 0, True]}, Ψ, {t, 0, 70fs}, {x, y}∈Ω, Method -> {"PDEDiscretization" -> {"MethodOfLines", "SpatialDiscretization" -> {"FiniteElement", "MeshOptions" -> {"MaxCellMeasure" -> 0.1}}}}]animation = Table[GraphicsRow[{DensityPlot[Abs[solution[t, x, y]]^2, {x, y}∈Ω, ...], Plot[Abs[solution[t, x, -10]]^2, {x, -25, 25}, ...]}], {t, 0, 70fs, 2 fs}];
ListAnimate[animation, AnimationRunning -> False, SaveDefinitions -> True]右侧面板显示了
处的概率密度,该点被用作参考点,并在左侧图中以虚线标示.
请注意与有磁场的情况相比 ,干涉图案是如何移动的,并且是不对称的.
属性和关系 (3)
SchrodingerPDEComponent[{Ψ[x], {x}}, <|"Mass" -> m, "ReducedPlanckConstant" -> ℏ, "SchrodingerPotential" -> V[x]|>]Activate[%]SchrodingerPDEComponent[{Ψ[x], {x}}, <|"Mass" -> Entity["Particle", "Electron"][EntityProperty["Particle", "Mass"]], "ReducedPlanckConstant" -> Quantity[1, "ReducedPlanckConstant"]|>]检查各单位制之间扩散系数的差异. 计算普朗克常数除以电子质量:
-(Quantity[1, "ReducedPlanckConstant"]^2/2 Entity["Particle", "Electron"][EntityProperty["Particle", "Mass"]])UnitConvert[%, "SIBase"]下面的例子将显示在内部接口处自动应用 BenDaniel–Duke 边界条件.
考虑一个量子阱,宽度为
,具有有限势
,波函数为
. 阱内粒子的质量为
,势垒区域中粒子的质量为
. 因此,质量是位置
的函数. 量
和
在势垒和阱相接的地方应该是连续的,在相接处应用 BenDaniel–Duke 边界条件. 事实上,将在相接处自动应用 BenDaniel–Duke 边界条件.
mw = 0.067 QuantityMagnitude[Entity["Particle", "Electron"][EntityProperty["Particle", "Mass"]], "SIBase"];
mb = 0.092 QuantityMagnitude[Entity["Particle", "Electron"][EntityProperty["Particle", "Mass"]], "SIBase"];
lw = QuantityMagnitude[100Quantity[1, "Angstroms"]];
V0 = QuantityMagnitude[250.65Quantity[1, "Millielectronvolts"], "SIBase"];
ℏ = QuantityMagnitude[Quantity[1, "ReducedPlanckConstant"], "SIBase"];注意,阱域的长度
单位是埃. 为了定义 PDE 算符,我们使用参数 "ScaleUnits"->{"Meters"->"Angstroms"}. 这会对模型其余的量进行转换,使得所有长度的单位都为埃. 这样也提高了数值解的质量.
pars = <|"ScaleUnits" -> {"Meters" -> "Angstroms"}, "Mass" -> Quantity[Piecewise[{{mb, Abs[x] >= (lw/2)}}, mw], "Kilograms"], "SchrodingerPotential" -> Quantity[Piecewise[{{V0, Abs[x] >= (lw/2)}}, 0], "Joules"], "ReducedPlanckConstant" -> Quantity[ℏ , "Joules""Seconds"]|>;ℋ = SchrodingerPDEComponent[{ψ[x], {x}}, pars];从物理上讲,对于无穷远处的所有束缚态,波函数应该衰减直至变为
. 一种实用的建模方法是在外部边界处使用
的狄利克雷边界条件,该边界条件被放置在距量子阱中心足够远的地方. 在这种情况下,
是非常合适的选择.
dc = DirichletCondition[ψ[x] == 0, x == -4lw || x == 4lw];用 NDEigensystem 在细化网格上求解特征值问题:
{en, funs} = NDEigensystem[{ℋ, dc}, ψ[x], {x, -4lw, 4lw}, 3, Method -> {"PDEDiscretization" -> {"FiniteElement", "MeshOptions" -> {"MaxCellMeasure" -> 0.01}}}];Show[Plot[Evaluate[funs], {x, -2lw, 2lw}, ...]]特征值的单位是
,鉴于单位米在参数中缩放为埃. 知道这一点后,特征值就可以转换为所需的能量单位.
en = UnitConvert[Quantity[en, "Kilograms"("Angstroms"^2/"Seconds"^2)], "Millielectronvolts"]最后,可以比较用数值法和解析法所求得的能量特征值和概率密度.
analyticEnergies = Module[...]analyticFuns[x_, n_Integer, E0_] := Set[...]Column[{GraphicsRow[
Table[Plot[{funs[[i]]^2, analyticFuns[x , i, analyticEnergies[[i]]]^2
}, {x, -lw, lw}, ...], {i, 3}]
], LineLegend[...]}, Rule[...]]en - analyticEnergies以上表明,当采用 BenDaniel–Duke 边界条件时,NDEigensystem 给出的能量特征值在数值上与薛定谔方程的解析解相同. 此外,NDEigensystem 得到的波函数与解析解等效. 之所以如此,是因为数值法确保了波函数
和量
的连续性.
可能存在的问题 (2)
对于 "Axisymmetric" 的情况,质量必须是各向同性的:
SchrodingerPDEComponent[{Ψ[r, z], {r, z}}, <|"SchrodingerPotential" -> V, "Mass" -> {{Subscript[m, rr], Subscript[m, rz]}, {Subscript[m, zr], Subscript[m, zz]}}, "ReducedPlanckConstant" -> ℏ, "RegionSymmetry" -> "Axisymmetric", "AzimuthalQuantumNumber" -> l|>]ℋ = SchrodingerPDEComponent[{Ψ[x], {x}}, <|"ReducedPlanckConstant" -> 1 / 10, "SchrodingerPotential" -> x ^ 2, "Mass" -> 1 / 2|>]NDEigenvalues[ℋ, Ψ[x], {x, -20, 20}, 4]对于时间依赖算符,人们可能预期会得到相同的结果. 设置一个含时的薛定谔算符:
ℋ = SchrodingerPDEComponent[{Ψ[t, x], t, {x}}, <|"ReducedPlanckConstant" -> 1 / 10, "SchrodingerPotential" -> x ^ 2, "Mass" -> 1 / 2|>]NDEigenvalues[ℋ == 0, Ψ[t, x], t, {x, -20, 20}, 4]之所以得到不同的结果,是因为含时项包含了虚数单位作为因子. 在内部,NDEigenvalues 实际上会将一阶时间导数替换为给定的特征值
乘以特征函数.
ℋ = SchrodingerPDEComponent[{Ψ[t, x], {x}}, <|"ReducedPlanckConstant" -> 1 / 10, "SchrodingerPotential" -> x ^ 2, "Mass" -> 1 / 2|>];
NDEigenvalues[ D[Ψ[t, x], t] == ℋ, Ψ[t, x], t, {x, -20, 20}, 4]巧妙范例 (1)
V[z_] := Piecewise[{{V00, Abs[z] >= d0 / 2}}]对于简化的薛定谔偏微分方程算子,设置变量和参数,质量和约化普朗克常数等于
:
ℋ = SchrodingerPDEComponent[{Ψ[z], {z}}, <|"SchrodingerPotential" -> V[z], "Mass" -> 1, "ReducedPlanckConstant" -> 1|>]使用 NDEigensystem 求解一维中与时间无关的薛定谔方程. 这个可视化的目的是看看势垒高度和势阱长度对本征态的影响. 你可以观察到增加势阱的长度会降低每个波函数的能量,而增加势垒高度会导致更高能量的本征值.
定义一个函数,来计算任何给定势垒高度、势阱宽度和本征态数量的本征态:
solver[V0_, d_, n_] := NDEigensystem[{With[{V00 = V0, d0 = d}, ℋ//Evaluate], DirichletCondition[Ψ[z] == 0, True]}, Ψ[z], {z, -4d, 4d}, n, Method -> {"PDEDiscretization" -> {"FiniteElement", {"MeshOptions" -> {"MaxCellMeasure" -> 0.01 d}}}}];设置 Manipulate:
Manipulate[
Block[{en, funs},
{en, funs} = solver[V0, d, n];
Row[{ListPlot[en -> en, ...], Show[Plot[With[{V00 = V0, d0 = d}, V[z]//Evaluate], {z, -2d, 2d}, ...], Plot[Evaluate[0.25 funs + en], {z, -2 d, 2 d}, Rule[...]], Rule[...]]}]
], {{V0, 0.75}, 0.5, 1}, {{d, 10}, 5, 25}, {{n, 4}, {2, 3, 4, 5}}, Rule[...]]技术笔记
-
▪
- 量子环
相关指南
-
▪
- 偏微分方程术语
文本
Wolfram Research (2024),SchrodingerPDEComponent,Wolfram 语言函数,https://reference.wolfram.com/language/ref/SchrodingerPDEComponent.html (更新于 2026 年).
CMS
Wolfram 语言. 2024. "SchrodingerPDEComponent." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2026. https://reference.wolfram.com/language/ref/SchrodingerPDEComponent.html.
APA
Wolfram 语言. (2024). SchrodingerPDEComponent. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/SchrodingerPDEComponent.html 年
BibTeX
@misc{reference.wolfram_2026_schrodingerpdecomponent, author="Wolfram Research", title="{SchrodingerPDEComponent}", year="2026", howpublished="\url{https://reference.wolfram.com/language/ref/SchrodingerPDEComponent.html}", note=[Accessed: 03-December-2026]}
BibLaTeX
@online{reference.wolfram_2026_schrodingerpdecomponent, organization={Wolfram Research}, title={SchrodingerPDEComponent}, year={2026}, url={https://reference.wolfram.com/language/ref/SchrodingerPDEComponent.html}, note=[Accessed: 03-December-2026]}