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

Go to the source code of this file.

Classes

struct  hpfem::assembly::EntitySet< Dim >
 
struct  hpfem::assembly::DofValues
 DoFs (sorted, unique) with values. More...
 

Namespaces

namespace  hpfem
 
namespace  hpfem::assembly
 

Typedefs

template<int Dim>
using hpfem::assembly::ScalarSampler = std::function< Complex(Index cell, const Point< Dim > &xi, const Point< Dim > &x)>
 
template<int Dim>
using hpfem::assembly::VectorSampler = std::function< ComplexVector< Dim >(Index cell, const Point< Dim > &xi, const Point< Dim > &x)>
 

Functions

template<int Dim>
DofValues hpfem::assembly::interpolate (const fespace::DofMap< Dim > &dofs, const EntitySet< Dim > &set, const std::type_identity_t< ScalarSampler< Dim > > &g)
 
template<int Dim>
DofValues hpfem::assembly::interpolate (const fespace::NedelecDofMap< Dim > &dofs, const EntitySet< Dim > &set, const std::type_identity_t< VectorSampler< Dim > > &g)
 H(curl): tangential projections along edges and on faces, full projection in the interior.
 
template<int Dim>
std::vector< DofValues > hpfem::assembly::interpolate (const fespace::DofMap< Dim > &dofs, const EntitySet< Dim > &set, std::span< const std::type_identity_t< ScalarSampler< Dim > > > gs)
 
template<int Dim>
std::vector< DofValues > hpfem::assembly::interpolate (const fespace::NedelecDofMap< Dim > &dofs, const EntitySet< Dim > &set, std::span< const std::type_identity_t< VectorSampler< Dim > > > gs)
 
template<int Dim>
Vector hpfem::assembly::interpolate (const fespace::DofMap< Dim > &dofs, const std::type_identity_t< ScalarSampler< Dim > > &g)
 Interpolation on the whole mesh as a coefficient vector.
 
template<int Dim>
Vector hpfem::assembly::interpolate (const fespace::NedelecDofMap< Dim > &dofs, const std::type_identity_t< VectorSampler< Dim > > &g)
 
template<int Dim>
ScalarSampler< Dim > hpfem::assembly::physical_sampler (const std::function< Complex(const Point< Dim > &)> &g)
 Sampler of a physical field g(x) (cell and ΞΎ ignored).
 
template<int Dim>
VectorSampler< Dim > hpfem::assembly::physical_sampler (const ComplexVectorField< Dim > &g)
 
template DofValues hpfem::assembly::interpolate< 2 > (const fespace::DofMap< 2 > &, const EntitySet< 2 > &, const ScalarSampler< 2 > &)
 
template DofValues hpfem::assembly::interpolate< 3 > (const fespace::DofMap< 3 > &, const EntitySet< 3 > &, const ScalarSampler< 3 > &)
 
template DofValues hpfem::assembly::interpolate< 2 > (const fespace::NedelecDofMap< 2 > &, const EntitySet< 2 > &, const VectorSampler< 2 > &)
 
template DofValues hpfem::assembly::interpolate< 3 > (const fespace::NedelecDofMap< 3 > &, const EntitySet< 3 > &, const VectorSampler< 3 > &)
 
template std::vector< DofValues > hpfem::assembly::interpolate< 2 > (const fespace::DofMap< 2 > &, const EntitySet< 2 > &, std::span< const ScalarSampler< 2 > >)
 
template std::vector< DofValues > hpfem::assembly::interpolate< 3 > (const fespace::DofMap< 3 > &, const EntitySet< 3 > &, std::span< const ScalarSampler< 3 > >)
 
template std::vector< DofValues > hpfem::assembly::interpolate< 2 > (const fespace::NedelecDofMap< 2 > &, const EntitySet< 2 > &, std::span< const VectorSampler< 2 > >)
 
template std::vector< DofValues > hpfem::assembly::interpolate< 3 > (const fespace::NedelecDofMap< 3 > &, const EntitySet< 3 > &, std::span< const VectorSampler< 3 > >)
 
template Vector hpfem::assembly::interpolate< 2 > (const fespace::DofMap< 2 > &, const ScalarSampler< 2 > &)
 
template Vector hpfem::assembly::interpolate< 3 > (const fespace::DofMap< 3 > &, const ScalarSampler< 3 > &)
 
template Vector hpfem::assembly::interpolate< 2 > (const fespace::NedelecDofMap< 2 > &, const VectorSampler< 2 > &)
 
template Vector hpfem::assembly::interpolate< 3 > (const fespace::NedelecDofMap< 3 > &, const VectorSampler< 3 > &)
 
template ScalarSampler< 2 > hpfem::assembly::physical_sampler< 2 > (const std::function< Complex(const Point< 2 > &)> &)
 
template ScalarSampler< 3 > hpfem::assembly::physical_sampler< 3 > (const std::function< Complex(const Point< 3 > &)> &)
 
template VectorSampler< 2 > hpfem::assembly::physical_sampler< 2 > (const ComplexVectorField< 2 > &)
 
template VectorSampler< 3 > hpfem::assembly::physical_sampler< 3 > (const ComplexVectorField< 3 > &)
 

Detailed Description

Hierarchical interpolation into the H1 and H(curl) spaces: vertex values (H1), then the L2 projection along every edge of the remainder onto the edge functions, then the (tangential) projection of the remainder onto the face functions, then onto the interior functions. For a function of the discrete space the result reproduces its coefficients exactly; otherwise it is the hierarchical interpolant. Used for Dirichlet data (dirichlet.hpp), hanging-node constraints (hanging_constraints.hpp) and the transfer of solutions between meshes (prolongation.hpp). See docs/theory/h1-basis.md#interpolation.