The electromagnetic waves physics solves for the wave propagation in Maxwell’s equations.
Maxwell’s equations
∇⋅D=ρ
∇⋅B=0
∇×E=−∂t∂B
∇×H=J+∂t∂D
where E is the electric field [V/m], D is the electric displacement field [C/m²], H is the magnetic field [A/m], B is the magnetic flux density [T], ρ is the electric charge density [C/m³] and J is the conduction current density [A/m²].
Without loss of generality, the materials can be modeled as D=ϵE+Dr, B=μH+Br and J=σE+Jr, where ϵ is the electric permittivity tensor [F/m], μ is the magnetic permeability tensor [H/m] and σ is the electric conductivity tensor [S/m]. Quantities Dr, Br and Jr are typically associated with remanent effects.
Using the above assumption, the last two equations can be rewritten as:
μ−1∇×E=−∂t∂H
∇×H=σE+Jr+ϵ∂t∂E
Taking the curl of the first equation gives:
∇×(μ−1∇×E)=−∂t∂(∇×H)
Using the second equation, one gets the strong form of the wave equation used in Allsolve:
∇×(μ−1∇×E)+σ∂t∂E+ϵ∂t2∂2E=0
The solver in Allsolve requires the weak form of the above equation. This is obtained by multiplying by a test function E′ and integrating over the electromagnetic waves physics domain Ω:
where n is the unit vector normal to the boundary ∂Ω of Ω.
The above formulation is what is actually solved in the electromagnetic waves physics. The last term is the Neumann trace, which allows for example to feed modes into a waveguide port.