Simulation Output in pvd format

Hi,

I’m writing an IO for a fluid dynamics code in C. Is there any specific guide that can help me dump my output fields of the simulations in pvd format directly from the C code? I couldn’t find much help and so decided to post this in the forum.

pvd is a wrapper for our XML formats, you can find the doc here : https://www.vtk.org/VTK/img/file-formats.pdf