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

#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
 

Detailed Description

template<int Dim>
class hpfem::assembly::PeriodicLocator< Dim >

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.

Constructor & Destructor Documentation

◆ PeriodicLocator()

template<int Dim>
hpfem::assembly::PeriodicLocator< Dim >::PeriodicLocator ( const mesh::Mesh< Dim > &  mesh,
std::span< const PeriodicPair< Dim > >  pairs,
Real  tolerance = 1e-8 
)
Exceptions
InvalidArgumentas bloch_constraints.

Member Function Documentation

◆ empty()

template<int Dim>
bool hpfem::assembly::PeriodicLocator< Dim >::empty ( ) const
inlinenoexcept

◆ is_master()

template<int Dim>
bool hpfem::assembly::PeriodicLocator< Dim >::is_master ( Index  facet) const

◆ is_slave()

template<int Dim>
bool hpfem::assembly::PeriodicLocator< Dim >::is_slave ( Index  facet) const

◆ partner()

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


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