AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <AbstractHdf5Converter.hpp>

Inherited by Hdf5ToCmguiConverter< ELEMENT_DIM, SPACE_DIM >, Hdf5ToMeshalyzerConverter< ELEMENT_DIM, SPACE_DIM >, Hdf5ToTxtConverter< ELEMENT_DIM, SPACE_DIM >, and Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >.

Collaboration diagram for AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AbstractHdf5Converter (std::string inputDirectory, std::string fileBaseName, AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh, std::string subdirectoryName)
 ~AbstractHdf5Converter ()
std::string GetSubdirectory ()

Protected Attributes

Hdf5DataReadermpReader
unsigned mNumVariables
std::string mFileBaseName
AbstractTetrahedralMesh
< ELEMENT_DIM, SPACE_DIM > * 
mpMesh
OutputFileHandlermpOutputFileHandler
std::string mRelativeSubdirectory

Detailed Description

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

The derived children of this class convert output from Hdf5 format to a range of other formats for postprocessing.

Definition at line 42 of file AbstractHdf5Converter.hpp.


Constructor & Destructor Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter ( std::string  inputDirectory,
std::string  fileBaseName,
AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *  pMesh,
std::string  subdirectoryName 
) [inline]

Constructor, which does the conversion and writes the .info file.

Note:
This method is collective, and must be called by al processes.
Parameters:
inputDirectory The input directory, relative to CHASTE_TEST_OUTPUT, where the .h5 file has been written
fileBaseName The base name of the data file.
pMesh Pointer to the mesh.
subdirectoryName name for the output directory to be created (relative to inputDirectory)

Definition at line 33 of file AbstractHdf5Converter.cpp.

References PetscTools::AmMaster(), DOUBLE_UNSET, EXCEPTION, Hdf5DataReader::GetNumberOfRows(), ChasteBuildInfo::GetProvenanceString(), Hdf5DataReader::GetUnlimitedDimensionValues(), Hdf5DataReader::GetVariableNames(), AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mFileBaseName, AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mNumVariables, AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpMesh, AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler, AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpReader, AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mRelativeSubdirectory, and OutputFileHandler::OpenOutputFile().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::~AbstractHdf5Converter (  )  [inline]

Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::string AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::GetSubdirectory (  )  [inline]

Get the relative path of the subdirectory in which the converted output is stored.

Definition at line 89 of file AbstractHdf5Converter.cpp.

References AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mRelativeSubdirectory.

Referenced by AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::CloseFilesAndPostProcess().


Member Data Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::string AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mFileBaseName [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mNumVariables [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractTetrahedralMesh<ELEMENT_DIM,SPACE_DIM>* AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpMesh [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
OutputFileHandler* AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
Hdf5DataReader* AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpReader [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::string AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mRelativeSubdirectory [protected]

The documentation for this class was generated from the following files:
Generated on Thu Dec 22 13:01:14 2011 for Chaste by  doxygen 1.6.3