Chaste Release::3.1
|
#include <SemMeshWriter.hpp>
Public Member Functions | |
SemMeshWriter (const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true) | |
~SemMeshWriter () | |
void | WriteFilesUsingMesh (SemMesh< SPACE_DIM > &rMesh) |
std::vector< double > | GetNextNode () |
ElementData | GetNextElement () |
void | WriteFiles () |
Private Attributes | |
SemMesh< SPACE_DIM > * | mpMesh |
MeshSemWriterIterators < SPACE_DIM > * | mpIters |
NodeMap * | mpNodeMap |
unsigned | mNodeMapCurrentIndex |
A mesh writer class for potts-based meshes.
Definition at line 54 of file SemMeshWriter.hpp.
SemMeshWriter< SPACE_DIM >::SemMeshWriter | ( | 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 SemMeshWriter.cpp.
References SemMeshWriter< SPACE_DIM >::mpIters.
SemMeshWriter< SPACE_DIM >::~SemMeshWriter | ( | ) |
Destructor.
Definition at line 70 of file SemMeshWriter.cpp.
ElementData SemMeshWriter< SPACE_DIM >::GetNextElement | ( | ) | [virtual] |
Reimplemented from AbstractMeshWriter< SPACE_DIM, SPACE_DIM >.
Definition at line 114 of file SemMeshWriter.cpp.
References AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextElement(), and ElementData::NodeIndices.
std::vector< double > SemMeshWriter< SPACE_DIM >::GetNextNode | ( | ) | [virtual] |
Reimplemented from AbstractMeshWriter< SPACE_DIM, SPACE_DIM >.
Definition at line 87 of file SemMeshWriter.cpp.
References AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextNode().
void SemMeshWriter< 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 SemMeshWriter.cpp.
References ElementData::AttributeValue, ChasteBuildInfo::GetProvenanceString(), and ElementData::NodeIndices.
void SemMeshWriter< SPACE_DIM >::WriteFilesUsingMesh | ( | SemMesh< SPACE_DIM > & | rMesh | ) |
Write files using a mesh.
rMesh | reference to the potts-based mesh |
Definition at line 142 of file SemMeshWriter.cpp.
References SemMesh< DIM >::GetNumNodes(), and NodeMap::SetNewIndex().
Referenced by SemMesh< SPACE_DIM >::save().
unsigned SemMeshWriter< SPACE_DIM >::mNodeMapCurrentIndex [private] |
What was the last index written to mpNodeMap ?
Definition at line 71 of file SemMeshWriter.hpp.
MeshSemWriterIterators<SPACE_DIM>* SemMeshWriter< SPACE_DIM >::mpIters [private] |
Iterators over the mesh
Definition at line 65 of file SemMeshWriter.hpp.
Referenced by SemMeshWriter< SPACE_DIM >::SemMeshWriter().
SemMesh<SPACE_DIM>* SemMeshWriter< SPACE_DIM >::mpMesh [private] |
If writing from a mesh object, the mesh to write to disk. Otherwise NULL.
Definition at line 62 of file SemMeshWriter.hpp.
NodeMap* SemMeshWriter< SPACE_DIM >::mpNodeMap [private] |
Track deleted nodes so they don't get written
Definition at line 68 of file SemMeshWriter.hpp.