From Maxwell’s equations to the EFIE#
Draft Written from harmolab/utils/impedance/impmet.py, harmolab/rwg/rwg4.py and the gap source at commit 181e5ad; ports and module paths updated for harmolab/utils/ports/ at commit 72fb8c6. Awaiting review.
Why the solver only needs a mesh of the metal surface: the field everywhere follows from the current on that surface, and the current is fixed by a single condition on the metal. That condition, written as an integral equation, is the electric field integral equation (EFIE) that the Method of Moments solves.
The idea#
An antenna is a piece of metal in free space. When it is fed, or illuminated by a wave, currents flow on its surface. These currents radiate a field, the scattered field \(\mathbf E^s\), which adds to the field that excites the structure, the incident field \(\mathbf E^i\).
On a perfect conductor the total tangential electric field must vanish. That gives one equation, on the surface only, whose unknown is the surface current \(\mathbf J\). Once \(\mathbf J\) is known, the field anywhere in space is an integral over the surface. The volume around the antenna never needs to be meshed.
Maxwell’s equations in the frequency domain#
With the time convention \(e^{j\omega t}\) (see Notation and conventions), in a homogeneous medium of permittivity \(\varepsilon\) and permeability \(\mu\):
The last relation, the continuity equation, links the current to the charge it accumulates. On a surface it reads \(\nabla_s\cdot\mathbf J = -j\omega\,\rho_s\).
Potentials and the radiated field#
The field radiated by surface currents is conveniently written with two potentials. In the Lorenz gauge,
with the surface charge \(\rho_s = -\nabla_s'\cdot\mathbf J/(j\omega)\) given by the continuity equation and the free-space Green’s function \(G = e^{-jkR}/(4\pi R)\) of Eq. (2). The vector potential comes from the current, the scalar potential from the charge. Keeping both, instead of combining them into a single operator acting on \(\mathbf J\), is the mixed-potential form: it only involves first derivatives of \(\mathbf J\), which is what RWG functions are built for.
Substituting \(\rho_s\), the same field in terms of \(\mathbf J\) alone is
The boundary condition and the EFIE#
On the surface \(S\) of a perfect electric conductor (PEC), the tangential component of the total field is zero:
With Eq. (4) this becomes the electric field integral equation in mixed-potential form [1]:
The unknown \(\mathbf J\) is inside \(\mathbf A\) and \(\Phi\); the right-hand side is known. The Method of Moments turns Eq. (8) into a linear system by expanding \(\mathbf J\) in RWG functions and testing the equation with the same functions (see RWG basis functions and Method of Moments and the impedance matrix). Textbook derivations of the integral equation and of the moment method are in Harrington[2], chapter 12 of Balanis[3] and Gibson[4].
Two kinds of problems, two right-hand sides#
The operator on the left of Eq. (8) depends on the geometry and the frequency only. What distinguishes a transmitting antenna from a scatterer is the incident field.
The antenna is fed by a voltage \(V\) across a narrow gap of width \(W\). The source is modelled as an impressed field confined to the gap,
along the feed direction \(\hat{\mathbf e}\). See Excitations and input impedance.
The structure is illuminated by a plane wave travelling along \(\hat{\mathbf k}\), with field vector \(\mathbf E_0 \perp \hat{\mathbf k}\):
The induced current re-radiates the scattered field, from which the radar cross section follows.
In this solver#
Theory vs. implementation
Everything above is general. This section states what the code implements and the conventions it fixes.
Medium. Free space everywhere, with the constants of Notation and conventions. No dielectric, no substrate, no infinite ground plane and no image theory is implemented in
harmolab/rwg/orharmolab/utils/: a ground plane, if needed, must be meshed as metal.Conductors. The surface \(S\) is a triangulated sheet of zero thickness, treated as a perfect conductor. Losses can be added through a surface impedance (see Lossy conductors).
Green’s function and potentials.
harmolab.utils.impedance.impmetassembles the two terms of Eq. (8) with the prefactorspref_A = jωμ/(4π)(vector potential) andpref_Phi = 1/(jωε·4π)(scalar potential) and the kernel \(e^{-jkR}/R\).Plane wave.
rwg4.calculate_current_scatteringevaluates \(\mathbf E^i = \mathbf E_0\,e^{-jk\,\hat{\mathbf k}\cdot\mathbf r}\) withpolarizationas \(\mathbf E_0\) (its magnitude is the amplitude, in V/m) andwave_incident_directionas \(\hat{\mathbf k}\). Neither vector is normalised by the code: pass a unit vector for \(\hat{\mathbf k}\) and a polarisation perpendicular to it.Ports. The antenna is fed through ports (
harmolab.utils.ports, see Ports). The enhanced gap source (EnhancedGap) applies a uniform field along the axis'x','y'or'z'in a cube of side \(W\) (gap_width) centred on the feed point, and feeds every RWG function according to the part of its triangles inside the cube, integrated exactly. This is eq. (7) of the enhanced gap source model of Ding et al.[5], with one generalisation: the paper’s window is a band of width \(W\) along the excitation axis, the code’s a cube around the feed point, so that a feed at a junction between surfaces does not excite distant triangles (see Excitations and input impedance). Two delta-gap models (DeltaGapEdge,DeltaGapCut) feed one RWG edge or a whole cut of edges. Several ports can be fed at once, each with its own complex voltage.Fields from the currents. Once \(\mathbf J\) is known, the fields in space are not computed with Eq. (6) directly:
harmolab/efield/replaces each RWG function by a small dipole (see Radiated fields, directivity and gain).
Assumptions and limits#
Perfect (or surface-impedance) conductors only, in free space.
Zero-thickness surfaces: the model has no notion of the metal thickness.
One frequency at a time; a frequency sweep repeats the solution at each frequency.
The gap model represents a feed of finite width \(W\); the input impedance depends on \(W\) and on the mesh inside the gap (see Excitations and input impedance).
Continue#
The functions in which \(\mathbf J\) is expanded.
Symbols, units, constants and their names in the code.
How the gap source and the plane wave enter the linear system.