20 static constexpr Index kChildren = 4;
22 static constexpr std::array<std::array<LocalIndex, 3>, 4> kChildrenNodes{
23 {{0, 3, 5}, {3, 1, 4}, {5, 4, 2}, {3, 4, 5}}};
28 static constexpr Index kChildren = 8;
31 static constexpr std::array<std::array<LocalIndex, 4>, 8> kChildrenNodes{{{0, 4, 5, 6},
45 if (i > 0) xi(i - 1) = 1.0;
52 if (n <= Dim)
return reference_vertex<Dim>(n);
54 return 0.5 * (reference_vertex<Dim>(e[0]) + reference_vertex<Dim>(e[1]));
63 for (
int j = 1; j <= Dim; ++j) {
64 x += xi(j - 1) * (reference_node<Dim>(nodes[
as_size(j)]) - reference_node<Dim>(nodes[0]));
Definition red_refinement.hpp:13
Point< Dim > reference_node(LocalIndex n)
Reference coordinates of local node n of the refined cell (vertex or edge midpoint).
Definition red_refinement.hpp:51
Point< Dim > parent_reference(LocalIndex child, const Point< Dim > &xi)
Definition red_refinement.hpp:60
Point< Dim > reference_vertex(LocalIndex i)
Reference vertex i of the simplex (0 = origin).
Definition red_refinement.hpp:43
Eigen::Matrix< Real, Dim, 1 > Point
Definition types.hpp:27
constexpr std::size_t as_size(Index i) noexcept
Converts a non-negative global or local index to a container index.
Definition types.hpp:34
std::int64_t Index
global indices (DoFs, entities)
Definition types.hpp:17
std::int32_t LocalIndex
element-local indices
Definition types.hpp:18
Local topology tables of the reference simplex in Dim dimensions.
Definition simplex_topology.hpp:27
Definition red_refinement.hpp:16