I am Suman Vajjala and I am developing a parallel, high order, unstructured grid based CFD code in C++ for LES/DNS. As I will be using high order mesh elements, I decided to use Paraview as my main visualization software.
I am writing for help regarding writing a VTK file in HDF5 format. I have followed the Kitware githib link for file formats and also your blog post for this. However, I am not clear regarding some specifics for implementation and I will be grateful if you can provide help (@danlipsa@berkgeveci ).
I understand that sizeof means the size of the data type in bytes(?). However, I do not understand how the offset is computed. Can you please illustrate this with a small example?
Also, I am not clear how the point and cell data for each partition/rank are stored. Are they stored as is with some kind of global to local mapping/numbering of elements? Can you please elaborate?
Is there a small example I can use as a reference?
@danlipsa provided a link for a python script to convert (p)vtk (or p(vtu)?) xml to vtk hdf5 file. If I want to use the script, then how do I write the pvtu/pvtk file for my application? Can you point me to a CFD specific example? I know that the VTK API has a pvtu/pvtk file writer but I do not know how to implement it for my case.
I am Suman Vajjala and I am developing a parallel, high order, unstructured grid based CFD code for LES/DNS. As I will be using high order mesh elements, I decided to use Paraview as my main visualization software.
I am writing for help regarding writing a VTK file in HDF5 format. I have followed the Kitware githib link for file formats and also your blog post for this. However, I am not clear regarding some specifics for implementation and I will be grateful if you can provide help (@danlipsa@berkgeveci ).
I understand that sizeof means the size of the data type in bytes(?).
However, I do not understand how the offset is computed. Can you please illustrate this with a small example?
Also, I am not clear how the point and cell data for each partition/rank are stored. Are they stored as is with some kind of global to local mapping/numbering of elements? Can you please elaborate?
Is there a small example I can use as a reference?
This link shows you the header and the value of attributes for the can dataset split in three partitions.