ParaView crash when opening XML based vtk file

Hi all
I am having an issue when opening a .vtk file containing some thermal data from a simulator tool I built. The output .vtk file is generated from a library function (dolfinx.io VTKFile) and when opening it in Notepad++ it seems that it is written in XML format. When attempting to open this .vtk file in ParaView, it prompts me to select a Reader. Each reader I select leads to ParaView crashing when clicking on the “Apply” button.

Any help? I have included all relevant files here.

heat_solution_1000000.pvtu (602 Bytes)
heat_solution_1000001.pvtu (670 Bytes)
heat_solution_1.vtk (253 Bytes)
heat_solution_1_p0_000000.vtu (410.8 KB)
heat_solution_1_p0_000001.vtu (572.6 KB)

Your .vtk file is not a file in VTK file format. It looks like a VKT partitioned dataset collection file but still seems incorrect.

What are these files supposed to contain ?

I’m building an IC Transient thermal analysis tool. Essentially, the tool reads in the geometry of an IC layout and where the resistors are (only looking at 2D for now) and then calculates the heat dissipation from those resistors using FEM. So the output file should contain the temperatures at every point on the mesh for different time steps. As an example of very basic output, I have attached a screenshot from an example file (aka not a file currently created through my tool).

What I am unsure about is why ParaView crashes when opening a .vtk file.

From what I gather (the following is a ChatGPT response):

  • The .pvtu file** serves as a wrapper that collects the data from multiple .vtu files. It allows ParaView to reconstruct the full simulation result from data written by different processors.
  • The .vtu files store the data for individual partitions of the mesh (in parallel processing). Each .vtu file contains data such as mesh coordinates, temperature values, and other fields for a subset of the computational domain.

image

Ok, however you created a .vtk file with an xml syntax as well, what are you trying to achiveve with it ?

I managed to switch it to output in legacy .vtk format which works much better. It now stores the output temperature in a format that matches the example one shown earlier. Assuming ParaView crashes because of the .vtk file being in XML syntax not being supported?

Thanks for your help nevertheless!

The VTK file format is not an XML format indeed.