#include <MemfemMeshReader.hpp>
Public Member Functions | |
MemfemMeshReader (std::string pathBaseName) | |
Private Member Functions | |
std::vector< std::vector < double > > | TokenizeStringsToDoubles (std::vector< std::string > rawData) |
std::vector< std::vector < unsigned > > | TokenizeStringsToInts (std::vector< std::string > rawData, unsigned dimensionOfObject, bool readHeader) |
Definition at line 46 of file MemfemMeshReader.hpp.
MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::MemfemMeshReader | ( | std::string | pathBaseName | ) | [inline] |
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");
Definition at line 74 of file MemfemMeshReader.hpp.
References AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetRawDataFromFile(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mElementData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mElementRawData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mFaceData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mFaceRawData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mNodeData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mNodeRawData, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mpElementIterator, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mpFaceIterator, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::mpNodeIterator, MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::TokenizeStringsToDoubles(), and MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::TokenizeStringsToInts().
std::vector< std::vector< double > > MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::TokenizeStringsToDoubles | ( | std::vector< std::string > | rawData | ) | [inline, 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) Return value is a vector where each item is a vector of doubles which represents position. Indices are implicit in the vector.
Definition at line 154 of file MemfemMeshReader.hpp.
Referenced by MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::MemfemMeshReader().
std::vector< std::vector< unsigned > > MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::TokenizeStringsToInts | ( | std::vector< std::string > | rawData, | |
unsigned | dimensionOfObject, | |||
bool | readHeader | |||
) | [inline, 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. Return value is a vector where each item is a vector of ints which represents indices of nodes.
Definition at line 202 of file MemfemMeshReader.hpp.
Referenced by MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::MemfemMeshReader().