Main Content

ElectromagneticSourceAssignment Properties

Electromagnetic source assignments

An ElectromagneticSourceAssignment object describes the material properties of an electromagnetic model. An ElectromagneticModel container has a vector of ElectromagneticSourceAssignment objects in its Sources.SourceAssignments property.

Create material property assignments for your electromagnetic model using the electromagneticSource function.

Properties

expand all

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

Data Types: char | string

Region ID, specified as a vector of positive integers. Find the face or cell IDs by using pdegplot with the 'FaceLabels' or 'CellLabels' name-value argument set to 'on'.

Data Types: double

Charge density, returned as a real number for a constant charge density or a function handle for a charge density that depends on the coordinates.

Data Types: double | function_handle

Current density, returned as a real number for a constant current density or a function handle for a current density that depends on the coordinates.

Data Types: double | function_handle

Introduced in R2021a