|March 19, 2013, 06:05||
Merge VTK files
Join Date: Mar 2013
Posts: 2Rep Power: 0
i'm trying to merge several .vtk files which have the same geomtry but are referred to different timesteps in order to obtain just one file to be processed with Paraview. Anyone knows if exist a filter or a trick to do that?
Thanks in advance
|September 4, 2013, 17:05||
Join Date: Mar 2009
Location: Lisbon, Portugal
Blog Entries: 39Rep Power: 97
Greetings to all!
The ".vtk" files are legacy files, which means that they have some limitations on what can be done with them. For example, only 1 time instance can be stored in a single VTK file. You'll have to rely on multiple VTK files, as explained here: http://paraview.org/Wiki/Animating_l...TK_file_series
Although, I did some tests and we still have to rely on several files (using the same criteria explained in the link above) when saving on the more recent VTK format ".vtu".
|September 5, 2013, 04:59||
Join Date: Jan 2012
Location: Germay - Stuttgart
Posts: 21Rep Power: 6
thanks to the Animating legacy VTK files page I was able to achieve what I wanted to.
My case was split into several sub cases including the time directories. So the vtks were always named starting at ..._1.vtk.
case0280 with vtks case0280_1.vtk, case0280_2.vtk, ... case0280_n.vtk
case0310 with vtks case0310_1.vtk, case0310_2.vtk, ... case0310_n.vtk
So I copied all vtks to a new directory and renamed them (via script) in ascending order and the same suffix:
case_0.vtk ... case_n.vtk
Now everything works fine :-)
A better solution would may be to just link to every *.vtk and have the links named in ascending order. But unfortunately I'm having the data on a FAT formatted HDD which doesn't support symbolic links.
|merge vtk files|
|Thread||Thread Starter||Forum||Replies||Last Post|
|UDF issue||MASOUD||Fluent UDF and Scheme Programming||14||December 6, 2012 14:39|
|critical error during installation of openfoam||Fabio88||OpenFOAM Installation||21||June 2, 2010 03:01|
|OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found||piprus||OpenFOAM Installation||22||February 25, 2010 14:43|
|Problems in compiling paraview in Suse 10.3 platform||chiven||OpenFOAM Installation||3||December 1, 2009 08:21|
|OpenFOAM15 paraFoam bug||koen||OpenFOAM Bugs||19||June 30, 2009 10:46|