ElectricCurrentDensityValue[pred,vars,pars]
表示偏微分方程的当前密度边界条件,谓词 pred 指示其适用位置,并具有模型变量 vars 和全局参数 pars.
ElectricCurrentDensityValue[pred,vars,pars,lkey]
表示电流密度边界条件,其局部参数在 pars[lkey] 中指定.
ElectricCurrentDensityValue
ElectricCurrentDensityValue[pred,vars,pars]
表示偏微分方程的当前密度边界条件,谓词 pred 指示其适用位置,并具有模型变量 vars 和全局参数 pars.
ElectricCurrentDensityValue[pred,vars,pars,lkey]
表示电流密度边界条件,其局部参数在 pars[lkey] 中指定.
更多信息
- ElectricCurrentDensityValue 指定 ElectricCurrentPDEComponent 的边界条件,并用作以下建模方程的一部分:
- ElectricCurrentDensityValue 用于对垂直于边界、进入或离开边界的电流密度
(单位为 [
])进行建模. - 正值表示流入的电流,负值表示流出的电流.
- ElectricCurrentDensityValue 模拟垂直于边界的电流密度
,其中因变量
,单位为伏特 [
],自变量
,单位为 [
]. - 稳态变量 vars 为 vars={V[x1,…,xn],{x1,…,xn}}.
- 与频率相关的变量 vars 为 vars={V[x1,…,xn],ω,{x1,…,xn}}.
- 给定垂直于边界的标量电流密度
,ElectricCurrentDensityValue 模拟: - 给定电流密度向量
[
],ElectricCurrentDensityValue 模拟: - 其中
为单位法线. - 给定垂直于边界的电流
[
],ElectricCurrentDensityValue 模拟: - 其中
[
] 为边界面积. 电流自动转换为法向电流密度
. - 模型参数 pars 的指定与 ElectricCurrentPDEComponent 相同.
- 可以给出以下附加模型参数 pars:
-
参数 默认值 符号 "BoundaryUnitNormal" Automatic 
"Current" 
,电流,单位为 [
]"CurrentDensity" {0,...}
,电流密度,单位为 [
]"NormalCurrentDensity" 
,法向电流密度,单位为 [
]"Thickness" -
,厚度,单位为 [
] - 所有模型参数可能取决于空间变量
. - 在二维情况下,将考虑参数 "Thickness",以将电流
从单位 [
] 转化为 [
]. - 为了本地化模型参数,可以指定键 lkey,并将关联 pars[lkey] 中的值用于模型参数.
- 预设的电流密度边界条件可用于以下情况:
-
分析类型 是否适用 频率响应 是 静态 是 - ElectricCurrentDensityValue 运算为 NeumannValue.
- 边界谓词 pred 可以像在 NeumannValue 中一样指定.
- 如果 ElectricCurrentDensityValue 取决于在关联 pars 中指定为 …,keypi…,pivi,… 的参数
,则参数
将替换为
.
范例
打开所有单元 关闭所有单元基本范例 (3)
ElectricCurrentDensityValue[x >= 0, {V[x, y], {x, y}}, <|"NormalCurrentDensity" -> Jn|>]ElectricCurrentDensityValue[x >= 0, {V[x, y], {x, y}}, <|"CurrentDensity" -> {J0x, J0y}|>]对一根受到直流电流 (
[
]) 激励的铜线进行建模,在其左下边界应用电流密度边界条件,并在右下边界应用零电势条件.
vars = {V[x, y], {x, y}};
pars = <|"Material" -> Entity["Element", "Copper"]|>;op = ElectricCurrentPDEComponent[vars, pars];Ω = RegionUnion[Rectangle[{0, 0}, {1 / 3, 1}], Rectangle[{1 / 3, 2 / 3}, {2, 1}], Rectangle[{2 - 1 / 3, 0}, {2, 1}]];RegionPlot[Ω]Subscript[Γ, ground] = ElectricPotentialCondition[x >= 2 - 1 / 3 && y == 0, vars, pars, <|"ElectricPotential" -> 0|>];Subscript[Γ, source] = ElectricCurrentDensityValue[x <= 1 / 3 && y == 0, vars, pars, <|"Current" -> 1|>];Vfun = NDSolveValue[{op == Subscript[Γ, source], Subscript[Γ, ground]}, V, {x, y}∈Ω]DensityPlot[Vfun[x, y], {x, y}∈Ω, ...]范围 (6)
ElectricCurrentDensityValue[x == 0, {V[x, y, z], {x, y, z}}, <|"CurrentDensity" -> {10, 0, 0}|>]ElectricCurrentDensityValue[x == 0, {V[x, y], {x, y}}, <|"CurrentDensity" -> {10, 0}, "BoundaryUnitNormal" -> {-1, 0}|>]ElectricCurrentDensityValue[x == 0, {V[x, y, z], {x, y, z}}, <|"NormalCurrentDensity" -> Jn|>]ElectricCurrentDensityValue[x == 0, {V[x, y, z], {x, y, z}}, <|"Current" -> I0|>]ElectricCurrentDensityValue[x == 0, {V[x, y], {x, y}}, <|"ElectricalConductivity" -> σ, "Thickness" -> d|>, <|"Current" -> I0|>]ElectricCurrentDensityValue[x == 0, {V[x, y, z], ω, {x, y, z}}, <|"Current" -> (4I0 Subscript[ω, 0]/ π ω)|>]应用 (2)
三维稳态分析 (1)
建立一个铜螺旋电感器模型,该电感器在左边界以法线电流密度激励,右边界的电动势边界条件为零.
Ω = RegionUnion[Cuboid[{0, 0, 0}, {2, 1, 1}], Cuboid[{1, 1, 0}, {2, 8, 1}], Cuboid[{2, 7, 0}, {8, 8, 1}], Cuboid[{7, 7, 0}, {8, 0, 1}], Cuboid[{7, 0, 0}, {3, 1, 1}], Cuboid[{3, 1, 0}, {4, 6, 1}], Cuboid[{4, 6, 0}, {6, 5, 1}], Cuboid[{6, 5, 0}, {5, 2, 1}], Cuboid[{5, 2, 1}, {6, 3, 1.2}], Cuboid[{5, 2, 1.2}, {10, 3, 2.2}]]vars = {V[x, y, z], {x, y, z}};
pars = <|"Material" -> Entity["Element", "Copper"]|>;Subscript[Γ, source] = ElectricCurrentDensityValue[x == 0, vars, pars, <|"NormalCurrentDensity" -> 10|>];Subscript[Γ, ground] = ElectricPotentialCondition[x == 10, vars, pars];Vfun = NDSolveValue[{ElectricCurrentPDEComponent[vars, pars] == Subscript[Γ, source], Subscript[Γ, ground]}, V, {x, y, z}∈Ω]Jfield = -QuantityMagnitude[pars["Material"]["ElectricalConductivity"]] * Grad[Vfun[x, y, z], {x, y, z}];SliceDensityPlot3D[Sqrt[Total[Jfield ^ 2]], {{"XStackedPlanes", 10}, {"YStackedPlanes", 10}, {"ZStackedPlanes", 5}}, {x, y, z}∈Ω, ...]频率分析 (1)
对圆柱形电容器的介电材料进行建模,该电容器受到
[
] 的交流电 (AC ) 激励,其中在上边界设置了电流密度边界条件,该边界代表其中一个电容器电极,并且在下边界设置了零电势边界条件.
vars = {V[x, y, z], ω, {x, y, z}};f0 = 60;
T0 = 1 / f0;r0 = 0.01;
h = 0.001;
Ω = Cylinder[{{0, 0, 0}, {0, 0, h}}, r0];pars = <|"ElectricalConductivity" -> 1*^-8, "RelativePermittivity" -> 2|>;Subscript[Γ, ground] = ElectricPotentialCondition[z == 0, vars, pars];Subscript[Γ, current] = ElectricCurrentDensityValue[z == h, vars, pars, <|"Current" -> 1*^-7|>];op = ElectricCurrentPDEComponent[vars, pars];Vfun = NDSolveValue[{(op /. {ω -> 2 Pi f0}) == Subscript[Γ, current], Subscript[Γ, ground]}, V, {x, y, z}∈Ω]Vlist = Table[{t, Re[Vfun[0, 0, h] * Exp[I ω t] /. {ω -> 2 Pi f0}]}, {t, 0, 3 * T0, T0 / 100}];ListLinePlot[Vlist]技术笔记
-
▪
- 电流 ▪
- PDEModel 概览
相关指南
文本
Wolfram Research (2024),ElectricCurrentDensityValue,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ElectricCurrentDensityValue.html.
CMS
Wolfram 语言. 2024. "ElectricCurrentDensityValue." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ElectricCurrentDensityValue.html.
APA
Wolfram 语言. (2024). ElectricCurrentDensityValue. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ElectricCurrentDensityValue.html 年
BibTeX
@misc{reference.wolfram_2026_electriccurrentdensityvalue, author="Wolfram Research", title="{ElectricCurrentDensityValue}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/ElectricCurrentDensityValue.html}", note=[Accessed: 07-October-2026]}
BibLaTeX
@online{reference.wolfram_2026_electriccurrentdensityvalue, organization={Wolfram Research}, title={ElectricCurrentDensityValue}, year={2024}, url={https://reference.wolfram.com/language/ref/ElectricCurrentDensityValue.html}, note=[Accessed: 07-October-2026]}