Dear all,<br><br>just for sharing, a method of how to store multiple time-steps in a<br>single .vt?-file (haven&#39;t found this yet, only statements that this is<br>either impossible or directions to use the EnSight format). I tested<br>
this with the XML Polydata and Unstructured Grid writers from vtk 5.8<br>and the current 6.0 snapshot.<br><br>I have a series of vtk-files containing 1 time-step<br>each (N.B. from the CGNS-export of a proprietary CFD software<br>
package). The python-script for Unstructured Grid Data:<br><br>&gt; #!/usr/bin/env python<br>&gt;  <br>&gt; from vtk import vtkXMLUnstructuredGridReader,vtkXMLUnstructuredGridWriter<br>&gt; from glob import glob<br>&gt;<br>
&gt; dt = delta_t<br>&gt;  <br>&gt; reader = vtkXMLUnstructuredGridReader()<br>&gt; filelist = sorted(glob(&#39;path/to/file/series-????.vtu&#39;))<br>&gt; # the &#39;?&#39; stands for a single character, numbers in my case<br>
&gt;  <br>&gt; writer = vtkXMLUnstructuredGridWriter()<br>&gt; writer.SetFileName(&#39;outfile.vtu&#39;)<br>&gt; writer.SetNumberOfTimeSteps(len(filelist))<br>&gt; writer.SetTimeStepRange(0,len(filelist)-1)<br>&gt; writer.SetInputConnection(reader.GetOutputPort())<br>
&gt;  <br>&gt; writer.Start()<br>&gt;  <br>&gt; for file,i in zip(filelist,range(len(filelist))):<br>&gt;     print(file)<br>&gt;     reader.SetFileName(file)<br>&gt;     reader.Modified()<br>&gt;     writer.WriteNextTime(i*dt)<br>
&gt;  <br>&gt; writer.Stop()<br><br>Static information like cell connectivity seems to be written<br>just once. When reading the file in paraview only memory for one<br>time-step is consumed (this doesn&#39;t seem to be the case for<br>
polydata, however). For no apparent reason Paraview fails to<br>display the correct time-values.<br><br>I hope that this will be useful.<br><br>Kind regards,<br>Johannes Strecha.<br>