Main Content

Electromagnetics

Solve problems that model electric and magnetic fields

Note

Domain-specific electromagnetic workflow is not recommended. New features might not be compatible with the this workflow. For help migrating your existing code to the unified finite element workflow, see Migration from Domain-Specific to Unified Workflow.

In this workflow, you can only specify and store parameters belonging to electromagnetic analysis. To store all physical parameters for structural, thermal, and electromagnetic analyses, and for ease of switching between analyses types, use Unified Modeling. For help migrating your existing code to the unified finite element workflow, see Migration from Domain-Specific to Unified Workflow.

Functions

expand all

createpdeCreate a model
electromagneticPropertiesAssign properties of material for electromagnetic model (Since R2021a)
electromagneticSourceSpecify current density, charge density, and magnetization for electromagnetic model (Since R2021a)
electromagneticBCApply boundary conditions to electromagnetic model (Since R2021a)
solveSolve structural analysis, heat transfer, or electromagnetic analysis problem
generateMaxwellStressTensorCompute Maxwell stress tensor at nodal locations (Since R2024a)
assembleFEMatricesAssemble finite element matrices
interpolateElectricPotentialInterpolate electric potential in electrostatic or DC conduction result at arbitrary spatial locations (Since R2021a)
interpolateElectricFieldInterpolate electric field in electrostatic or DC conduction result at arbitrary spatial locations (Since R2021a)
interpolateElectricFluxInterpolate electric flux density in electrostatic result at arbitrary spatial locations (Since R2021a)
interpolateMagneticPotentialInterpolate magnetic potential in magnetostatic result at arbitrary spatial locations (Since R2021a)
interpolateMagneticFieldInterpolate magnetic field in magnetostatic result at arbitrary spatial locations (Since R2021a)
interpolateMagneticFluxInterpolate magnetic flux density in magnetostatic result at arbitrary spatial locations (Since R2021a)
interpolateHarmonicFieldInterpolate electric or magnetic field in harmonic result at arbitrary spatial locations (Since R2022a)
interpolateCurrentDensityInterpolate current density in DC conduction result at arbitrary spatial locations (Since R2022b)
interpolateMaxwellStressTensorInterpolate Maxwell stress tensor at arbitrary spatial locations (Since R2024a)
findElectromagneticPropertiesFind electromagnetic material properties assigned to geometric region (Since R2021a)
findElectromagneticSourceFind electromagnetic source assigned to geometric region (Since R2021a)
findElectromagneticBCFind electromagnetic boundary conditions assigned to geometric region (Since R2021a)

Objects

ElectromagneticModelElectromagnetic model object (Since R2021a)
ElectrostaticResultsElectrostatic solution and derived quantities (Since R2021a)
MagnetostaticResultsMagnetostatic solution and derived quantities (Since R2021a)
HarmonicResultsHarmonic electromagnetic solution (Since R2022a)
ConductionResultsDC conduction solution (Since R2022b)

Properties

ElectromagneticMaterialAssignment PropertiesElectromagnetic material properties assignments (Since R2021a)
ElectromagneticSourceAssignment PropertiesElectromagnetic source assignments (Since R2021a)
ElectromagneticBCAssignment PropertiesElectromagnetic boundary condition assignments (Since R2021a)
PDESolverOptions PropertiesAlgorithm options for solvers