Chaste Commit::f2ff7ee04e70ac9d06c57344df8d017dbb12b97b
TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <TrapezoidEdgeVertexMeshWriter.hpp>

+ Inheritance diagram for TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >:
+ Collaboration diagram for TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >:

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< doubleGetNextNode ()
 
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 >
OutputFileHandlermpOutputFileHandler
 
std::string mBaseName
 
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > * mpMeshReader
 
unsigned mNumNodes
 
unsigned mNumElements
 
unsigned mNumBoundaryElements
 
unsigned mNumCableElements
 

Detailed Description

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
class TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >

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.

Constructor & Destructor Documentation

◆ TrapezoidEdgeVertexMeshWriter()

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::TrapezoidEdgeVertexMeshWriter ( const std::string &  rDirectory,
const std::string &  rBaseName,
const bool  clearOutputDir = true 
)

Constructor.

Parameters
rDirectoryreference to the output directory, relative to where Chaste output is stored
rBaseNamereference to the base name for results files
clearOutputDirwhether 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()

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::~TrapezoidEdgeVertexMeshWriter ( )

Destructor.

Definition at line 51 of file TrapezoidEdgeVertexMeshWriter.cpp.

Member Function Documentation

◆ AddCellData()

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddCellData ( std::string  dataName,
std::vector< double dataPayload 
)

Add data to a future VTK file.

Parameters
dataNamea tag to go into the VTK file
dataPayloada pay-load of length (number of elements)

Definition at line 200 of file TrapezoidEdgeVertexMeshWriter.cpp.

Referenced by VertexBasedCellPopulation< DIM >::WriteCellEdgeVtkResultsToFile().

◆ MakeVtkMesh()

◆ WriteFiles()

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles ( )
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.

◆ WriteVtkUsingMesh()

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteVtkUsingMesh ( VertexMesh< ELEMENT_DIM, SPACE_DIM > &  rMesh,
const std::string &  stamp = "" 
)

Write VTK file using a mesh.

Parameters
rMeshreference to the vertex-based mesh
stampis 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().

Member Data Documentation

◆ mpMesh

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
VertexMesh<ELEMENT_DIM, SPACE_DIM>* TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpMesh = nullptr
private

If writing from a mesh object, the mesh to write to disk. Otherwise NULL.

Definition at line 90 of file TrapezoidEdgeVertexMeshWriter.hpp.

◆ mpVtkUnstructedMesh

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
vtkUnstructuredGrid* TrapezoidEdgeVertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpVtkUnstructedMesh = nullptr
private

The documentation for this class was generated from the following files: