FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Geometry::RefinementTemplate< Shape_, CoShape_ > Struct Template Reference

Template for refining a mesh entity. More...

#include <template_builder.hpp>

Public Types

template<int dim_>
using TopologyTemplateByDim = TopologyTemplate< typename Shape::FaceTraits< Shape_, dim_ >::ShapeType >
 Accessor for topology types. More...
 

Public Member Functions

template<int dim_>
std::vector< TopologyTemplateByDim< dim_ > > & get_topologies ()
 TopologyTemplate accessor. More...
 
template<int dim_>
const std::vector< TopologyTemplateByDim< dim_ > > & get_topologies () const
 const TopologyTemplate accessor More...
 
template<int dim_>
Index num_entities () const
 Returns the number of entities of dimension dim_ in this template. More...
 

Public Attributes

std::vector< TopologyTemplate< CoShape_ > > topologies
 Entities of shape CoShape_ added by this template. More...
 

Detailed Description

template<typename Shape_, typename CoShape_ = Shape_>
struct FEAT::Geometry::RefinementTemplate< Shape_, CoShape_ >

Template for refining a mesh entity.

This is a collection of TopologyTemplates, which describe how to construct all children of all dimension of the template.

Template Parameters
Shape_Shape of this template
CoShape_Current shape of this data structure definition.

This is a dimension-recursive data structure via recursion over the CoShape_.

Definition at line 626 of file template_builder.hpp.

Member Typedef Documentation

◆ TopologyTemplateByDim

template<typename Shape_ , typename CoShape_ = Shape_>
template<int dim_>
using FEAT::Geometry::RefinementTemplate< Shape_, CoShape_ >::TopologyTemplateByDim = TopologyTemplate<typename Shape::FaceTraits<Shape_, dim_>::ShapeType>

Accessor for topology types.

Definition at line 631 of file template_builder.hpp.

Member Function Documentation

◆ get_topologies() [1/2]

template<typename Shape_ , typename CoShape_ = Shape_>
template<int dim_>
std::vector< TopologyTemplateByDim< dim_ > > & FEAT::Geometry::RefinementTemplate< Shape_, CoShape_ >::get_topologies ( )
inline

TopologyTemplate accessor.

Template Parameters
Dimensionof topologies to access

Definition at line 647 of file template_builder.hpp.

◆ get_topologies() [2/2]

template<typename Shape_ , typename CoShape_ = Shape_>
template<int dim_>
const std::vector< TopologyTemplateByDim< dim_ > > & FEAT::Geometry::RefinementTemplate< Shape_, CoShape_ >::get_topologies ( ) const
inline

const TopologyTemplate accessor

Template Parameters
Dimensionof topologies to access

Definition at line 659 of file template_builder.hpp.

◆ num_entities()

template<typename Shape_ , typename CoShape_ = Shape_>
template<int dim_>
Index FEAT::Geometry::RefinementTemplate< Shape_, CoShape_ >::num_entities ( ) const
inline

Returns the number of entities of dimension dim_ in this template.

Template Parameters
dim_Dimension to query

Definition at line 671 of file template_builder.hpp.

Member Data Documentation

◆ topologies

template<typename Shape_ , typename CoShape_ = Shape_>
std::vector<TopologyTemplate<CoShape_> > FEAT::Geometry::RefinementTemplate< Shape_, CoShape_ >::topologies

Entities of shape CoShape_ added by this template.

Presented as topology templates, which allow collecting all entities making up the templates children.

Definition at line 639 of file template_builder.hpp.


The documentation for this struct was generated from the following file: