Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#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 41 of file AbstractMeshWriter.cpp.
References AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler.
|
virtual |
Destructor.
Definition at line 51 of file AbstractMeshWriter.cpp.
|
virtual |
Reimplemented in AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 101 of file AbstractMeshWriter.cpp.
Referenced by AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextBoundaryElement().
|
virtual |
Reimplemented in AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 108 of file AbstractMeshWriter.cpp.
Referenced by AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextCableElement().
|
virtual |
Reimplemented in PottsMeshWriter< SPACE_DIM >, VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >, and AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 94 of file AbstractMeshWriter.cpp.
Referenced by PottsMeshWriter< SPACE_DIM >::GetNextElement(), VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextElement(), and AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextElement().
|
virtual |
Reimplemented in PottsMeshWriter< SPACE_DIM >, ImmersedBoundaryMeshWriter< ELEMENT_DIM, SPACE_DIM >, VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >, and AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 87 of file AbstractMeshWriter.cpp.
Referenced by PottsMeshWriter< SPACE_DIM >::GetNextNode(), ImmersedBoundaryMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), and AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextNode().
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumBoundaryFaces | ( | ) |
Definition at line 75 of file AbstractMeshWriter.cpp.
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumCableElements | ( | ) |
Definition at line 81 of file AbstractMeshWriter.cpp.
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumElements | ( | ) |
Definition at line 69 of file AbstractMeshWriter.cpp.
|
virtual |
Reimplemented in CmguiDeformedSolutionsWriter< DIM >.
Definition at line 63 of file AbstractMeshWriter.cpp.
std::string AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetOutputDirectory | ( | ) |
Definition at line 57 of file AbstractMeshWriter.cpp.
|
pure virtual |
Write mesh data to files. This method must be overridden in concrete classes.
Implemented in PottsMeshWriter< SPACE_DIM >, ImmersedBoundaryMeshWriter< ELEMENT_DIM, SPACE_DIM >, TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >, VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >, CmguiMeshWriter< ELEMENT_DIM, SPACE_DIM >, CmguiMeshWriter< DIM, DIM >, MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >, TrianglesMeshWriter< ELEMENT_DIM, SPACE_DIM >, VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >, and XdmfMeshWriter< ELEMENT_DIM, SPACE_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 |
Definition at line 115 of file AbstractMeshWriter.cpp.
Referenced by Hdf5ToCmguiConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToCmguiConverter(), Hdf5ToMeshalyzerConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToMeshalyzerConverter(), and Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToVtkConverter().
|
protected |
Base name for the input files
Definition at line 55 of file AbstractMeshWriter.hpp.
Referenced by CmguiMeshWriter< ELEMENT_DIM, SPACE_DIM >::CmguiMeshWriter().
|
protected |
Total number of boundary elements in mesh/mesh-reader
Definition at line 61 of file AbstractMeshWriter.hpp.
|
protected |
Total number of cable elements in mesh/mesh-reader
Definition at line 62 of file AbstractMeshWriter.hpp.
|
protected |
Total number of elements in mesh/mesh-reader
Definition at line 60 of file AbstractMeshWriter.hpp.
|
protected |
Total number of nodes in mesh/mesh-reader
Definition at line 59 of file AbstractMeshWriter.hpp.
|
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.
|
protected |
Output file handler
Definition at line 54 of file AbstractMeshWriter.hpp.
Referenced by AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::AbstractMeshWriter().