VTK - separate mesh and data files

Hi! I am running a simulation on a static, unstructured mesh. Currently I output the variables at every timestep using .vtu files, but it seems wasteful to output the mesh points & connectivity that many times since the mesh does not evolve.

Is it possible to point the .vtu file containing cell data to a separate points/connectivity file? And if so, what might that look like? Thank you!

1 Like

Hi @nikic,

You might want to take a look at the “.pvtu” format (https://kitware.github.io/vtk-examples/site/VTKFileFormats/). You might be able to use the indirection provided by the format (usually to read distributed datasets) to read your field and mesh files independently.

If that does not work, I would advise you to look into the XDMF format (XDMF Model and Format - XdmfWeb) supported by ParaView. While changing the format of your files may be cumbersome, this file format is really meant for the kind of storage optimizations you are describing.

Hope that helps!

Best regards,