StandardP1nDMap class: standard local to global map for 2D/3D elements with linear shape functions. More...
#include <P1nDElement.h>
Public Member Functions | |
StandardP1nDMap (const std::vector< Element * > &_elementArray) | |
StandardP1nDMap (const StandardP1nDMap &that) | |
virtual StandardP1nDMap * | clone () 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 |
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 fields
NF
StandardP1nDMap::StandardP1nDMap | ( | const std::vector< Element * > & | _elementArray | ) | [inline] |
StandardP1nDMap::StandardP1nDMap | ( | const StandardP1nDMap & | that | ) | [inline] |
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] |
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. |
Implements LocalToGlobalMap.
const std::vector<Element*>& StandardP1nDMap::elementArray [private] |