1#ifndef INCG_LF_REFINEMENT_PAT_H_
2#define INCG_LF_REFINEMENT_PAT_H_
10#include <lf/mesh/mesh.h>
206 [[nodiscard]] std::vector<Eigen::Matrix<int, Eigen::Dynamic, Eigen::Dynamic>>
244 "ref pattern " <<
ref_pat_ <<
" needs anchor!");
Represents a reference element with all its properties.
constexpr size_type NumSubEntities(dim_t sub_codim) const
Get the number of sub-entities of this RefEl with the given codimension.
std::string ToString() const
Return a string representation of this Reference element.
Abstract interface class for encoding topological local refinement
RefinementPattern(const RefinementPattern &)=default
Class containing information about the refinement of a cell.
Hybrid2DRefinementPattern(const Hybrid2DRefinementPattern &)=default
Hybrid2DRefinementPattern & operator=(Hybrid2DRefinementPattern &&)=default
Hybrid2DRefinementPattern(Hybrid2DRefinementPattern &&)=default
~Hybrid2DRefinementPattern() override=default
lf::base::size_type NumChildren(lf::base::dim_t codim) const override
provide number of child entities of a given co-dimension to be created by refinement
lf::base::sub_idx_t anchor_
std::vector< Eigen::Matrix< int, Eigen::Dynamic, Eigen::Dynamic > > ChildPolygons(lf::base::dim_t codim) const override
provide lattice reference coordinates of vertices of child polygons
lf::base::sub_idx_t anchor() const
Hybrid2DRefinementPattern & operator=(const Hybrid2DRefinementPattern &)=default
Hybrid2DRefinementPattern(lf::base::RefEl ref_el, RefPat ref_pat)
constructor
Hybrid2DRefinementPattern & setAnchor(lf::base::sub_idx_t anchor)
set local number of anchor edge
Hybrid2DRefinementPattern & setRefPattern(RefPat ref_pat)
set refinement pattern
Hybrid2DRefinementPattern(lf::base::RefEl ref_el)
constructor
Hybrid2DRefinementPattern(lf::base::RefEl ref_el, RefPat ref_pat, lf::base::sub_idx_t anchor)
constructor
const unsigned int kIdxNil
Index flagged as invalid.
unsigned int size_type
general type for variables related to size of arrays
unsigned int sub_idx_t
type for local indices of sub-entities
unsigned int dim_t
type for dimensions and co-dimensions and numbers derived from them
unsigned int glb_idx_t
type for global index of mesh entities (nodes, edges, cells)
tools for regular or local refinement of 2D hybrid meshes
std::ostream & operator<<(std::ostream &o, const RefPat &refpat)
const unsigned int idx_nil
RefPat
(possibly incomplete) list of refinement patterns for triangles/quadrilaterals