Main Content

ElectromagneticModel

Electromagnetic model object

    Description

    An ElectromagneticModel object contains information about an electromagnetic analysis problem: the geometry, material properties, electromagnetic sources, boundary conditions, and mesh.

    Creation

    To create a ElectromagneticModel object, use the createpde function and specify 'electromagnetic' as its first argument .

    Properties

    expand all

    Type of electromagnetic analysis, returned as 'electrostatic', 'magnetostatic', 'electrostatic-axisymmetric', or 'magnetostatic-axisymmetric'.

    Geometry description, returned as an AnalyticGeometry or DiscreteGeometry object.

    Material properties within the domain, returned as an object containing the material property assignments.

    Electromagnetic source within the domain or subdomain, returned as an object containing electromagnetic source assignments.

    Boundary conditions applied to the geometry, returned as an object containing the boundary condition assignments.

    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.

    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.

    Mesh for the solution, returned as a FEMesh object. See FEMesh Properties. You create the mesh using the generateMesh function. For a 3-D magnetostatic model, the mesh must be linear.

    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 PDESolverOptions Properties.

    Object Functions

    geometryFromEdgesCreate 2-D geometry from decomposed geometry matrix
    geometryFromMeshCreate 2-D or 3-D geometry from mesh
    importGeometryImport 2-D or 3-D geometry from STL data
    generateMeshCreate triangular or tetrahedral mesh
    electromagneticPropertiesAssign properties of material for electromagnetic model
    electromagneticSourceSpecify current density or charge density for electromagnetic model
    electromagneticBCApply boundary conditions to electromagnetic model
    solveSolve heat transfer, structural analysis, or electromagnetic analysis problem

    Examples

    collapse all

    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: []
    
    
    Introduced in R2021a