Chaste Release::3.1
|
#include <AbstractHdf5Converter.hpp>
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 | |
Hdf5DataReader * | mpReader |
unsigned | mNumVariables |
std::string | mFileBaseName |
AbstractTetrahedralMesh < ELEMENT_DIM, SPACE_DIM > * | mpMesh |
OutputFileHandler * | mpOutputFileHandler |
std::string | mRelativeSubdirectory |
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.
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.
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 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().
AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::~AbstractHdf5Converter | ( | ) |
Destructor.
Definition at line 89 of file AbstractHdf5Converter.cpp.
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().
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().
unsigned AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mNumVariables [protected] |
Number of variables to output. Read from the reader.
Definition at line 57 of file AbstractHdf5Converter.hpp.
Referenced by AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter(), Hdf5ToTxtConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToTxtConverter(), and Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToVtkConverter().
AbstractTetrahedralMesh<ELEMENT_DIM,SPACE_DIM>* AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpMesh [protected] |
Pointer to a mesh.
Definition at line 63 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] |
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().
Hdf5DataReader* AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpReader [protected] |
Pointer to reader of the file to be converted.
Definition at line 54 of file AbstractHdf5Converter.hpp.
Referenced by AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter(), Hdf5ToCmguiConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToCmguiConverter(), Hdf5ToMeshalyzerConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToMeshalyzerConverter(), Hdf5ToTxtConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToTxtConverter(), and Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToVtkConverter().
std::string AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mRelativeSubdirectory [protected] |
Get the subdirectory in which the converted output is stored, relative to the input directory.
Definition at line 72 of file AbstractHdf5Converter.hpp.
Referenced by AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter(), Hdf5ToMeshalyzerConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToMeshalyzerConverter(), Hdf5ToTxtConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToTxtConverter(), and Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToVtkConverter().