XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <XdmfMeshWriter.hpp>

Inherits AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.

Inherited by Hdf5ToXdmfConverter< ELEMENT_DIM, SPACE_DIM >.

Collaboration diagram for XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >:

List of all members.

Public Member Functions

 XdmfMeshWriter (const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true)
void WriteFiles ()
void WriteFilesUsingMesh (AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, bool keepOriginalElementIndexing=true)

Protected Attributes

unsigned mNumberOfTimePoints
double mTimeStep

Private Member Functions

void WriteXdmfMasterFile (unsigned numberOfChunks=1u)
virtual void AddDataOnNodes (XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *pGridElement, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *pDomDocument, unsigned timeStep)

Detailed Description

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

A class for writing from a Chaste mesh to the geometry/topology components of an XDMF file.

Definition at line 62 of file XdmfMeshWriter.hpp.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
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
clearOutputDir whether to clean the directory (defaults to true)

Definition at line 44 of file XdmfMeshWriter.cpp.


Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
virtual void XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddDataOnNodes ( XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *  pGridElement,
XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *  pDomDocument,
unsigned  timeStep 
) [inline, private, virtual]

Generate Attribute tags and append to the element. Here this is a dummy class, but can be overloaded with real variables elsewhere (see pde/src/postprocesssing/Hdf5toXdmfConverter).

Parameters:
pGridElement Pointer to DOMElement to append Attribute tags to.
pDomDocument Pointer to DOMDocument to generate new elements.
timeStep Index of time point to write.

Reimplemented in Hdf5ToXdmfConverter< ELEMENT_DIM, SPACE_DIM >.

Definition at line 83 of file XdmfMeshWriter.hpp.

Referenced by XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteXdmfMasterFile().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles (  )  [inline, virtual]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMesh ( AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &  rMesh,
bool  keepOriginalElementIndexing = true 
) [inline, virtual]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteXdmfMasterFile ( unsigned  numberOfChunks = 1u  )  [inline, private]

Member Data Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::mNumberOfTimePoints [protected]

Defaults to 1, when we are writing geometry only. Used in HDF5 converter which has "protected" access as a derived class.

Definition at line 65 of file XdmfMeshWriter.hpp.

Referenced by Hdf5ToXdmfConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToXdmfConverter(), and XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteXdmfMasterFile().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
double XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::mTimeStep [protected]

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

Generated by  doxygen 1.6.2