Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
#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 () |
Public Member Functions inherited from AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM > | |
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 | |
Protected Attributes inherited from AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM > | |
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 40 of file TrapezoidEdgeVertexMeshWriter.cpp.
References TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpVtkUnstructedMesh.
TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::~TrapezoidEdgeVertexMeshWriter | ( | ) |
Destructor.
Definition at line 52 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 203 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 97 of file TrapezoidEdgeVertexMeshWriter.cpp.
|
virtual |
Write mesh data to files. This method must be overridden in concrete classes.
Implements AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 220 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 60 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().