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:18
virtual std::string getName() const
Returns the name of this node mesh.
Definition: SpeckleyNodes.h:74
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
int numNodes
dimensionality (2 or 3)
Definition: SpeckleyNodes.h:103
std::vector< float * > CoordArray
Definition: weipa.h:61
std::vector< std::string > StringVec
Definition: weipa.h:60
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 getNumDims() const
Returns the dimensionality of this mesh (2 or 3).
Definition: SpeckleyNodes.h:92
Stores and manipulates speckley mesh nodes.
Definition: SpeckleyNodes.h:38
Definition: NodeData.h:26
Definition: DataVar.cpp:39
virtual const IntVec & getNodeDistribution() const
Returns the node distribution array.
Definition: SpeckleyNodes.h:83
virtual int getNumNodes() const
Returns the number of mesh nodes.
Definition: SpeckleyNodes.h:95
std::vector< int > IntVec
Definition: weipa.h:59
boost::shared_ptr< SpeckleyNodes > SpeckleyNodes_ptr
Definition: SpeckleyNodes.h:30
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
IntVec nodeID
global number of nodes
Definition: SpeckleyNodes.h:105
virtual int getGlobalNumNodes() const
Returns the total number of mesh nodes for a distributed mesh.
Definition: SpeckleyNodes.h:98
IntVec nodeDist
node tags
Definition: SpeckleyNodes.h:107
virtual const CoordArray & getCoords() const
Returns the coordinates of the mesh nodes.
Definition: SpeckleyNodes.h:89
virtual const IntVec & getNodeIDs() const
Returns the node ID array.
Definition: SpeckleyNodes.h:80
virtual const IntVec & getGlobalNodeIndices() const
Returns the global node index array.
Definition: SpeckleyNodes.h:86