-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
Information on file formats:
https://docs.vtk.org/en/latest/vtk_file_formats/index.html
XML format for unstructured grids:
https://docs.vtk.org/en/latest/vtk_file_formats/vtkxml_file_format.html#unstructuredgrid
Basic structure is as follows:
<VTKFile type="UnstructuredGrid" ...>
<UnstructuredGrid>
<Piece NumberOfPoints="#" NumberOfCells="#">
<PointData>...</PointData>
<CellData>...</CellData>
<Points>...</Points>
<Cells>...</Cells>
</Piece>
</UnstructuredGrid>
</VTKFile>
Information on VTKHDF:
https://www.kitware.com/how-to-write-time-dependent-data-in-vtkhdf-files/
Scripts:
https://gitlab.kitware.com/keu-public/vtkhdf/vtkhdf-scripts
Following piece shows, how to write unstructured grids:
https://gitlab.kitware.com/keu-public/vtkhdf/vtkhdf-scripts/-/blob/main/scripts/generate_unstructured_grid.py
Converter from XML to HDF5:
https://gitlab.kitware.com/keu-public/vtkhdf/vtkhdf-scripts/-/tree/main/vtkxml-to-vtkhdf?ref_type=heads
mwestphal