![]() |
LifeV
|
#include <DOF.hpp>
Collaboration diagram for DOF:Private Types | |
| typedef ArraySimple< UInt > | Container_Type |
| typedef ID(* | facetToPointPtr_Type) (ID const &localFace, ID const &point) |
Private Attributes | |
| const DOFLocalPattern & | M_elementDofPattern |
| The pattern of the local degrees of freedom. More... | |
| UInt | M_totalDof |
| UInt | M_numElement |
| UInt | M_nbLocalPeaks |
| UInt | M_nbLocalRidges |
| UInt | M_nbLocalFacets |
| Container_Type | M_localToGlobal |
| std::vector< std::vector< ID > > | M_localToGlobalByBdFacet |
| facetToPointPtr_Type | M_facetToPoint |
| UInt | M_dofPositionByEntity [5] |
Constructor & Destructor | |
| DOF (const DOFLocalPattern &fePattern) | |
| DOF (const DOF &dof2) | |
| Copy constructor. More... | |
| template<typename MeshType > | |
| DOF (MeshType &mesh, const DOFLocalPattern &fePattern) | |
| Constructor accepting a mesh as parameter. More... | |
Methods | |
| template<typename MeshType > | |
| void | update (MeshType &) |
| Build the localToGlobal table. More... | |
| template<typename MeshType > | |
| std::vector< Int > | globalElements (MeshType &mesh) |
| Build the globalElements list. More... | |
| template<typename MeshType > | |
| MapEpetraData | createMapData (MeshType &mesh) |
| ID | localToGlobalMapByBdFacet (const ID &facetId, const ID &localDof) const |
| std::vector< ID > | localToGlobalMapOnBdFacet (const ID &facetId) const |
| void | showMe (std::ostream &out=std::cout, bool verbose=false) const |
| Ouput. More... | |
| void | showMeByBdFacet (std::ostream &out=std::cout, bool verbose=false) const |
Set Methods | |
| void | setTotalDof (const UInt &totalDof) |
Get Methods | |
| const UInt & | numTotalDof () const |
| The total number of Dof. More... | |
| const UInt & | numLocalDof () const |
| The number of local DOF (nodes) in the finite element. More... | |
| const ID & | localToGlobalMap (const ID ElId, const ID localNode) const |
| Return the specified entries of the localToGlobal table. More... | |
| const UInt & | numElements () const |
| Number of elements in mesh. More... | |
| const UInt & | numLocalVertices () const |
| Number of local vertices (in a elment) More... | |
| const UInt & | numLocalEdges () const |
| Number of local edges (in a elment) More... | |
| const UInt & | numLocalFaces () const |
| Number of local faces (in a elment) More... | |
| const DOFLocalPattern & | localDofPattern () const |
| Getter for the localDofPattern. More... | |
Local-to-global table
This class provides the localtoglobal table that relates the local DOF of a finite element to its global numbering. It needs a DOFLocalPattern in order to obtain all the necessary information about the local pattern. In fact it stores a copy of it so to make the local pattern available, if needed.
It is useless until is has not been set up on a specific RegionMesh. This is accomplished either by passing the mesh to the constructor, or calling the method DOF::update().
Now the class include also a local-to-global table with DOF grouped by (internal) face that was implemented in the old versions into the dofByFace.hpp and dofByFace.cpp files created by D. A. Di Pietro in 2004
|
private |
| DOF | ( | const DOFLocalPattern & | fePattern | ) |
The minimal constructor
| fePattern | is the DOFLocalPattern on which the ref FE is built |
| Offset | the smallest DOF numbering. It might be used if we want the degrees of freedom numbering start from a specific value. |
Definition at line 50 of file DOF.cpp.
Here is the caller graph for this function:| DOF | ( | MeshType & | mesh, |
| const DOFLocalPattern & | fePattern | ||
| ) |
Constructor accepting a mesh as parameter.
Constructor that builds the localToglobal table.
| mesh | a RegionMesh |
| _fe | is the DOFLocalPattern on which the ref FE is built |
| Offset | the smallest DOF numbering. It might be used if we want the degrees of freedom numbering start from a specific value. |
Definition at line 275 of file DOF.hpp.
Here is the caller graph for this function:| void update | ( | MeshType & | mesh | ) |
Build the localToGlobal table.
| mesh | A RegionMesh Updates the LocaltoGlobal array |
| MapEpetraData createMapData | ( | MeshType & | mesh | ) |
| void showMe | ( | std::ostream & | out = std::cout, |
| bool | verbose = false |
||
| ) | const |
| void showMeByBdFacet | ( | std::ostream & | out = std::cout, |
| bool | verbose = false |
||
| ) | const |
|
inline |
|
inline |
Return the specified entries of the localToGlobal table.
Returns the global numbering of a DOF, given an element and the local numbering
| ELId | the element ID |
| localNode | the local DOF numbering |
Definition at line 195 of file DOF.hpp.
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |