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, specified 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, specified 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, specified 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

Surface current density boundary condition, specified as a real number. The solver uses a surface current density boundary condition for a DC conduction analysis.

Data Types: double

Region ID, specified 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, specified as "Edge" for a 2-D model or "Face" for a 3-D model.

Data Types: char | string

Vectorized function evaluation, specified 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, specified 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, specified as "absorbing". The solver uses an absorbing boundary condition for a harmonic analysis.

Data Types: char

Width of the far field absorbing region, specified 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, specified 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, specified as a nonnegative number. The solver uses an absorbing boundary condition for a harmonic analysis.

Data Types: double

Version History

Introduced in R2021a