Finite Element Domain Decomposition Library
FEDDLib
Toggle main menu visibility
Loading...
Searching...
No Matches
EntitiesOfElements.hpp
1
#ifndef EntitiesOfElements_hpp
2
#define EntitiesOfElements_hpp
3
#include "Elements.hpp"
4
#include "feddlib/core/Utils/FEDDUtils.hpp"
5
#include "feddlib/core/LinearAlgebra/Map.hpp"
6
#include <Teuchos_OrdinalTraits.hpp>
15
16
namespace
FEDD
{
17
18
class
EntitiesOfElements :
public
Elements {
19
20
public
:
21
typedef
default_lo LO;
22
typedef
default_go GO;
23
typedef
default_no NO;
24
typedef
Elements Elements_Type;
25
typedef
Map<LO,GO,NO>
Map_Type;
26
typedef
typename
Map_Type::MapPtr_Type MapPtr_Type;
27
typedef
typename
Map_Type::MapConstPtr_Type MapConstPtr_Type;
28
29
EntitiesOfElements();
30
31
EntitiesOfElements( EntitiesOfElements& EntitiesOfElements );
32
33
void
addEntity(
FiniteElement
& fe, GO globalID );
34
35
void
addEntity(
FiniteElement
& fe, vec_GO_Type& elementsOfEntity );
36
37
void
setElementsEntities( vec2D_GO_Type& elementsOfEntities );
38
39
void
partitionEntities( MapConstPtr_Type elementMap, MapConstPtr_Type nodeMapRepeated );
40
41
void
sortUniqueAndSetGlobalIDs(vec2D_GO_Type &combinedElements);
42
43
const
vec_LO_Type& getElementsOfEntity(
int
i );
44
45
const
vec_GO_Type& getElementsOfEntityGlobal(
int
i );
46
47
vec2D_GO_Type getElementsOfEntityGlobal(){
return
elementsOfEntitiesGlobal_;};
48
49
private
:
50
51
vec2D_GO_Type elementsOfEntitiesGlobal_;
52
vec2D_LO_Type elementsOfEntitiesLocal_;
53
54
};
55
}
56
#endif
FEDD::FiniteElement
Definition
FiniteElement.hpp:17
FEDD::Map
Definition
Map_decl.hpp:30
FEDD
Adaptive Mesh Refinement.
Definition
AdaptiveMeshRefinement_decl.hpp:36
feddlib
core
FE
EntitiesOfElements.hpp
Generated by
1.17.0