hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
eigen_sensitivity.hpp File Reference
#include "hpfem/core/types.hpp"
#include "hpfem/physics/conical_resonance.hpp"
#include "hpfem/physics/resonance.hpp"
#include "hpfem/physics/shape_sensitivity.hpp"
Include dependency graph for eigen_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
 

Functions

ResonanceDerivative hpfem::physics::resonance_derivative_from (Complex omega, Complex dlambda, Complex dlambda_domega={})
 
template<int Dim>
ModeAdjoint hpfem::physics::resonance_adjoint (const Resonance< Dim > &problem, const ResonantMode &mode)
 
template<int Dim>
ResonanceDerivative hpfem::physics::resonance_material_derivative (const Resonance< Dim > &problem, const ResonantMode &mode, const ModeAdjoint &adjoint, mesh::Tag tag)
 
template<int Dim>
ResonanceDerivative hpfem::physics::resonance_shape_derivative (const Resonance< Dim > &problem, const ResonantMode &mode, const ModeAdjoint &adjoint, const NodeField &velocity, Real relative_step=1e-6)
 
ModeAdjoint hpfem::physics::conical_resonance_adjoint (const ConicalResonance &problem, const ConicalResonantMode &mode)
 
ResonanceDerivative hpfem::physics::conical_resonance_material_derivative (const ConicalResonance &problem, const ConicalResonantMode &mode, const ModeAdjoint &adjoint, mesh::Tag tag)
 
ResonanceDerivative hpfem::physics::conical_resonance_shape_derivative (const ConicalResonance &problem, const ConicalResonantMode &mode, const ModeAdjoint &adjoint, const NodeField &velocity, Real relative_step=1e-6)
 
ResonanceDerivative hpfem::physics::conical_resonance_beta_derivative (const ConicalResonance &problem, const ConicalResonantMode &mode, const ModeAdjoint &adjoint, Real step)
 
ResonanceDerivative hpfem::physics::conical_resonance_bloch_derivative (const ConicalResonance &problem, const ConicalResonantMode &mode, const ModeAdjoint &adjoint, const ConicalResonance &minus, const ConicalResonance &plus, Real step)
 
template ModeAdjoint hpfem::physics::resonance_adjoint< 2 > (const Resonance< 2 > &, const ResonantMode &)
 
template ModeAdjoint hpfem::physics::resonance_adjoint< 3 > (const Resonance< 3 > &, const ResonantMode &)
 
template ResonanceDerivative hpfem::physics::resonance_material_derivative< 2 > (const Resonance< 2 > &, const ResonantMode &, const ModeAdjoint &, mesh::Tag)
 
template ResonanceDerivative hpfem::physics::resonance_material_derivative< 3 > (const Resonance< 3 > &, const ResonantMode &, const ModeAdjoint &, mesh::Tag)
 
template ResonanceDerivative hpfem::physics::resonance_shape_derivative< 2 > (const Resonance< 2 > &, const ResonantMode &, const ModeAdjoint &, const NodeField &, Real)
 
template ResonanceDerivative hpfem::physics::resonance_shape_derivative< 3 > (const Resonance< 3 > &, const ResonantMode &, const ModeAdjoint &, const NodeField &, Real)
 

Detailed Description

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".