![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#include <ImmersedBoundaryMeshReader.hpp>
Private Member Functions | |
void | OpenFiles () |
void | OpenNodeFile () |
void | OpenElementsFile () |
void | OpenLaminasFile () |
void | OpenGridFile () |
void | ReadHeaders () |
void | CloseFiles () |
void | GetNextLineFromStream (std::ifstream &fileStream, std::string &rawLine) |
Private Attributes | |
std::string | mFilesBaseName |
std::ifstream | mNodesFile |
std::ifstream | mElementsFile |
std::ifstream | mLaminasFile |
std::ifstream | mGridFile |
bool | mIndexFromZero |
unsigned | mNumNodes |
unsigned | mNumElements |
unsigned | mNumLaminas |
unsigned | mNodesRead |
unsigned | mElementsRead |
unsigned | mLaminasRead |
unsigned | mNumNodeAttributes |
unsigned | mNumElementAttributes |
unsigned | mNumLaminaAttributes |
unsigned | mNumGridPtsX |
unsigned | mNumGridPtsY |
double | mCharacteristicNodeSpacing |
A mesh reader class for immersed boundary meshes.
Definition at line 79 of file ImmersedBoundaryMeshReader.hpp.
ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::ImmersedBoundaryMeshReader | ( | std::string | pathBaseName | ) |
Constructor.
pathBaseName | the base name for results files |
Definition at line 42 of file ImmersedBoundaryMeshReader.cpp.
References ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenFiles(), and ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::ReadHeaders().
|
inline |
Destructor.
Definition at line 192 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Close node and element files.
Definition at line 401 of file ImmersedBoundaryMeshReader.cpp.
double ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::GetCharacteristicNodeSpacing | ( | ) |
Definition at line 100 of file ImmersedBoundaryMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 438 of file ImmersedBoundaryMeshReader.cpp.
References ElementData::AttributeValue, and ElementData::NodeIndices.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 447 of file ImmersedBoundaryMeshReader.cpp.
References ElementData::AttributeValue, and ElementData::NodeIndices.
std::vector< double > ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextGridRow | ( | ) |
Definition at line 147 of file ImmersedBoundaryMeshReader.cpp.
ImmersedBoundaryElementData ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextImmersedBoundaryElementData | ( | ) |
Definition at line 168 of file ImmersedBoundaryMeshReader.cpp.
References ImmersedBoundaryElementData::AttributeValue, ImmersedBoundaryElementData::averageNodeSpacing, ImmersedBoundaryElementData::cornerNodeIndices, EXCEPTION, ImmersedBoundaryElementData::fluidSourceIndex, ImmersedBoundaryElementData::hasFluidSource, ImmersedBoundaryElementData::isBoundaryElement, and ImmersedBoundaryElementData::NodeIndices.
ImmersedBoundaryElementData ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextImmersedBoundaryLaminaData | ( | ) |
Definition at line 232 of file ImmersedBoundaryMeshReader.cpp.
References ImmersedBoundaryElementData::AttributeValue, ImmersedBoundaryElementData::averageNodeSpacing, ImmersedBoundaryElementData::cornerNodeIndices, EXCEPTION, ImmersedBoundaryElementData::fluidSourceIndex, ImmersedBoundaryElementData::hasFluidSource, ImmersedBoundaryElementData::isBoundaryElement, and ImmersedBoundaryElementData::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 410 of file ImmersedBoundaryMeshReader.cpp.
References EXCEPTION.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 117 of file ImmersedBoundaryMeshReader.cpp.
References EXCEPTION.
|
virtual |
Reimplemented from AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 88 of file ImmersedBoundaryMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 58 of file ImmersedBoundaryMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 432 of file ImmersedBoundaryMeshReader.cpp.
unsigned ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumGridPtsX | ( | ) | const |
Definition at line 76 of file ImmersedBoundaryMeshReader.cpp.
unsigned ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumGridPtsY | ( | ) | const |
Definition at line 82 of file ImmersedBoundaryMeshReader.cpp.
unsigned ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumLaminaAttributes | ( | ) | const |
Definition at line 94 of file ImmersedBoundaryMeshReader.cpp.
unsigned ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumLaminas | ( | ) | const |
Definition at line 64 of file ImmersedBoundaryMeshReader.cpp.
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 70 of file ImmersedBoundaryMeshReader.cpp.
|
private |
Open element file.
Definition at line 318 of file ImmersedBoundaryMeshReader.cpp.
References EXCEPTION.
|
private |
Open node and element files.
Definition at line 297 of file ImmersedBoundaryMeshReader.cpp.
Referenced by ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::ImmersedBoundaryMeshReader().
|
private |
Open grids file.
Definition at line 346 of file ImmersedBoundaryMeshReader.cpp.
References EXCEPTION.
|
private |
Open laminas file.
Definition at line 332 of file ImmersedBoundaryMeshReader.cpp.
References EXCEPTION.
|
private |
Open node file.
Definition at line 306 of file ImmersedBoundaryMeshReader.cpp.
References EXCEPTION.
|
private |
Read the file headers to determine node and element numbers and attributes.
Definition at line 360 of file ImmersedBoundaryMeshReader.cpp.
Referenced by ImmersedBoundaryMeshReader< ELEMENT_DIM, SPACE_DIM >::ImmersedBoundaryMeshReader().
|
virtual |
Reset pointers to beginning.
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 106 of file ImmersedBoundaryMeshReader.cpp.
|
private |
The characteristic node spacing.
Definition at line 135 of file ImmersedBoundaryMeshReader.hpp.
|
private |
The elements file for the mesh.
Definition at line 90 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Number of elements read in by the reader.
Definition at line 114 of file ImmersedBoundaryMeshReader.hpp.
|
private |
The base name for mesh files.
Definition at line 84 of file ImmersedBoundaryMeshReader.hpp.
|
private |
The grid file for the mesh.
Definition at line 96 of file ImmersedBoundaryMeshReader.hpp.
|
private |
True if input data are numbered from zero, false otherwise.
Definition at line 99 of file ImmersedBoundaryMeshReader.hpp.
|
private |
The laminas file for the mesh.
Definition at line 93 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Number of laminas read in by the reader.
Definition at line 117 of file ImmersedBoundaryMeshReader.hpp.
|
private |
The nodes file for the mesh.
Definition at line 87 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Number of nodes read in by the reader.
Definition at line 111 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Number of attributes stored for each element.
Definition at line 123 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Number of elements in the mesh.
Definition at line 105 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Is the number of grid points in the x direction.
Definition at line 129 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Is the number of grid points in the y direction.
Definition at line 132 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Number of attributes stored for each lamina.
Definition at line 126 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Number of laminas in the mesh.
Definition at line 108 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Number of attributes stored at each node.
Definition at line 120 of file ImmersedBoundaryMeshReader.hpp.
|
private |
Number of nodes in the mesh.
Definition at line 102 of file ImmersedBoundaryMeshReader.hpp.