ug4
ug::DimReferenceElement< d > Class Template Reference

dimension dependent base class for reference elements More...

#include <reference_element.h>

+ Inheritance diagram for ug::DimReferenceElement< d >:

Public Member Functions

const MathVector< dim, int > * corner () const
 coordinates of reference corner as integer More...
 
const MathVector< dim > & corner (size_t i) const
 coordinates of reference corner (i = 0 ... num(0)) More...
 
const MathVector< dim > * corners () const
 coordinates of reference corner in a vector More...
 
void print_info () const
 print informations about the reference element More...
 
- Public Member Functions inherited from ug::ReferenceElement
int dimension () const
 returns the dimension where reference element lives More...
 
int id (int dim_i, size_t i, int dim_j, size_t j) const
 id of object j in dimension dim_j of obj i in dimension dim_i More...
 
size_t num (int dim) const
 returns the number of geometric objects of dim More...
 
size_t num (int dim_i, size_t i, int dim_j) const
 returns the number of object of dim for a sub-geometric object More...
 
size_t num (ReferenceObjectID type) const
 number of reference elements this element contains More...
 
void print_info () const
 print informations about the reference element More...
 
 ReferenceElement ()
 Constructor filling the arrays. More...
 
ReferenceObjectID roid () const
 returns the reference object id More...
 
ReferenceObjectID roid (int dim_i, size_t i) const
 reference element type of obj nr i in dimension dim_i More...
 
number size () const
 returns the size (e.g. area or volume) of the reference element More...
 

Static Public Attributes

static const int dim = d
 dimension, where the reference element is defined More...
 

Protected Types

enum  { MAXCORNERS = 8 }
 maximum number of corners for fixed reference elements More...
 
- Protected Types inherited from ug::ReferenceElement
enum  { POINT = 0 , EDGE = 1 , FACE = 2 , VOLUME = 3 }
 to make it more readable More...
 
enum  { MAXOBJECTS = 12 }
 maximum number of Objects in all dimensions More...
 
enum  { MAXDIM = 3 }
 maximum dimension More...
 

Protected Attributes

MathVector< dim, int > m_vCoInt [MAXCORNERS]
 
MathVector< dimm_vCorner [MAXCORNERS]
 coordinates of Reference Corner More...
 
- Protected Attributes inherited from ug::ReferenceElement
int m_dim
 dimension of the reference world More...
 
int m_id [MAXDIM+1][MAXOBJECTS][MAXDIM+1][MAXOBJECTS]
 indices of GeomObjects More...
 
number m_size
 size of reference element More...
 
size_t m_vNum [MAXDIM+1]
 number of Geometric Objects of a dimension More...
 
size_t m_vNumRefElem [NUM_REFERENCE_OBJECTS]
 number of reference elements More...
 
ReferenceObjectID m_vRefElemType [MAXDIM+1][MAXOBJECTS]
 type of reference elements More...
 
size_t m_vSubNum [MAXDIM+1][MAXOBJECTS][MAXDIM+1]
 number of Geometric Objects contained in a (Sub-)Geometric Object of the Element More...
 

Detailed Description

template<int d>
class ug::DimReferenceElement< d >

dimension dependent base class for reference elements

This is the base class for reference elements with their dimension. It simply adds to the ReferenceElement base class the corner position of the reference element vertices in local coordinates.

Template Parameters
ddimension, where reference element lives

Member Enumeration Documentation

◆ anonymous enum

template<int d>
anonymous enum
protected

maximum number of corners for fixed reference elements

Enumerator
MAXCORNERS 

Member Function Documentation

◆ corner() [1/2]

template<int d>
const MathVector<dim,int>* ug::DimReferenceElement< d >::corner ( ) const
inline

coordinates of reference corner as integer

References ug::DimReferenceElement< d >::m_vCoInt.

◆ corner() [2/2]

◆ corners()

template<int d>
const MathVector<dim>* ug::DimReferenceElement< d >::corners ( ) const
inline

◆ print_info()

template<int d>
void ug::DimReferenceElement< d >::print_info

print informations about the reference element

References ug::ReferenceElement::num(), and ug::ReferenceElement::print_info().

Member Data Documentation

◆ dim

template<int d>
const int ug::DimReferenceElement< d >::dim = d
static

dimension, where the reference element is defined

◆ m_vCoInt

template<int d>
MathVector<dim, int> ug::DimReferenceElement< d >::m_vCoInt[MAXCORNERS]
protected

◆ m_vCorner

template<int d>
MathVector<dim> ug::DimReferenceElement< d >::m_vCorner[MAXCORNERS]
protected

coordinates of Reference Corner

Referenced by ug::DimReferenceElement< d >::corner(), and ug::DimReferenceElement< d >::corners().


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