Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
model::SimplexTraits< dim, order > Struct Template Reference

#include <SimplexTraits.h>

Collaboration diagram for model::SimplexTraits< dim, order >:

Public Types

typedef Simplex< dim, order > SimplexType
typedef Simplex< dim, order+1 > ParentSimplexType
typedef std::array< std::shared_ptr< Simplex< dim, order-1 > >, nFaces > BaseArrayType
typedef SimplexID< nVertices >::ScalarIDType ScalarIDType
typedef SimplexID< nVertices > SimplexIDType

Static Public Member Functions

static SimplexIDType sortID (const SimplexIDType &vIN)
static SimplexTraits< dim, order-1 >::SimplexIDType faceID (const SimplexIDType &xID, const size_t &j)
static std::array< std::shared_ptr< typename SimplexTraits< dim, order-1 >::SimplexIDType >, nFaces > faceIDs (const SimplexIDType &xID)
static size_t faceOrder (const SimplexIDType &parentID, const typename SimplexTraits< dim, order-1 >::SimplexIDType &childID)

Static Public Attributes

static constexpr int nVertices =SimplexTraits<dim,order-1>::nVertices+1
static constexpr int nEdges =SimplexTraits<dim,order-1>::nEdges+SimplexTraits<dim,order-1>::nVertices
static constexpr int nFaces =nVertices

Detailed Description

template<short int dim, short int order>
struct model::SimplexTraits< dim, order >

Definition at line 79 of file SimplexTraits.h.

Member Typedef Documentation

◆ BaseArrayType

template<short int dim, short int order>
typedef std::array<std::shared_ptr<Simplex<dim,order-1> >,nFaces> model::SimplexTraits< dim, order >::BaseArrayType

Definition at line 92 of file SimplexTraits.h.

◆ ParentSimplexType

template<short int dim, short int order>
typedef Simplex<dim,order+1> model::SimplexTraits< dim, order >::ParentSimplexType

Definition at line 90 of file SimplexTraits.h.

◆ ScalarIDType

template<short int dim, short int order>
typedef SimplexID<nVertices>::ScalarIDType model::SimplexTraits< dim, order >::ScalarIDType

Definition at line 94 of file SimplexTraits.h.

◆ SimplexIDType

template<short int dim, short int order>
typedef SimplexID<nVertices> model::SimplexTraits< dim, order >::SimplexIDType

Definition at line 95 of file SimplexTraits.h.

◆ SimplexType

template<short int dim, short int order>
typedef Simplex<dim,order> model::SimplexTraits< dim, order >::SimplexType

Definition at line 89 of file SimplexTraits.h.

Member Function Documentation

◆ faceID()

template<short int dim, short int order>
SimplexTraits< dim, order-1 >::SimplexIDType model::SimplexTraits< dim, order >::faceID ( const SimplexIDType & xID,
const size_t & j )
inlinestatic
Parameters
[in]xIDthe ID of the parent Simplex
[in]jthe j-th face of the parent Simplex
Returns
the ID of the child Simplex which is the j-th face of xID

Definition at line 108 of file SimplexTraits.h.

◆ faceIDs()

template<short int dim, short int order>
std::array< std::shared_ptr< typename SimplexTraits< dim, order-1 >::SimplexIDType >, nFaces > model::SimplexTraits< dim, order >::faceIDs ( const SimplexIDType & xID)
inlinestatic

Definition at line 126 of file SimplexTraits.h.

◆ faceOrder()

template<short int dim, short int order>
size_t model::SimplexTraits< dim, order >::faceOrder ( const SimplexIDType & parentID,
const typename SimplexTraits< dim, order-1 >::SimplexIDType & childID )
inlinestatic

Definition at line 136 of file SimplexTraits.h.

◆ sortID()

template<short int dim, short int order>
SimplexIDType model::SimplexTraits< dim, order >::sortID ( const SimplexIDType & vIN)
inlinestatic

Definition at line 97 of file SimplexTraits.h.

Member Data Documentation

◆ nEdges

template<short int dim, short int order>
int model::SimplexTraits< dim, order >::nEdges =SimplexTraits<dim,order-1>::nEdges+SimplexTraits<dim,order-1>::nVertices
staticconstexpr

Definition at line 86 of file SimplexTraits.h.

◆ nFaces

template<short int dim, short int order>
int model::SimplexTraits< dim, order >::nFaces =nVertices
staticconstexpr

Definition at line 87 of file SimplexTraits.h.

◆ nVertices

template<short int dim, short int order>
int model::SimplexTraits< dim, order >::nVertices =SimplexTraits<dim,order-1>::nVertices+1
staticconstexpr

Definition at line 85 of file SimplexTraits.h.


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