|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
Geometry and numbering of the reference simplex in Dim dimensions.
More...
#include <reference_element.hpp>
Public Types | |
| using | Topology = mesh::SimplexTopology< Dim > |
| using | FacetPoint = Point< Dim - 1 > |
| point of the reference facet ([0,1] or triangle) | |
Static Public Member Functions | |
| static Point< Dim > | vertex (LocalIndex i) |
| Vertex i: \( e_0 = 0 \), \( e_i \) the i-th unit vector. | |
| static constexpr Real | volume () noexcept |
| Measure of the reference simplex: 1/2 (triangle), 1/6 (tetrahedron). | |
| static Point< Dim > | centroid () |
| static std::array< Real, static_cast< std::size_t >(Dim+1)> | barycentric (const Point< Dim > &xi) |
| Barycentric coordinates \( \lambda_0 = 1 - \sum_i \xi_i,\ \lambda_i = \xi_i \). | |
| static std::array< Point< Dim >, static_cast< std::size_t >(Dim+1)> | barycentric_gradients () |
| Constant reference gradients \( \nabla_\xi \lambda_i \). | |
| static bool | contains (const Point< Dim > &xi, Real tol=1e-12) |
| True if all barycentric coordinates are \( \ge -\mathrm{tol} \) (closed simplex). | |
| static Point< Dim > | facet_normal (LocalIndex k) |
| Outward unit normal of local facet k. | |
| static Real | facet_measure (LocalIndex k) |
| Measure of local facet k in reference coordinates (length in 2D, area in 3D). | |
| static LocalIndex | opposite_vertex (LocalIndex k) |
| Local vertex opposite facet k (the one not contained in it). | |
| static Point< Dim > | facet_point (LocalIndex k, const FacetPoint &eta) |
| static Point< Dim > | edge_point (LocalIndex k, Real t) |
Point at parameter t ∈ [0,1] on local edge k, from kEdgeVertices[k][0] to [1]. | |
Static Public Attributes | |
| static constexpr int | kDim = Dim |
| static constexpr LocalIndex | kNumVertices = Dim + 1 |
| static constexpr LocalIndex | kNumEdges = Topology::kNumEdges |
| static constexpr LocalIndex | kNumFacets = Dim + 1 |
| static constexpr const auto & | kEdgeVertices = Topology::kEdgeVertices |
Local vertices of each edge / facet: the binding tables of mesh::SimplexTopology. | |
| static constexpr const auto & | kFacetVertices = Topology::kFacetVertices |
Geometry and numbering of the reference simplex in Dim dimensions.
| using hpfem::fespace::ReferenceElement< Dim >::FacetPoint = Point<Dim - 1> |
point of the reference facet ([0,1] or triangle)
| using hpfem::fespace::ReferenceElement< Dim >::Topology = mesh::SimplexTopology<Dim> |
|
inlinestatic |
Barycentric coordinates \( \lambda_0 = 1 - \sum_i \xi_i,\ \lambda_i = \xi_i \).
|
inlinestatic |
Constant reference gradients \( \nabla_\xi \lambda_i \).
|
inlinestatic |
|
inlinestatic |
True if all barycentric coordinates are \( \ge -\mathrm{tol} \) (closed simplex).
|
inlinestatic |
Point at parameter t ∈ [0,1] on local edge k, from kEdgeVertices[k][0] to [1].
|
inlinestatic |
Measure of local facet k in reference coordinates (length in 2D, area in 3D).
|
inlinestatic |
Outward unit normal of local facet k.
|
inlinestatic |
Affine map of the reference facet onto local facet k, vertices in the order of kFacetVertices[k]: \( \eta \mapsto v_{f_0} + \sum_j \eta_j (v_{f_j} - v_{f_0}) \).
|
inlinestatic |
Local vertex opposite facet k (the one not contained in it).
|
inlinestatic |
Vertex i: \( e_0 = 0 \), \( e_i \) the i-th unit vector.
|
inlinestaticconstexprnoexcept |
Measure of the reference simplex: 1/2 (triangle), 1/6 (tetrahedron).
|
staticconstexpr |
|
staticconstexpr |
Local vertices of each edge / facet: the binding tables of mesh::SimplexTopology.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |