Chaste Release::3.1
AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <AbstractHdf5Converter.hpp>

Inheritance diagram for AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >:
Collaboration diagram for AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >:

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 49 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 
)

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

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

Definition at line 40 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 ( )

Destructor.

Definition at line 89 of file AbstractHdf5Converter.cpp.


Member Function Documentation

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

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

Definition at line 96 of file AbstractHdf5Converter.cpp.

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]

Base name for the files: [basename].vtu, [basename].dat etc.

Definition at line 60 of file AbstractHdf5Converter.hpp.

Referenced by AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mNumVariables [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
OutputFileHandler* AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler [protected]

Initialised as the directory in which to store the results.

Definition at line 66 of file AbstractHdf5Converter.hpp.

Referenced by AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter().

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: