Main Content

ElectromagneticBCAssignment Properties

Boundary condition for electromagnetic model

AnElectromagneticBCAssignmentobject specifies the type of PDE boundary condition on a set of geometry boundaries. AnElectromagneticModelobject contains an array ofElectromagneticBCAssignmentobjects in itsBoundaryConditions.BCAssignmentsproperty.

Specify boundary conditions for your model using theelectromagneticBCfunction.

Properties

expand all

Geometric region type, returned as'Edge'for a 2-D model or'Face'for a 3-D model.

Data Types:char|string

Region ID, returned as a vector of positive integers. Find the edge or face IDs by usingpdegplotwith the'EdgeLabels'or'FaceLabels'name-value argument set to'on'.

Data Types:double

Voltage boundary condition, returned as a real number or a function handle. Use a function handle to specify a voltage that depends on the coordinates.

Data Types:double|function_handle

Magnetic potential boundary condition, returned as a real number or a function handle. Use a function handle to specify a magnetic potential that depends on the coordinates.

Data Types:double|function_handle

Vectorized function evaluation, returned as'off'or'on'. This property applies when you pass a function handle as an argument. To save time in the function handle evaluation, specify'on'if your function handle computes in a vectorized fashion. SeeVectorization. For details on vectorized function evaluation, seeNonconstant Boundary Conditions.

Data Types:char|string

Introduced in R2021a