Chaste Release::3.1
|
#include <AbstractMeshReader.hpp>
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 71 of file AbstractMeshReader.hpp.
std::vector< unsigned > AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndices | ( | unsigned | index | ) | [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 106 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 100 of file AbstractMeshReader.cpp.
ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementData | ( | unsigned | index | ) | [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 >.
Definition at line 88 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 | ( | ) |
Return an iterator to the first element in the file.
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 155 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 | ) |
Return an iterator over a set of elements whose indices are given
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 162 of file AbstractMeshReader.cpp.
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::ElementIterator AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorEnd | ( | ) |
Return an iterator to (one past the) end of the element data.
Definition at line 169 of file AbstractMeshReader.cpp.
Referenced by QuadraticMeshHelper< DIM >::AddInternalNodesToElements(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetFaceData | ( | unsigned | index | ) | [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 >.
Definition at line 94 of file AbstractMeshReader.cpp.
References EXCEPTION.
std::string AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetMeshFileBaseName | ( | ) | [virtual] |
Get the base name (less any extension) for mesh files. Only implemented for some mesh types.
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 112 of file AbstractMeshReader.cpp.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextCableElementData | ( | ) | [virtual] |
Returns a vector of the node indices of each cable element (and any attribute information, if there is any) in turn
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and VtkMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 145 of file AbstractMeshReader.cpp.
References EXCEPTION.
Referenced by MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextEdgeData | ( | ) |
Returns a vector of the node indices of each edge (and any attribute/containment information, if there is any) in turn (synonym of GetNextFaceData())
Definition at line 75 of file AbstractMeshReader.cpp.
virtual ElementData AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData | ( | ) | [pure virtual] |
Returns a vector of the node indices of each element (and any attribute information, if there is any) in turn
Implemented in AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, and SemMeshReader< SPACE_DIM >.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), SemMesh< DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::MetisLibraryPartitioning(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodeAndElementPartitioning(), and NodePartitioner< 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 information, if there is any) in turn
Implemented in AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, and SemMeshReader< SPACE_DIM >.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
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 >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, and SemMeshReader< SPACE_DIM >.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), SemMesh< DIM >::ConstructFromMeshReader(), and PottsMesh< DIM >::ConstructFromMeshReader().
std::vector< double > AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNode | ( | unsigned | index | ) | [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 >.
Definition at line 82 of file AbstractMeshReader.cpp.
References EXCEPTION.
std::vector< double > AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNodeAttributes | ( | ) | [virtual] |
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 66 of file AbstractMeshReader.cpp.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::NodeIterator AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorBegin | ( | ) |
Return an iterator to the first node in the file.
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 252 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 | ) |
Return an iterator over a set of nodes whose indices are given
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 259 of file AbstractMeshReader.cpp.
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::NodeIterator AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorEnd | ( | ) |
Return an iterator to (one past the) end of the node data.
Definition at line 266 of file AbstractMeshReader.cpp.
References AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumNodes().
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumCableElementAttributes | ( | ) | const [virtual] |
Returns the number of cable element attributes in the mesh
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and VtkMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 139 of file AbstractMeshReader.cpp.
Referenced by MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumCableElements | ( | ) | const [virtual] |
Returns the number of cable elements in the mesh
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and VtkMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 133 of file AbstractMeshReader.cpp.
Referenced by MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumEdges | ( | ) | const |
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 52 of file AbstractMeshReader.cpp.
unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumElementAttributes | ( | ) | const [virtual] |
Returns the number of element attributes in the mesh
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, and SemMeshReader< SPACE_DIM >.
Definition at line 44 of file AbstractMeshReader.cpp.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), SemMesh< DIM >::ConstructFromMeshReader(), and PottsMesh< DIM >::ConstructFromMeshReader().
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 >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, and SemMeshReader< SPACE_DIM >.
Referenced by AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::ElementIterator::CacheData(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), SemMesh< DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::ElementIterator::dereference(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::ElementIterator::ElementIterator(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::MetisLibraryPartitioning(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodeAndElementPartitioning(), and NodePartitioner< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().
unsigned AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumFaceAttributes | ( | ) | const [virtual] |
Returns the number of face attributes in the mesh
Reimplemented in TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, and VtkMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 58 of file AbstractMeshReader.cpp.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
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 >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, and SemMeshReader< SPACE_DIM >.
Referenced by TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), and DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader().
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 >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, and SemMeshReader< SPACE_DIM >.
Referenced by AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::NodeIterator::CacheData(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), SemMesh< DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::NodeIterator::dereference(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNodeIteratorEnd(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::MetisLibraryPartitioning(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::NodeIterator::NodeIterator(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodeAndElementPartitioning(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning(), and AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMeshReader().
bool AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::HasNclFile | ( | ) | [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 TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 124 of file AbstractMeshReader.cpp.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning().
bool AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::IsFileFormatBinary | ( | ) | [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 TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >.
Definition at line 118 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().
virtual void AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset | ( | ) | [pure virtual] |
Resets pointers to beginning
Implemented in AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >, VtkMeshReader< ELEMENT_DIM, SPACE_DIM >, VertexMeshReader< ELEMENT_DIM, SPACE_DIM >, PottsMeshReader< SPACE_DIM >, and SemMeshReader< SPACE_DIM >.
Referenced by DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), SemMesh< DIM >::ConstructFromMeshReader(), PottsMesh< DIM >::ConstructFromMeshReader(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::MetisLibraryPartitioning(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ParMetisLibraryNodeAndElementPartitioning(), and NodePartitioner< ELEMENT_DIM, SPACE_DIM >::PetscMatrixPartitioning().