hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hpfem::physics::RieszProjection< Dim > Class Template Reference

Riesz projection on the pencil of a Resonance problem (2D / 3D). More...

#include <riesz_projection.hpp>

Inheritance diagram for hpfem::physics::RieszProjection< Dim >:
Inheritance graph
[legend]
Collaboration diagram for hpfem::physics::RieszProjection< Dim >:
Collaboration graph
[legend]

Public Member Functions

 RieszProjection (const Resonance< Dim > &problem, RieszSetup setup)
 
Index 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.
 
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).
 

Detailed Description

template<int Dim>
class hpfem::physics::RieszProjection< Dim >

Riesz projection on the pencil of a Resonance problem (2D / 3D).

Constructor & Destructor Documentation

◆ RieszProjection()

template<int Dim>
hpfem::physics::RieszProjection< Dim >::RieszProjection ( const Resonance< Dim > &  problem,
RieszSetup  setup 
)

Member Function Documentation

◆ add_current() [1/2]

template<int Dim>
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.

◆ add_current() [2/2]

template<int Dim>
Index hpfem::physics::RieszProjectionBase::add_current ( Vector  current_load)

A current source: load \( i\omega\mu_0 b_J \) with \( b_J \) from current_load (or axisymmetric_current_load).

◆ add_functional() [1/2]

template<int Dim>
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, ...).

◆ add_functional() [2/2]

template<int Dim>
Index hpfem::physics::RieszProjectionBase::add_functional ( Vector  q)

A functional \( Q(x) = q^\top x \) (full size). Returns the functional index.

◆ add_point_value()

template<int Dim>
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).

◆ dofs()

template<int Dim>
const fespace::NedelecDofMap< Dim > & hpfem::physics::RieszProjection< Dim >::dofs ( ) const
inlinenoexcept

The documentation for this class was generated from the following file: