electromagneticBC
Apply boundary conditions to electromagnetic model
Syntax
Description
electromagneticBC(
adds a voltage boundary condition to emagmodel
,RegionType
,RegionID
,"Voltage",V
)emagmodel
. The boundary
condition applies to regions of type RegionType
with ID numbers in
RegionID
. The solver uses a voltage boundary condition for an
electrostatic analysis.
electromagneticBC(
adds a magnetic potential boundary condition to emagmodel
,RegionType
,RegionID
,"MagneticPotential",A
)emagmodel
. The
boundary condition applies to regions of type RegionType
with ID
numbers in RegionID
. The solver uses a magnetic potential boundary
condition for a magnetostatic analysis.
electromagneticBC(
adds an electric field boundary condition to emagmodel
,RegionType
,RegionID
,"ElectricField",E
)emagmodel
. The boundary
condition applies to regions of type RegionType
with ID numbers in
RegionID
. The solver uses an electric field boundary condition for
a harmonic analysis with the electric field type.
electromagneticBC(
adds a magnetic field boundary condition to emagmodel
,RegionType
,RegionID
,"MagneticField",H
)emagmodel
. The boundary
condition applies to regions of type RegionType
with ID numbers in
RegionID
. The solver uses a magnetic field boundary condition for a
harmonic analysis with the magnetic field type.
electromagneticBC(
adds an absorbing boundary condition to emagmodel
,RegionType
,RegionID
,"FarField","absorbing","Thickness",h
)emagmodel
and specifies the
thickness of the absorbing region. The boundary condition applies to regions of type
RegionType
with ID numbers in RegionID
. The
solver uses an absorbing boundary condition for a harmonic analysis.
electromagneticBC(___,"Vectorized","on")
uses
vectorized function evaluation when you pass a function handle as an argument. If your
function handle computes in a vectorized fashion, then using this argument saves time. For
details on this evaluation, see More About and Vectorization.
Use this syntax with any of the input argument combinations in the previous syntaxes.