|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#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) |
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).
| using hpfem::fespace::H1Basis< Dim >::Topology = mesh::SimplexTopology<Dim> |
|
explicit |
| InvalidArgument | if any order is < 1 or an entity order exceeds the cell order. |
|
inlinenoexcept |
|
inlinenoexcept |
First function index of the functions of edge / face k and of the interior.
| 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).
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Maximal polynomial degree occurring.
|
inlinenoexcept |
Total number of shape functions.
|
staticconstexpr |