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

Assembles and solves the conical resonance problem on the block space. More...

#include <conical_resonance.hpp>

Public Member Functions

 ConicalResonance (const fespace::NedelecDofMap< 2 > &transverse, const fespace::DofMap< 2 > &longitudinal, ConicalResonanceSetup setup)
 
const ConicalResonanceSetup & setup () const noexcept
 
const fespace::NedelecDofMap< 2 > & transverse_dofs () const noexcept
 
const fespace::DofMap< 2 > & longitudinal_dofs () const noexcept
 
Real wavenumber () const noexcept
 Target vacuum wavenumber k0 [1/m].
 
const std::vector< Index > & free_dofs () const noexcept
 Free block DoFs (not on PEC facets), in-plane first.
 
const std::optional< fespace::Constraints > & constraints () const noexcept
 Hanging-node and Bloch constraints on free_dofs() (none without them).
 
std::pair< SparseMatrix, SparseMatrix > reduced_pencil () const
 
assembly::ConicalForm form_of_cell (Index cell) const
 Relative tensors of cell c (PML-stretched in the layers), no sources.
 
ConicalResonanceResult solve () const
 
ConicalVector field (const ConicalResonantMode &mode, Index cell, const Point< 2 > &xi) const
 Physical field (E_x, E_y, E_z) of a mode at reference point ξ of cell c.
 
ConicalVector curl_field (const ConicalResonantMode &mode, Index cell, const Point< 2 > &xi) const
 Physical curl of the mode.
 
ConicalVector h_field (const ConicalResonantMode &mode, Index cell, const Point< 2 > &xi) const
 \( H = \nabla\times E/(i\omega\mu_0\mu_r) \) with the mode's complex ω [A/m per unit of E].
 
Point< 3 > poynting (const ConicalResonantMode &mode, Index cell, const Point< 2 > &xi) const
 Time-averaged Poynting vector \( \tfrac12\mathrm{Re}(E\times\bar H) \) of the mode.
 

Detailed Description

Assembles and solves the conical resonance problem on the block space.

Constructor & Destructor Documentation

◆ ConicalResonance()

hpfem::physics::ConicalResonance::ConicalResonance ( const fespace::NedelecDofMap< 2 > &  transverse,
const fespace::DofMap< 2 > &  longitudinal,
ConicalResonanceSetup  setup 
)
Exceptions
InvalidArgumentfor a non-positive target frequency, maps on different meshes or num_modes < 1.

Member Function Documentation

◆ constraints()

const std::optional< fespace::Constraints > & hpfem::physics::ConicalResonance::constraints ( ) const
inlinenoexcept

Hanging-node and Bloch constraints on free_dofs() (none without them).

◆ curl_field()

ConicalVector hpfem::physics::ConicalResonance::curl_field ( const ConicalResonantMode &  mode,
Index  cell,
const Point< 2 > &  xi 
) const

Physical curl of the mode.

◆ field()

ConicalVector hpfem::physics::ConicalResonance::field ( const ConicalResonantMode &  mode,
Index  cell,
const Point< 2 > &  xi 
) const

Physical field (E_x, E_y, E_z) of a mode at reference point ξ of cell c.

◆ form_of_cell()

assembly::ConicalForm hpfem::physics::ConicalResonance::form_of_cell ( Index  cell) const

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

◆ free_dofs()

const std::vector< Index > & hpfem::physics::ConicalResonance::free_dofs ( ) const
inlinenoexcept

Free block DoFs (not on PEC facets), in-plane first.

◆ h_field()

ConicalVector hpfem::physics::ConicalResonance::h_field ( const ConicalResonantMode &  mode,
Index  cell,
const Point< 2 > &  xi 
) const

\( H = \nabla\times E/(i\omega\mu_0\mu_r) \) with the mode's complex ω [A/m per unit of E].

◆ longitudinal_dofs()

const fespace::DofMap< 2 > & hpfem::physics::ConicalResonance::longitudinal_dofs ( ) const
inlinenoexcept

◆ poynting()

Point< 3 > hpfem::physics::ConicalResonance::poynting ( const ConicalResonantMode &  mode,
Index  cell,
const Point< 2 > &  xi 
) const

Time-averaged Poynting vector \( \tfrac12\mathrm{Re}(E\times\bar H) \) of the mode.

◆ reduced_pencil()

std::pair< SparseMatrix, SparseMatrix > hpfem::physics::ConicalResonance::reduced_pencil ( ) const

The pencil solve factorises: stiffness and mass on free_dofs(), reduced by the constraints ( \( P^H S P \), \( P^H M P \)), compressed.

◆ setup()

const ConicalResonanceSetup & hpfem::physics::ConicalResonance::setup ( ) const
inlinenoexcept

◆ solve()

ConicalResonanceResult hpfem::physics::ConicalResonance::solve ( ) const

Modes closest to the target; fewer than num_modes if fewer converged.

Exceptions
Erroron non-convergence, Cancelled from the progress callback.

◆ transverse_dofs()

const fespace::NedelecDofMap< 2 > & hpfem::physics::ConicalResonance::transverse_dofs ( ) const
inlinenoexcept

◆ wavenumber()

Real hpfem::physics::ConicalResonance::wavenumber ( ) const
inlinenoexcept

Target vacuum wavenumber k0 [1/m].


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