hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
band_sensitivity.hpp File Reference
#include <vector>
#include "hpfem/core/types.hpp"
#include "hpfem/mesh/mesh.hpp"
#include "hpfem/physics/band_structure.hpp"
#include "hpfem/physics/shape_sensitivity.hpp"
Include dependency graph for band_sensitivity.hpp:

Go to the source code of this file.

Classes

struct  hpfem::physics::BandDerivative
 

Namespaces

namespace  hpfem
 
namespace  hpfem::physics
 

Functions

template<int Dim>
BandDerivative hpfem::physics::band_permittivity_derivative (const BandStructure< Dim > &problem, const Bands< Dim > &bands, mesh::Tag tag, Real degeneracy_tolerance=1e-6)
 
template<int Dim>
BandDerivative hpfem::physics::band_permeability_derivative (const BandStructure< Dim > &problem, const Bands< Dim > &bands, mesh::Tag tag, Real degeneracy_tolerance=1e-6)
 
template<int Dim>
BandDerivative hpfem::physics::band_shape_derivative (const BandStructure< Dim > &problem, const Bands< Dim > &bands, const NodeField &velocity, Real relative_step=1e-6, Real degeneracy_tolerance=1e-6)
 
template<int Dim>
BandDerivative hpfem::physics::band_wave_vector_derivative (const BandStructure< Dim > &problem, const Bands< Dim > &bands, const Point< Dim > &direction, Real degeneracy_tolerance=1e-6)
 
template<int Dim>
std::vector< Point< Dim > > hpfem::physics::group_velocity (const BandStructure< Dim > &problem, const Bands< Dim > &bands, Real degeneracy_tolerance=1e-6)
 
template BandDerivative hpfem::physics::band_permittivity_derivative< 2 > (const BandStructure< 2 > &, const Bands< 2 > &, mesh::Tag, Real)
 
template BandDerivative hpfem::physics::band_permittivity_derivative< 3 > (const BandStructure< 3 > &, const Bands< 3 > &, mesh::Tag, Real)
 
template BandDerivative hpfem::physics::band_permeability_derivative< 2 > (const BandStructure< 2 > &, const Bands< 2 > &, mesh::Tag, Real)
 
template BandDerivative hpfem::physics::band_permeability_derivative< 3 > (const BandStructure< 3 > &, const Bands< 3 > &, mesh::Tag, Real)
 
template BandDerivative hpfem::physics::band_shape_derivative< 2 > (const BandStructure< 2 > &, const Bands< 2 > &, const NodeField &, Real, Real)
 
template BandDerivative hpfem::physics::band_shape_derivative< 3 > (const BandStructure< 3 > &, const Bands< 3 > &, const NodeField &, Real, Real)
 
template BandDerivative hpfem::physics::band_wave_vector_derivative< 2 > (const BandStructure< 2 > &, const Bands< 2 > &, const Point< 2 > &, Real)
 
template BandDerivative hpfem::physics::band_wave_vector_derivative< 3 > (const BandStructure< 3 > &, const Bands< 3 > &, const Point< 3 > &, Real)
 
template std::vector< Point< 2 > > hpfem::physics::group_velocity< 2 > (const BandStructure< 2 > &, const Bands< 2 > &, Real)
 
template std::vector< Point< 3 > > hpfem::physics::group_velocity< 3 > (const BandStructure< 3 > &, const Bands< 3 > &, Real)
 

Detailed Description

Derivatives of photonic bands (BandStructure) with respect to material and shape parameters and the Bloch wave vector (group velocity), without a further eigensolve. Convention exp(−iωt), SI units, lossless media. At the wave vector k the reduced pencil \( A(p)\,u = \lambda\,B(p)\,u \) with \( A = P^H S P \), \( B = P^H M P \), \( \lambda = k_0^2 \) is Hermitian, so the left eigenvector of a simple eigenvalue is the right one and (Hellmann–Feynman)

\[ \frac{d\lambda}{dp} = \frac{u^H(\partial_p A - \lambda\,\partial_p B)\,u}{u^H B u}, \qquad \frac{dk_0}{dp} = \frac{1}{2k_0}\frac{d\lambda}{dp}, \qquad \frac{d\omega}{dp} = c_0\,\frac{dk_0}{dp} . \]

With the full-size mode \( w = P u \) (Bands::modes, kept with BandStructureSetup::keep_modes):

Degenerate bands. Consecutive bands whose eigenvalues differ by at most degeneracy_tolerance relative (and bands at \( k_0 = 0 \)) form a cluster with modes W. Hellmann–Feynman does not apply to a multiple eigenvalue; its derivatives are the eigenvalues of the small Hermitian pencil

\[ W^H(\partial A - \tfrac12(\Lambda\,\partial B + \partial B\,\Lambda))W\,y = \mu\,W^H B W\,y , \]

assigned in ascending order to the bands of the cluster: they are the one-sided derivatives of the branches that leave the degenerate point with increasing p (the eigenvalues of \( \lambda(p + h) \) sorted, \( h \to 0^+ \)). For a simple band this is Hellmann–Feynman. For the group velocity at a degenerate point each component is the sorted spectrum of its own cluster matrix; branch velocities along a path need the directional derivative band_wave_vector_derivative along that path. See docs/theory/maxwell.md#band-derivatives-and-group-velocity.