Chaste Release::3.1
|
#include <AbstractMeshWriter.hpp>
Public Member Functions | |
AbstractMeshWriter (const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true) | |
virtual | ~AbstractMeshWriter () |
std::string | GetOutputDirectory () |
virtual unsigned | GetNumNodes () |
unsigned | GetNumElements () |
unsigned | GetNumBoundaryFaces () |
unsigned | GetNumCableElements () |
virtual std::vector< double > | GetNextNode () |
virtual ElementData | GetNextElement () |
virtual ElementData | GetNextBoundaryElement () |
virtual ElementData | GetNextCableElement () |
virtual void | WriteFiles ()=0 |
void | WriteFilesUsingMeshReader (AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader) |
Protected Attributes | |
OutputFileHandler * | mpOutputFileHandler |
std::string | mBaseName |
AbstractMeshReader < ELEMENT_DIM, SPACE_DIM > * | mpMeshReader |
unsigned | mNumNodes |
unsigned | mNumElements |
unsigned | mNumBoundaryElements |
unsigned | mNumCableElements |
An abstract mesh writer class.
Definition at line 50 of file AbstractMeshWriter.hpp.
AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::AbstractMeshWriter | ( | const std::string & | rDirectory, |
const std::string & | rBaseName, | ||
const bool | clearOutputDir = true |
||
) |
Constructor.
rDirectory | the directory in which to write the mesh to file |
rBaseName | the base name of the files in which to write the mesh data |
clearOutputDir | whether to clean the directory (defaults to true) |
Definition at line 45 of file AbstractMeshWriter.cpp.
References AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler.
AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::~AbstractMeshWriter | ( | ) | [virtual] |
Destructor.
Definition at line 55 of file AbstractMeshWriter.cpp.
ElementData AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextBoundaryElement | ( | ) | [virtual] |
Reimplemented in AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 106 of file AbstractMeshWriter.cpp.
Referenced by AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextBoundaryElement().
ElementData AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextCableElement | ( | ) | [virtual] |
Reimplemented in AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 113 of file AbstractMeshWriter.cpp.
Referenced by AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextCableElement().
ElementData AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextElement | ( | ) | [virtual] |
Reimplemented in VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >, AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >, PottsMeshWriter< SPACE_DIM >, and SemMeshWriter< SPACE_DIM >.
Definition at line 99 of file AbstractMeshWriter.cpp.
Referenced by AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextElement(), VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextElement(), SemMeshWriter< SPACE_DIM >::GetNextElement(), and PottsMeshWriter< SPACE_DIM >::GetNextElement().
std::vector< double > AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextNode | ( | ) | [virtual] |
Reimplemented in VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >, AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >, PottsMeshWriter< SPACE_DIM >, and SemMeshWriter< SPACE_DIM >.
Definition at line 92 of file AbstractMeshWriter.cpp.
Referenced by AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), SemMeshWriter< SPACE_DIM >::GetNextNode(), and PottsMeshWriter< SPACE_DIM >::GetNextNode().
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumBoundaryFaces | ( | ) |
Get the number of boundary elements in the mesh.
Definition at line 79 of file AbstractMeshWriter.cpp.
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumCableElements | ( | ) |
Get the number of cable elements in the mesh.
Definition at line 85 of file AbstractMeshWriter.cpp.
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumElements | ( | ) |
Get the number of elements in the mesh.
Definition at line 73 of file AbstractMeshWriter.cpp.
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumNodes | ( | ) | [virtual] |
Get the number of nodes in the mesh.
Reimplemented in CmguiDeformedSolutionsWriter< DIM >.
Definition at line 67 of file AbstractMeshWriter.cpp.
std::string AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetOutputDirectory | ( | ) |
Return the full path to the directory where meshes will be written.
Definition at line 61 of file AbstractMeshWriter.cpp.
virtual void AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles | ( | ) | [pure virtual] |
Write mesh data to files. This method must be overridden in concrete classes.
Implemented in VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >, CmguiMeshWriter< ELEMENT_DIM, SPACE_DIM >, MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshWriter< ELEMENT_DIM, SPACE_DIM >, VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >, PottsMeshWriter< SPACE_DIM >, SemMeshWriter< SPACE_DIM >, and CmguiMeshWriter< DIM, DIM >.
void AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMeshReader | ( | AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > & | rMeshReader | ) |
Read in a mesh and write it to file.
rMeshReader | the mesh reader |
Only triangles mesh readers know about cable elements
Definition at line 121 of file AbstractMeshWriter.cpp.
References PetscTools::AmMaster(), and AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumNodes().
Referenced by Hdf5ToCmguiConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToCmguiConverter(), Hdf5ToMeshalyzerConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToMeshalyzerConverter(), and Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToVtkConverter().
std::string AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mBaseName [protected] |
Base name for the input files
Definition at line 55 of file AbstractMeshWriter.hpp.
Referenced by CmguiMeshWriter< ELEMENT_DIM, SPACE_DIM >::CmguiMeshWriter().
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mNumBoundaryElements [protected] |
Total number of boundary elements in mesh/mesh-reader
Definition at line 61 of file AbstractMeshWriter.hpp.
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mNumCableElements [protected] |
Total number of cable elements in mesh/mesh-reader
Definition at line 62 of file AbstractMeshWriter.hpp.
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mNumElements [protected] |
Total number of elements in mesh/mesh-reader
Definition at line 60 of file AbstractMeshWriter.hpp.
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mNumNodes [protected] |
Total number of nodes in mesh/mesh-reader
Definition at line 59 of file AbstractMeshWriter.hpp.
AbstractMeshReader<ELEMENT_DIM,SPACE_DIM>* AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpMeshReader [protected] |
Writer by default writes from a reader (for conversion). If this pointer is non-null, data can be copied straight across
Definition at line 57 of file AbstractMeshWriter.hpp.
OutputFileHandler* AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler [protected] |
Output file handler
Definition at line 54 of file AbstractMeshWriter.hpp.
Referenced by AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::AbstractMeshWriter().