I’m using .vtm files to handle results from simulations where singe timestep output comes in several file formats (.vtp, .vtu and sometimes .vti). Gathering all of the data in a .vtm file makes loading into Paraview very easy, particularly with the MultiBlockInspector and if you have multiple meshes in various groups, like the simplified example below.
I’ve been trying to switch to VTKHDF recently but I haven’t quite figured out how to replicate this functionality in the VTKHDF format. It doesn’t seem possible to be able to add multiple blocks to a single VTKHDF file, which I thought would have been the easiest way. There also doesn’t seem to be support for a multiblock index file like the vtm file.
I’m aware there is some discussion on supporting multiple files for transient data which I would really like to see as all my temporal data files are large and it doesn’t make sense to have HDF5 files that are tens or hundreds of GB in size when the could easily be split - would the ability to do multiple blocks / meshes for a single datasets be possible this way?
Quick question - it says each block should describe a valid VTKHDF root - does that mean that each block for PolyData would follow the layout described here:
Also is there an example file for vtkPartitionedDataSetCollection (PDC) and vtkMultiBlockDataSet (MB) that can be downloaded so that i can better understand?
Quick question - it says each block should describe a valid VTKHDF root - does that mean that each block for PolyData would follow the layout described here:
yes
Also is there an example file for vtkPartitionedDataSetCollection (PDC) and vtkMultiBlockDataSet (MB) that can be downloaded so that i can better understand?
I’ve still not figured out how to download the test data files from gitlab but i@ve tried to write avtkPartitionedDataSetCollection without being able to check against an example. While I think I’ve got the format correct, paraview is not able to load it with an error saying no valid files found.
I’ve still not figured out how to download the test data files from gitlab
From the website we can download the .sha512 indeed, if we want directly the data it should be somewhere here I believe: https://www.paraview.org/files/, @mwestphal any inputs?
paraview is not able to load it with an error saying no valid files found.
that’s not the error that I have, which version of paraview do you use? On master, I have this issue:
ERROR: In vtkHDFUtilities.txx, line 162
(nullptr): Index attribute not found
The overall structure of your file is correct however you miss the Index attribute for the assembly, you can refer to the second paragraph for more details : VTK File Formats - VTK documentation
Can I ask why the index attributes is required, since the assembly data is linked to the block data in hdf5 file?
It’s link to how the vtkPartitionedDataSetCollection works in VTK, as multiple leafs can point to the same dataset, PDC needs a flat structure and this is the purpose of this Index.
Also, is the index somewhat arbitrary?
each index should be unique, I don’t think there is another limitation
Does it matter if the assembly order of the blocks does not match the block index?