escript Revision_
|
Stores and manipulates ripley mesh nodes. More...
#include <RipleyNodes.h>
Public Member Functions | |
RipleyNodes (const std::string &meshName) | |
Constructor with mesh name. | |
RipleyNodes (RipleyNodes_ptr fullNodes, IntVec &requiredNodes, const std::string &meshName) | |
RipleyNodes (const RipleyNodes &m) | |
Copy constructor. | |
virtual | ~RipleyNodes () |
Virtual destructor. | |
bool | initFromRipley (const ripley::RipleyDomain *ripleyDomain) |
Initialises with ripley domain. | |
bool | writeToSilo (DBfile *dbfile) |
Writes node data to a Silo file. | |
virtual void | writeCoordinatesVTK (std::ostream &os, int ownIndex) |
Writes coordinates to a stream in VTK text format. | |
void | setSiloPath (const std::string &path) |
Sets the silo path to be used when saving. | |
const IntVec & | getVarDataByName (const std::string &name) const |
Returns an array of nodal data by the given name. | |
virtual StringVec | getVarNames () const |
Returns a vector with the mesh variable names. | |
virtual std::string | getName () const |
Returns the name of this node mesh. | |
std::string | getFullSiloName () const |
Returns full Silo mesh name, e.g. "/block0000/Nodes". | |
virtual const IntVec & | getNodeIDs () const |
Returns the node ID array. | |
virtual const IntVec & | getNodeDistribution () const |
Returns the node distribution array. | |
virtual const IntVec & | getGlobalNodeIndices () const |
Returns the global node index array. | |
virtual const CoordArray & | getCoords () const |
Returns the coordinates of the mesh nodes. | |
virtual int | getNumDims () const |
Returns the dimensionality of this mesh (2 or 3). | |
virtual int | getNumNodes () const |
Returns the number of mesh nodes. | |
virtual int | getGlobalNumNodes () const |
Returns the total number of mesh nodes for a distributed mesh. | |
![]() |
Protected Attributes | |
CoordArray | coords |
int | numDims |
x, y[, z] coordinates of nodes | |
int | numNodes |
dimensionality (2 or 3) | |
int | globalNumNodes |
number of nodes | |
IntVec | nodeID |
global number of nodes | |
IntVec | nodeTag |
node IDs | |
IntVec | nodeDist |
node tags | |
std::string | name |
node distribution | |
std::string | siloPath |
the name of this node mesh | |
Additional Inherited Members | |
![]() | |
virtual | ~NodeData () |
Virtual destructor. | |
Stores and manipulates ripley mesh nodes.
This class provides functionality to manipulate the nodes of a ripley domain. It is able to load node data from dump files or retrieve it from a RipleyDomain instance.
weipa::RipleyNodes::RipleyNodes | ( | const std::string & | meshName | ) |
Constructor with mesh name.
weipa::RipleyNodes::RipleyNodes | ( | RipleyNodes_ptr | fullNodes, |
IntVec & | requiredNodes, | ||
const std::string & | meshName ) |
References globalNumNodes, nodeDist, and numDims.
weipa::RipleyNodes::RipleyNodes | ( | const RipleyNodes & | m | ) |
|
virtual |
Virtual destructor.
|
inlinevirtual |
|
inlinevirtual |
Returns full Silo mesh name, e.g. "/block0000/Nodes".
Implements weipa::NodeData.
|
inlinevirtual |
|
inlinevirtual |
Returns the total number of mesh nodes for a distributed mesh.
Implements weipa::NodeData.
References globalNumNodes.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
const IntVec & weipa::RipleyNodes::getVarDataByName | ( | const std::string & | name | ) | const |
Returns an array of nodal data by the given name.
The name must be one of the names returned by getVarNames().
|
virtual |
Returns a vector with the mesh variable names.
Implements weipa::NodeData.
bool weipa::RipleyNodes::initFromRipley | ( | const ripley::RipleyDomain * | ripleyDomain | ) |
Initialises with ripley domain.
References ripley::RipleyDomain::borrowSampleReferenceIDs(), ripley::RipleyDomain::getDataShape(), ripley::RipleyDomain::getDim(), ripley::RipleyDomain::getLocalCoordinate(), ripley::RipleyDomain::getNodeDistribution(), ripley::RipleyDomain::getNumDataPointsGlobal(), ripley::RipleyDomain::getNumNodesPerDim(), and ripley::Nodes.
|
inline |
Sets the silo path to be used when saving.
References siloPath.
|
virtual |
Writes coordinates to a stream in VTK text format.
Implements weipa::NodeData.
bool weipa::RipleyNodes::writeToSilo | ( | DBfile * | dbfile | ) |
Writes node data to a Silo file.
|
protected |
Referenced by getCoords(), and RipleyNodes().
|
protected |
number of nodes
Referenced by getGlobalNumNodes(), RipleyNodes(), and RipleyNodes().
|
protected |
node distribution
Referenced by getFullSiloName(), getName(), and RipleyNodes().
|
protected |
node tags
Referenced by getNodeDistribution(), RipleyNodes(), and RipleyNodes().
|
protected |
global number of nodes
Referenced by getGlobalNodeIndices(), getNodeIDs(), and RipleyNodes().
|
protected |
node IDs
Referenced by RipleyNodes().
|
protected |
x, y[, z] coordinates of nodes
Referenced by getNumDims(), RipleyNodes(), and RipleyNodes().
|
protected |
dimensionality (2 or 3)
Referenced by getNumNodes(), and RipleyNodes().
|
protected |
the name of this node mesh
Referenced by getFullSiloName(), and setSiloPath().