|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <vector>#include "hpfem/core/types.hpp"#include "hpfem/fespace/dof_map.hpp"#include "hpfem/materials/material.hpp"#include "hpfem/mesh/mesh.hpp"#include "hpfem/solvers/linear_solver.hpp"

Go to the source code of this file.
Classes | |
| struct | hpfem::physics::WaveguideSetup |
| struct | hpfem::physics::WaveguideMode |
| class | hpfem::physics::PropagatingMode< Dim > |
| Assembles and solves the mode problem on a cross-section mesh. More... | |
Namespaces | |
| namespace | hpfem |
| namespace | hpfem::physics |
Propagating modes of a waveguide with a 2D cross-section (x, y) and propagation \( e^{i\beta z} \): the transverse field \( E_t \) lives in the Nédélec space, the scaled longitudinal field \( e_z = i E_z / \beta \) in the H1 space of the same order, and the weak form becomes the generalized eigenproblem (Lee–Sun–Cendes)
\[ \begin{pmatrix} S - k_0^2 M_\varepsilon & 0 \\ 0 & 0 \end{pmatrix} \begin{pmatrix} e_t \\ e_z \end{pmatrix} = -\beta^2 \begin{pmatrix} M_\mu & M_\mu G \\ G^T M_\mu & G^T M_\mu G - k_0^2 M^{H1}_\varepsilon \end{pmatrix} \begin{pmatrix} e_t \\ e_z \end{pmatrix} \]
with the curl–curl matrix S (weight μr⁻¹), the Nédélec mass matrices with weights εr and μr⁻¹, the discrete gradient G and the H1 mass matrix with weight εr. Guided modes are the eigenvalues \( -\beta^2 \) closest to \( -k_0^2 n_{\max}^2 \); spurious solutions sit at \( \beta^2 = 0 \) and never appear. Lossless media only. See docs/theory/maxwell.md#propagating-modes.