ElectricPotentialCondition[pred,vars,pars]
represents an electric potential surface boundary condition for PDEs with predicate pred indicating where it applies, with model variables vars and global parameters pars.
ElectricPotentialCondition[pred,vars,pars,lkey]
represents an electric potential surface boundary condition with local parameters specified in pars[lkey].
ElectricPotentialCondition
ElectricPotentialCondition[pred,vars,pars]
represents an electric potential surface boundary condition for PDEs with predicate pred indicating where it applies, with model variables vars and global parameters pars.
ElectricPotentialCondition[pred,vars,pars,lkey]
represents an electric potential surface boundary condition with local parameters specified in pars[lkey].
Details
- ElectricPotentialCondition specifies a Dirichlet boundary condition for ElectrostaticPDEComponent and ElectricCurrentPDEComponent.
- ElectricPotentialCondition specifies a boundary condition for ElectrostaticPDEComponent and ElectricCurrentPDEComponent.
- ElectricPotentialCondition is typically used to set a specific electric potential on the boundary. Common examples include capacitive devices charged by applying a voltage difference.
- ElectricPotentialCondition sets a specific electric potential on the boundary with dependent variable
and independent variables
. - Stationary variables vars are vars={V[x1,…,xn],{x1,…,xn}}.
- Frequency-dependent variables vars are vars={V[x1,…,xn],ω,{x1,…,xn}}.
- The stationary or frequency domain electric potential condition ElectricPotentialCondition model
where
[
] is a given surface potential. - The following additional model parameters pars can be given:
-
parameter default symbol "ElectricPotential" 0
, surface electric potential in [
] - Model parameters pars are specified as for ElectrostaticPDEComponent and ElectricCurrentPDEComponent.
- A prescribed electric potential condition boundary can be used with:
-
analysis type applicable Frequency Response Yes Stationary Yes - ElectricPotentialCondition evaluates to a DirichletCondition.
- The boundary predicate pred can be specified as in DirichletCondition.
- If the ElectricPotentialCondition depends on parameters
that are specified in the association pars as …,keypi…,pivi,…, the parameters
are replaced with
.
Examples
open all close allBasic Examples (3)
Set up an electric potential surface boundary condition:
ElectricPotentialCondition[x ≥ 0, {V[x, y], {x, y}}, <|"ElectricPotential" -> Subscript[V, s][x, y]|>]Set up a default electric potential surface boundary condition:
ElectricPotentialCondition[x ≥ 0, {V[x, y], {x, y}}, <||>]Compute the electric potential distribution with model variables
and parameters
with an electric potential
of
[
] at the left boundary and a ground potential at the right boundary.
Specify model variables and electrostatic parameters:
vars = {V[x], {x}};
pars = <|"RelativePermittivity" -> 2|>;Set up and solve an electrostatic PDE:
Vfun = NDSolveValue[{ElectrostaticPDEComponent[vars, pars] == 0, {ElectricPotentialCondition[x == 0, vars, pars, <|"ElectricPotential" -> 10|>], ElectricPotentialCondition[x == 1 / 5, vars, pars, <|"ElectricPotential" -> 0|>]}}, V, x∈Line[{{0}, {1 / 5}}]];Plot[Vfun[x], {x, 0, 1 / 5}, AxesLabel -> {"x", "V"}]Scope (4)
Define model variables vars for an electrostatic analysis with model parameters pars and multiple specific parameter boundary conditions:
vars = {V[x, y], {x, y}};
pars = <|"RelativePermittivity" -> 1, "BoundaryCondition1" -> <|<|"ElectricPotential" -> V1|>|>, "BoundaryCondition2" -> <|<|"ElectricPotential" -> V2|>|>|>;ElectricPotentialCondition[x == 0, vars, pars, "BoundaryCondition1"]ElectricPotentialCondition[x == 1, vars, pars, "BoundaryCondition2"]1D (1)
Compute the electric potential distribution between two parallel plates separated by a distance
[
] and positioned normal to the
axis. The left plate is maintained at a constant potential
[
], whereas the right plate is grounded,
. The region between the plates is characterized by a relative permittivity
and a uniform electron charge density
[
]. The equation to use in the model is given by:
Set up the electrostatic model variables
:
vars = {V[x], {x}};Ω = Line[{{0}, {0.08}}];Specify electrostatic model parameters:
pars = <|"RelativePermittivity" -> 1, "VolumeChargeDensity" -> -10*^-8|>;Specify the electric potential conditions:
Subscript[Γ, v] = {ElectricPotentialCondition[x == 0, vars, pars, <|"ElectricPotential" -> 1|>], ElectricPotentialCondition[x == 0.08, vars, pars]}eqn = ElectrostaticPDEComponent[vars, pars] == 0Vfun = NDSolveValue[{eqn, Subscript[Γ, v]}, V, x∈Ω]Plot[Vfun[x], x∈Ω]2D (1)
Solve for the electric scalar potential in a three-bar electric switch with an electrical conductivity of
. The equation to use in the model is given by:
Set up the electrostatic model variables
:
vars = {V[x, y], {x, y}};Ω = RegionUnion[Rectangle[{0, 2.5}, {10, 7.5}], Rectangle[{9, -2.5}, {10 + 9, 2.5}], Rectangle[{0, -7.5}, {10, -2.5}]];Specify an electrical conductivity
:
pars = <|"ElectricalConductivity" -> 6*^7|>;Specify ground potential at the lower boundary:
Subscript[Γ, ground] = ElectricPotentialCondition[y == -7.5, vars, pars, <|"ElectricPotential" -> 0|>];Specify an electric potential of
[
] at the upper boundary:
Subscript[Γ, potential] = ElectricPotentialCondition[y == 7.5, vars, pars, <|"ElectricPotential" -> 5|>];Vfun = NDSolveValue[{ElectricCurrentPDEComponent[vars, pars] == 0, Subscript[Γ, ground], Subscript[Γ, potential]}, V, {x, y}∈Ω];Compute the current density vector:
Jfield = -6*^7 * Grad[Vfun[x, y], {x, y}];Visualize the current density vector:
VectorPlot[Jfield, {x, y}∈Ω, AspectRatio -> Automatic]3D (1)
Model a simplified bushing insulator of a transformer with an electric potential condition at the inner walls, which are in contact with the high-voltage conductor, and a ground potential boundary at one of the surface plates (
). The equation to use in the model is given by:
Set up the electrostatic model variables
:
vars = {V[x, y, z], {x, y, z}};insulator = \!\(\*Graphics3DBox[«7»]\);Specify a relative permittivity
:
pars = <|"RelativePermittivity" -> 5|>;Specify a ground potential at the surface
:
Subscript[Γ, ground] = ElectricPotentialCondition[z == 0.2, vars, pars, <|"ElectricPotential" -> 0|>];Specify an electric potential of
[
] at the inner walls:
Subscript[Γ, potential] = ElectricPotentialCondition[x ^ 2 + y ^ 2 <= 0.2 ^ 2, vars, pars, <|"ElectricPotential" -> 10 ^ 3|>];eqn = ElectrostaticPDEComponent[vars, pars] == 0;Vfun = NDSolveValue[{eqn, Subscript[Γ, ground], Subscript[Γ, potential]}, V, {x, y, z}∈insulator]Legended[RegionPlot3D[insulator, ColorFunction -> Function[{x, y, z}, ColorData[{"Rainbow", MinMax[Vfun["ValuesOnGrid"]]}][Vfun[x, y, z]]], ...], BarLegend[...]]Tech Notes
Related Guides
Text
Wolfram Research (2024), ElectricPotentialCondition, Wolfram Language function, https://reference.wolfram.com/language/ref/ElectricPotentialCondition.html (updated 2024).
CMS
Wolfram Language. 2024. "ElectricPotentialCondition." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/ElectricPotentialCondition.html.
APA
Wolfram Language. (2024). ElectricPotentialCondition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ElectricPotentialCondition.html
BibTeX
@misc{reference.wolfram_2026_electricpotentialcondition, author="Wolfram Research", title="{ElectricPotentialCondition}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/ElectricPotentialCondition.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_electricpotentialcondition, organization={Wolfram Research}, title={ElectricPotentialCondition}, year={2024}, url={https://reference.wolfram.com/language/ref/ElectricPotentialCondition.html}, note=[Accessed: 13-June-2026]}