#include <AbstractHdf5Converter.hpp>
Public Member Functions | |
AbstractHdf5Converter (std::string inputDirectory, std::string fileBaseName, AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh, std::string subdirectoryName) | |
~AbstractHdf5Converter () | |
Protected Attributes | |
Hdf5DataReader * | mpReader |
unsigned | mNumVariables |
std::string | mFileBaseName |
AbstractTetrahedralMesh < ELEMENT_DIM, SPACE_DIM > * | mpMesh |
OutputFileHandler * | mpOutputFileHandler |
Definition at line 42 of file AbstractHdf5Converter.hpp.
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.
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 HeartConfig::Instance()->GetOutputDirectory()) |
Definition at line 36 of file AbstractHdf5Converter.cpp.
References PetscTools::AmMaster(), EXCEPTION, Hdf5DataReader::GetNumberOfRows(), HeartConfig::GetPrintingTimeStep(), ChasteBuildInfo::GetProvenanceString(), Hdf5DataReader::GetUnlimitedDimensionValues(), Hdf5DataReader::GetVariableNames(), HeartConfig::Instance(), 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, OutputFileHandler::OpenOutputFile(), and HeartConfig::Write().
AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::~AbstractHdf5Converter | ( | ) | [inline] |
Destructor
Definition at line 78 of file AbstractHdf5Converter.cpp.
References AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler, and AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpReader.
Hdf5DataReader* AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpReader [protected] |
Pointer to reader of the file to be converted
Definition at line 45 of file AbstractHdf5Converter.hpp.
Referenced by AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter(), Hdf5ToCmguiConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToCmguiConverter(), Hdf5ToMeshalyzerConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToMeshalyzerConverter(), Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToVtkConverter(), Hdf5ToMeshalyzerConverter< ELEMENT_DIM, SPACE_DIM >::Write(), Hdf5ToCmguiConverter< ELEMENT_DIM, SPACE_DIM >::Write(), and AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::~AbstractHdf5Converter().
unsigned AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mNumVariables [protected] |
Read from the reader - number of variables to output
Definition at line 46 of file AbstractHdf5Converter.hpp.
Referenced by AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter(), and Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToVtkConverter().
std::string AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mFileBaseName [protected] |
Base name for the files [basename].vtu, [basename].dat etc.
Definition at line 47 of file AbstractHdf5Converter.hpp.
Referenced by AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter(), Hdf5ToMeshalyzerConverter< ELEMENT_DIM, SPACE_DIM >::Write(), and Hdf5ToCmguiConverter< ELEMENT_DIM, SPACE_DIM >::Write().
AbstractTetrahedralMesh<ELEMENT_DIM,SPACE_DIM>* AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpMesh [protected] |
Pointer to the mesh.
Definition at line 48 of file AbstractHdf5Converter.hpp.
Referenced by AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter(), Hdf5ToCmguiConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToCmguiConverter(), Hdf5ToMeshalyzerConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToMeshalyzerConverter(), and Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToVtkConverter().
OutputFileHandler* AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler [protected] |
Intialised as directory in whicht to store the results
Definition at line 49 of file AbstractHdf5Converter.hpp.
Referenced by AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter(), Hdf5ToMeshalyzerConverter< ELEMENT_DIM, SPACE_DIM >::Write(), Hdf5ToCmguiConverter< ELEMENT_DIM, SPACE_DIM >::Write(), and AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::~AbstractHdf5Converter().