Electromagnetic model object
ElectromagneticModel object contains
information about an electromagnetic analysis problem: the geometry, material properties,
electromagnetic sources, boundary conditions, and mesh.
To create a
ElectromagneticModel object, use the
createpde function and specify
"electromagnetic" as its first
AnalysisType — Type of electromagnetic analysis
Type of electromagnetic analysis, returned as
To change an electromagnetic analysis type, assign a new type to
model.AnalysisType. Ensure that all other properties of the model
are consistent with the new analysis type.
Geometry — Geometry description
Geometry description, returned as an
MaterialProperties — Material properties within domain
object containing material property assignments
Material properties within the domain, returned as an object containing the material property assignments.
Sources — Electromagnetic sources within the domain or subdomain
object containing heat source assignments
Electromagnetic source within the domain or subdomain, returned as an object containing electromagnetic source assignments.
BoundaryConditions — Boundary conditions applied to geometry
object containing boundary condition assignments
Boundary conditions applied to the geometry, returned as an object containing the boundary condition assignments.
VacuumPermittivity — Permittivity of vacuum for entire model
Permittivity of vacuum for the entire model, returned as a number. This value must be consistent with the units of the model. If the model parameters are in the SI system of units, then the permittivity of vacuum must be 8.8541878128E-12.
VacuumPermeability — Permeability of vacuum for entire model
Permeability of vacuum for the entire model, returned as a number. This value must be consistent with the units of the model. If the model parameters are in the SI system of units, then the permeability of vacuum must be 1.2566370614E-6.
SolverOptions — Algorithm options for PDE solvers
Algorithm options for the PDE solvers, returned as a
PDESolverOptions object. The properties of a
PDESolverOptions object include absolute and relative tolerances
for internal ODE solvers, maximum solver iterations, and so on. For details, see
FieldType — Type of field for harmonic analysis
'electric' (default) |
Type of field for a harmonic analysis, returned as
|Create 2-D geometry from decomposed geometry matrix|
|Create 2-D or 3-D geometry from mesh|
|Import 2-D or 3-D geometry from STL data|
|Create triangular or tetrahedral mesh|
|Assign properties of material for electromagnetic model|
|Specify current density or charge density for electromagnetic model|
|Apply boundary conditions to electromagnetic model|
|Solve heat transfer, structural analysis, or electromagnetic analysis problem|
Create Electromagnetic Model
Create a model for electrostatic analysis.
emagE = createpde("electromagnetic","electrostatic")
emagE = ElectromagneticModel with properties: AnalysisType: "electrostatic" Geometry:  MaterialProperties:  Sources:  BoundaryConditions:  VacuumPermittivity:  Mesh: 
Create an axisymmetric model for magnetostatic analysis. An axisymmetric model simplifies a 3-D problem to a 2-D problem using symmetry around the axis of rotation.
emagMA = createpde("electromagnetic","magnetostatic-axisymmetric")
emagMA = ElectromagneticModel with properties: AnalysisType: "magnetostatic-axisymmetric" Geometry:  MaterialProperties:  Sources:  BoundaryConditions:  VacuumPermeability:  Mesh: 
Create a model for harmonic analysis.
emagH = createpde("electromagnetic","harmonic")
emagH = ElectromagneticModel with properties: AnalysisType: "harmonic" Geometry:  MaterialProperties:  Sources:  BoundaryConditions:  VacuumPermittivity:  VacuumPermeability:  Mesh:  FieldType: "electric"