ElectromagneticSourceAssignment Properties
An ElectromagneticSourceAssignment
object describes the source
of an electromagnetic model. An ElectromagneticModel
object contains a vector of ElectromagneticSourceAssignment
objects in its Sources.SourceAssignments
property.
Create electromagnetic source assignments for your model using the electromagneticSource
function.
Properties
RegionType
— Geometric region type
"Face"
for a 2-D model | "Cell"
for a 3-D model
Geometric region type, specified as "Face"
for a 2-D model or
"Cell"
for a 3-D model.
Data Types: char
| string
RegionID
— Region ID
vector of positive integers
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
ChargeDensity
— Charge density
real number | function handle
Charge density, specified as a real number or a function handle. Use a function handle to specify a charge density that depends on the coordinates.
Data Types: double
| function_handle
CurrentDensity
— Current density
real number | column vector | function handle | ConductionResults
object
Current density, specified as a real number, a column vector, a function handle, or
a ConductionResults
object. Use a function handle to specify a
current density that depends on the coordinates.
For magnetostatic analysis, the current density must be a real number for a 2-D
model, a column vector of three elements for a 3-D model, a function handle for a 2-D or
3-D model, or a ConductionResults
object for a 3-D model.
For harmonic analysis with the electric field type, the current density must be 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 for a 2-D or 3-D model. The toolbox multiplies the
specified current density value by -i
and by frequency.
For harmonic analysis with the magnetic field type, the current density must be a scalar for a 2-D model, a column vector of three elements for a 3-D model, or a function handle for a 2-D or 3-D model. The toolbox uses the curl of the specified current density.
Data Types: double
| function_handle
Magnetization
— Magnetization
column vector | function handle
Magnetization, 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 magnetization that depends on the coordinates.
Data Types: double
| function_handle
Version History
Introduced in R2021a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)