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

Assembles and solves the resonance problem on a Nédélec space. More...

#include <resonance.hpp>

Public Member Functions

 Resonance (const fespace::NedelecDofMap< Dim > &dofs, ResonanceSetup< Dim > setup)
 
const fespace::NedelecDofMap< Dim > & dofs () const noexcept
 
const ResonanceSetup< Dim > & setup () const noexcept
 
assembly::MaxwellForm< Dim > form_of_cell (Index cell) const
 Relative tensors of cell c (PML-stretched in the layers), no sources.
 
std::vector< ResonantMode > solve () const
 

Detailed Description

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

Assembles and solves the resonance problem on a Nédélec space.

Constructor & Destructor Documentation

◆ Resonance()

template<int Dim>
hpfem::physics::Resonance< Dim >::Resonance ( const fespace::NedelecDofMap< Dim > &  dofs,
ResonanceSetup< Dim >  setup 
)
Exceptions
InvalidArgumentif the target frequency is not positive.

Member Function Documentation

◆ dofs()

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

◆ form_of_cell()

template<int Dim>
assembly::MaxwellForm< Dim > hpfem::physics::Resonance< Dim >::form_of_cell ( Index  cell) const

Relative tensors of cell c (PML-stretched in the layers), no sources.

◆ setup()

template<int Dim>
const ResonanceSetup< Dim > & hpfem::physics::Resonance< Dim >::setup ( ) const
inlinenoexcept

◆ solve()

template<int Dim>
std::vector< ResonantMode > hpfem::physics::Resonance< Dim >::solve ( ) const

Modes ordered by the distance of ω to the target; fewer than num_modes if the Arnoldi iteration converged fewer.

Exceptions
Erroron non-convergence.

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