17 #ifndef __WEIPA_FINLEYELEMENTS_H__ 18 #define __WEIPA_FINLEYELEMENTS_H__ 20 #include <weipa/ElementData.h> 21 #include <weipa/FinleyNodes.h> 24 #include <dudley/ElementType.h> 27 #include <finley/ReferenceElements.h> 85 bool readFromNc(NcFile* ncfile);
89 void reorderGhostZones(
int ownIndex);
92 void removeGhostZones(
int ownIndex);
95 virtual void writeConnectivityVTK(std::ostream& os);
102 bool writeToSilo(DBfile* dbfile,
const std::string& siloPath,
138 virtual const IntVec& getVarDataByName(
const std::string varName)
const;
147 virtual const QuadMaskInfo& getQuadMask(
int functionSpace)
const;
165 IntVec prepareGhostIndices(
int ownIndex);
166 void reorderArray(
IntVec& v,
const IntVec& idx,
int elementsPerIndex);
186 #endif // __WEIPA_FINLEYELEMENTS_H__ virtual int getGhostCount() const
Returns the number of "ghost" elements.
Definition: FinleyElements.h:119
This struct holds a mask (0's and 1's) that indicates which quad nodes contribute to a sub-element wh...
Definition: ElementData.h:39
virtual NodeData_ptr getNodes() const
Returns the node mesh instance used by the elements.
Definition: FinleyElements.h:141
const size_t * multiCellIndices
Definition: FinleyElements.h:48
int numElements
Definition: FinleyElements.h:173
std::vector< float * > CoordArray
Definition: weipa.h:57
virtual ElementData_ptr getReducedElements() const
Returns the reduced elements.
Definition: FinleyElements.h:144
Stores and manipulates one type of domain elements.
Definition: ElementData.h:48
boost::shared_ptr< FinleyNodes > FinleyNodes_ptr
Definition: FinleyNodes.h:31
virtual int getNodesPerElement() const
Returns the number of nodes per element.
Definition: FinleyElements.h:116
Holds information that is used to convert from finley element types to elements supported by Silo and...
Definition: FinleyElements.h:43
int numGhostElements
Definition: FinleyElements.h:174
boost::shared_ptr< FinleyElements > FinleyElements_ptr
Definition: FinleyElements.h:53
virtual ~FinleyElements()
Destructor.
Definition: FinleyElements.h:76
int nodesPerElement
Definition: FinleyElements.h:175
int elementFactor
Definition: FinleyElements.h:181
bool useQuadNodes
Definition: FinleyElements.h:49
IntVec tag
Definition: FinleyElements.h:178
std::vector< std::string > StringVec
Definition: weipa.h:56
Dudley_ElementTypeId
Definition: ElementType.h:20
Definition: finley/src/Assemble.h:32
ZoneType reducedElementType
Definition: FinleyElements.h:45
FinleyNodes_ptr nodeMesh
Definition: FinleyElements.h:170
FinleyElements_ptr reducedElements
Definition: FinleyElements.h:169
Definition: DataVar.cpp:43
virtual int getNumElements() const
Returns the number of elements.
Definition: FinleyElements.h:113
virtual const IntVec & getNodeList() const
Returns a vector of the node IDs used by the elements.
Definition: FinleyElements.h:130
std::vector< int > IntVec
Definition: weipa.h:55
ZoneType
Definition: ElementData.h:26
FinleyNodes_ptr originalMesh
Definition: FinleyElements.h:171
ZoneType type
Definition: FinleyElements.h:176
Stores and manipulates one type of finley mesh elements (cells, faces or contacts).
Definition: FinleyElements.h:65
std::string name
Definition: FinleyElements.h:172
virtual int getElementFactor() const
If the original element type is not supported they are subdivided into N smaller elements (e...
Definition: FinleyElements.h:152
int quadDim
Definition: FinleyElements.h:50
virtual ZoneType getType() const
Returns the type of the elements.
Definition: FinleyElements.h:122
virtual const IntVec & getIDs() const
Returns a vector of element IDs.
Definition: FinleyElements.h:133
FinleyElements()
Definition: FinleyElements.h:155
int reducedElementSize
Definition: FinleyElements.h:47
ElementTypeId
Definition: ReferenceElements.h:38
IntVec nodes
Definition: FinleyElements.h:177
boost::shared_ptr< ElementData > ElementData_ptr
Definition: weipa.h:62
IntVec owner
Definition: FinleyElements.h:179
boost::shared_ptr< NodeData > NodeData_ptr
Definition: weipa.h:64
QuadMaskInfo reducedQuadMask
Definition: FinleyElements.h:180
Definition: finley/src/ElementFile.h:60
Definition: dudley/src/ElementFile.h:40
int elementFactor
Definition: FinleyElements.h:46