FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
FEAT::Geometry::IndexCalculator< Shape_, face_dim_ > Class Template Reference

Calculates the missing index sets if the vertex-at-shape index sets are given. More...

#include <index_calculator.hpp>

Public Types

typedef Shape::FaceTraits< Shape_, face_dim_ >::ShapeType FaceType
 Type of the subshape to calculate the missing information at. More...
 
typedef IndexTree< FaceTypeIndexTreeType
 Type for the IndexTree containing vertex@subshape information. More...
 

Static Public Member Functions

template<typename IndexSetIn_ , typename IndexSetOut_ >
static bool compute (const IndexTreeType &index_tree, const IndexSetIn_ &index_set_in, IndexSetOut_ &index_set_out)
 Calculates an index set from vertex@shape information. More...
 
template<typename IndexSetIn_ , typename IndexSetOut_ >
static void compute_vertex_subshape (const IndexSetIn_ &index_set_in, IndexSetOut_ &index_set_out)
 For given vertex@shape information, numbers subshapes and calculates vertex@subshape. More...
 
static String name ()
 Returns the class name. More...
 

Detailed Description

template<typename Shape_, int face_dim_>
class FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >

Calculates the missing index sets if the vertex-at-shape index sets are given.

Author
Constantin Christof

Definition at line 260 of file index_calculator.hpp.

Member Typedef Documentation

◆ FaceType

template<typename Shape_ , int face_dim_>
typedef Shape::FaceTraits<Shape_,face_dim_>::ShapeType FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::FaceType

Type of the subshape to calculate the missing information at.

Definition at line 264 of file index_calculator.hpp.

◆ IndexTreeType

template<typename Shape_ , int face_dim_>
typedef IndexTree<FaceType> FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::IndexTreeType

Type for the IndexTree containing vertex@subshape information.

Definition at line 266 of file index_calculator.hpp.

Member Function Documentation

◆ compute()

template<typename Shape_ , int face_dim_>
template<typename IndexSetIn_ , typename IndexSetOut_ >
static bool FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::compute ( const IndexTreeType index_tree,
const IndexSetIn_ &  index_set_in,
IndexSetOut_ &  index_set_out 
)
inlinestatic

Calculates an index set from vertex@shape information.

Assume that for a Hypercube<3>, we have the vertex@cell information. This routine can generate the edge@cell or face@cell information from this.

More generic: From vertex@shape, generate subshape@shape, where the type/dimension of subshape is determined by face_dim_

Template Parameters
IndexSetIn_Type for the vertex@shape information IndexSet.
IndexSetOut_Type for the subshape@shape information IndexSet.
Parameters
[in]index_treeFor every entity of subshape, this IndexTree holds the information which vertices this entity contains.
[in]index_set_inProvided vertex@shape information.
[out]index_set_outsubshape@shape information.

Definition at line 297 of file index_calculator.hpp.

References FEAT::Geometry::IndexTree< Shape_ >::find(), and FEAT::Geometry::IndexTree< Shape_ >::num_indices.

◆ compute_vertex_subshape()

template<typename Shape_ , int face_dim_>
template<typename IndexSetIn_ , typename IndexSetOut_ >
static void FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::compute_vertex_subshape ( const IndexSetIn_ &  index_set_in,
IndexSetOut_ &  index_set_out 
)
inlinestatic

◆ name()

template<typename Shape_ , int face_dim_>
static String FEAT::Geometry::IndexCalculator< Shape_, face_dim_ >::name ( )
inlinestatic

Returns the class name.

Definition at line 408 of file index_calculator.hpp.

References FEAT::stringify().


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