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 o <<
"Type of reference element: " << ref_el.
ToString() << std::endl;
21 o <<
"Dimension: " << dim_ref_el << std::endl;
22 o <<
"Number of nodes: " << no_nodes << std::endl;
24 if (output_ctrl > 0) {
26 for (
int co_dim = dim_ref_el; co_dim > 0; co_dim--) {
28 o <<
"Codimension " << co_dim <<
" has " << num_sub_ent
32 if (output_ctrl > 10) {
33 for (; num_sub_ent > 0; num_sub_ent--) {
34 int sub_ent = num_sub_ent - 1;
35 o <<
" Subentity " << sub_ent <<
" is of type "
40 o <<
" and has coordinates [" << ref_el.
NodeCoords().col(sub_ent)[0]
41 <<
" " << ref_el.
NodeCoords().col(sub_ent)[1] <<
"]" << std::endl;
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.
Contains basic functionality that is used by other parts of LehrFEM++.
void PrintInfo(std::ostream &o, const RefEl &ref_el, int output_ctrl)