|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <periodic.hpp>
Classes | |
| struct | Partner |
Public Member Functions | |
| PeriodicLocator (const mesh::Mesh< Dim > &mesh, std::span< const PeriodicPair< Dim > > pairs, Real tolerance=1e-8) | |
| bool | is_slave (Index facet) const |
| bool | is_master (Index facet) const |
| std::optional< Partner > | partner (Index slave_facet, const Point< Dim > &x) const |
| bool | empty () const noexcept |
Partner lookup across the periodic faces for post-processing and the residual estimators: for a point x on a slave facet, the master cell containing x − a and the reference coordinates there, with the phase (field at x = phase × field at x − a). Groups of overlapping facets are formed as in bloch_constraints.
| hpfem::assembly::PeriodicLocator< Dim >::PeriodicLocator | ( | const mesh::Mesh< Dim > & | mesh, |
| std::span< const PeriodicPair< Dim > > | pairs, | ||
| Real | tolerance = 1e-8 |
||
| ) |
| InvalidArgument | as bloch_constraints. |
|
inlinenoexcept |
| bool hpfem::assembly::PeriodicLocator< Dim >::is_master | ( | Index | facet | ) | const |
| bool hpfem::assembly::PeriodicLocator< Dim >::is_slave | ( | Index | facet | ) | const |
| std::optional< Partner > hpfem::assembly::PeriodicLocator< Dim >::partner | ( | Index | slave_facet, |
| const Point< Dim > & | x | ||
| ) | const |
std::nullopt if slave_facet is no slave facet or x − a lies in no master cell of its group (within 1e-6 in reference coordinates).