Chaste
Release::2017.1
|
#include <AbstractMeshReader.hpp>
Classes | |
class | ElementIterator |
class | NodeIterator |
An abstract mesh reader class. Reads output generated by a mesh generator and converts it to a standard format for use in constructing a finite element mesh structure.
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 76 of file AbstractMeshReader.hpp.
|
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 TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 105 of file AbstractMeshReader.cpp.
References EXCEPTION.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning().
ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetEdgeData | ( | unsigned | index | ) |
Synonym of GetFaceData(index)
index | The global edge index |
Definition at line 99 of file AbstractMeshReader.cpp.
|
virtual |
Normally throws an exception. Only implemented for tetrahedral mesh reader of binary files.
index | The global element index |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 87 of file AbstractMeshReader.cpp.
References EXCEPTION.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodeAndElementPartitioning(), and NodePartitioner< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::ElementIterator AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorBegin | ( | ) |
Note that, in the case of an ASCII mesh file, for efficiency this will actually start wherever the file pointer currently is. The user is responsible for resetting the reader prior to calling GetElementIteratorBegin().
Definition at line 183 of file AbstractMeshReader.cpp.
Referenced by QuadraticMeshHelper< DIM >::AddInternalNodesToElements(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::ElementIterator AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorBegin | ( | const std::set< unsigned > & | rIndices | ) |
rIndices | subset of indices |
Note that, in the case of an ASCII mesh file, for efficiency this will actually start wherever the file pointer currently is. The user is responsible for resetting the reader prior to calling GetElementIteratorBegin().
Definition at line 190 of file AbstractMeshReader.cpp.
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::ElementIterator AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorEnd | ( | ) |
Definition at line 197 of file AbstractMeshReader.cpp.
Referenced by QuadraticMeshHelper< DIM >::AddInternalNodesToElements(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
|
virtual |
Normally throws an exception. Only implemented for tetrahedral mesh reader of binary files.
index | The global face index |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 93 of file AbstractMeshReader.cpp.
References EXCEPTION.
|
virtual |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 111 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
|
virtual |
Reimplemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 173 of file AbstractMeshReader.cpp.
References EXCEPTION.
Referenced by MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextEdgeData | ( | ) |
Definition at line 75 of file AbstractMeshReader.cpp.
|
pure virtual |
Implemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, GmshMeshReader< ELEMENT_DIM, SPACE_DIM >, and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning(), Toroidal2dVertexMesh::ConstructFromMeshReader(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringElementIndices(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodeAndElementPartitioning(), and NodePartitioner< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
|
pure virtual |
Implemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by QuadraticMeshHelper< DIM >::AddNodesToBoundaryElements(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
|
pure virtual |
Implemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, GmshMeshReader< ELEMENT_DIM, SPACE_DIM >, and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), Toroidal2dVertexMesh::ConstructFromMeshReader(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::GeometricPartitioning(), and VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringElementIndices().
|
virtual |
Normally throws an exception. Only implemented for tetrahedral mesh reader of binary files.
index | The global node index |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 81 of file AbstractMeshReader.cpp.
References EXCEPTION.
|
virtual |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 66 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::NodeIterator AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorBegin | ( | ) |
Note that, in the case of an ASCII mesh file, for efficiency this will actually start wherever the file pointer currently is. The user is responsible for resetting the reader prior to calling GetNodeIteratorBegin().
Definition at line 279 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::NodeIterator AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorBegin | ( | const std::set< unsigned > & | rIndices | ) |
rIndices | subset of indices |
Note that, in the case of an ASCII mesh file, for efficiency this will actually start wherever the file pointer currently is. The user is responsible for resetting the reader prior to calling GetNodeIteratorBegin().
Definition at line 286 of file AbstractMeshReader.cpp.
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::NodeIterator AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorEnd | ( | ) |
Definition at line 293 of file AbstractMeshReader.cpp.
References AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumNodes().
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
|
virtual |
Reimplemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 167 of file AbstractMeshReader.cpp.
Referenced by MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
|
virtual |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 161 of file AbstractMeshReader.cpp.
Referenced by MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumEdges | ( | ) | const |
Definition at line 52 of file AbstractMeshReader.cpp.
|
virtual |
Reimplemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 44 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), Toroidal2dVertexMesh::ConstructFromMeshReader(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), and VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringElementIndices().
|
pure virtual |
Implemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::ElementIterator::CacheData(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), Toroidal2dVertexMesh::ConstructFromMeshReader(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringElementIndices(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodeAndElementPartitioning(), and NodePartitioner< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
|
virtual |
Reimplemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 58 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
|
pure virtual |
Implemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, GmshMeshReader< ELEMENT_DIM, SPACE_DIM >, and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
|
pure virtual |
Implemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, GmshMeshReader< ELEMENT_DIM, SPACE_DIM >, and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::NodeIterator::CacheData(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), Toroidal2dVertexMesh::ConstructFromMeshReader(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::GeometricPartitioning(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringElementIndices(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorEnd(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodeAndElementPartitioning(), and NodePartitioner< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
|
virtual |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 123 of file AbstractMeshReader.cpp.
Referenced by QuadraticMeshHelper< DIM >::AddInternalNodesToBoundaryElements().
|
virtual |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and GmshMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 117 of file AbstractMeshReader.cpp.
Referenced by QuadraticMesh< DIM >::ConstructFromMeshReader().
|
virtual |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 129 of file AbstractMeshReader.cpp.
Referenced by QuadraticMeshHelper< DIM >::AddNodesToBoundaryElements().
|
virtual |
Note, this will always return false unless over-ridden by a derived class that is able to support NCL files.
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 141 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning().
|
virtual |
Note, this will always return false unless over-ridden by a derived class that is able to support NCL files.
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 147 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), Toroidal2dVertexMesh::ConstructFromMeshReader(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), and VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringElementIndices().
|
virtual |
Note, this will always return false unless over-ridden by a derived class that is able to support binary file formats.
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 135 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodeAndElementPartitioning(), and NodePartitioner< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
|
pure virtual |
Resets pointers to beginning
Implemented in VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, GmshMeshReader< ELEMENT_DIM, SPACE_DIM >, and AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >.
Referenced by QuadraticMeshHelper< DIM >::AddInternalNodesToElements(), QuadraticMeshHelper< DIM >::AddNodesToBoundaryElements(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning(), MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), Toroidal2dVertexMesh::ConstructFromMeshReader(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringElementIndices(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodeAndElementPartitioning(), and NodePartitioner< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
|
virtual |
Note, this will always throw an exception unless over-ridden by a derived class that is able to support NCL files.
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 153 of file AbstractMeshReader.cpp.
References EXCEPTION.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().