Electromagnetic waves
This page describes the available boundary conditions, port types, and interactions for electromagnetic wave propagation in Allsolve. The weak formulation is stated up front; the full derivation is at the end of this page.
Weak formulation
Section titled βWeak formulationβThe weak form solved by Allsolve is
where is the electric field, the magnetic field intensity, the magnetic permeability, the conductivity, and the permittivity.
See Formulation derivation for the full strong-to-weak derivation.
Interactions
Section titled βInteractionsβConstraint
Section titled βConstraintβFixes the field value at the defined region, enforcing idealized behavior such as perfect reflection.
| How to use | You can use either the matrix editor or the expression editor. With the matrix editor, provide a 3Γ1 matrix for a 3D problem (2Γ1 for 2D, etc.) with electric field strength vector values for each dimension. In the expression editor, write the direct expression. |
| Example | [1; 5; 0] applies a 3D electric field strength constraint of , and to the specified region. Same principles apply for 2D. |
| Unit | Electric field strength in Volts per meter (V/m) |
Perfectly matched layer
Section titled βPerfectly matched layerβImplements an absorbing boundary region to simulate infinite space and prevent reflections from truncated boundaries. Placed at the outer boundary of the air domain, it absorbs outgoing waves without reflection.
Key properties:
- Used to simulate open boundaries for radiating structures.
Two types available:
- AML type: Suitable for smooth boundaries.
- Box PML: Suitable for rectangular or cornered boundaries.
- The number of PML layers can be tuned in the Shared PML settings.
Rectangular port
Section titled βRectangular portβA special case of the Eigenmode port, used when the port geometry and material are well-defined and homogeneous. Provides analytical solutions for the field distribution under certain geometric assumptions.
Assumptions:
- The port surface must be rectangular.
- The dielectric across the port must be uniform.
- All four port edges must be bounded by perfect conductors.
Key properties:
- Perfectly absorbing (impedance matched, no reflection).
- Provides electric field and magnetic field access, but not voltage or current .
Perfect conductor
Section titled βPerfect conductorβImposes a Dirichlet boundary condition on the electric field. Sets on the target boundary or region.
Key properties:
- Models highly conductive materials as ideal conductors.
- Reduces the number of unknowns and computational cost.
Eigenmode port
Section titled βEigenmode portβDefines a port that perfectly absorbs the excited mode with matched impedance (no reflection). This port type is typically used when the cut-off frequency or mode shapes are unknown. It supports both low and high-frequency signals.
Key properties:
- No voltage or current output β only electric field and magnetic field are available.
Dielectric loss
Section titled βDielectric lossβAs the EM wave propagates through a dielectric, some of the energy is absorbed by the dielectric and is dissipated as heat. This loss of EM energy is simulated using the Dielectric loss interaction.
The target region for this interaction is the dielectric region. In Allsolve, the dielectric loss is parameterized using the loss tangent ():
- is the real part of the complex permittivity.
- is the negative of the imaginary part of the complex permittivity.
- The complex electric permittivity is given by
For script users:
- The
predefinedemwavefunction in Allsolve takes as arguments, among many, the real part and imaginary part of the complex permittivity. - The real part () is given by the permittivity defined in the material properties of the dielectric.
- The imaginary part () is defined as
Lump V/I
Section titled βLump V/IβDefines a lumped voltage or current source for feeding compact structures where the port dimensions are much smaller than the wavelength. This type of port assumes that the electric potential is physically meaningful and that the local electric field is derived from .
Key properties:
- Provides direct access to voltage and current at the port.
- Allows connecting external circuit elements (RLC components).
- Suitable for compact feed structures such as microstrip, CPW, or GCPW.
Periodicity
Section titled βPeriodicityβImposes periodic boundary conditions on the electromagnetic and fields between two boundaries. Reduces the computational domain size for geometrically symmetric or antisymmetric problems, avoiding the need to model the full geometry.
| Example | Periodicity follows the same principles, regardless of which physics module it belongs to. See how periodicity is used in magnetism as a reference: Periodicity in electric motors |
Absorbing boundary
Section titled βAbsorbing boundaryβApplies a first-order absorbing boundary condition to the outer boundary of the electromagnetic domain. Allows outgoing waves to leave the computational domain with minimal reflection. Lighter-weight than a Perfectly matched layer β suitable for cases where some residual reflection is acceptable in exchange for simpler setup and fewer mesh elements.
| How to use | Select the outer boundary where waves should exit. No additional parameters are needed β the condition approximates a matched impedance termination. |
Boundary admittance
Section titled βBoundary admittanceβApplies a surface admittance condition that characterizes how easily current passes through a conductive boundary. Admittance () is the reciprocal of impedance (), expressing the same physics in terms of conductance rather than resistance.
| How to use | Select the boundary surface of the conductor and set the boundary admittance. |
| Type options | Admittance β specify the real (Yr) and imaginary (Yi) parts of the boundary admittance directly. Good conductor β specify the conductivity and magnetic permeability (defaults to mu0) of the conductor material. |
| Unit | Boundary admittance Yr and Yi in Siemens (S) |
Compatibilities with analysis types
Section titled βCompatibilities with analysis typesβElectromagnetic waves supports Harmonic and Eigenmode analysis. Static analysis is not applicable. Multiharmonic and Transient analysis are not supported.
See the full compatibility table in Simulations overview.
Use cases
Section titled βUse casesβ- Electromagnetic waves: Patch antenna
- Electromagnetic waves: Eigenmode ports and S-parameters
- Electromagnetic waves: Lumped ports and RLC components
Formulation derivation
Section titled βFormulation derivationβStrong formulation
Section titled βStrong formulationβWe start from Maxwellβs equations along with the material relations
Where is the electric permittivity tensor, is the magnetic permeability tensor and is the electric conductivity tensor. Quantities , and are typically associated with remanent effects. We assume that , , , , , and change slowly compared to the electromagnetic wave frequency, so their time derivatives can be neglected.
Under these assumptions, Faradayβs law becomes
We apply the curl operator to both sides and assume the curl and time derivative can be interchanged using the time derivative of a curl identity
Substituting in the Ampère-Maxwell, material relations and and by rearranging we obtain
If we assume isotropic material, all tensor quantities become scalars, the equation results in
Deriving the weak form
Section titled βDeriving the weak formβTo obtain the weak formulation of , multiply by a test function and integrate over the domain :
We can rewrite the first term using divergence of cross product
Applying divergence theorem on the divergence term:
Substituting in the Faradayβs law and using the material relation we obtain
Finally, by using the scalar triple product identity we derive the final weak formulation stated at the top of this page.