8 Eigen::Vector2d(0, 1).transpose();
11 (Eigen::MatrixXd{2, 3} << 0, 1, 0, 0, 0, 1).finished();
14 (Eigen::MatrixXd{2, 4} << 0, 1, 1, 0, 0, 0, 1, 1).finished();
20 stream <<
"Type of reference element: " << ref_el.
ToString() <<
'\n';
21 stream <<
"Dimension: " << dim_ref_el <<
'\n';
22 stream <<
"Number of nodes: " << no_nodes <<
'\n';
24 if (output_ctrl > 0) {
26 for (
base::dim_t co_dim = dim_ref_el; co_dim > 0; co_dim--) {
28 stream <<
"Codimension " << co_dim <<
" has " << num_sub_ent
32 if (output_ctrl > 10) {
33 for (; num_sub_ent > 0; num_sub_ent--) {
34 const std::int32_t sub_ent =
35 static_cast<std::int32_t
>(num_sub_ent) - 1;
36 stream <<
" Subentity " << sub_ent <<
" is of type "
41 stream <<
" and has coordinates ["
43 << ref_el.
NodeCoords().col(sub_ent)[1] <<
"]" <<
'\n';
Represents a reference element with all its properties.
static const Eigen::MatrixXd ncoords_quad_dynamic_
static const Eigen::MatrixXd ncoords_segment_dynamic_
const Eigen::MatrixXd & NodeCoords() const
Get the coordinates of the nodes of this reference element.
constexpr size_type NumSubEntities(dim_t sub_codim) const
Get the number of sub-entities of this RefEl with the given codimension.
constexpr dim_t Dimension() const
Return the dimension of this reference element.
static const Eigen::MatrixXd ncoords_tria_dynamic_
static constexpr RefEl kPoint()
Returns the (0-dimensional) reference point.
static const Eigen::MatrixXd ncoords_point_dynamic_
constexpr size_type NumNodes() const
The number of nodes of this reference element.
std::string ToString() const
Return a string representation of this Reference element.
constexpr RefEl SubType(dim_t sub_codim, dim_t sub_index) const
Return the RefEl of the sub-entity with codim sub_codim and index sub_index.
unsigned int dim_t
type for dimensions and co-dimensions and numbers derived from them
Contains basic functionality that is used by other parts of LehrFEM++.
void PrintInfo(std::ostream &stream, const RefEl &ref_el, int output_ctrl)