ElectromagneticBCAssignment Properties
Domain-specific electromagnetic workflow is not recommended. New features might not be compatible with this workflow. For help migrating your existing code to the unified finite element workflow, see Migration from Domain-Specific to Unified Workflow.
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
ElectricField
— Electric field boundary condition
column vector | function handle
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
MagneticField
— Magnetic field boundary condition
column vector | 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
MagneticPotential
— Magnetic potential boundary condition
real number | column vector | 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
SurfaceCurrentDensity
— Surface current density boundary condition
real number
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
RegionID
— Region ID
vector of positive integers
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
RegionType
— Geometric region type
"Edge"
for a 2-D model | "Face"
for a 3-D model
Geometric region type, specified as "Edge"
for a 2-D model or
"Face"
for a 3-D model.
Data Types: char
| string
Vectorized
— Vectorized function evaluation
"off"
(default) | "on"
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
— Voltage boundary condition
real number | function handle
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
FarField
— Absorbing boundary condition
"absorbing"
Absorbing boundary condition, specified as "absorbing"
. The
solver uses an absorbing boundary condition for a harmonic analysis.
Data Types: char
Thickness
— Width of far field absorbing region
nonnegative number
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
— Scaling parameter defining attenuation rate
5 (default) | nonnegative number
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
— Exponent defining attenuation rate
4 (default) | nonnegative number
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
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)