|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include "hpfem/core/types.hpp"#include "hpfem/physics/conical_resonance.hpp"#include "hpfem/physics/resonance.hpp"#include "hpfem/physics/shape_sensitivity.hpp"
Go to the source code of this file.
Classes | |
| struct | hpfem::physics::ResonanceDerivative |
| Derivative of one resonance with respect to one real or complex parameter p. More... | |
| struct | hpfem::physics::ModeAdjoint |
Namespaces | |
| namespace | hpfem |
| namespace | hpfem::physics |
Derivatives of resonances (quasi-normal modes) with respect to parameters (M16 S4, ADR-0012 §4): the eigenvalue \( \lambda = k_0^2 = (\omega/c_0)^2 \) of the pencil \( A x = \lambda B x \) (stiffness and mass, PML-stretched, lossy, reduced by the PEC, hanging-node and Bloch constraints) changes for a simple eigenvalue by
\[ \frac{d\lambda}{dp} = \frac{y^\top(\partial_p A - \lambda\,\partial_p B)\,x} {y^\top B\,x} \]
with the right eigenvector x and the left eigenvector y, \( A^\top y = \lambda B^\top y
\) (unconjugated: the pencils are non-Hermitian with PML and losses). The element matrices are complex symmetric, so without Bloch phases the left vector is the mode itself (Resonance, also with the real hanging-node constraints); the Bloch-reduced pencil \( P^H A P \) of ConicalResonance has the transpose \( P^\top A \bar P \), the pencil at \( -k_x \), and its left vector comes from a transposed inverse iteration at λ. In full DoF coefficients, with \( \tilde y = \bar P y \) and \( x = P x_r \), \( d\lambda/dp = \tilde y^\top(\partial_p S - \lambda\,\partial_p M)\,x / (\tilde y^\top M
x) \). Then \( d\omega/dp = c_0\,(d\lambda/dp)/(2k_0) \) (complex: the real part moves the resonance, the imaginary part its width), \( Q = \mathrm{Re}\,\omega/(-2\,\mathrm{Im}\,
\omega) \) and its derivative follow. Parameters: the permittivity of a tag (holomorphic, \( \partial_\varepsilon M = M_{\text{tag}} \)), a mesh velocity (central directional differences of the element matrices, ADR-0011), the longitudinal wavenumber β and the Bloch wavenumber (the derivative of P, as in parameter_sensitivity.hpp). The PML stretch is the one of the setup (designed at the target frequency, fixed), so the pencil is linear in λ. Time convention \( e^{-i\omega t} \): a decaying mode has Im ω < 0. See docs/theory/maxwell.md "Resonance derivatives".