LocalToGlobalMap class: map the local degrees of freedom of each Element to the global ones. More...
#include <Element.h>
Public Member Functions | |
LocalToGlobalMap () | |
virtual | ~LocalToGlobalMap () |
LocalToGlobalMap (const LocalToGlobalMap &) | |
virtual LocalToGlobalMap * | clone () 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. |
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
LocalToGlobalMap::LocalToGlobalMap | ( | ) | [inline] |
virtual LocalToGlobalMap::~LocalToGlobalMap | ( | ) | [inline, virtual] |
LocalToGlobalMap::LocalToGlobalMap | ( | const LocalToGlobalMap & | ) | [inline] |
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] |
field | field number in the element, 0![]() ![]() | |
dof | number of degree of freedom in that field, ![]() ![]() | |
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.