Main Content

ElectromagneticBCAssignment Properties

Electromagnetic boundary condition assignments

An ElectromagneticBCAssignment object specifies the type of PDE boundary condition on a set of geometry boundaries. An ElectromagneticModel object contains an array of ElectromagneticBCAssignment objects in its BoundaryConditions.BCAssignments property.

Create boundary condition assignments for your electromagnetic model using the electromagneticBC function.

Properties

expand all

Electric field boundary condition, returned as a column vector of two elements for a 2-D model, a column vector of three elements for a 3-D model, or a function handle. Use a function handle to specify an electric field that depends on the coordinates.

The solver uses an electric field boundary condition for a harmonic analysis with the electric field type.

Data Types: double | function_handle

Magnetic field boundary condition, returned as a column vector of two elements for a 2-D model, a column vector of three elements for a 3-D model, or a function handle. Use a function handle to specify a magnetic field that depends on the coordinates.

The solver uses a magnetic field boundary condition for a harmonic analysis with the magnetic field type.

Data Types: double | function_handle

Magnetic potential boundary condition, returned as a real number for a 2-D model, a column vector of three elements for a 3-D model, or a function handle. Use a function handle to specify a magnetic potential that depends on the coordinates.

The solver uses a magnetic potential boundary condition for a magnetostatic analysis.

Data Types: double | function_handle

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

Data Types: double

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

Data Types: char | string

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. See Vectorization. For details on vectorized function evaluation, see Nonconstant Boundary Conditions.

Data Types: char | string

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.

The solver uses a voltage boundary condition for an electrostatic analysis.

Data Types: double | function_handle

Absorbing boundary condition, returned as "absorbing". The solver uses an absorbing boundary condition for a harmonic analysis.

Data Types: char

Width of the far field absorbing region, returned as a nonnegative number. The solver uses an absorbing boundary condition for a harmonic analysis.

Data Types: double

Scaling parameter defining the attenuation rate of the waves entering the absorbing region, returned as a nonnegative number. The solver uses an absorbing boundary condition for a harmonic analysis.

Data Types: double

Exponent defining the attenuation rate of the waves entering the absorbing region, returned as a nonnegative number. The solver uses an absorbing boundary condition for a harmonic analysis.

Data Types: double

Version History

Introduced in R2021a