|
escript
Revision_
|
Stores and manipulates finley mesh nodes. More...
#include <FinleyNodes.h>
Public Member Functions | |
| FinleyNodes (const std::string &meshName) | |
| Constructor with mesh name. More... | |
| FinleyNodes (FinleyNodes_ptr fullNodes, IntVec &requiredNodes, const std::string &meshName) | |
| FinleyNodes (const FinleyNodes &m) | |
| Copy constructor. More... | |
| virtual | ~FinleyNodes () |
| Virtual destructor. More... | |
| bool | initFromDudley (const dudley::NodeFile *dudleyFile) |
| Initialises with dudley node file. More... | |
| bool | initFromFinley (const finley::NodeFile *finleyFile) |
| Initialises with finley node file. More... | |
| bool | readFromNc (NcFile *ncFile) |
| Reads node data from a NetCDF file. More... | |
| bool | writeToSilo (DBfile *dbfile) |
| Writes node data to a Silo file. More... | |
| virtual void | writeCoordinatesVTK (std::ostream &os, int ownIndex) |
| Writes coordinates to a stream in VTK text format. More... | |
| void | setSiloPath (const std::string &path) |
| Sets the silo path to be used when saving. More... | |
| const IntVec & | getVarDataByName (const std::string &name) const |
| Returns an array of nodal data by the given name. More... | |
| virtual StringVec | getVarNames () const |
| Returns a vector with the mesh variable names. More... | |
| virtual std::string | getName () const |
| Returns the name of this node mesh. More... | |
| std::string | getFullSiloName () const |
| Returns full Silo mesh name, e.g. "/block0000/Nodes". More... | |
| virtual const IntVec & | getNodeIDs () const |
| Returns the node ID array. More... | |
| virtual const IntVec & | getNodeDistribution () const |
| Returns the node distribution array. More... | |
| virtual const IntVec & | getGlobalNodeIndices () const |
| Returns the global node index array. More... | |
| virtual const CoordArray & | getCoords () const |
| Returns the coordinates of the mesh nodes. More... | |
| virtual int | getNumDims () const |
| Returns the dimensionality of this mesh (2 or 3). More... | |
| virtual int | getNumNodes () const |
| Returns the number of mesh nodes. More... | |
| virtual int | getGlobalNumNodes () const |
| Returns the total number of mesh nodes for a distributed mesh. More... | |
Protected Attributes | |
| CoordArray | coords |
| int | numDims |
| x, y[, z] coordinates of nodes More... | |
| int | numNodes |
| dimensionality (2 or 3) More... | |
| IntVec | nodeID |
| number of nodes More... | |
| IntVec | nodeTag |
| node IDs More... | |
| IntVec | nodeGDOF |
| IntVec | nodeGNI |
| IntVec | nodeGRDFI |
| IntVec | nodeGRNI |
| IntVec | nodeDist |
| std::string | name |
| node distribution More... | |
| std::string | siloPath |
| the name of this node mesh More... | |
Additional Inherited Members | |
Protected Member Functions inherited from weipa::NodeData | |
| virtual | ~NodeData () |
| Virtual destructor. More... | |
Stores and manipulates finley mesh nodes.
This class provides functionality to manipulate a finley node file. It is able to load node data from dump files or retrieve it from a finley::NodeFile instance.
| weipa::FinleyNodes::FinleyNodes | ( | const std::string & | meshName | ) |
Constructor with mesh name.
| weipa::FinleyNodes::FinleyNodes | ( | FinleyNodes_ptr | fullNodes, |
| IntVec & | requiredNodes, | ||
| const std::string & | meshName | ||
| ) |
| weipa::FinleyNodes::FinleyNodes | ( | const FinleyNodes & | m | ) |
|
virtual |
Virtual destructor.
References coords.
|
inlinevirtual |
Returns the coordinates of the mesh nodes.
Implements weipa::NodeData.
|
inlinevirtual |
Returns full Silo mesh name, e.g. "/block0000/Nodes".
Implements weipa::NodeData.
Referenced by writeToSilo().
|
inlinevirtual |
Returns the global node index array.
Implements weipa::NodeData.
|
virtual |
Returns the total number of mesh nodes for a distributed mesh.
Implements weipa::NodeData.
References nodeDist.
|
inlinevirtual |
Returns the name of this node mesh.
Implements weipa::NodeData.
|
inlinevirtual |
Returns the node distribution array.
Implements weipa::NodeData.
|
inlinevirtual |
Returns the node ID array.
Implements weipa::NodeData.
|
inlinevirtual |
Returns the dimensionality of this mesh (2 or 3).
Implements weipa::NodeData.
|
inlinevirtual |
Returns the number of mesh nodes.
Implements weipa::NodeData.
| const IntVec & weipa::FinleyNodes::getVarDataByName | ( | const std::string & | name | ) | const |
|
virtual |
Returns a vector with the mesh variable names.
Implements weipa::NodeData.
| bool weipa::FinleyNodes::initFromDudley | ( | const dudley::NodeFile * | dudleyFile | ) |
Initialises with dudley node file.
References dudley::NodeFile::Coordinates, coords, dudley::NodeFile::getNumNodes(), dudley::NodeFile::globalDegreesOfFreedom, dudley::NodeFile::globalNodesIndex, dudley::NodeFile::Id, nodeDist, nodeGDOF, nodeGNI, nodeGRDFI, nodeGRNI, nodeID, dudley::NodeFile::nodesDistribution, nodeTag, dudley::NodeFile::numDim, numDims, numNodes, and dudley::NodeFile::Tag.
| bool weipa::FinleyNodes::initFromFinley | ( | const finley::NodeFile * | finleyFile | ) |
Initialises with finley node file.
References finley::NodeFile::Coordinates, coords, finley::NodeFile::getNumNodes(), finley::NodeFile::globalDegreesOfFreedom, finley::NodeFile::globalNodesIndex, finley::NodeFile::globalReducedDOFIndex, finley::NodeFile::globalReducedNodesIndex, finley::NodeFile::Id, nodeDist, nodeGDOF, nodeGNI, nodeGRDFI, nodeGRNI, nodeID, finley::NodeFile::nodesDistribution, nodeTag, finley::NodeFile::numDim, numDims, numNodes, readFromNc(), and finley::NodeFile::Tag.
| bool weipa::FinleyNodes::readFromNc | ( | NcFile * | ncFile | ) |
|
inline |
Sets the silo path to be used when saving.
|
virtual |
| bool weipa::FinleyNodes::writeToSilo | ( | DBfile * | dbfile | ) |
|
protected |
Referenced by FinleyNodes(), initFromDudley(), initFromFinley(), readFromNc(), writeCoordinatesVTK(), and ~FinleyNodes().
|
protected |
node distribution
Referenced by FinleyNodes().
|
protected |
Referenced by FinleyNodes(), getGlobalNumNodes(), initFromDudley(), initFromFinley(), readFromNc(), and writeCoordinatesVTK().
|
protected |
Referenced by FinleyNodes(), getVarDataByName(), initFromDudley(), initFromFinley(), readFromNc(), and writeToSilo().
|
protected |
Referenced by FinleyNodes(), getVarDataByName(), initFromDudley(), initFromFinley(), readFromNc(), writeCoordinatesVTK(), and writeToSilo().
|
protected |
Referenced by FinleyNodes(), getVarDataByName(), initFromDudley(), initFromFinley(), readFromNc(), and writeToSilo().
|
protected |
Referenced by FinleyNodes(), getVarDataByName(), initFromDudley(), initFromFinley(), readFromNc(), and writeToSilo().
|
protected |
number of nodes
Referenced by FinleyNodes(), getVarDataByName(), initFromDudley(), initFromFinley(), readFromNc(), and writeToSilo().
|
protected |
node IDs
Referenced by FinleyNodes(), getVarDataByName(), initFromDudley(), initFromFinley(), readFromNc(), and writeToSilo().
|
protected |
x, y[, z] coordinates of nodes
Referenced by FinleyNodes(), initFromDudley(), initFromFinley(), readFromNc(), and writeCoordinatesVTK().
|
protected |
dimensionality (2 or 3)
Referenced by FinleyNodes(), initFromDudley(), initFromFinley(), readFromNc(), writeCoordinatesVTK(), and writeToSilo().
|
protected |
the name of this node mesh
Referenced by writeToSilo().
1.8.13