#include <AbstractMeshReader.hpp>
Public Member Functions | |
virtual unsigned | GetNumElements () const =0 |
virtual unsigned | GetNumNodes () const =0 |
virtual unsigned | GetNumFaces () const =0 |
virtual unsigned | GetNumElementAttributes () const |
virtual unsigned | GetNumFaceAttributes () const |
virtual std::vector< double > | GetNodeAttributes () |
unsigned | GetNumEdges () const |
virtual std::vector< double > | GetNextNode ()=0 |
virtual void | Reset ()=0 |
virtual ElementData | GetNextElementData ()=0 |
virtual ElementData | GetNextFaceData ()=0 |
ElementData | GetNextEdgeData () |
virtual std::vector< double > | GetNode (unsigned index) |
virtual ElementData | GetElementData (unsigned index) |
virtual ElementData | GetFaceData (unsigned index) |
ElementData | GetEdgeData (unsigned index) |
virtual std::vector< unsigned > | GetContainingElementIndices (unsigned index) |
virtual std::string | GetMeshFileBaseName () |
virtual bool | IsFileFormatBinary () |
virtual bool | HasNclFile () |
A derived class TrianglesMeshReader exists for reading meshes generated by Triangles (in 2-d) and TetGen (in 3-d).
A derived class MemfemMeshReader reads 3D data from the Tulane University code
A derived class FemlabMeshReader reads 2D data from Femlab or Matlab PDEToolbox
Definition at line 60 of file AbstractMeshReader.hpp.
virtual unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumElements | ( | ) | const [pure virtual] |
Returns the number of elements in the mesh
Implemented in AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, and VertexMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::MetisLibraryNodePartitioning(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodePartitioning(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
virtual unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumNodes | ( | ) | const [pure virtual] |
Returns the number of nodes in the mesh
Implemented in AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, and VertexMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::MetisLibraryNodePartitioning(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodePartitioning(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
virtual unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumFaces | ( | ) | const [pure virtual] |
Returns the number of faces in the mesh (also has synonym GetNumEdges())
Implemented in AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, and VertexMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumEdges(), and AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMeshReader().
unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumElementAttributes | ( | ) | const [inline, virtual] |
Returns the number of element attributes in the mesh
Reimplemented in GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, and VertexMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 37 of file AbstractMeshReader.cpp.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumFaceAttributes | ( | ) | const [inline, virtual] |
Returns the number of face attributes in the mesh
Reimplemented in GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and VtkMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 51 of file AbstractMeshReader.cpp.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
std::vector< double > AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNodeAttributes | ( | ) | [inline, virtual] |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 59 of file AbstractMeshReader.cpp.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumEdges | ( | ) | const [inline] |
Returns the number of edges in the mesh (synonym of GetNumFaces())
Reimplemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, and VertexMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 45 of file AbstractMeshReader.cpp.
References AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumFaces().
virtual std::vector<double> AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode | ( | ) | [pure virtual] |
Returns a vector of the coordinates of each node in turn
Implemented in AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, and VertexMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
virtual void AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset | ( | ) | [pure virtual] |
Resets pointers to beginning
Implemented in AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, and VertexMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::MetisLibraryNodePartitioning(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodePartitioning(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
virtual ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData | ( | ) | [pure virtual] |
Returns a vector of the node indices of each element (and any attribute infomation, if there is any) in turn
Implemented in AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, and VertexMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::MetisLibraryNodePartitioning(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodePartitioning(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
virtual ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData | ( | ) | [pure virtual] |
Returns a vector of the node indices of each face (and any attribute/containment infomation, if there is any) in turn
Implemented in AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, and VertexMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextEdgeData(), and AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMeshReader().
ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextEdgeData | ( | ) | [inline] |
Returns a vector of the node indices of each edge (and any attribute/containment infomation, if there is any) in turn (synonym of GetNextFaceData())
Definition at line 68 of file AbstractMeshReader.cpp.
References AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData().
std::vector< double > AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNode | ( | unsigned | index | ) | [inline, virtual] |
Normally throws an exception. Only implemented for tetrahedral mesh reader of binary files.
index | The global node index |
Reimplemented in GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, and TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 75 of file AbstractMeshReader.cpp.
References EXCEPTION.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementData | ( | unsigned | index | ) | [inline, virtual] |
Normally throws an exception. Only implemented for tetrahedral mesh reader of binary files.
index | The global element index |
Reimplemented in GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, and TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 81 of file AbstractMeshReader.cpp.
References EXCEPTION.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodePartitioning(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetFaceData | ( | unsigned | index | ) | [inline, virtual] |
Normally throws an exception. Only implemented for tetrahedral mesh reader of binary files.
index | The global face index |
Reimplemented in GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, and TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 87 of file AbstractMeshReader.cpp.
References EXCEPTION.
Referenced by AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetEdgeData().
ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetEdgeData | ( | unsigned | index | ) | [inline] |
Synonym of GetFaceData(index)
index | The global edge index |
Definition at line 93 of file AbstractMeshReader.cpp.
References AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetFaceData().
std::vector< unsigned > AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndices | ( | unsigned | index | ) | [inline, virtual] |
Normally throws an exception. When implemented by derived classes, returns a list of the elements that contain the node (only available for binary files).
index | The global node index |
Reimplemented in GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, and TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 99 of file AbstractMeshReader.cpp.
References EXCEPTION.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning().
std::string AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetMeshFileBaseName | ( | ) | [inline, virtual] |
Get the base name (less any extension) for mesh files. Only implemented for some mesh types.
Reimplemented in GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, and TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 105 of file AbstractMeshReader.cpp.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
bool AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::IsFileFormatBinary | ( | ) | [inline, virtual] |
Returns true if reading binary files, false if reading ascii files.
Note, this will always return false unless over-ridden by a derived class that is able to support binary file formats.
Reimplemented in GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, and TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 111 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodePartitioning(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
bool AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::HasNclFile | ( | ) | [inline, virtual] |
Returns true if there is a node connectivity list (NCL) file available.
Note, this will always return false unless over-ridden by a derived class that is able to support NCL files.
Reimplemented in GenericMeshReader< ELEMENT_DIM, SPACE_DIM >, and TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 117 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning().