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'.

Data Types: char | string

Face ID, specified as a vector of positive integers. Find the face IDs by using pdegplot with the 'FaceLabels' 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 space or solution.

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 space or solution.

Data Types: double | function_handle

Introduced in R2021a