![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#include <TrapezoidEdgeVertexMeshWriter.hpp>
Public Member Functions | |
TrapezoidEdgeVertexMeshWriter (const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true) | |
void | WriteVtkUsingMesh (VertexMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, const std::string &stamp="") |
void | MakeVtkMesh (VertexMesh< ELEMENT_DIM, SPACE_DIM > &rMesh) |
void | AddCellData (std::string dataName, std::vector< double > dataPayload) |
~TrapezoidEdgeVertexMeshWriter () | |
void | WriteFiles () |
![]() | |
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 () |
void | WriteFilesUsingMeshReader (AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader) |
Private Attributes | |
VertexMesh< ELEMENT_DIM, SPACE_DIM > * | mpMesh = nullptr |
vtkUnstructuredGrid * | mpVtkUnstructedMesh = nullptr |
Additional Inherited Members | |
![]() | |
OutputFileHandler * | mpOutputFileHandler |
std::string | mBaseName |
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > * | mpMeshReader |
unsigned | mNumNodes |
unsigned | mNumElements |
unsigned | mNumBoundaryElements |
unsigned | mNumCableElements |
A mesh writer class for vertex-based meshes with edge representation. Each edge is associated with trapezoid such that the base is the edge and the sides are parallel to the line joining the cell's centroid and the nodes. __ __ / \ / \ / \ / \ | | |\ /| | | | | | | | | ==> |/ | \ / \ / \ __ / \ __ /
Definition at line 83 of file TrapezoidEdgeVertexMeshWriter.hpp.
TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::TrapezoidEdgeVertexMeshWriter | ( | const std::string & | rDirectory, |
const std::string & | rBaseName, | ||
const bool | clearOutputDir = true |
||
) |
Constructor.
rDirectory | reference to the output directory, relative to where Chaste output is stored |
rBaseName | reference to the base name for results files |
clearOutputDir | whether to clear the output directory prior to writing files |
Definition at line 39 of file TrapezoidEdgeVertexMeshWriter.cpp.
References TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpVtkUnstructedMesh.
TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::~TrapezoidEdgeVertexMeshWriter | ( | ) |
Destructor.
Definition at line 51 of file TrapezoidEdgeVertexMeshWriter.cpp.
void TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddCellData | ( | std::string | dataName, |
std::vector< double > | dataPayload | ||
) |
Add data to a future VTK file.
dataName | a tag to go into the VTK file |
dataPayload | a pay-load of length (number of elements) |
Definition at line 200 of file TrapezoidEdgeVertexMeshWriter.cpp.
Referenced by VertexBasedCellPopulation< DIM >::WriteCellEdgeVtkResultsToFile().
void TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::MakeVtkMesh | ( | VertexMesh< ELEMENT_DIM, SPACE_DIM > & | rMesh | ) |
Populate mpVtkUnstructedMesh using a vertex-based mesh. Called by WriteVtkUsingMesh().
rMesh | reference to the vertex-based mesh |
Definition at line 96 of file TrapezoidEdgeVertexMeshWriter.cpp.
References VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetCentroidOfElement(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElement(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorBegin(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetElementIteratorEnd(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNode(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), and VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes().
|
virtual |
Write mesh data to files. This method must be overridden in concrete classes.
Implements AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 217 of file TrapezoidEdgeVertexMeshWriter.cpp.
void TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteVtkUsingMesh | ( | VertexMesh< ELEMENT_DIM, SPACE_DIM > & | rMesh, |
const std::string & | stamp = "" |
||
) |
Write VTK file using a mesh.
rMesh | reference to the vertex-based mesh |
stamp | is an optional stamp (like a time-stamp) to put into the name of the file |
Definition at line 59 of file TrapezoidEdgeVertexMeshWriter.cpp.
Referenced by VertexBasedCellPopulation< DIM >::WriteCellEdgeVtkResultsToFile().
|
private |
If writing from a mesh object, the mesh to write to disk. Otherwise NULL.
Definition at line 90 of file TrapezoidEdgeVertexMeshWriter.hpp.
|
private |
Definition at line 95 of file TrapezoidEdgeVertexMeshWriter.hpp.
Referenced by TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::TrapezoidEdgeVertexMeshWriter().