AbstractGeom< SPD > Class Template Reference

Base class with common functionality. More...

#include <ElementGeometry.h>

Inheritance diagram for AbstractGeom< SPD >:
ElementGeometry Segment< SPD > Triangle< SPD >

List of all members.

Public Member Functions

 AbstractGeom (const std::vector< double > &globalCoordVec, const std::vector< GlobalNodalIndex > &connectivity)
 AbstractGeom (const AbstractGeom< SPD > &that)
virtual size_t getSpatialDimension () const
virtual const std::vector
< GlobalNodalIndex > & 
getConnectivity () const
virtual bool consistencyTest (const double *X, const double Pert) const
 Consistency test for map and its derivative.

Protected Member Functions

double getCoordinate (size_t a, size_t i) const
const std::vector< double > & getGlobalCoordVec () const

Private Attributes

const std::vector< double > & globalCoordVec
std::vector< GlobalNodalIndexconnectivity

Detailed Description

template<size_t SPD>
class AbstractGeom< SPD >

Base class with common functionality.


Constructor & Destructor Documentation

template<size_t SPD>
AbstractGeom< SPD >::AbstractGeom ( const std::vector< double > &  globalCoordVec,
const std::vector< GlobalNodalIndex > &  connectivity 
) [inline]
Parameters:
globalCoordVec is a reference to the vector containing coordinates of all nodes Coordinates of node i in N dimensional space are in locations [N*i, N*(i+1))
connectivity is a vector containing ids of nodes of this element in the mesh
template<size_t SPD>
AbstractGeom< SPD >::AbstractGeom ( const AbstractGeom< SPD > &  that  )  [inline]

Member Function Documentation

template<size_t SPD>
virtual bool AbstractGeom< SPD >::consistencyTest ( const double *  X,
const double  Pert 
) const [inline, virtual]

Consistency test for map and its derivative.

Parameters:
X parametric coordinates at which to test
Pert size of the perturbation with which to compute numerical derivatives (X->X+Pert)

Implements ElementGeometry.

template<size_t SPD>
virtual const std::vector<GlobalNodalIndex>& AbstractGeom< SPD >::getConnectivity (  )  const [inline, virtual]
Returns:
ref to Vertices of the polytope.

Implements ElementGeometry.

template<size_t SPD>
double AbstractGeom< SPD >::getCoordinate ( size_t  a,
size_t  i 
) const [inline, protected]
Parameters:
a node id
i dimension id
Returns:
value of dimension 'i' of coordinates of node 'a'
template<size_t SPD>
const std::vector<double>& AbstractGeom< SPD >::getGlobalCoordVec (  )  const [inline, protected]
Returns:
ref to the vector that contains global coordinates for all mesh nodes
template<size_t SPD>
virtual size_t AbstractGeom< SPD >::getSpatialDimension (  )  const [inline, virtual]
Returns:
spatial dimension e.g. 2 for 2D

Implements ElementGeometry.


Member Data Documentation

template<size_t SPD>
std::vector<GlobalNodalIndex> AbstractGeom< SPD >::connectivity [private]
template<size_t SPD>
const std::vector<double>& AbstractGeom< SPD >::globalCoordVec [private]

The documentation for this class was generated from the following file:
Generated on Tue Aug 2 11:51:26 2011 for Galois by  doxygen 1.6.3