hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
hpfem::fespace::H1Basis< Dim > Class Template Reference

#include <h1_basis.hpp>

Public Types

using Topology = mesh::SimplexTopology< Dim >
 

Public Member Functions

 H1Basis (const CellLayout< Dim > &layout)
 
const CellLayout< Dim > & layout () const noexcept
 
Index size () const noexcept
 Total number of shape functions.
 
int max_order () const noexcept
 Maximal polynomial degree occurring.
 
Index edge_offset (std::size_t k) const noexcept
 First function index of the functions of edge / face k and of the interior.
 
Index face_offset (std::size_t k) const noexcept
 
Index cell_offset () const noexcept
 
void evaluate (const Point< Dim > &xi, std::span< Real > values, std::span< Point< Dim > > gradients) const
 

Static Public Attributes

static constexpr std::size_t kNumVertices = static_cast<std::size_t>(Dim + 1)
 

Detailed Description

template<int Dim>
class hpfem::fespace::H1Basis< Dim >

Hierarchical H1 basis of one cell. Function order: the Dim + 1 vertex functions, then the functions of edge 0, 1, …, then (3D) of face 0, 1, …, then the interior functions; within an entity by ascending polynomial degree (docs/theory/h1-basis.md).

Member Typedef Documentation

◆ Topology

template<int Dim>
using hpfem::fespace::H1Basis< Dim >::Topology = mesh::SimplexTopology<Dim>

Constructor & Destructor Documentation

◆ H1Basis()

template<int Dim>
hpfem::fespace::H1Basis< Dim >::H1Basis ( const CellLayout< Dim > &  layout)
explicit
Exceptions
InvalidArgumentif any order is < 1 or an entity order exceeds the cell order.

Member Function Documentation

◆ cell_offset()

template<int Dim>
Index hpfem::fespace::H1Basis< Dim >::cell_offset ( ) const
inlinenoexcept

◆ edge_offset()

template<int Dim>
Index hpfem::fespace::H1Basis< Dim >::edge_offset ( std::size_t  k) const
inlinenoexcept

First function index of the functions of edge / face k and of the interior.

◆ evaluate()

template<int Dim>
void hpfem::fespace::H1Basis< Dim >::evaluate ( const Point< Dim > &  xi,
std::span< Real >  values,
std::span< Point< Dim > >  gradients 
) const

Values and reference gradients of all functions at ξ; both spans need size() entries (gradients may be empty to skip them).

◆ face_offset()

template<int Dim>
Index hpfem::fespace::H1Basis< Dim >::face_offset ( std::size_t  k) const
inlinenoexcept

◆ layout()

template<int Dim>
const CellLayout< Dim > & hpfem::fespace::H1Basis< Dim >::layout ( ) const
inlinenoexcept

◆ max_order()

template<int Dim>
int hpfem::fespace::H1Basis< Dim >::max_order ( ) const
inlinenoexcept

Maximal polynomial degree occurring.

◆ size()

template<int Dim>
Index hpfem::fespace::H1Basis< Dim >::size ( ) const
inlinenoexcept

Total number of shape functions.

Member Data Documentation

◆ kNumVertices

template<int Dim>
constexpr std::size_t hpfem::fespace::H1Basis< Dim >::kNumVertices = static_cast<std::size_t>(Dim + 1)
staticconstexpr

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