hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
periodic.hpp File Reference
#include <complex>
#include <map>
#include <optional>
#include <set>
#include <span>
#include <vector>
#include "hpfem/core/types.hpp"
#include "hpfem/fespace/constraints.hpp"
#include "hpfem/fespace/dof_map.hpp"
#include "hpfem/mesh/mesh.hpp"
Include dependency graph for periodic.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hpfem::assembly::PeriodicPair< Dim >
 
class  hpfem::assembly::PeriodicLocator< Dim >
 
struct  hpfem::assembly::PeriodicLocator< Dim >::Partner
 

Namespaces

namespace  hpfem
 
namespace  hpfem::assembly
 

Functions

template<int Dim>
Complex hpfem::assembly::bloch_phase (const Point< Dim > &k, const Point< Dim > &shift)
 Bloch phase \( e^{i k\cdot a} \) of the Bloch wave vector k and lattice vector a.
 
template<int Dim>
fespace::Constraints hpfem::assembly::bloch_constraints (const fespace::NedelecDofMap< Dim > &dofs, std::span< const PeriodicPair< Dim > > pairs, Real tolerance=1e-8)
 
template<int Dim>
fespace::Constraints hpfem::assembly::bloch_constraints (const fespace::DofMap< Dim > &dofs, std::span< const PeriodicPair< Dim > > pairs, Real tolerance=1e-8)
 
template fespace::Constraints hpfem::assembly::bloch_constraints< 2 > (const fespace::NedelecDofMap< 2 > &, std::span< const PeriodicPair< 2 > >, Real)
 
template fespace::Constraints hpfem::assembly::bloch_constraints< 3 > (const fespace::NedelecDofMap< 3 > &, std::span< const PeriodicPair< 3 > >, Real)
 
template fespace::Constraints hpfem::assembly::bloch_constraints< 2 > (const fespace::DofMap< 2 > &, std::span< const PeriodicPair< 2 > >, Real)
 
template fespace::Constraints hpfem::assembly::bloch_constraints< 3 > (const fespace::DofMap< 3 > &, std::span< const PeriodicPair< 3 > >, Real)
 

Detailed Description

Bloch-periodic boundary conditions \( E(x + a) = e^{i k\cdot a} E(x) \) on the Nédélec and H1 spaces as DoF constraints. The facets of the two sides need not match: for every group of overlapping facets (after the shift) the coarser facet carries the trace of the coupled space, truncated to the lowest polynomial order occurring in the group (the minimum rule of the conforming hp spaces), its surplus modes are constrained to zero, and the DoFs of the finer facets are the interpolation of that trace (exact for nested facets: identical facets, facets refined on one side only, different orders on the two sides). Facets that are neither identical nor nested (unrelated meshes on the two sides) are coupled by interpolating the master trace, which is exact only up to the slave's order (a warning is logged). Identical facets with equal orders give the phase times ±1 for edges and the face permutation matrices in 3D, so the orientation bookkeeping of ADR-0003 is automatic. See docs/theory/maxwell.md#bloch-periodic-constraints.