Solve PDEs that model static and time-harmonic electric and magnetic fields. A typical programmatic workflow for solving an electromagnetic problem includes these steps:
Create a special electromagnetic model container for an electrostatic, magnetostatic, or harmonic analysis.
Define a geometry and mesh it.
Assign electromagnetic properties of the material, such as relative permittivity, relative permeability, and conductivity.
Specify charge density, current density, and magnetization within the geometry.
Specify voltage, magnetic potential, surface current density, and an electric or magnetic field on the boundaries.
Specify absorbing boundary conditions.
Solve and plot results, such as the resulting electric or magnetic potentials, fields, and flux densities.
Electromagnetic Model Setup
|Assign properties of material for electromagnetic model (Since R2021a)
|Specify current density, charge density, and magnetization for electromagnetic model (Since R2021a)
|Apply boundary conditions to electromagnetic model (Since R2021a)
|Solve structural analysis, heat transfer, or electromagnetic analysis problem
|Assemble finite element matrices
Solutions at Custom Locations
|Interpolate electric potential in electrostatic or DC conduction result at arbitrary spatial locations (Since R2021a)
|Interpolate electric field in electrostatic or DC conduction result at arbitrary spatial locations (Since R2021a)
|Interpolate electric flux density in electrostatic result at arbitrary spatial locations (Since R2021a)
|Interpolate magnetic potential in magnetostatic result at arbitrary spatial locations (Since R2021a)
|Interpolate magnetic field in magnetostatic result at arbitrary spatial locations (Since R2021a)
|Interpolate magnetic flux density in magnetostatic result at arbitrary spatial locations (Since R2021a)
|Interpolate electric or magnetic field in harmonic result at arbitrary spatial locations (Since R2022a)
|Interpolate current density in DC conduction result at arbitrary spatial locations (Since R2022b)
Electromagnetic Model Properties
|Find electromagnetic material properties assigned to geometric region (Since R2021a)
|Find electromagnetic source assigned to geometric region (Since R2021a)
|Find electromagnetic boundary conditions assigned to geometric region (Since R2021a)
Live Editor Tasks
|Visualize PDE Results
|Create and explore visualizations of PDE results in the Live Editor (Since R2022b)
|Electromagnetic model object (Since R2021a)
|Electrostatic solution and derived quantities (Since R2021a)
|Magnetostatic solution and derived quantities (Since R2021a)
|Harmonic electromagnetic solution (Since R2022a)
|DC conduction solution (Since R2022b)
|Electromagnetic material properties assignments (Since R2021a)
|Electromagnetic source assignments (Since R2021a)
|Electromagnetic boundary condition assignments (Since R2021a)
|Algorithm options for solvers
|PDE visualization of mesh and nodal results (Since R2021a)
Electrostatic and Magnetostatic Problems
- Electrostatic Potential in Air-Filled Frame
Find the electric potential in an air-filled annular quadrilateral frame.
- Electrostatic Analysis of Transformer Bushing Insulator
Compute an electric field intensity in a bushing insulator.
- Magnetic Field in Two-Pole Electric Motor
Find the static magnetic field induced by the stator windings in a two-pole electric motor.
- Magnetic Flux Density in Electromagnet
Compute a magnetic flux density in a solenoid with an iron core using a 3-D model and a 2-D axisymmetric model.
- Magnetic Flux Density in H-Shaped Magnet
Compute a magnetic flux density in a ferromagnetic frame.
- Current Density Between Two Metallic Conductors
Find the electric potential and the components of the current density between two circular metallic conductors.
- Scattering Problem
Compute reflected waves from an object illuminated by incident waves.
- Electrostatics and Magnetostatics
Partial differential equations for electrostatics and magnetostatics problems.
- DC Conduction
Partial differential equations for direct current electrical conduction problems.
- Harmonic Electromagnetics
Partial differential equations for time-harmonic electromagnetic fields.