Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
|
#include <MeshalyzerMeshWriter.hpp>
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< double > | GetNextNode () |
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 > | |
OutputFileHandler * | mpOutputFileHandler |
std::string | mBaseName |
AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > * | mpMeshReader |
unsigned | mNumNodes |
unsigned | mNumElements |
unsigned | mNumBoundaryElements |
unsigned | mNumCableElements |
A concrete Meshalyzer mesh writer class.
Definition at line 46 of file MeshalyzerMeshWriter.hpp.
MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::MeshalyzerMeshWriter | ( | const std::string & | rDirectory, |
const std::string & | rBaseName, | ||
const bool & | rCleanDirectory = true , |
||
const bool & | rSetCoolGraphics = false |
||
) |
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 |
rCleanDirectory | whether 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.
|
virtual |
Destructor.
Definition at line 189 of file MeshalyzerMeshWriter.cpp.
|
protectedvirtual |
Append local mesh data to output files.
Reimplemented from AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 306 of file MeshalyzerMeshWriter.cpp.
|
protectedvirtual |
Create output files and add headers.
Reimplemented from AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 261 of file MeshalyzerMeshWriter.cpp.
|
private |
append | whether to append to the file, or overwrite it |
Definition at line 211 of file MeshalyzerMeshWriter.cpp.
|
private |
Open the file element information is written to.
append | whether to append to the file, or overwrite it |
Definition at line 233 of file MeshalyzerMeshWriter.cpp.
|
private |
Open the file face information is written to.
append | whether to append to the file, or overwrite it |
Definition at line 254 of file MeshalyzerMeshWriter.cpp.
|
private |
Open the file node information is written to.
append | whether to append to the file, or overwrite it |
Definition at line 226 of file MeshalyzerMeshWriter.cpp.
|
virtual |
Write mesh data to files.
Implements AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 73 of file MeshalyzerMeshWriter.cpp.
References ElementData::AttributeValue, ChasteBuildInfo::GetProvenanceString(), and ElementData::NodeIndices.
|
privatevirtual |
Append footers to output files.
Reimplemented from AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.
Definition at line 393 of file MeshalyzerMeshWriter.cpp.
References ChasteBuildInfo::GetProvenanceString().
|
private |
Write the meta information file.
Definition at line 194 of file MeshalyzerMeshWriter.cpp.
References ChasteBuildInfo::GetProvenanceString().