Chaste Release::3.1
|
#include <PottsMeshWriter.hpp>
Public Member Functions | |
PottsMeshWriter (const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true) | |
~PottsMeshWriter () | |
void | WriteFilesUsingMesh (PottsMesh< SPACE_DIM > &rMesh) |
std::vector< double > | GetNextNode () |
ElementData | GetNextElement () |
void | WriteFiles () |
Private Attributes | |
PottsMesh< SPACE_DIM > * | mpMesh |
MeshPottsWriterIterators < SPACE_DIM > * | mpIters |
NodeMap * | mpNodeMap |
unsigned | mNodeMapCurrentIndex |
A mesh writer class for potts-based meshes.
Definition at line 54 of file PottsMeshWriter.hpp.
PottsMeshWriter< SPACE_DIM >::PottsMeshWriter | ( | const std::string & | rDirectory, |
const std::string & | rBaseName, | ||
const bool | clearOutputDir = true |
||
) |
Constructor.
rDirectory | reference to the output directory, relative to where Chaste output is stored |
rBaseName | reference to the base name for results files |
clearOutputDir | whether to clear the output directory prior to writing files (defaults to true) |
Definition at line 56 of file PottsMeshWriter.cpp.
References PottsMeshWriter< SPACE_DIM >::mpIters.
PottsMeshWriter< SPACE_DIM >::~PottsMeshWriter | ( | ) |
Destructor.
Definition at line 70 of file PottsMeshWriter.cpp.
ElementData PottsMeshWriter< SPACE_DIM >::GetNextElement | ( | ) | [virtual] |
Reimplemented from AbstractMeshWriter< SPACE_DIM, SPACE_DIM >.
Definition at line 114 of file PottsMeshWriter.cpp.
References AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextElement(), and ElementData::NodeIndices.
std::vector< double > PottsMeshWriter< SPACE_DIM >::GetNextNode | ( | ) | [virtual] |
Reimplemented from AbstractMeshWriter< SPACE_DIM, SPACE_DIM >.
Definition at line 87 of file PottsMeshWriter.cpp.
References AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextNode().
void PottsMeshWriter< SPACE_DIM >::WriteFiles | ( | ) | [virtual] |
Write mesh data to files. This method must be overridden in concrete classes.
Implements AbstractMeshWriter< SPACE_DIM, SPACE_DIM >.
Definition at line 170 of file PottsMeshWriter.cpp.
References ElementData::AttributeValue, ChasteBuildInfo::GetProvenanceString(), and ElementData::NodeIndices.
void PottsMeshWriter< SPACE_DIM >::WriteFilesUsingMesh | ( | PottsMesh< SPACE_DIM > & | rMesh | ) |
Write files using a mesh.
rMesh | reference to the potts-based mesh |
Definition at line 142 of file PottsMeshWriter.cpp.
References PottsMesh< DIM >::GetNumNodes(), and NodeMap::SetNewIndex().
Referenced by PottsMesh< SPACE_DIM >::save().
unsigned PottsMeshWriter< SPACE_DIM >::mNodeMapCurrentIndex [private] |
What was the last index written to mpNodeMap ?
Definition at line 71 of file PottsMeshWriter.hpp.
MeshPottsWriterIterators<SPACE_DIM>* PottsMeshWriter< SPACE_DIM >::mpIters [private] |
Iterators over the mesh
Definition at line 65 of file PottsMeshWriter.hpp.
Referenced by PottsMeshWriter< SPACE_DIM >::PottsMeshWriter().
PottsMesh<SPACE_DIM>* PottsMeshWriter< SPACE_DIM >::mpMesh [private] |
If writing from a mesh object, the mesh to write to disk. Otherwise NULL.
Definition at line 62 of file PottsMeshWriter.hpp.
NodeMap* PottsMeshWriter< SPACE_DIM >::mpNodeMap [private] |
Track deleted nodes so they don't get written
Definition at line 68 of file PottsMeshWriter.hpp.