EM simulation
How full-wave electromagnetic simulation solves Maxwell's equations numerically to predict fields, S-parameters and radiation of antennas, circuits, waveguides and scatterers.
What it is
Electromagnetic (EM) simulation uses numerical methods to solve Maxwell’s equations for a structure with defined geometry and materials. It predicts electric and magnetic fields everywhere, and derived quantities such as S-parameters (how much signal is reflected and transmitted at each port), input impedance, radiation patterns, gain, radar cross section, losses and absorbed power (specific absorption rate, SAR). It is used to design antennas, microwave filters and couplers, printed circuit boards and packages (signal and power integrity), waveguides, cavities, MRI coils, wireless power systems, photonic devices, and for electromagnetic compatibility (EMC) and radar studies.
It answers questions such as: What is the bandwidth and radiation pattern of this antenna? How much of the signal is reflected or leaks to a neighboring trace? Which resonant modes exist in this cavity? How much power does the body absorb from a phone? How does a metallic object scatter a radar wave? Measurement is costly at high frequencies, so simulation drives design and is then checked against prototypes.
Fundamentals
Maxwell’s equations and material properties
The governing equations are ∇×E = −∂B/∂t, ∇×H = J + ∂D/∂t, ∇·D = ρ and ∇·B = 0, with constitutive relations D = εE, B = μH and J = σE, where ε is permittivity, μ permeability and σ conductivity. In the frequency domain with time dependence ejωt they become the vector wave equation ∇×(μ−1∇×E) − ω2εcE = −jωJ, where complex permittivity εc = ε − jσ/ω captures loss. Wavelength in a material is λ = c/(f√(εrμr)), which sets the mesh needs. Conductors have a skin depth δ = 1/√(π f μ σ), for example about 2.1 µm for copper at 1 GHz, so surface-impedance boundaries replace the interior of good conductors. Materials can be dispersive (properties vary with frequency, handled by Debye, Drude or Lorentz models), anisotropic, magnetic (ferrites) or nonlinear.
Numerical methods
- Finite element method (FEM): divides space into tetrahedra with polynomial vector basis functions (edge elements, to enforce tangential continuity); handles complex geometry and materials, in the frequency domain; used in Ansys HFSS and COMSOL RF (see finite element analysis).
- Finite-difference time-domain (FDTD) and finite integration technique (FIT): step the fields on a structured grid in time, covering wide bands in one run by Fourier transforming the response to a pulse (see FDTD); in CST Studio Suite, Lumerical, Meep and openEMS. The time step is limited by the Courant condition.
- Method of moments (MoM): solves integral equations for currents on surfaces, needing only the surface to be meshed and no air volume; ideal for antennas, scattering and large open problems; in FEKO, NEC and many PCB solvers. It produces dense matrices, accelerated for large problems by the multilevel fast multipole method (MLFMM).
- Others: transmission-line matrix, finite-volume and discontinuous Galerkin time-domain methods, and asymptotic high-frequency methods (physical optics, ray tracing) for electrically very large objects such as aircraft or urban propagation.
Setting up a model: mesh, ports and boundaries
A reliable setup requires several choices. Mesh: use at least about λ/10 to λ/20 cells (in the material) with finer sampling at corners, thin gaps and conductors. Excitation: lumped ports (a voltage gap) for small structures, waveguide or wave ports that solve the port’s modes and provide accurate S-parameters, and plane waves for scattering. Boundaries: radiation or absorbing boundary conditions, or perfectly matched layers (PML) to mimic open space, placed roughly a quarter wavelength or more from radiators; perfect electric or magnetic conductor walls and symmetry planes to reduce the model size; periodic boundaries with Floquet ports for arrays and metamaterials. Geometry: simplify irrelevant detail (screws, silkscreen) but keep what matters electrically; import from CAD or layout tools with care for tolerances. Real conductors, substrates and connectors must have realistic materials, since loss and dielectric constant control resonance and bandwidth.
Solving, convergence and results
Frequency-domain tools use adaptive mesh refinement: the solver refines the mesh where error is large until the change in S-parameters between passes (ΔS) falls below a target such as 0.02, then sweeps frequency, often with fast interpolating sweeps. Time-domain solvers need enough simulated time for the fields to decay, using an energy decay criterion such as −40 dB. Outputs: S-parameters (return loss S11 in dB, with −10 dB often defining usable matching, VSWR = (1 + |Γ|)/(1 − |Γ|)), Smith charts, field plots, surface currents, far-field patterns (gain, directivity, efficiency, beamwidth, polarization), near-to-far-field transformations, eigenmode frequencies and Q factors, and coupling to circuit simulation (see SPICE circuit simulation). Validate by comparing with a simple analytical case (a half-wave dipole is about 73 Ω at resonance), by checking energy conservation (|S11|2 + |S21|2 ≤ 1), and with measurements from a network analyzer or anechoic chamber. Simulations of human exposure use anatomical body models and compliance checks against SAR limits.
Typical applications and limits
Used for antenna and filter design, PCB and package signal integrity, radar and EMC, wireless power, and photonics. Limits are computational cost for electrically large or highly detailed 3D structures, sensitivity to mesh and boundary choices, model uncertainty for materials at high frequency, and manufacturing tolerances not captured by an ideal model.
Basic operation
- Define the problem. State frequency range, quantities of interest and accuracy needs.
- Build the geometry. Create or import the structure and assign realistic materials.
- Choose a solver. Pick FEM, FDTD or MoM to suit size, bandwidth and geometry.
- Add ports and boundaries. Define excitations, open-space or symmetry conditions.
- Mesh and solve. Use adaptive refinement and check convergence.
- Review results. Examine S-parameters, fields and radiation patterns.
- Optimize and test sensitivity. Sweep parameters and tolerances.
- Collect the output. You obtain S-parameters and field data; port types and boundary choices are covered in the video.
Good practice
- Check mesh convergence. Results should not change with finer meshes.
- Place boundaries far enough away. Close walls distort radiation.
- Use realistic materials. Include loss and frequency dependence.
- Validate on a known case. Compare with a canonical structure first.
- Compare with measurements. Calibrate the network analyzer and include cables and connectors.
- Follow exposure limits. For devices that emit radio waves, confirm compliance with human exposure and regulatory standards through certified measurement, not simulation alone.
Key terms
- S-parameters — ratios of reflected and transmitted waves at ports.
- Return loss — a measure of how much power is reflected at a port, in dB.
- Skin depth — the depth at which fields in a conductor decay to 1/e of the surface value.
- Perfectly matched layer — an absorbing region that mimics unbounded space.
- Method of moments — an integral equation method that meshes only surfaces.
- Far field — the radiation pattern at large distances from the source.
- Adaptive meshing — automatic refinement of the mesh until results converge.
Video coming soon
About five minutes on EM simulation: how it works in detail, how the data is acquired, and how it is analyzed.
More in 4.2 Computational Modeling and Simulation
- Density functional theory (DFT)
- Ab initio methods (Hartree-Fock, post-HF)
- Semi-empirical/DFTB
- Molecular dynamics
- Coarse-grained modeling
- QM/MM
- Monte Carlo
- Kinetic Monte Carlo
- Finite element analysis
- Finite difference method
- Finite volume method
- Computational fluid dynamics
- Discrete element method
- Lattice Boltzmann
- Phase-field modeling
- FDTD
- Multiscale modeling
- CALPHAD
- Topology optimization
- Reduced-order modeling
- Digital twins
- Agent-based modeling
- System dynamics
- Climate modeling (GCM/RCM)
- Hydrological modeling
- Species distribution modeling
- SPICE circuit simulation
- TCAD device simulation
- EM simulation
- MIMO/OFDM simulation
- Power system load-flow and stability analysis
- Quantum circuit design and simulation
