findElectromagneticProperties
Find electromagnetic material properties assigned to geometric region
Since R2021a
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.
Description
returns the electromagnetic material properties assigned to the specified region of the
specified model.emProperties
= findElectromagneticProperties(materialProperties
,RegionType
,RegionID
)
Examples
Find Relative Permittivity for Faces of 2-D Geometry
Create an electromagnetic model for an electrostatic analysis.
emagmodel = createpde("electromagnetic","electrostatic");
Include the L-shaped membrane geometry in the model and plot it with the face labels.
geometryFromEdges(emagmodel,@lshapeg); pdegplot(emagmodel,"FaceLabels","on") ylim([-1.1 1.1]) axis equal
Specify the vacuum permittivity value in the SI system of units.
emagmodel.VacuumPermittivity = 8.8541878128E-12;
Specify a different value of relative permittivity for each face.
electromagneticProperties(emagmodel,"RelativePermittivity",2.5, ... "Face",1); electromagneticProperties(emagmodel,"RelativePermittivity",2.25, ... "Face",2); electromagneticProperties(emagmodel,"RelativePermittivity",1, ... "Face",3);
Check the electromagnetic material properties specification for each face.
findElectromagneticProperties(emagmodel.MaterialProperties,"Face",1)
ans = ElectromagneticMaterialAssignment with properties: RegionType: 'Face' RegionID: 1 RelativePermittivity: 2.5000 RelativePermeability: [] Conductivity: []
findElectromagneticProperties(emagmodel.MaterialProperties,"Face",2)
ans = ElectromagneticMaterialAssignment with properties: RegionType: 'Face' RegionID: 2 RelativePermittivity: 2.2500 RelativePermeability: [] Conductivity: []
findElectromagneticProperties(emagmodel.MaterialProperties,"Face",3)
ans = ElectromagneticMaterialAssignment with properties: RegionType: 'Face' RegionID: 3 RelativePermittivity: 1 RelativePermeability: [] Conductivity: []
Find Relative Permeability for Cells of 3-D Geometry
Create and plot a geometry consisting of two nested spheres.
gm = multisphere([5 15]); pdegplot(gm,"CellLabels","on","FaceAlpha",0.3)
Create an electromagnetic model for magnetostatic analysis.
emagmodel = createpde("electromagnetic","magnetostatic");
Include the geometry in the model.
emagmodel.Geometry = gm;
Specify the vacuum permeability value in the SI system of units.
emagmodel.VacuumPermeability = 1.2566370614E-6;
Specify a different value of relative permittivity for each cell.
electromagneticProperties(emagmodel,"RelativePermittivity",2.5, ... "Cell",1); electromagneticProperties(emagmodel,"RelativePermittivity",2.25, ... "Cell",2);
Check the electromagnetic material properties specification for each cell.
findElectromagneticProperties(emagmodel.MaterialProperties,"Cell",1)
ans = ElectromagneticMaterialAssignment with properties: RegionType: 'Cell' RegionID: 1 RelativePermittivity: 2.5000 RelativePermeability: [] Conductivity: []
findElectromagneticProperties(emagmodel.MaterialProperties,"Cell",2)
ans = ElectromagneticMaterialAssignment with properties: RegionType: 'Cell' RegionID: 2 RelativePermittivity: 2.2500 RelativePermeability: [] Conductivity: []
Input Arguments
materialProperties
— Material properties of electromagnetic model
MaterialProperties
property
Material properties of an electromagnetic model, specified as the
MaterialProperties
property of the model.
Example: emagmodel.MaterialProperties
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 geometry or
"Cell"
for a 3-D geometry.
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
Output Arguments
emProperties
— Material properties assignment
ElectromagneticMaterialAssignment
object
Material properties assignment, returned as an
ElectromagneticMaterialAssignment
object. For more information, see
ElectromagneticMaterialAssignment Properties.
Version History
Introduced in R2021a
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 (한국어)