My script is running, but I am totally unable to visualise the results in Paraview. Referring to the script czm_interface_only.py, it saves a czm.pvd file, plenty of .vtu files, as well as pvtu.
I can open the czm.pvd, but completely unable to find a field to ‘Warp by Vector’ by, to see the interface opening.
I appreciate this is a Paraview-centered question, but I hope somebody can help, as it also relates to how Dolfinx outputs DG fields.
Questions on different output formats (and their restrictions) pop up every now and then. Do you think you could give a short run down on the options and best practices?
Things wrt IO never seem to stabilize, there is always the N+1 formats. Here is a rundown as of Feb 2026:
XDMF: currently the preferred format for reading in meshes in parallel, as it uses hdf5 to store heavy data. However, the format has not been maintained since ~2021, and supports limited visualization of higher order fields/DG fields.
VTK (.pvd): store data in many files making it tediuous for large problems and reading in data. Supports the same visualization as VTX.
VTKHDF (.vtkhdf): the «new» format from kitware. Uses HDF5 with a specific ordering to be possible to visualize in Paraview. Hopefully the future format. Slightly less flexible with respect to multiple grids with different time stepping than xdmf, but supports higher order fields. An initial implementation exists in DOLFINx with a more complex reader/writer (including meshtags) at: Support writing time dependent meshes to vtkhdf by jorgensd · Pull Request #199 · jorgensd/adios4dolfinx · GitHub