|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
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. | |
Assembles and solves the conical resonance problem on the block space.
| hpfem::physics::ConicalResonance::ConicalResonance | ( | const fespace::NedelecDofMap< 2 > & | transverse, |
| const fespace::DofMap< 2 > & | longitudinal, | ||
| ConicalResonanceSetup | setup | ||
| ) |
| InvalidArgument | for a non-positive target frequency, maps on different meshes or num_modes < 1. |
|
inlinenoexcept |
Hanging-node and Bloch constraints on free_dofs() (none without them).
| ConicalVector hpfem::physics::ConicalResonance::curl_field | ( | const ConicalResonantMode & | mode, |
| Index | cell, | ||
| const Point< 2 > & | xi | ||
| ) | const |
Physical curl of the mode.
| 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.
| assembly::ConicalForm hpfem::physics::ConicalResonance::form_of_cell | ( | Index | cell | ) | const |
Relative tensors of cell c (PML-stretched in the layers), no sources.
|
inlinenoexcept |
Free block DoFs (not on PEC facets), in-plane first.
| 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].
|
inlinenoexcept |
| 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.
| 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.
|
inlinenoexcept |
| ConicalResonanceResult hpfem::physics::ConicalResonance::solve | ( | ) | const |
|
inlinenoexcept |
|
inlinenoexcept |
Target vacuum wavenumber k0 [1/m].