# Computational electromagnetics

**Computational electromagnetics**, **computational electrodynamics** or **electromagnetic modeling** is the process of modeling the interaction of electromagnetic fields with physical objects and the environment.

It typically involves using computationally efficient approximations to Maxwell's equations and is used to calculate antenna performance, electromagnetic compatibility, radar cross section and electromagnetic wave propagation when not in free space.

A specific part of computational electromagnetics deals with electromagnetic radiation scattered and absorbed by small particles.

## Contents

## BackgroundEdit

Several real-world electromagnetic problems like electromagnetic scattering, electromagnetic radiation, modeling of waveguides etc., are
not analytically calculable, for the multitude of irregular geometries found in actual devices. Computational numerical techniques can overcome the inability to derive closed form solutions of Maxwell's equations under various constitutive relations of media, and boundary conditions. This makes *computational electromagnetics* (CEM) important to the design, and modeling of antenna, radar, satellite and other communication systems, nanophotonic devices and high speed silicon electronics, medical imaging, cell-phone antenna design, among other applications.

CEM typically solves the problem of computing the *E* (electric) and *H* (magnetic) fields across the problem domain (e.g., to calculate antenna radiation pattern for an arbitrarily shaped antenna structure). Also calculating power flow direction (Poynting vector), a waveguide's normal modes, media-generated wave dispersion, and scattering can be computed from the *E* and *H* fields. CEM models may or may not assume symmetry, simplifying real world structures to idealized cylinders, spheres, and other regular geometrical objects. CEM models extensively make use of symmetry, and solve for reduced dimensionality from 3 spatial dimensions to 2D and even 1D.

An eigenvalue problem formulation of CEM allows us to calculate steady state normal modes in a structure. Transient response and impulse field effects are more accurately modeled by CEM in time domain, by FDTD. Curved geometrical objects are treated more accurately as finite elements FEM, or non-orthogonal grids. Beam propagation method (BPM) can solve for the power flow in waveguides. CEM is application specific, even if different techniques converge to the same field and power distributions in the modeled domain.

## Overview of methodsEdit

One approach is to discretize the space in terms of grids (both orthogonal, and non-orthogonal) and solving Maxwell's equations at each point in the grid. Discretization consumes computer memory, and solving the equations takes significant time. Large-scale CEM problems face memory and CPU limitations. As of 2007, CEM problems require supercomputers,^{[citation needed]} high performance clusters,^{[citation needed]} vector processors and/or parallelism. Typical formulations involve either time-stepping through the equations over the whole domain for each time instant; or through banded matrix inversion to calculate the weights of basis functions, when modeled by finite element methods; or matrix products when using transfer matrix methods; or calculating integrals when using method of moments (MoM); or using fast fourier transforms, and time iterations when calculating by the split-step method or by BPM.

## Choice of methodsEdit

Choosing the right technique for solving a problem is important, as choosing the wrong one can either result in incorrect results, or results which take excessively long to compute. However, the name of a technique does not always tell one how it is implemented, especially for commercial tools, which will often have more than one solver.

Davidson^{[1]} gives two tables comparing the FEM, MoM and FDTD techniques in the way they are normally implemented. One table is for both open region (radiation and scattering problems) and another table is for guided wave problems.

## Maxwell's equations in hyperbolic PDE formEdit

Maxwell's equations can be formulated as a hyperbolic system of partial differential equations. This gives access to powerful techniques for numerical solutions.

It is assumed that the waves propagate in the (*x*,*y*)-plane and restrict the direction of the magnetic field to be parallel to the *z*-axis and thus the electric field to be parallel to the (*x*,*y*) plane. The wave is called a transverse magnetic (TM) wave. In 2D and no polarization terms present, Maxwell's equations can then be formulated as:

where *u*, *A*, *B*, and *C* are defined as

In this representation, is the forcing function, and is in the same space as . It can be used to express an externally applied field or to describe an optimization constraint. As formulated above:

may also be explicitly defined equal to zero to simplify certain problems, or to find a characteristic solution, which is often the first step in a method to find the particular inhomogeneous solution.

## Integral equation solversEdit

### The discrete dipole approximationEdit

The discrete dipole approximation is a flexible technique for computing scattering and absorption by targets of arbitrary geometry. The formulation is based on integral form of Maxwell equations. The DDA is an approximation of the continuum target by a finite array of polarizable points. The points acquire dipole moments in response to the local electric field. The dipoles of course interact with one another via their electric fields, so the DDA is also sometimes referred to as the coupled dipole approximation. The resulting linear system of equations is commonly solved using conjugate gradient iterations. The discretization matrix has symmetries (the integral form of Maxwell equations has form of convolution) enabling Fast Fourier Transform to multiply matrix times vector during conjugate gradient iterations.

### Method of moments element methodEdit

The method of moments (MoM)^{[2]} or boundary element method (BEM) is a numerical computational method of solving linear partial differential equations which have been formulated as integral equations (i.e. in *boundary integral* form). It can be applied in many areas of engineering and science including fluid mechanics, acoustics, electromagnetics, fracture mechanics, and plasticity.

MoM has become more popular since the 1980s. Because it requires calculating only boundary values, rather than values throughout the space, it is significantly more efficient in terms of computational resources for problems with a small surface/volume ratio. Conceptually, it works by constructing a "mesh" over the modeled surface. However, for many problems, BEM are significantly computationally less efficient than volume-discretization methods (finite element method, finite difference method, finite volume method). Boundary element formulations typically give rise to fully populated matrices. This means that the storage requirements and computational time will tend to grow according to the square of the problem size. By contrast, finite element matrices are typically banded (elements are only locally connected) and the storage requirements for the system matrices typically grow linearly with the problem size. Compression techniques (*e.g.* multipole expansions or adaptive cross approximation/hierarchical matrices) can be used to ameliorate these problems, though at the cost of added complexity and with a success-rate that depends heavily on the nature and geometry of the problem.

BEM is applicable to problems for which Green's functions can be calculated. These usually involve fields in linear homogeneous media. This places considerable restrictions on the range and generality of problems suitable for boundary elements. Nonlinearities can be included in the formulation, although they generally introduce volume integrals which require the volume to be discretized before solution, removing an oft-cited advantage of BEM.

### Fast multipole methodEdit

The fast multipole method (FMM) is an alternative to MoM or Ewald summation. It is an accurate simulation technique and requires less memory and processor power than MoM. The FMM was first introduced by Greengard and Rokhlin^{[3]}^{[4]} and is based on the multipole expansion technique. The first application of the FMM in computational electromagnetics was by Engheta et al.(1992).^{[5]} FMM can also be used to accelerate MoM.

### Plane wave time-domainEdit

While the fast multipole method is useful for accelerating MoM solutions of integral equations with static or frequency-domain oscillatory kernels, the **plane wave time-domain (PWTD)** algorithm employs similar ideas to accelerate the MoM solution of time-domain integral equations involving the retarded potential. The PWTD algorithm was introduced in 1998 by Ergin, Shanker, and Michielssen.^{[6]}

### Partial element equivalent circuit methodEdit

The partial element equivalent circuit (PEEC) is a 3D full-wave modeling method suitable for combined electromagnetic and circuit analysis. Unlike MoM, PEEC is a full spectrum method valid from dc to the maximum frequency determined by the meshing. In the PEEC method, the integral equation is interpreted as Kirchhoff's voltage law applied to a basic PEEC cell which results in a complete circuit solution for 3D geometries. The equivalent circuit formulation allows for additional SPICE type circuit elements to be easily included. Further, the models and the analysis apply to both the time and the frequency domains. The circuit equations resulting from the PEEC model are easily constructed using a modified loop analysis (MLA) or modified nodal analysis (MNA) formulation. Besides providing a direct current solution, it has several other advantages over a MoM analysis for this class of problems since any type of circuit element can be included in a straightforward way with appropriate matrix stamps. The PEEC method has recently been extended to include nonorthogonal geometries.^{[7]} This model extension, which is consistent with the classical orthogonal formulation, includes the Manhattan representation of the geometries in addition to the more general quadrilateral and hexahedral elements. This helps in keeping the number of unknowns at a minimum and thus reduces computational time for nonorthogonal geometries.^{[8]}

## Differential equation solversEdit

### Finite-difference time-domainEdit

Finite-difference time-domain (FDTD) is a popular CEM technique. It is easy to understand. It has an exceptionally simple implementation for a full wave solver. It is at least an order of magnitude less work to implement a basic FDTD solver than either an FEM or MoM solver. FDTD is the only technique where one person can realistically implement oneself in a reasonable time frame, but even then, this will be for a quite specific problem.^{[1]} Since it is a time-domain method, solutions can cover a wide frequency range with a single simulation run, provided the time step is small enough to satisfy the Nyquist–Shannon sampling theorem for the desired highest frequency.

FDTD belongs in the general class of grid-based differential time-domain numerical modeling methods. Maxwell's equations (in partial differential form) are modified to central-difference equations, discretized, and implemented in software. The equations are solved in a cyclic manner: the electric field is solved at a given instant in time, then the magnetic field is solved at the next instant in time, and the process is repeated over and over again.

The basic FDTD algorithm traces back to a seminal 1966 paper by Kane Yee in IEEE Transactions on Antennas and Propagation. Allen Taflove originated the descriptor "Finite-difference time-domain" and its corresponding "FDTD" acronym in a 1980 paper in IEEE Transactions on Electromagnetic Compatibility. Since about 1990, FDTD techniques have emerged as the primary means to model many scientific and engineering problems addressing electromagnetic wave interactions with material structures. An effective technique based on a time-domain finite-volume discretization procedure was introduced by Mohammadian et al. in 1991.^{[9]} Current FDTD modeling applications range from near-DC (ultralow-frequency geophysics involving the entire Earth-ionosphere waveguide) through microwaves (radar signature technology, antennas, wireless communications devices, digital interconnects, biomedical imaging/treatment) to visible light (photonic crystals, nanoplasmonics, solitons, and biophotonics). Approximately 30 commercial and university-developed software suites are available.

### Multiresolution time-domainEdit

MRTD is an adaptive alternative to the finite difference time domain method (FDTD) based on wavelet analysis.

### Finite element methodEdit

The finite element method (FEM) is used to find approximate solution of partial differential equations (PDE) and integral equations. The solution approach is based either on eliminating the time derivatives completely (steady state problems), or rendering the PDE into an equivalent ordinary differential equation, which is then solved using standard techniques such as finite differences, etc.

In solving partial differential equations, the primary challenge is to create an equation which approximates the equation to be studied, but which is numerically stable, meaning that errors in the input data and intermediate calculations do not accumulate and destroy the meaning of the resulting output. There are many ways of doing this, with various advantages and disadvantages. The finite element method is a good choice for solving partial differential equations over complex domains or when the desired precision varies over the entire domain.

### Finite integration techniqueEdit

The finite integration technique (FIT) is a spatial discretization scheme to numerically solve electromagnetic field problems in time and frequency domain. It preserves basic topological properties of the continuous equations such as conservation of charge and energy. FIT was proposed in 1977 by Thomas Weiland and has been enhanced continually over the years.^{[10]} This method covers the full range of electromagnetics (from static up to high frequency) and optic applications and is the basis for commercial simulation tools.^{[11]}^{[not in citation given]}^{[12]}^{[not in citation given]}

The basic idea of this approach is to apply the Maxwell equations in integral form to a set of staggered grids. This method stands out due to high flexibility in geometric modeling and boundary handling as well as incorporation of arbitrary material distributions and material properties such as anisotropy, non-linearity and dispersion. Furthermore, the use of a consistent dual orthogonal grid (e.g. Cartesian grid) in conjunction with an explicit time integration scheme (e.g. leap-frog-scheme) leads to compute and memory-efficient algorithms, which are especially adapted for transient field analysis in radio frequency (RF) applications.

### Pseudo-spectral time domainEdit

This class of marching-in-time computational techniques for Maxwell's equations uses either discrete Fourier or discrete Chebyshev transforms to calculate the spatial derivatives of the electric and magnetic field vector components that are arranged in either a 2-D grid or 3-D lattice of unit cells. PSTD causes negligible numerical phase velocity anisotropy errors relative to FDTD, and therefore allows problems of much greater electrical size to be modeled.^{[13]}

### Pseudo-spectral spatial domainEdit

PSSD solves Maxwell's equations by propagating them forward in a chosen spatial direction. The fields are therefore held as a function of time, and (possibly) any transverse spatial dimensions. The method is pseudo-spectral because temporal derivatives are calculated in the frequency domain with the aid of FFTs. Because the fields are held as functions of time, this enables arbitrary dispersion in the propagation medium to be rapidly and accurately modelled with minimal effort.^{[14]} However, the choice to propagate forward in space (rather than in time) brings with it some subtleties, particularly if reflections are important.^{[15]}

### Transmission line matrixEdit

Transmission line matrix (TLM) can be formulated in several means as a direct set of lumped elements solvable directly by a circuit solver (ala SPICE, HSPICE, et al.), as a custom network of elements or via a scattering matrix approach. TLM is a very flexible analysis strategy akin to FDTD in capabilities, though more codes tend to be available with FDTD engines.

### Locally one-dimensionalEdit

This is an implicit method. In this method, in two-dimensional case, Maxwell equations are computed in two steps, whereas in three-dimensional case Maxwell equations are divided into three spatial coordinate directions. Stability and dispersion analysis of the three-dimensional LOD-FDTD method have been discussed in detail.^{[16]}^{[17]}

## Other methodsEdit

### EigenMode expansionEdit

Eigenmode expansion (EME) is a rigorous bi-directional technique to simulate electromagnetic propagation which relies on the decomposition of the electromagnetic fields into a basis set of local eigenmodes. The eigenmodes are found by solving Maxwell's equations in each local cross-section. Eigenmode expansion can solve Maxwell's equations in 2D and 3D and can provide a fully vectorial solution provided that the mode solvers are vectorial. It offers very strong benefits compared with the FDTD method for the modelling of optical waveguides, and it is a popular tool for the modelling of fiber optics and silicon photonics devices.

### Physical opticsEdit

Physical optics (PO) is the name of a high frequency approximation (short-wavelength approximation) commonly used in optics, electrical engineering and applied physics. It is an intermediate method between geometric optics, which ignores wave effects, and full wave electromagnetism, which is a precise theory. The word "physical" means that it is more physical than geometrical optics and not that it is an exact physical theory.

The approximation consists of using ray optics to estimate the field on a surface and then integrating that field over the surface to calculate the transmitted or scattered field. This resembles the Born approximation, in that the details of the problem are treated as a perturbation.

### Uniform theory of diffractionEdit

The uniform theory of diffraction (UTD) is a high frequency method for solving electromagnetic scattering problems from electrically small discontinuities or discontinuities in more than one dimension at the same point.

The uniform theory of diffraction approximates near field electromagnetic fields as quasi optical and uses ray diffraction to determine diffraction coefficients for each diffracting object-source combination. These coefficients are then used to calculate the field strength and phase for each direction away from the diffracting point. These fields are then added to the incident fields and reflected fields to obtain a total solution.

## ValidationEdit

Validation is one of the key issues facing electromagnetic simulation users. The user must understand and master the validity domain of its simulation. The measure is, "how far from the reality are the results?"

Answering this question involves three steps: comparison between simulation results and analytical formulation, cross-comparison between codes, and comparison of simulation results with measurement.

### Comparison between simulation results and analytical formulationEdit

For example, assessing the value of the radar cross section of a plate with the analytical formula:

- where
**A**is the surface of the plate and is the wavelength. The next curve presenting the RCS of a plate computed at 35 GHz can be used as reference example.

### Cross-comparison between codesEdit

One example is the cross comparison of results from method of moments and asymptotic methods in their validity domains.^{[18]}

### Comparison of simulation results with measurementEdit

The final validation step is made by comparison between measurements and simulation. For example, the RCS calculation^{[19]} and the measurement^{[20]} of a complex metallic object at 35 GHz. The computation implements GO, PO and PTD for the edges.

Validation processes can clearly reveal that some differences can be explained by the differences between the experimental setup and its reproduction in the simulation environment.^{[21]}

## Light scattering codesEdit

There are now many efficient codes for solving electromagnetic scattering problems. They are listed as discrete dipole approximation codes, codes for electromagnetic scattering by cylinders, codes for electromagnetic scattering by spheres. Solutions which are analytical, such as Mie solution for scattering by spheres or cylinders, can be used to validate more involved techniques.

## See alsoEdit

- EM simulation software
- Analytical regularization
- Computational physics
- Electromagnetic field solver
- Electromagnetic wave equation
- Finite-difference time-domain method
- Finite-difference frequency-domain
- Mie theory
- Physical optics
- Rigorous coupled-wave analysis
- Space mapping
- Uniform theory of diffraction
- Shooting and bouncing rays

## ReferencesEdit

- ^
^{a}^{b}David B. Davidson,*Computational Electromagnetics for RF and Microwave Engineering*, Second Edition, Cambridge University Press, 2010 **^**Roger F. Harrington (1968). Field Computation by Moment Methods. Latest printing by IEEE Press in 1993, ISBN 0780310144.**^**Leslie Greengard and Vladimir Rokhlin (1987). "A Fast Algorithm for Particle Simulations." J. Computational Physics Vol. 73, No. 2, pp 325-348.**^**Vladimir Rokhlin (1985). "Rapid Solution of Integral Equations of Classic Potential Theory." J. Computational Physics Vol. 60, pp. 187-207.**^**Nader Engheta, William D. Murphy, Vladimir Rokhlin, and Marius Vassiliou (1992), "The Fast Multipole Method for Electromagnetic Scattering Computation," IEEE Transactions on Antennas and Propagation 40, 634-641.**^**Ergin, A. A., Shanker, B., & Michielssen, E. (1998). Fast evaluation of three-dimensional transient wave fields using diagonal translation operators. Journal of Computational Physics, 146(1), 157-180.**^**A. E. Ruehli, G. Antonini, J. Esch, J. Ekman, A. Mayo, A. Orlandi, "Nonorthogonal PEEC formulation for time- and frequency-domain EM and circuit modeling," IEEE Transactions on Electromagnetic Compatibility, vol. 45, no. 2, pp. 167–176, May 2003.**^**Partial Element Equivalent Circuit (PEEC) homepage**^**Alireza H. Mohammadian, Vijaya Shankar, and William F. Hall (1991). "Computation of Electromagnetic Scattering and Radiation Using a Time-Domain Finite-Volume Discretization Procedure. Computer Physics Communications Vol. 68, No. 1, 175-196.**^**T. Weiland, A Discretization Method for the Solution of Maxwell's Equations for Six-Component Fields, Electronics and Communications AEUE, vol. 31, no. 3, pp. 116–120, 1977.**^**CST Studio Suite developed by Computer Simulation Technology (CST AG).**^**Electromagnetic Simulation solutions developed by Nimbic.**^**For a recent comprehensive summary of PSTD techniques for Maxwell's equations, see Q. Liu and G. Zhao "Advances in PSTD Techniques," Chapter 17 in Computational Electrodynamics: The Finite-Difference Time-Domain Method, A. Taflove and S. C. Hagness, eds., Boston: Artech House, 2005.**^**J.C.A. Tyrrell et al., Journal of Modern Optics 52, 973 (2005); doi:10.1080/09500340512331334086**^**P. Kinsler, Phys. Rev. A81, 013819 (2010); doi:10.1103/PhysRevA.81.013819**^**I.Ahmed, E.K.Chua, E.P.Li, Z.Chen., IEEE Transactions on Antennas and Propagation 56, 3596-3600 (2008)**^**I.Ahmed, E.K.Chua, E.P.Li., IEEE Transactions on Antennas and Propagation 58, 3983-3989 (2010)**^**As an illustration, the company OKTAL-SE made common development and cross comparison with the French research institute ONERA, comparing Method of Moment and Asymptotic methods. The cross comparison helped the validation process of the SE-RAY-EM code of OKTAL-SE. Illustration^{[dead link]}of the comparison between the SE-RAY-EM code and the ONERA reference code (right image).**^**SE-RAY-EM**^**FGAN-FHR**^**full article

## Further readingEdit

- Detailed and highly visual lecture notes and videos on Computational Electromagnetics
- R. F. Harrington (1993).
*Field Computation by Moment Methods*. Wiley-IEEE Press. ISBN 0-7803-1014-4. - W. C. Chew; J.-M. Jin; E. Michielssen; J. Song (2001).
*Fast and Efficient Algorithms in Computational Electromagnetics*. Artech House Publishers. ISBN 1-58053-152-0. - J. Jin (2002).
*The Finite Element Method in Electromagnetics, 2nd. ed*. Wiley-IEEE Press. ISBN 0-471-43818-9. - Allen Taflove and Susan C. Hagness (2005).
*Computational Electrodynamics: The Finite-Difference Time-Domain Method, 3rd ed*. Artech House Publishers. ISBN 1-58053-832-0.