Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
|
#include <PottsMeshReader.hpp>
Private Member Functions | |
void | OpenFiles () |
void | OpenNodeFile () |
void | OpenElementsFile () |
void | ReadHeaders () |
void | CloseFiles () |
void | GetNextLineFromStream (std::ifstream &fileStream, std::string &rawLine) |
Private Attributes | |
std::string | mFilesBaseName |
std::ifstream | mNodesFile |
std::ifstream | mElementsFile |
bool | mIndexFromZero |
unsigned | mNumNodes |
unsigned | mNumElements |
unsigned | mNodesRead |
unsigned | mElementsRead |
unsigned | mNumNodeAttributes |
unsigned | mNumElementAttributes |
A mesh reader class for Potts meshes. So far implemented in 2D only.
Definition at line 62 of file PottsMeshReader.hpp.
PottsMeshReader< SPACE_DIM >::PottsMeshReader | ( | std::string | pathBaseName | ) |
Constructor.
pathBaseName | the base name for results files |
Definition at line 39 of file PottsMeshReader.cpp.
References PottsMeshReader< SPACE_DIM >::OpenFiles(), and PottsMeshReader< SPACE_DIM >::ReadHeaders().
|
inline |
Destructor.
Definition at line 141 of file PottsMeshReader.hpp.
|
private |
Close node and element files.
Definition at line 239 of file PottsMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 129 of file PottsMeshReader.cpp.
References ElementData::AttributeValue, EXCEPTION, and ElementData::NodeIndices.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 71 of file PottsMeshReader.cpp.
References ElementData::AttributeValue, and ElementData::NodeIndices.
|
private |
Returns (via rawLine) the next line from a given file stream.
fileStream | the file stream |
rawLine | the raw line which may contain comments (returned) |
Definition at line 246 of file PottsMeshReader.cpp.
References EXCEPTION.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 99 of file PottsMeshReader.cpp.
References EXCEPTION.
|
virtual |
Reimplemented from AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 65 of file PottsMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 53 of file PottsMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 81 of file PottsMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 59 of file PottsMeshReader.cpp.
|
private |
|
private |
Open node and element files.
Definition at line 177 of file PottsMeshReader.cpp.
Referenced by PottsMeshReader< SPACE_DIM >::PottsMeshReader().
|
private |
|
private |
Read the file headers to determine node and element numbers and attributes.
Definition at line 210 of file PottsMeshReader.cpp.
Referenced by PottsMeshReader< SPACE_DIM >::PottsMeshReader().
|
virtual |
Reset pointers to beginning.
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 88 of file PottsMeshReader.cpp.
|
private |
The elements file for the mesh.
Definition at line 73 of file PottsMeshReader.hpp.
|
private |
Number of elements read in by the reader.
Definition at line 88 of file PottsMeshReader.hpp.
|
private |
The base name for mesh files.
Definition at line 67 of file PottsMeshReader.hpp.
|
private |
True if input data are numbered from zero, false otherwise.
Definition at line 76 of file PottsMeshReader.hpp.
|
private |
The nodes file for the mesh.
Definition at line 70 of file PottsMeshReader.hpp.
|
private |
Number of nodes read in by the reader.
Definition at line 85 of file PottsMeshReader.hpp.
|
private |
Is the number of attributes stored for each element.
Definition at line 94 of file PottsMeshReader.hpp.
|
private |
Number of elements in the mesh.
Definition at line 82 of file PottsMeshReader.hpp.
|
private |
Is the number of attributes stored at each node.
Definition at line 91 of file PottsMeshReader.hpp.
|
private |
Number of nodes in the mesh.
Definition at line 79 of file PottsMeshReader.hpp.