Go to the documentation of this file.
18 #ifndef __WEIPA_RIPLEYELEMENTS_H__
19 #define __WEIPA_RIPLEYELEMENTS_H__
21 #include <weipa/ElementData.h>
22 #include <weipa/RipleyNodes.h>
76 bool writeToSilo(DBfile* dbfile,
const std::string& siloPath,
143 #endif // __WEIPA_RIPLEYELEMENTS_H__
virtual ZoneType getType() const
Returns the type of the elements.
Definition: RipleyElements.h:95
IntVec ID
Definition: RipleyElements.h:136
Definition: ripley/src/AbstractAssembler.h:25
int numGhostElements
Definition: RipleyElements.h:132
virtual RankVector getOwnerVector(int fsType) const =0
returns a vector of rank numbers where vec[i]=n means that rank n 'owns' element/face element i.
void removeGhostZones(int ownIndex)
Removes "ghost" elements.
Definition: RipleyElements.cpp:327
void reorderArray(IntVec &v, const IntVec &idx, int elementsPerIndex)
Definition: RipleyElements.cpp:272
Definition: ElementData.h:55
int nodesPerElement
Definition: RipleyElements.h:133
Stores and manipulates one type of ripley mesh elements (cells, faces).
Definition: RipleyElements.h:44
virtual const dim_t * getNumNodesPerDim() const =0
returns the number of nodes per MPI rank in each dimension
virtual NodeData_ptr getNodes() const
Returns the node mesh instance used by the elements.
Definition: RipleyElements.h:109
virtual int getGhostCount() const
Returns the number of "ghost" elements.
Definition: RipleyElements.h:92
This struct holds a mask (0's and 1's) that indicates which quad nodes contribute to a sub-element wh...
Definition: ElementData.h:52
virtual const IntVec & getIDs() const
Returns a vector of element IDs.
Definition: RipleyElements.h:101
Definition: ElementData.h:53
virtual int getElementFactor() const
If the original element type is not supported they are subdivided into N smaller elements (e....
Definition: RipleyElements.h:120
Definition: DataVar.cpp:50
ZoneType
Definition: ElementData.h:39
boost::shared_ptr< RipleyElements > RipleyElements_ptr
Definition: RipleyElements.h:32
virtual const IntVec & getVarDataByName(const std::string varName) const
Returns an array of data values for the name provided.
Definition: RipleyElements.cpp:260
Stores and manipulates ripley mesh nodes.
Definition: RipleyNodes.h:38
IntVec prepareGhostIndices(int ownIndex)
Definition: RipleyElements.cpp:293
void copy(dim_t N, double *out, const double *in)
out = in
Definition: PasoUtil.h:113
virtual StringVec getMeshNames() const
Returns the names of the meshes associated with the elements.
Definition: RipleyElements.cpp:243
RipleyDomain extends the AbstractContinuousDomain interface for the Ripley library and is the base cl...
Definition: ripley/src/RipleyDomain.h:114
index_t dim_t
Definition: DataTypes.h:90
std::vector< float * > CoordArray
Definition: weipa.h:61
virtual const QuadMaskInfo & getQuadMask(int functionSpace) const
Returns a QuadMaskInfo structure for given functionspace code.
Definition: RipleyElements.h:115
boost::shared_ptr< ElementData > ElementData_ptr
Definition: weipa.h:66
Stores and manipulates one type of domain elements.
Definition: ElementData.h:61
void reorderGhostZones(int ownIndex)
Moves "ghost" elements (whose owner does not match ownIndex) and the corresponding data to the end of...
Definition: RipleyElements.cpp:314
bool writeToSilo(DBfile *dbfile, const std::string &siloPath, const StringVec &labels, const StringVec &units, bool writeMeshData)
Writes element data into given directory in given Silo file.
Definition: RipleyElements.cpp:387
virtual int getDim() const
returns the number of spatial dimensions of the domain
Definition: ripley/src/RipleyDomain.h:189
std::string name
Definition: RipleyElements.h:130
virtual StringVec getVarNames() const
Returns a vector with the mesh variable names.
Definition: RipleyElements.cpp:251
Definition: ElementData.h:57
const dim_t * borrowSampleReferenceIDs(int fsType) const =0
returns the array of reference numbers for a function space type
IntVec nodes
Definition: RipleyElements.h:135
IntVec owner
Definition: RipleyElements.h:136
virtual void writeConnectivityVTK(std::ostream &os)
Writes connectivity data to a stream in VTK text format.
Definition: RipleyElements.cpp:358
bool initFromRipley(const ripley::RipleyDomain *ripleyDomain, int fsType)
Initialises with data from a RipleyDomain instance.
Definition: RipleyElements.cpp:74
boost::shared_ptr< NodeData > NodeData_ptr
Definition: weipa.h:68
RipleyNodes_ptr originalMesh
Definition: RipleyElements.h:129
std::vector< std::string > StringVec
Definition: weipa.h:60
RipleyElements()
Definition: RipleyElements.h:123
virtual const IntVec & getNodeList() const
Returns a vector of the node IDs used by the elements.
Definition: RipleyElements.h:98
IntVec tag
Definition: RipleyElements.h:136
virtual const dim_t * getNumFacesPerBoundary() const =0
returns the number of face elements in the order (left,right,bottom,top,[front,back]) on current MPI ...
Definition: ElementData.h:56
virtual ~RipleyElements()
Destructor.
Definition: RipleyElements.h:55
void buildMeshes()
Definition: RipleyElements.cpp:341
virtual int getNodesPerElement() const
Returns the number of nodes per element.
Definition: RipleyElements.h:89
virtual std::pair< int, dim_t > getDataShape(int fsType) const
returns the number of data points per sample, and the number of samples as a pair.
Definition: ripley/src/RipleyDomain.cpp:151
QuadMaskInfo quadMask
Definition: RipleyElements.h:137
std::vector< int > IntVec
Definition: weipa.h:59
virtual const dim_t * getNumElementsPerDim() const =0
returns the number of elements per MPI rank in each dimension
ZoneType type
Definition: RipleyElements.h:134
RipleyNodes_ptr nodeMesh
Definition: RipleyElements.h:128
Definition: ElementData.h:54
int numElements
Definition: RipleyElements.h:131
virtual int getNumElements() const
Returns the number of elements.
Definition: RipleyElements.h:86
boost::shared_ptr< RipleyNodes > RipleyNodes_ptr
Definition: RipleyNodes.h:30
virtual ElementData_ptr getReducedElements() const
Returns the reduced elements.
Definition: RipleyElements.h:112