ivan-pi / periodic-lbm

A personal collection of research codes for LBM in periodic domains
Apache License 2.0
9 stars 1 forks source link

VTK XML File Formats #6

Open ivan-pi opened 2 years ago

ivan-pi commented 2 years ago

Currently, only the legacy VTK format is available. It would be nice to finally support LBM-specific writers for the modern XML-based format.

References:

An extra step further would be the Paraview Data Format, which can be used to store a collection:

The .pvd format doesn't support the legacy VTK format.

For a full list of formats supported by Paraview, check the list of (available) readers: https://www.paraview.org/Wiki/ParaView/Users_Guide/List_of_readers#AVS_UCD_Reader

ivan-pi commented 1 year ago

The MFEM framework has an nice example of a DataCollection class: https://github.com/mfem/mfem/blob/5308d285f732c45f3c381bcee415581fd34b1cb2/fem/datacollection.hpp#L484

It's also worth mining their VTK header for ideas: https://github.com/mfem/mfem/blob/f66df8d34de1a8559a4f220cd2119df7b789a2aa/mesh/vtk.hpp