17 #ifndef __WEIPA_SPECKLEYNODES_H__ 18 #define __WEIPA_SPECKLEYNODES_H__ 20 #include <weipa/NodeData.h> 45 const std::string& meshName);
57 bool writeToSilo(DBfile* dbfile);
60 virtual void writeCoordinatesVTK(std::ostream& os,
int ownIndex);
63 void setSiloPath(
const std::string& path) { siloPath = path; }
68 const IntVec& getVarDataByName(
const std::string& name)
const;
74 virtual std::string
getName()
const {
return name; }
77 std::string getFullSiloName()
const;
113 inline std::string SpeckleyNodes::getFullSiloName()
const 115 std::string result(siloPath);
116 if (result.length() == 0 || *result.rbegin() !=
'/')
124 #endif // __WEIPA_SPECKLEYNODES_H__ Definition: AbstractAssembler.cpp:22
int globalNumNodes
number of nodes
Definition: SpeckleyNodes.h:104
SpeckleyDomain extends the AbstractContinuousDomain interface for the Speckley library and is the bas...
Definition: speckley/src/SpeckleyDomain.h:84
virtual const IntVec & getNodeDistribution() const
Returns the node distribution array.
Definition: SpeckleyNodes.h:83
int numNodes
dimensionality (2 or 3)
Definition: SpeckleyNodes.h:103
std::vector< float * > CoordArray
Definition: weipa.h:57
std::vector< std::string > StringVec
Definition: weipa.h:56
int numDims
x, y[, z] coordinates of nodes
Definition: SpeckleyNodes.h:102
std::string name
node distribution
Definition: SpeckleyNodes.h:108
IntVec nodeTag
node IDs
Definition: SpeckleyNodes.h:106
virtual int getNumNodes() const
Returns the number of mesh nodes.
Definition: SpeckleyNodes.h:95
Stores and manipulates speckley mesh nodes.
Definition: SpeckleyNodes.h:38
virtual std::string getName() const
Returns the name of this node mesh.
Definition: SpeckleyNodes.h:74
Definition: NodeData.h:26
Definition: DataVar.cpp:43
std::vector< int > IntVec
Definition: weipa.h:55
virtual const IntVec & getGlobalNodeIndices() const
Returns the global node index array.
Definition: SpeckleyNodes.h:86
virtual const CoordArray & getCoords() const
Returns the coordinates of the mesh nodes.
Definition: SpeckleyNodes.h:89
boost::shared_ptr< SpeckleyNodes > SpeckleyNodes_ptr
Definition: SpeckleyNodes.h:30
virtual int getGlobalNumNodes() const
Returns the total number of mesh nodes for a distributed mesh.
Definition: SpeckleyNodes.h:98
CoordArray coords
Definition: SpeckleyNodes.h:101
std::string siloPath
the name of this node mesh
Definition: SpeckleyNodes.h:109
void setSiloPath(const std::string &path)
Sets the silo path to be used when saving.
Definition: SpeckleyNodes.h:63
virtual const IntVec & getNodeIDs() const
Returns the node ID array.
Definition: SpeckleyNodes.h:80
IntVec nodeID
global number of nodes
Definition: SpeckleyNodes.h:105
virtual int getNumDims() const
Returns the dimensionality of this mesh (2 or 3).
Definition: SpeckleyNodes.h:92
IntVec nodeDist
node tags
Definition: SpeckleyNodes.h:107