Go to the documentation of this file.
18 #ifndef __WEIPA_SPECKLEYNODES_H__
19 #define __WEIPA_SPECKLEYNODES_H__
21 #include <weipa/NodeData.h>
46 const std::string& meshName);
117 if (result.length() == 0 || *result.rbegin() !=
'/')
125 #endif // __WEIPA_SPECKLEYNODES_H__
IntVec nodeTag
node IDs
Definition: SpeckleyNodes.h:107
int numDims
x, y[, z] coordinates of nodes
Definition: SpeckleyNodes.h:103
virtual double getLocalCoordinate(dim_t index, int dim) const =0
returns the index'th coordinate value in given dimension for this rank
CoordArray coords
Definition: SpeckleyNodes.h:102
std::string siloPath
the name of this node mesh
Definition: SpeckleyNodes.h:110
IntVec nodeID
global number of nodes
Definition: SpeckleyNodes.h:106
boost::shared_ptr< SpeckleyNodes > SpeckleyNodes_ptr
Definition: SpeckleyNodes.h:31
virtual StringVec getVarNames() const
Returns a vector with the mesh variable names.
Definition: SpeckleyNodes.cpp:195
Definition: DataVar.cpp:51
const IntVec & getVarDataByName(const std::string &name) const
Returns an array of nodal data by the given name.
Definition: SpeckleyNodes.cpp:182
bool writeToSilo(DBfile *dbfile)
Writes node data to a Silo file.
Definition: SpeckleyNodes.cpp:227
Definition: AbstractAssembler.cpp:19
void copy(dim_t N, double *out, const double *in)
out = in
Definition: PasoUtil.h:116
Definition: NodeData.h:41
IntVec nodeDist
node tags
Definition: SpeckleyNodes.h:108
void setSiloPath(const std::string &path)
Sets the silo path to be used when saving.
Definition: SpeckleyNodes.h:64
index_t dim_t
Definition: DataTypes.h:93
const index_t * borrowSampleReferenceIDs(int fsType) const =0
returns the array of reference numbers for a function space type
std::map< int, size_t > IndexMap
Definition: weipa.h:63
std::vector< float * > CoordArray
Definition: weipa.h:62
virtual int getGlobalNumNodes() const
Returns the total number of mesh nodes for a distributed mesh.
Definition: SpeckleyNodes.h:99
int globalNumNodes
number of nodes
Definition: SpeckleyNodes.h:105
virtual const IntVec & getGlobalNodeIndices() const
Returns the global node index array.
Definition: SpeckleyNodes.h:87
virtual ~SpeckleyNodes()
Virtual destructor.
Definition: SpeckleyNodes.cpp:111
bool initFromSpeckley(const speckley::SpeckleyDomain *speckleyDomain)
Initialises with speckley domain.
Definition: SpeckleyNodes.cpp:121
virtual const IntVec & getNodeIDs() const
Returns the node ID array.
Definition: SpeckleyNodes.h:81
SpeckleyDomain extends the AbstractContinuousDomain interface for the Speckley library and is the bas...
Definition: speckley/src/SpeckleyDomain.h:99
int numNodes
dimensionality (2 or 3)
Definition: SpeckleyNodes.h:104
virtual const CoordArray & getCoords() const
Returns the coordinates of the mesh nodes.
Definition: SpeckleyNodes.h:90
virtual IndexVector getNodeDistribution() const =0
returns the node distribution vector
virtual const dim_t * getNumNodesPerDim() const =0
returns the number of nodes per MPI rank in each dimension
virtual std::string getName() const
Returns the name of this node mesh.
Definition: SpeckleyNodes.h:75
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: speckley/src/SpeckleyDomain.cpp:126
virtual void writeCoordinatesVTK(std::ostream &os, int ownIndex)
Writes coordinates to a stream in VTK text format.
Definition: SpeckleyNodes.cpp:206
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:88
std::string getFullSiloName() const
Returns full Silo mesh name, e.g. "/block0000/Nodes".
Definition: SpeckleyNodes.h:114
std::vector< std::string > StringVec
Definition: weipa.h:61
virtual int getNumDims() const
Returns the dimensionality of this mesh (2 or 3).
Definition: SpeckleyNodes.h:93
virtual int getDim() const
returns the number of spatial dimensions of the domain
Definition: speckley/src/SpeckleyDomain.h:171
virtual int getNumNodes() const
Returns the number of mesh nodes.
Definition: SpeckleyNodes.h:96
std::vector< index_t > IndexVector
Definition: Speckley.h:61
SpeckleyNodes(const std::string &meshName)
Constructor with mesh name.
Definition: SpeckleyNodes.cpp:40
virtual dim_t getNumDataPointsGlobal() const =0
returns the number of data points summed across all MPI processes
std::vector< int > IntVec
Definition: weipa.h:60
std::string name
node distribution
Definition: SpeckleyNodes.h:109
virtual const IntVec & getNodeDistribution() const
Returns the node distribution array.
Definition: SpeckleyNodes.h:84
Stores and manipulates speckley mesh nodes.
Definition: SpeckleyNodes.h:39
@ Nodes
Definition: Speckley.h:78