Chaste  Release::2017.1
MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <MeshalyzerMeshWriter.hpp>

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

Public Member Functions

 MeshalyzerMeshWriter (const std::string &rDirectory, const std::string &rBaseName, const bool &rCleanDirectory=true, const bool &rSetCoolGraphics=false)
 
void WriteFiles ()
 
virtual ~MeshalyzerMeshWriter ()
 
- Public Member Functions inherited from AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >
 AbstractTetrahedralMeshWriter (const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true)
 
virtual ~AbstractTetrahedralMeshWriter ()
 
virtual void WriteFilesUsingMesh (AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, bool keepOriginalElementIndexing=true)
 
void WriteFilesUsingMeshReaderAndMesh (AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader, AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh)
 
std::vector< doubleGetNextNode ()
 
ElementData GetNextElement ()
 
ElementData GetNextBoundaryElement ()
 
ElementData GetNextCableElement ()
 
- 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 ()
 
void WriteFilesUsingMeshReader (AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader)
 

Protected Member Functions

void CreateFilesWithHeaders ()
 
void AppendLocalDataToFiles ()
 

Private Member Functions

out_stream OpenNodeFile (bool append=false)
 
out_stream OpenElementFile (bool append=false)
 
out_stream OpenFaceFile (bool append=false)
 
void WriteMetaFile ()
 
void WriteFilesFooter ()
 
std::ios_base::openmode GetOpenMode (bool append)
 

Additional Inherited Members

- Protected Attributes inherited from AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >
unsigned mNodesPerElement
 
unsigned mNodesPerBoundaryElement
 
AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > * mpMesh
 
DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > * mpDistributedMesh
 
MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM > * mpMixedMesh
 
MeshWriterIterators< ELEMENT_DIM, SPACE_DIM > * mpIters
 
bool mIndexFromZero
 
bool mWriteMetaFile
 
unsigned mNodeCounterForParallelMesh
 
unsigned mElementCounterForParallelMesh
 
unsigned mBoundaryElementCounterForParallelMesh
 
unsigned mCableElementCounterForParallelMesh
 
bool mFilesAreBinary
 
- 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 MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >

A concrete Meshalyzer mesh writer class.

Definition at line 46 of file MeshalyzerMeshWriter.hpp.

Constructor & Destructor Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::MeshalyzerMeshWriter ( const std::string &  rDirectory,
const std::string &  rBaseName,
const bool rCleanDirectory = true,
const bool rSetCoolGraphics = false 
)

Constructor.

Parameters
rDirectorythe directory in which to write the mesh to file
rBaseNamethe base name of the files in which to write the mesh data
rCleanDirectorywhether to clean the directory (defaults to true)
rSetCoolGraphics(defaults to false)

Definition at line 49 of file MeshalyzerMeshWriter.cpp.

References AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mIndexFromZero, and AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mWriteMetaFile.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::~MeshalyzerMeshWriter ( )
virtual

Destructor.

Definition at line 189 of file MeshalyzerMeshWriter.cpp.

Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::ios_base::openmode MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetOpenMode ( bool  append)
private
Returns
the mode to use when opening files.
Parameters
appendwhether to append to the file, or overwrite it

Definition at line 211 of file MeshalyzerMeshWriter.cpp.

Referenced by MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::OpenElementFile(), MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::OpenFaceFile(), and MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::OpenNodeFile().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesFooter ( )
privatevirtual

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