Converting .vtk to .vtu files

I have all of my current files in .vtk format with a rectilinear grid. Is there an easy way to convert each of these files into .vtu files?

Thank you

I recommend a small python script that opens the vtk file attaches it to a vtu writer and executes it. To try it quickly, turn on Tools->Python Trace, open a vtk file, do File->Save Data to vtu, and then Tools->Stop Trace. You can save and edit that script and then run it from the command line with pvpython or from within the GUI vi View->Python Shell->Run Script.

1 Like