![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#include <MemfemMeshReader.hpp>
Private Member Functions | |
std::vector< std::vector< double > > | TokenizeStringsToDoubles (const std::vector< std::string > &rRawData) |
std::vector< std::vector< unsigned > > | TokenizeStringsToInts (const std::vector< std::string > &rRawData, unsigned dimensionOfObject, bool readHeader) |
Additional Inherited Members | |
![]() | |
std::vector< std::string > | GetRawDataFromFile (const std::string &rFileName) |
![]() | |
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 |
Concrete version of the AbstractCachedMeshReader class. A MemfemMeshReader takes the base name of a set of Memfem mesh files (ie. the path and name of the files without the suffices). Once constructed the public methods of the AbstractCachedMeshReader (std::vector<double> GetNextNode(); etc) can be called to interrogate the data.
Definition at line 50 of file MemfemMeshReader.hpp.
MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::MemfemMeshReader | ( | const std::string & | rPathBaseName | ) |
The constructor takes the base name of a set of Memfem mesh files (ie. the path and name of the files without the suffices) and allows the data to be queried.
Typical use: AbstractMeshReader* pMeshReader = new MemfemMeshReader("pdes/tests/meshdata/Memfem_slab");
rPathBaseName | the base name of the files from which to read the mesh data |
Definition at line 46 of file MemfemMeshReader.cpp.
References EXCEPTION.
|
virtual |
Destructor.
Definition at line 114 of file MemfemMeshReader.cpp.
|
private |
TokenizeStringsToDoubles is specific to reading node data which came from a Memfem file. Each string is expected to be 3 doubles (representing x,y,z)
rRawData | the node data to be read |
Definition at line 118 of file MemfemMeshReader.cpp.
|
private |
TokenizeStringsToInts is for reading element or boundary face data which came from a Memfem file. Each string is expected to be: 3 or 4 node indices ( 3 indices for a face, 4 for a tetrahedron) a region marker? (if it's an element) NB: Region markers are currently ignored.
rRawData | the element or boundary face data to be read |
dimensionOfObject | the number of lines of data to be read |
readHeader | whether to read the header |
Definition at line 151 of file MemfemMeshReader.cpp.