ug4
ug::fv1_traits_most_common< TRefElem > Struct Template Reference

Base class, some fields are redefined in the instantiations for particular elements. More...

#include <fv_util.h>

+ Inheritance diagram for ug::fv1_traits_most_common< TRefElem >:

Public Types

typedef TRefElem ref_elem_type
 type of reference element More...
 

Static Public Member Functions

static void scv_mid_id (const ref_elem_type &refElem, MidID *vMidID, size_t i)
 Calculates array vMidID for scv i. More...
 
static size_t scv_node_id (const ref_elem_type &refElem, size_t i)
 returns the node id for a scv More...
 
static size_t scvf_from_to (const ref_elem_type &refElem, size_t i, size_t ft)
 returns the 'from' and 'to' corner indices for a scvf More...
 
static void scvf_mid_id (const ref_elem_type &refElem, MidID *vMidID, size_t i)
 Calculates array vMidID for scvf i. More...
 

Static Public Attributes

static const size_t numSCV = ref_elem_type::numCorners
 number of SubControlVolumes (for most of the elements - overridden for e.g. ROID_PYRAMID and ROID_OCTAHEDRON) More...
 
static const size_t numSCVF = ref_elem_type::numEdges
 number of SubControlVolumeFaces (for most of the elements - overridden for e.g. ROID_PYRAMID and ROID_OCTAHEDRON) More...
 

Detailed Description

template<typename TRefElem>
struct ug::fv1_traits_most_common< TRefElem >

Base class, some fields are redefined in the instantiations for particular elements.

Member Typedef Documentation

◆ ref_elem_type

template<typename TRefElem >
typedef TRefElem ug::fv1_traits_most_common< TRefElem >::ref_elem_type

type of reference element

Member Function Documentation

◆ scv_mid_id()

template<typename TRefElem >
static void ug::fv1_traits_most_common< TRefElem >::scv_mid_id ( const ref_elem_type refElem,
MidID vMidID,
size_t  i 
)
inlinestatic

Calculates array vMidID for scv i.

Parameters
refElemthe reference element object
vMidIDarray vMidID for scvf i
iindex of the scvf

References dim, and UG_THROW.

◆ scv_node_id()

template<typename TRefElem >
static size_t ug::fv1_traits_most_common< TRefElem >::scv_node_id ( const ref_elem_type refElem,
size_t  i 
)
inlinestatic

returns the node id for a scv

Parameters
refElemthe reference element object
iindex of the scv

◆ scvf_from_to()

template<typename TRefElem >
static size_t ug::fv1_traits_most_common< TRefElem >::scvf_from_to ( const ref_elem_type refElem,
size_t  i,
size_t  ft 
)
inlinestatic

returns the 'from' and 'to' corner indices for a scvf

Parameters
refElemthe reference element object
iindex of the scvf
ft0 = from, 1 = to

◆ scvf_mid_id()

template<typename TRefElem >
static void ug::fv1_traits_most_common< TRefElem >::scvf_mid_id ( const ref_elem_type refElem,
MidID vMidID,
size_t  i 
)
inlinestatic

Calculates array vMidID for scvf i.

Parameters
refElemthe reference element object
vMidIDarray vMidID for scvf i
iindex of the scvf

References dim.

Member Data Documentation

◆ numSCV

template<typename TRefElem >
const size_t ug::fv1_traits_most_common< TRefElem >::numSCV = ref_elem_type::numCorners
static

number of SubControlVolumes (for most of the elements - overridden for e.g. ROID_PYRAMID and ROID_OCTAHEDRON)

◆ numSCVF

template<typename TRefElem >
const size_t ug::fv1_traits_most_common< TRefElem >::numSCVF = ref_elem_type::numEdges
static

number of SubControlVolumeFaces (for most of the elements - overridden for e.g. ROID_PYRAMID and ROID_OCTAHEDRON)


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