StandardP1nDMap Class Reference

StandardP1nDMap class: standard local to global map for 2D/3D elements with linear shape functions. More...

#include <P1nDElement.h>

Inheritance diagram for StandardP1nDMap:
LocalToGlobalMap

List of all members.

Public Member Functions

 StandardP1nDMap (const std::vector< Element * > &_elementArray)
 StandardP1nDMap (const StandardP1nDMap &that)
virtual StandardP1nDMapclone () const
const GlobalDofIndex map (size_t field, size_t dof, const GlobalElementIndex &ElementMapped) const
const size_t getNumElements () const
 Total number of elements that can be mapped.
const size_t getNumFields (const GlobalElementIndex &ElementMapped) const
 Number of fields in an element mapped.
const size_t getNumDof (const GlobalElementIndex &ElementMapped, size_t field) const
 Number of dofs in an element mapped in a given field.
const size_t getTotalNumDof () const
 Total number of dof in the entire map.

Protected Member Functions

const std::vector< Element * > & getElementArray () const
 Access to ElementArray for derived classes.

Private Attributes

const std::vector< Element * > & elementArray

Detailed Description

StandardP1nDMap class: standard local to global map for 2D/3D elements with linear shape functions.

StandardP1nDMap assumes that
1) The GlobalNodalIndex of a node is an size_t
2) All degrees of freedom are associated with nodes, and their values for each node ordered consecutively according to the field number.

Consequently, the GlobalDofIndex of the degrees of freedom of node N with NField fields are given by

(N-1)*NF + field-1, where $ 1 \le $ fields $ \le $ NF


Constructor & Destructor Documentation

StandardP1nDMap::StandardP1nDMap ( const std::vector< Element * > &  _elementArray  )  [inline]
StandardP1nDMap::StandardP1nDMap ( const StandardP1nDMap that  )  [inline]

Member Function Documentation

virtual StandardP1nDMap* StandardP1nDMap::clone (  )  const [inline, virtual]

Implements LocalToGlobalMap.

const std::vector<Element *>& StandardP1nDMap::getElementArray (  )  const [inline, protected]

Access to ElementArray for derived classes.

const size_t StandardP1nDMap::getNumDof ( const GlobalElementIndex ElementMapped,
size_t  field 
) const [inline, virtual]

Number of dofs in an element mapped in a given field.

Implements LocalToGlobalMap.

const size_t StandardP1nDMap::getNumElements (  )  const [inline, virtual]

Total number of elements that can be mapped.

Usually, total number of elements in the mesh.

Implements LocalToGlobalMap.

const size_t StandardP1nDMap::getNumFields ( const GlobalElementIndex ElementMapped  )  const [inline, virtual]

Number of fields in an element mapped.

Implements LocalToGlobalMap.

const size_t StandardP1nDMap::getTotalNumDof (  )  const [inline, virtual]

Total number of dof in the entire map.

Implements LocalToGlobalMap.

const GlobalDofIndex StandardP1nDMap::map ( size_t  field,
size_t  dof,
const GlobalElementIndex ElementMapped 
) const [inline, virtual]
Parameters:
field field number in the element, 0$ \le $ field $\le$ Nfields-1
dof number of degree of freedom in that field, $ 0 \le $ dof $\le$ Ndofs-1
ElementMapped,: GlobalElementIndex of the Element whose degrees of freedom are being mapped
map returns the GlobalDofIndex associated to degree of freedom "dof" of field "field" in element MappedElement.

Implements LocalToGlobalMap.


Member Data Documentation

const std::vector<Element*>& StandardP1nDMap::elementArray [private]

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