vtk export feature request: pvd file

Moderator: GiD Team

Post Reply
hohoho
Posts: 1
Joined: Wed Oct 13, 2021 2:49 pm

vtk export feature request: pvd file

Post 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>
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: vtk export feature request: pvd file

Post 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
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: vtk export feature request: pvd file

Post 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 76 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
hohoho
Posts: 1
Joined: Wed Oct 13, 2021 2:49 pm

Re: vtk export feature request: pvd file

Post 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?
Last edited by hohoho on Mon Aug 08, 2022 12:00 pm, edited 1 time in total.
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: vtk export feature request: pvd file

Post 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)
Post Reply