17 #ifndef __WEIPA_FINLEYELEMENTS_H__ 18 #define __WEIPA_FINLEYELEMENTS_H__ 20 #include <weipa/ElementData.h> 21 #include <weipa/FinleyNodes.h> 24 #include <dudley/Dudley.h> 25 #include <dudley/ElementType.h> 28 #include <finley/ReferenceElements.h> 88 bool readFromNc(NcFile* ncfile);
92 void reorderGhostZones(
int ownIndex);
95 void removeGhostZones(
int ownIndex);
98 virtual void writeConnectivityVTK(std::ostream& os);
105 bool writeToSilo(DBfile* dbfile,
const std::string& siloPath,
141 virtual const IntVec& getVarDataByName(
const std::string varName)
const;
150 virtual const QuadMaskInfo& getQuadMask(
int functionSpace)
const;
168 IntVec prepareGhostIndices(
int ownIndex);
169 void reorderArray(
IntVec& v,
const IntVec& idx,
int elementsPerIndex);
189 #endif // __WEIPA_FINLEYELEMENTS_H__ 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 int getNumElements() const
Returns the number of elements.
Definition: FinleyElements.h:116
const size_t * multiCellIndices
Definition: FinleyElements.h:51
int numElements
Definition: FinleyElements.h:176
std::vector< float * > CoordArray
Definition: weipa.h:61
virtual const IntVec & getNodeList() const
Returns a vector of the node IDs used by the elements.
Definition: FinleyElements.h:133
Stores and manipulates one type of domain elements.
Definition: ElementData.h:48
boost::shared_ptr< FinleyNodes > FinleyNodes_ptr
Definition: FinleyNodes.h:34
Holds information that is used to convert from finley element types to elements supported by Silo and...
Definition: FinleyElements.h:46
int numGhostElements
Definition: FinleyElements.h:177
boost::shared_ptr< FinleyElements > FinleyElements_ptr
Definition: FinleyElements.h:56
virtual ~FinleyElements()
Destructor.
Definition: FinleyElements.h:79
virtual int getGhostCount() const
Returns the number of "ghost" elements.
Definition: FinleyElements.h:122
int nodesPerElement
Definition: FinleyElements.h:178
int elementFactor
Definition: FinleyElements.h:184
bool useQuadNodes
Definition: FinleyElements.h:52
IntVec tag
Definition: FinleyElements.h:181
std::vector< std::string > StringVec
Definition: weipa.h:60
virtual ElementData_ptr getReducedElements() const
Returns the reduced elements.
Definition: FinleyElements.h:147
A suite of factory methods for creating various finley domains.
Definition: finley/src/Assemble.h:31
ZoneType reducedElementType
Definition: FinleyElements.h:48
FinleyNodes_ptr nodeMesh
Definition: FinleyElements.h:173
FinleyElements_ptr reducedElements
Definition: FinleyElements.h:172
Definition: DataVar.cpp:39
std::vector< int > IntVec
Definition: weipa.h:59
ZoneType
Definition: ElementData.h:26
virtual NodeData_ptr getNodes() const
Returns the node mesh instance used by the elements.
Definition: FinleyElements.h:144
FinleyNodes_ptr originalMesh
Definition: FinleyElements.h:174
ZoneType type
Definition: FinleyElements.h:179
ElementTypeId
Definition: ElementType.h:24
Stores and manipulates one type of finley mesh elements (cells, faces or contacts).
Definition: FinleyElements.h:68
virtual int getElementFactor() const
If the original element type is not supported they are subdivided into N smaller elements (e...
Definition: FinleyElements.h:155
std::string name
Definition: FinleyElements.h:175
Definition: dudley/src/ElementFile.h:51
A suite of factory methods for creating 2D and 3D dudley domains.
Definition: dudley/src/Assemble.h:31
int quadDim
Definition: FinleyElements.h:53
FinleyElements()
Definition: FinleyElements.h:158
virtual ZoneType getType() const
Returns the type of the elements.
Definition: FinleyElements.h:125
int reducedElementSize
Definition: FinleyElements.h:50
ElementTypeId
Definition: ReferenceElements.h:38
IntVec nodes
Definition: FinleyElements.h:180
virtual const IntVec & getIDs() const
Returns a vector of element IDs.
Definition: FinleyElements.h:136
virtual int getNodesPerElement() const
Returns the number of nodes per element.
Definition: FinleyElements.h:119
boost::shared_ptr< ElementData > ElementData_ptr
Definition: weipa.h:66
IntVec owner
Definition: FinleyElements.h:182
boost::shared_ptr< NodeData > NodeData_ptr
Definition: weipa.h:68
QuadMaskInfo reducedQuadMask
Definition: FinleyElements.h:183
Definition: finley/src/ElementFile.h:61
int elementFactor
Definition: FinleyElements.h:49