Chaste
Release::2018.1
|
#include <VertexMeshReader.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 vertex-based meshes. So far implemented in 2D only.
Definition at line 63 of file VertexMeshReader.hpp.
VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::VertexMeshReader | ( | std::string | pathBaseName | ) |
Constructor.
pathBaseName | the base name for results files |
Definition at line 42 of file VertexMeshReader.cpp.
References VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenFiles(), and VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::ReadHeaders().
|
inline |
Destructor.
Definition at line 142 of file VertexMeshReader.hpp.
|
private |
Close node and element files.
Definition at line 324 of file VertexMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 139 of file VertexMeshReader.cpp.
References ElementData::AttributeValue, EXCEPTION, and ElementData::NodeIndices.
VertexElementData VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementDataWithFaces | ( | ) |
Definition at line 185 of file VertexMeshReader.cpp.
References VertexElementData::AttributeValue, ElementData::AttributeValue, EXCEPTION, VertexElementData::Faces, VertexElementData::NodeIndices, and ElementData::NodeIndices.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 81 of file VertexMeshReader.cpp.
References ElementData::AttributeValue, and ElementData::NodeIndices.
|
private |
Get the next line from a given file stream.
fileStream | the file stream |
rawLine | the raw line (may contain comments) |
Definition at line 331 of file VertexMeshReader.cpp.
References EXCEPTION.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 109 of file VertexMeshReader.cpp.
References EXCEPTION.
unsigned VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumEdges | ( | ) | const |
Definition at line 91 of file VertexMeshReader.cpp.
|
virtual |
Reimplemented from AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 68 of file VertexMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 56 of file VertexMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 74 of file VertexMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 62 of file VertexMeshReader.cpp.
|
private |
|
private |
Open node and element files.
Definition at line 262 of file VertexMeshReader.cpp.
Referenced by VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::VertexMeshReader().
|
private |
|
private |
Read the file headers to determine node and element numbers and attributes.
Definition at line 295 of file VertexMeshReader.cpp.
Referenced by VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::VertexMeshReader().
|
virtual |
Reset pointers to beginning.
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 98 of file VertexMeshReader.cpp.
|
private |
The elements file for the mesh.
Definition at line 74 of file VertexMeshReader.hpp.
|
private |
Number of elements read in by the reader.
Definition at line 89 of file VertexMeshReader.hpp.
|
private |
The base name for mesh files.
Definition at line 68 of file VertexMeshReader.hpp.
|
private |
True if input data are numbered from zero, false otherwise.
Definition at line 77 of file VertexMeshReader.hpp.
|
private |
The nodes file for the mesh.
Definition at line 71 of file VertexMeshReader.hpp.
|
private |
Number of nodes read in by the reader.
Definition at line 86 of file VertexMeshReader.hpp.
|
private |
Is the number of attributes stored for each element.
Definition at line 95 of file VertexMeshReader.hpp.
|
private |
Number of elements in the mesh.
Definition at line 83 of file VertexMeshReader.hpp.
|
private |
Is the number of attributes stored at each node.
Definition at line 92 of file VertexMeshReader.hpp.
|
private |
Number of nodes in the mesh.
Definition at line 80 of file VertexMeshReader.hpp.