I have a Newton optimizer and I am exporting some data in the form of a HDF5. The HDF5 file contains the results of the optimization process, which are triangle meshes, so I am loading them in paraview.
In addition, the HDF5 file contains information about how the optimization went, so I have a json like structure with information about the number of newton iterations, the newton error. For each Newton iteration I store the number of iterations of the inner linear solver and the number of iterations of a line search process and so on. Basically, I have a tree like structure where each node in the tree may contain different amounts of attributes.
Since I am already using paraview to read the geometric data, I was looking for an appropiate VTK structure to store the rest of the data in the HDF5 file. I have looked into VTKTree, but apparently, all the nodes contains the same amount of attributes.
Is there any VTK structure which I can use to parse this type of information?
Hierarchical storage of unrelated meshes (ie meshes with differents attributes) can be done through vtkMultiBlockDataSet or vtkPartionedDataSetCollection .
Also note that if you have miscellaneous data associated to a mesh, you can stock them in thevtkFieldData of the vtkDataObject
containg your mesh.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.