33 #ifndef __H__UG__LIB_DISC__REFERENCE_ELEMENT__REFERENCE_ELEMENT_UTIL__
34 #define __H__UG__LIB_DISC__REFERENCE_ELEMENT__REFERENCE_ELEMENT_UTIL__
53 default:
UG_THROW(
"ReferenceElementDimension: ReferenceObjectId "
54 <<roid<<
" not found.");
68 default:
UG_THROW(
"ReferenceObject "<<roid<<
" not found in dim 1.");
79 default:
UG_THROW(
"ReferenceObject "<<roid<<
" not found in dim 2.");
89 case ROID_PYRAMID:
return MathVector<3>(2./5., 2./5., 1./5.);
90 case ROID_PRISM:
return MathVector<3>(2./6., 2./6., 0.5);
93 default:
UG_THROW(
"ReferenceObject "<<roid<<
" not found in dim 3.");
#define UG_THROW(msg)
Definition: error.h:57
MathVector< 1 > ReferenceElementCenter< 1 >(ReferenceObjectID roid)
Definition: reference_element_util.h:63
ReferenceObjectID
these ids are used to identify the shape of a geometric object.
Definition: grid_base_objects.h:74
@ ROID_TETRAHEDRON
Definition: grid_base_objects.h:80
@ ROID_QUADRILATERAL
Definition: grid_base_objects.h:79
@ ROID_PYRAMID
Definition: grid_base_objects.h:83
@ ROID_PRISM
Definition: grid_base_objects.h:82
@ ROID_EDGE
Definition: grid_base_objects.h:77
@ ROID_OCTAHEDRON
Definition: grid_base_objects.h:84
@ ROID_HEXAHEDRON
Definition: grid_base_objects.h:81
@ ROID_TRIANGLE
Definition: grid_base_objects.h:78
@ ROID_VERTEX
Definition: grid_base_objects.h:76
MathVector< 2 > ReferenceElementCenter< 2 >(ReferenceObjectID roid)
Definition: reference_element_util.h:73
int ReferenceElementDimension(ReferenceObjectID roid)
returns the reference element dimension at run-time
Definition: reference_element_util.h:40
MathVector< dim > ReferenceElementCenter(ReferenceObjectID roid)
returns the Center of a reference element at run-time
MathVector< 3 > ReferenceElementCenter< 3 >(ReferenceObjectID roid)
Definition: reference_element_util.h:84