Closed lucasgrjn closed 2 years ago
The complete Maxwell equation without a source can be written as ∇×μ−1∇×E−ω2ϵE=0. By using the free space magnetic permeability, it leads us to ∇×∇×E−ω2μ0ϵ0ϵrE and thus ∇×∇×E−k2ϵrE. The first curl (on left) will be associated to the magnetic field : using the Maxwell–Faraday equation, we replace the value of the magnetic field on the Ampère's circuital law. Using the fact that on the Yee-grid, magnetic field is associated to backward differencies whereas electric field is associated to forward differencies, we obtain dxb×dxf×E−k2ϵrE if we use the naming convention of the script.
This is not the correct way to derive the order of the derivative operators in the eigenmode operator. Also, the terms dxb
and dxf
implement derivatives along the x-direction, not curls, meaning that
dxb×dxf×E−k2ϵrE
is not quite right with the "×".
The matrix we use for this calculation matches what we do in Ceviche:
This PR corrects a minor mistake on the electric-field mode solver equation
and introduces a correction factor for the magnetic field calculated.(All the explanations will be documented below to avoid any misunderstanding and to prevent any error from my side).Justification :
Since the fields will be used on a Yee-grid, the electric and magnetic fields will be separated by a distance of half a cell, so the phase will evoluate on a distance $\frac{dl}{2}$ leading to $H_{yee} = H \exp^{j\frac{dl}{2}}$.(I already sign the CLA.)