hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
parameter_sensitivity.hpp File Reference
#include "hpfem/core/types.hpp"
#include "hpfem/physics/conical_scattering.hpp"
Include dependency graph for parameter_sensitivity.hpp:

Go to the source code of this file.

Classes

struct  hpfem::physics::ConicalTangent
 Derivative of the solution coefficients with respect to a parameter of the setup. More...
 

Namespaces

namespace  hpfem
 
namespace  hpfem::physics
 

Functions

Vector hpfem::physics::conical_residual (const ConicalScattering &problem, const Vector &transverse, const Vector &longitudinal)
 
ConicalSolution hpfem::physics::conical_transported_solution (const ConicalScattering &problem, const ConicalSolution &solution)
 
ConicalTangent hpfem::physics::conical_parameter_tangent (const ConicalScattering &problem, const ConicalSolution &solution, const ConicalScattering &minus, const ConicalScattering &plus, Real step)
 

Detailed Description

Derivatives of the conical solution with respect to parameters of the setup as a whole — the frequency and the angles of incidence (M16 S1, ADR-0012 §4). Such a parameter \( \theta \) changes the operator \( A(\theta) \) everywhere ( \( k_0^2 \), dispersive permittivities, \( \beta = k_z \)), the load \( b(\theta) \) (the incident field of the scattered-field formulation) and the Bloch phases \( e^{ik_x a} \) of the constraints \( P(\theta) \). With the reduced coefficients \( u \) (the masters) the discrete equations are \( G(u,\theta) = P^H(b - A P u) = 0 \), hence the tangent

\[ P^H A P\,\frac{du}{d\theta} = P^H\rho' + (\partial_\theta P)^H\rho_0,\qquad \frac{de}{d\theta} = P\,\frac{du}{d\theta} + (\partial_\theta P)\,u \]

with the full residual of the solution \( \rho_0 = b - Ae \) (only \( P^H\rho_0 \) vanishes) and the residual derivative along the transported coefficients \( \rho' = \frac{d}{d\theta}\big[b - A\,P u\big]_{u\ \text{fixed}} \). The caller builds the problems at \( \theta \pm h \) on the same DoF maps; \( \rho' \), \( \partial_\theta P \) and \( \partial_\theta P\,u \) are central differences between them (exact up to \( O(h^2) \), no solve involved), the tangent is one solve on the factorisation the solution kept. Time convention \( e^{-i\omega t} \). See docs/theory/maxwell.md "Frequency and angle derivatives".