Chaste
Release::2017.1
|
#include <AbstractCachedMeshReader.hpp>
Protected Member Functions | |
std::vector< std::string > | GetRawDataFromFile (const std::string &rFileName) |
Protected Attributes | |
unsigned | mNumNodeAttributes |
unsigned | mMaxNodeBdyMarker |
unsigned | mNumElementNodes |
unsigned | mNumElementAttributes |
unsigned | mMaxFaceBdyMarker |
std::vector< std::string > | mNodeRawData |
std::vector< std::string > | mElementRawData |
std::vector< std::string > | mFaceRawData |
std::vector< std::vector< double > > | mNodeData |
std::vector< std::vector< unsigned > > | mElementData |
std::vector< std::vector< unsigned > > | mFaceData |
std::vector< std::vector< double > >::iterator | mpNodeIterator |
std::vector< std::vector< unsigned > >::iterator | mpElementIterator |
std::vector< std::vector< unsigned > >::iterator | mpFaceIterator |
bool | mIndexFromZero |
Abstract mesh reader class, for readers which read and cache the entire mesh in internal storage, for the mesh to use for constructing itself. Concrete readers which will read large, memory-intensive, meshes should inherit from AbstractMeshReader, not this class.
Definition at line 51 of file AbstractCachedMeshReader.hpp.
AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::AbstractCachedMeshReader | ( | ) |
Constructor
Definition at line 46 of file AbstractCachedMeshReader.cpp.
|
inlinevirtual |
Destructor.
Definition at line 88 of file AbstractCachedMeshReader.hpp.
References AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetMaxNodeIndex(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetMinNodeIndex(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumFaces(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset().
unsigned AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetMaxNodeIndex | ( | ) |
Definition at line 104 of file AbstractCachedMeshReader.cpp.
References AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mElementData.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::~AbstractCachedMeshReader().
unsigned AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetMinNodeIndex | ( | ) |
Definition at line 128 of file AbstractCachedMeshReader.cpp.
References AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mElementData.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::~AbstractCachedMeshReader().
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 169 of file AbstractCachedMeshReader.cpp.
References ElementData::AttributeValue, EXCEPTION, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mElementData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mpElementIterator, and ElementData::NodeIndices.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::~AbstractCachedMeshReader().
|
virtual |
Is a synonum of GetNextEdge(). The two functions can be used interchangeably, i.e. they use the same iterator.
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 196 of file AbstractCachedMeshReader.cpp.
References ElementData::AttributeValue, EXCEPTION, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mFaceData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mpFaceIterator, and ElementData::NodeIndices.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::~AbstractCachedMeshReader().
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 152 of file AbstractCachedMeshReader.cpp.
References EXCEPTION, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mNodeData, and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mpNodeIterator.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::~AbstractCachedMeshReader().
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 215 of file AbstractCachedMeshReader.cpp.
References AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mElementData.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::~AbstractCachedMeshReader().
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 227 of file AbstractCachedMeshReader.cpp.
References AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mFaceData.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::~AbstractCachedMeshReader().
|
virtual |
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 221 of file AbstractCachedMeshReader.cpp.
References AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mNodeData.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::~AbstractCachedMeshReader().
|
protected |
Reads an input file rFileName, removes comments (indicated by a #) and blank lines and returns a vector of strings. Each string corresponds to one line of the input file.
rFileName | the name of the file to read from, relative to the output directory |
Definition at line 58 of file AbstractCachedMeshReader.cpp.
References EXCEPTION.
|
virtual |
Resets pointers to beginning
Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 188 of file AbstractCachedMeshReader.cpp.
References AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mElementData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mFaceData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mNodeData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mpElementIterator, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mpFaceIterator, and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mpNodeIterator.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::~AbstractCachedMeshReader().
|
protected |
Is an array of the nodes in each element ((i,j)th entry is the jth node of element i)
Definition at line 66 of file AbstractCachedMeshReader.hpp.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetMaxNodeIndex(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetMinNodeIndex(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset().
|
protected |
Contents of element input file with comments removed
Definition at line 62 of file AbstractCachedMeshReader.hpp.
|
protected |
Is an array of the nodes in each face ((i,j)th entry is the jth node of face i)
Definition at line 67 of file AbstractCachedMeshReader.hpp.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumFaces(), and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset().
|
protected |
Contents of face (or edge) input file with comments removed
Definition at line 63 of file AbstractCachedMeshReader.hpp.
|
protected |
True if input data is numbered from zero, false otherwise
Definition at line 73 of file AbstractCachedMeshReader.hpp.
|
protected |
Is the maximum face (or edge) boundary marker
Definition at line 59 of file AbstractCachedMeshReader.hpp.
|
protected |
Is the maximum node boundary marker
Definition at line 56 of file AbstractCachedMeshReader.hpp.
|
protected |
Is an array of node coordinates ((i,j)th entry is the jth coordinate of node i)
Definition at line 65 of file AbstractCachedMeshReader.hpp.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset().
|
protected |
Contents of node input file with comments removed
Definition at line 61 of file AbstractCachedMeshReader.hpp.
|
protected |
Is the number of attributes stored for each element
Definition at line 58 of file AbstractCachedMeshReader.hpp.
|
protected |
Is the number of nodes per element
Definition at line 57 of file AbstractCachedMeshReader.hpp.
|
protected |
Is the number of attributes stored at each node
Definition at line 55 of file AbstractCachedMeshReader.hpp.
|
protected |
Is an iterator for the element data
Definition at line 70 of file AbstractCachedMeshReader.hpp.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData(), and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset().
|
protected |
Is an iterator for the face data
Definition at line 71 of file AbstractCachedMeshReader.hpp.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData(), and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset().
|
protected |
Is an iterator for the node data
Definition at line 69 of file AbstractCachedMeshReader.hpp.
Referenced by AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset().