Page 1 of 1

vtk export feature request: pvd file

Posted: Wed May 25, 2022 1:50 pm
by hohoho
When exporting to vtk from GiD postprocessing, vtu files are written correctly for each time-step but the time information is lost.

Since these files are normally read by Paraview, would it be possible to also add a ParaView Data file (.pvd)? This file establishes a correspondence between other files and current time. It looks like this:

<?xml version="1.0"?>
<VTKFile type="Collection" version="0.1">
<Collection>
<DataSet timestep="0.5" group="" part="0" file="2cubes_0.pvtu"/>
<DataSet timestep="1" group="" part="1" file="2cubes_1.pvtu"/>
</Collection>
</VTKFile>

Re: vtk export feature request: pvd file

Posted: Wed May 25, 2022 1:58 pm
by escolano
Vtk doesn't has any field to store the time step, then usually programs are codifying the time step as a suffix in the collection of filenames.

We will study your suggestion of write an extra .pvd file, at least for Paraview use, thanks

Re: vtk export feature request: pvd file

Posted: Wed Jun 08, 2022 8:11 pm
by escolano
We have implemented this feature of write/read the .pvd file to store the time steps

To update your vtk import/export plugin simply unzip this attached file
vtk.zip
(20.22 KiB) Downloaded 91 times
inside the folder
<GiD>\plugins\Import
replacing the current files.
Note: the plugin is pure-tcl, it is valid for all GiD versions and platforms

Re: vtk export feature request: pvd file

Posted: Mon Aug 08, 2022 11:39 am
by hohoho
Thank you for your reply and implementation,

I tried the export part of the feature today for the first time with this dataset: https://we.tl/t-iLlkvAN5GU (post.res file, ~400kb)
I get an empty warning window, a message "Problems writing" in the CL and nothing happens.

Could you try replicating this problem please?

Re: vtk export feature request: pvd file

Posted: Wed Aug 31, 2022 2:54 pm
by escolano
The link with your .post.res file has expired.
please, upload the attachment directly in this forum (do a .zip to be able to upload)