hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Functions
hpfem::fespace Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  CellLayout
 
class  Constraints
 
class  DubinerBasis
 
class  EntityDofMap
 
class  H1Basis
 
struct  H1Counts
 DoFs per entity of the H1 space: one per vertex, p − 1 per edge, … More...
 
class  NedelecBasis
 
struct  NedelecCounts
 DoFs per entity of the Nédélec space: none per vertex, p per edge, p(p − 1) per face, … More...
 
struct  ReferenceElement
 Geometry and numbering of the reference simplex in Dim dimensions. More...
 

Typedefs

template<int Dim>
using DofMap = EntityDofMap< Dim, H1Counts >
 DoF map of the hierarchical H1 space (H1Basis).
 
template<int Dim>
using NedelecDofMap = EntityDofMap< Dim, NedelecCounts >
 DoF map of the hierarchical H(curl) space (NedelecBasis).
 
template<int Dim>
using H1Layout = CellLayout< Dim >
 Per-cell orders and orientation codes (shared with NedelecBasis).
 
template<int Dim>
using CurlVector = Eigen::Matrix< Real, Dim==2 ? 1 :3, 1 >
 Curl of a reference field: a scalar (stored as a 1-vector) in 2D, a 3-vector in 3D.
 

Functions

constexpr Index h1_edge_functions (int p) noexcept
 Number of basis functions associated with an entity of the given order.
 
constexpr Index h1_face_functions (int p) noexcept
 
template<int Dim>
constexpr Index h1_cell_functions (int p) noexcept
 
constexpr Index nedelec_edge_functions (int p) noexcept
 Number of functions of the order-p space (Nédélec I, ND_p, lowest order p = 1) per entity.
 
constexpr Index nedelec_face_functions (int p) noexcept
 
template<int Dim>
constexpr Index nedelec_cell_functions (int p) noexcept
 
template<int Dim>
constexpr Index nedelec_dimension (int p) noexcept
 dim ND_p of one cell with uniform order: p(p+2) (triangle), p(p+2)(p+3)/2 (tetrahedron).
 
void legendre (int n, Real x, std::span< Real > values, std::span< Real > derivatives)
 
void scaled_integrated_legendre (int n, Real x, Real t, std::span< Real > values, std::span< Real > dx, std::span< Real > dt)
 
void jacobi (int n, Real alpha, Real beta, Real x, std::span< Real > values)
 

Typedef Documentation

◆ CurlVector

template<int Dim>
using hpfem::fespace::CurlVector = typedef Eigen::Matrix<Real, Dim == 2 ? 1 : 3, 1>

Curl of a reference field: a scalar (stored as a 1-vector) in 2D, a 3-vector in 3D.

◆ DofMap

template<int Dim>
using hpfem::fespace::DofMap = typedef EntityDofMap<Dim, H1Counts>

DoF map of the hierarchical H1 space (H1Basis).

◆ H1Layout

template<int Dim>
using hpfem::fespace::H1Layout = typedef CellLayout<Dim>

Per-cell orders and orientation codes (shared with NedelecBasis).

◆ NedelecDofMap

template<int Dim>
using hpfem::fespace::NedelecDofMap = typedef EntityDofMap<Dim, NedelecCounts>

DoF map of the hierarchical H(curl) space (NedelecBasis).

Function Documentation

◆ h1_cell_functions()

template<int Dim>
constexpr Index hpfem::fespace::h1_cell_functions ( int  p)
constexprnoexcept

◆ h1_edge_functions()

constexpr Index hpfem::fespace::h1_edge_functions ( int  p)
constexprnoexcept

Number of basis functions associated with an entity of the given order.

◆ h1_face_functions()

constexpr Index hpfem::fespace::h1_face_functions ( int  p)
constexprnoexcept

◆ jacobi()

void hpfem::fespace::jacobi ( int  n,
Real  alpha,
Real  beta,
Real  x,
std::span< Real >  values 
)

Jacobi polynomials \( P_0^{(\alpha,\beta)}, \dots, P_n^{(\alpha,\beta)} \) at x ∈ [-1, 1] (standard normalisation \( P_n^{(\alpha,\beta)}(1) = \binom{n+\alpha}{n} \)), α, β > -1; values must have at least n + 1 entries. \( P_n^{(0,0)} \) are the Legendre polynomials.

◆ legendre()

void hpfem::fespace::legendre ( int  n,
Real  x,
std::span< Real >  values,
std::span< Real >  derivatives 
)

Legendre polynomials \( P_0, \dots, P_n \) at x ∈ [-1, 1] and their derivatives. values and derivatives must have size n + 1.

◆ nedelec_cell_functions()

template<int Dim>
constexpr Index hpfem::fespace::nedelec_cell_functions ( int  p)
constexprnoexcept

◆ nedelec_dimension()

template<int Dim>
constexpr Index hpfem::fespace::nedelec_dimension ( int  p)
constexprnoexcept

dim ND_p of one cell with uniform order: p(p+2) (triangle), p(p+2)(p+3)/2 (tetrahedron).

◆ nedelec_edge_functions()

constexpr Index hpfem::fespace::nedelec_edge_functions ( int  p)
constexprnoexcept

Number of functions of the order-p space (Nédélec I, ND_p, lowest order p = 1) per entity.

◆ nedelec_face_functions()

constexpr Index hpfem::fespace::nedelec_face_functions ( int  p)
constexprnoexcept

◆ scaled_integrated_legendre()

void hpfem::fespace::scaled_integrated_legendre ( int  n,
Real  x,
Real  t,
std::span< Real >  values,
std::span< Real >  dx,
std::span< Real >  dt 
)

Scaled integrated Legendre polynomials \( L_i^S(x, t) = t^i L_i(x/t) \), i = 1..n, with \( L_1 = x \) and \( L_i(x) = \int_{-1}^{x} P_{i-1}(s)\,ds \) for i ≥ 2 (so that \( L_i(\pm 1) = 0 \)). Homogeneous of degree i in (x, t); for t = 1 they are the plain integrated Legendre polynomials. Entry 0 of every output is unused (set to 0); values, dx, dt must have size n + 1.