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() !=
'/')
SpeckleyDomain extends the AbstractContinuousDomain interface for the Speckley library and is the bas...
Definition speckley/src/SpeckleyDomain.h:86
Stores and manipulates speckley mesh nodes.
Definition SpeckleyNodes.h:40
virtual const IntVec & getNodeIDs() const
Returns the node ID array.
Definition SpeckleyNodes.h:81
std::string name
node distribution
Definition SpeckleyNodes.h:109
virtual int getNumDims() const
Returns the dimensionality of this mesh (2 or 3).
Definition SpeckleyNodes.h:93
virtual ~SpeckleyNodes()
Virtual destructor.
Definition SpeckleyNodes.cpp:111
IntVec nodeDist
node tags
Definition SpeckleyNodes.h:108
virtual int getGlobalNumNodes() const
Returns the total number of mesh nodes for a distributed mesh.
Definition SpeckleyNodes.h:99
bool initFromSpeckley(const speckley::SpeckleyDomain *speckleyDomain)
Initialises with speckley domain.
Definition SpeckleyNodes.cpp:121
int globalNumNodes
number of nodes
Definition SpeckleyNodes.h:105
CoordArray coords
Definition SpeckleyNodes.h:102
const IntVec & getVarDataByName(const std::string &name) const
Returns an array of nodal data by the given name.
Definition SpeckleyNodes.cpp:182
std::string getFullSiloName() const
Returns full Silo mesh name, e.g. "/block0000/Nodes".
Definition SpeckleyNodes.h:114
int numDims
x, y[, z] coordinates of nodes
Definition SpeckleyNodes.h:103
IntVec nodeTag
node IDs
Definition SpeckleyNodes.h:107
virtual const IntVec & getNodeDistribution() const
Returns the node distribution array.
Definition SpeckleyNodes.h:84
virtual void writeCoordinatesVTK(std::ostream &os, int ownIndex)
Writes coordinates to a stream in VTK text format.
Definition SpeckleyNodes.cpp:206
std::string siloPath
the name of this node mesh
Definition SpeckleyNodes.h:110
virtual int getNumNodes() const
Returns the number of mesh nodes.
Definition SpeckleyNodes.h:96
virtual StringVec getVarNames() const
Returns a vector with the mesh variable names.
Definition SpeckleyNodes.cpp:195
void setSiloPath(const std::string &path)
Sets the silo path to be used when saving.
Definition SpeckleyNodes.h:64
int numNodes
dimensionality (2 or 3)
Definition SpeckleyNodes.h:104
virtual const IntVec & getGlobalNodeIndices() const
Returns the global node index array.
Definition SpeckleyNodes.h:87
virtual std::string getName() const
Returns the name of this node mesh.
Definition SpeckleyNodes.h:75
bool writeToSilo(DBfile *dbfile)
Writes node data to a Silo file.
Definition SpeckleyNodes.cpp:227
virtual const CoordArray & getCoords() const
Returns the coordinates of the mesh nodes.
Definition SpeckleyNodes.h:90
IntVec nodeID
global number of nodes
Definition SpeckleyNodes.h:106
Definition AbstractAssembler.cpp:19
Definition DataVar.cpp:51
boost::shared_ptr< SpeckleyNodes > SpeckleyNodes_ptr
Definition SpeckleyNodes.h:32
std::vector< std::string > StringVec
Definition weipa.h:61
std::vector< int > IntVec
Definition weipa.h:60
std::vector< float * > CoordArray
Definition weipa.h:62