Chaste
Release::3.4
|
#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 42 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 242 of file PottsMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 132 of file PottsMeshReader.cpp.
References ElementData::AttributeValue, EXCEPTION, and ElementData::NodeIndices.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 74 of file PottsMeshReader.cpp.
References ElementData::AttributeValue, and ElementData::NodeIndices.
|
private |
fileStream | the file stream |
rawLine | the raw line (may contain comments) |
Definition at line 249 of file PottsMeshReader.cpp.
References EXCEPTION.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 102 of file PottsMeshReader.cpp.
References EXCEPTION.
|
virtual |
Reimplemented from AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 68 of file PottsMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 56 of file PottsMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 84 of file PottsMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 62 of file PottsMeshReader.cpp.
|
private |
|
private |
Open node and element files.
Definition at line 180 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 213 of file PottsMeshReader.cpp.
Referenced by PottsMeshReader< SPACE_DIM >::PottsMeshReader().
|
virtual |
Reset pointers to beginning.
Implements AbstractMeshReader< SPACE_DIM, SPACE_DIM >.
Definition at line 91 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.