|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
Riesz projection on the pencil of a Resonance problem (2D / 3D).
More...
#include <riesz_projection.hpp>


Public Member Functions | |
| RieszProjection (const Resonance< Dim > &problem, RieszSetup setup) | |
| Index | add_current (const assembly::ComplexVectorField< Dim > ¤t, int extra_order=2) |
Assembles current_load of the current density J (A/m^Dim) and adds it. | |
| Index | add_point_value (const Point< Dim > &x, const assembly::ComplexVector< Dim > &weight) |
| Point value \( Q(E) = E(x)\cdot w \) (w not conjugated). | |
| Index | add_functional (const std::function< Vector(const fespace::NedelecDofMap< Dim > &)> &q) |
| const fespace::NedelecDofMap< Dim > & | dofs () const noexcept |
| Index | add_current (Vector current_load) |
| Index | add_functional (Vector q) |
| A functional \( Q(x) = q^\top x \) (full size). Returns the functional index. | |
Public Member Functions inherited from hpfem::physics::RieszProjectionBase | |
| RieszProjectionBase (std::unique_ptr< RieszPencil > pencil, RieszSetup setup) | |
| virtual | ~RieszProjectionBase () |
| RieszProjectionBase (const RieszProjectionBase &)=delete | |
| RieszProjectionBase & | operator= (const RieszProjectionBase &)=delete |
| Index | add_load (Vector load, std::function< Complex(Complex)> scale={}) |
| Index | add_load (std::function< Vector(Complex)> load) |
| A load given as a function of ω (full size), e.g. an incident field. | |
| Index | add_current (Vector current_load) |
| Index | add_functional (Vector q) |
| A functional \( Q(x) = q^\top x \) (full size). Returns the functional index. | |
| Index | add_emitted_power (Index source, Real factor=1.0) |
| void | run () |
| const std::vector< RieszContour > & | contours () const noexcept |
| Index | background () const noexcept |
Index of the background contour (the last one) after run. | |
| Index | num_sources () const noexcept |
| Index | num_functionals () const noexcept |
| const RieszPencil & | pencil () const noexcept |
| const RieszSetup & | setup () const noexcept |
| Complex | contribution (Index contour, Index source, Index functional, Complex omega) const |
| Complex | total (Index source, Index functional, Complex omega) const |
| Sum of all contributions: the expansion of \( Q_f(x_s(\omega)) \). | |
| Matrix | spectrum (Index source, Index functional, std::span< const Complex > omegas) const |
| Matrix | direct (Complex omega) const |
| Vector | field (Index contour, Index source, Complex omega) const |
| Vector | expand (Index source, Complex omega) const |
| Vector | direct_field (Index source, Complex omega) const |
| Direct solution at ω (full size). | |
Riesz projection on the pencil of a Resonance problem (2D / 3D).
| hpfem::physics::RieszProjection< Dim >::RieszProjection | ( | const Resonance< Dim > & | problem, |
| RieszSetup | setup | ||
| ) |
| Index hpfem::physics::RieszProjection< Dim >::add_current | ( | const assembly::ComplexVectorField< Dim > & | current, |
| int | extra_order = 2 |
||
| ) |
Assembles current_load of the current density J (A/m^Dim) and adds it.
A current source: load \( i\omega\mu_0 b_J \) with \( b_J \) from current_load (or axisymmetric_current_load).
| Index hpfem::physics::RieszProjection< Dim >::add_functional | ( | const std::function< Vector(const fespace::NedelecDofMap< Dim > &)> & | q | ) |
A functional given on the DoF map (physics::point_value_functional, fourier_coefficient_functional, ...).
A functional \( Q(x) = q^\top x \) (full size). Returns the functional index.
| Index hpfem::physics::RieszProjection< Dim >::add_point_value | ( | const Point< Dim > & | x, |
| const assembly::ComplexVector< Dim > & | weight | ||
| ) |
Point value \( Q(E) = E(x)\cdot w \) (w not conjugated).
|
inlinenoexcept |