LocalToGlobalMap Class Reference

LocalToGlobalMap class: map the local degrees of freedom of each Element to the global ones. More...

#include <Element.h>

Inheritance diagram for LocalToGlobalMap:
StandardP1nDMap

List of all members.

Public Member Functions

 LocalToGlobalMap ()
virtual ~LocalToGlobalMap ()
 LocalToGlobalMap (const LocalToGlobalMap &)
virtual LocalToGlobalMapclone () const =0
virtual const GlobalDofIndex map (size_t field, size_t dof, const GlobalElementIndex &ElementMapped) const =0
virtual const size_t getNumElements () const =0
 Total number of elements that can be mapped.
virtual const size_t getNumFields (const GlobalElementIndex &ElementMapped) const =0
 Number of fields in an element mapped.
virtual const size_t getNumDof (const GlobalElementIndex &ElementMapped, size_t field) const =0
 Number of dofs in an element mapped in a given field.
virtual const size_t getTotalNumDof () const =0
 Total number of dof in the entire map.

Detailed Description

LocalToGlobalMap class: map the local degrees of freedom of each Element to the global ones.

The Local to Global map is strongly dependent on how the program that utilizes the Element objects is organized. The objective of this class is then to define the interface that the derived objects should have.

There will generally not be a single LocalToGlobalMap object per Element, but rather only one LocalToGlobalMap for all of them. Hence, the interface requires a way to specify which element is being mapped.

Convention:
Fields and Dofs start to be numbered at 0


Constructor & Destructor Documentation

LocalToGlobalMap::LocalToGlobalMap (  )  [inline]
virtual LocalToGlobalMap::~LocalToGlobalMap (  )  [inline, virtual]
LocalToGlobalMap::LocalToGlobalMap ( const LocalToGlobalMap  )  [inline]

Member Function Documentation

virtual LocalToGlobalMap* LocalToGlobalMap::clone (  )  const [pure virtual]

Implemented in StandardP1nDMap.

virtual const size_t LocalToGlobalMap::getNumDof ( const GlobalElementIndex ElementMapped,
size_t  field 
) const [pure virtual]

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

Implemented in StandardP1nDMap.

virtual const size_t LocalToGlobalMap::getNumElements (  )  const [pure virtual]

Total number of elements that can be mapped.

Usually, total number of elements in the mesh.

Implemented in StandardP1nDMap.

virtual const size_t LocalToGlobalMap::getNumFields ( const GlobalElementIndex ElementMapped  )  const [pure virtual]

Number of fields in an element mapped.

Implemented in StandardP1nDMap.

virtual const size_t LocalToGlobalMap::getTotalNumDof (  )  const [pure virtual]

Total number of dof in the entire map.

Implemented in StandardP1nDMap.

virtual const GlobalDofIndex LocalToGlobalMap::map ( size_t  field,
size_t  dof,
const GlobalElementIndex ElementMapped 
) const [pure 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.

Implemented in StandardP1nDMap.


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