Chaste Commit::1fd4e48e3990e67db148bc1bc4cf6991a0049d0c
|
#include <Hdf5ToVtkConverter.hpp>
Public Member Functions | |
Hdf5ToVtkConverter (const FileFinder &rInputDirectory, const std::string &rFileBaseName, AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh, bool parallelVtk, bool usingOriginalNodeOrdering) | |
Public Member Functions inherited from AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM > | |
AbstractHdf5Converter (const FileFinder &rInputDirectory, const std::string &rFileBaseName, AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh, const std::string &rSubdirectoryName, unsigned precision) | |
void | WriteInfoFile () |
~AbstractHdf5Converter () | |
std::string | GetSubdirectory () |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM > | |
bool | MoveOntoNextDataset () |
Protected Attributes inherited from AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM > | |
const FileFinder & | mrH5Folder |
boost::shared_ptr< Hdf5DataReader > | mpReader |
unsigned | mNumVariables |
std::string | mFileBaseName |
std::vector< std::string > | mDatasetNames |
unsigned | mOpenDatasetIndex |
AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > * | mpMesh |
OutputFileHandler * | mpOutputFileHandler |
std::string | mRelativeSubdirectory |
unsigned | mPrecision |
This class converts from Hdf5 format to Vtk format. The output will be one .vtu file with separate vtkPointData for each time step.
Definition at line 46 of file Hdf5ToVtkConverter.hpp.
Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToVtkConverter | ( | const FileFinder & | rInputDirectory, |
const std::string & | rFileBaseName, | ||
AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > * | pMesh, | ||
bool | parallelVtk, | ||
bool | usingOriginalNodeOrdering | ||
) |
Constructor, which does the conversion and writes the .vtu file.
rInputDirectory | The input directory, relative to CHASTE_TEST_OUTPUT, where the .h5 file has been written |
rFileBaseName | The base name of the data file. |
pMesh | Pointer to the mesh. |
parallelVtk | When true, write with .pvtu and fragment meshes (only works for DistributedTetrahedralMesh) |
usingOriginalNodeOrdering | Whether HDF5 output was written using the original node ordering |
Definition at line 49 of file Hdf5ToVtkConverter.cpp.
References VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddPointData(), RelativeTo::ChasteTestOutput, DistributedVectorFactory::CreateVec(), PetscTools::Destroy(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetDistributedVectorFactory(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNumLocalNodes(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetNumNodes(), FileFinder::GetRelativePath(), AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mNumVariables, AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::MoveOntoNextDataset(), AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpMesh, AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mpReader, AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::mRelativeSubdirectory, VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::SetParallelFiles(), VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMesh(), and AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMeshReader().