Ian,

If the *.vtu files are using the XML-based format, the you can use a *.vtd "mother file" (or meta file) that references the *.vtu files. An example of a *.pvd file is attached, however, the 'name=...' item is ignored (not used) by PV's Extract Block filter.

Sam

On 3/6/2015 6:13 AM, Ian Krukow wrote:
Yes, that would work. I could write me a script for renaming the files. But I would rather avoid that, as I get the result files from a project partner with the simulation time in the filename. So, they are named something like
file_t=0.0012.vtu
file_t=0.0024.vtu
...
As soon as t passes 1, ParaView sees a new series. In addition, the first timestep has a different filename, because it is a steady-state solution. I could remove the dots in the time values and rename the steady-state solution, but I would have to do it every time I get a new file series. Therefore, I have been looking for another solution.

Kind regards
Ian



Am 06.03.2015 um 11:56 schrieb dkxl...@gmail.com:
Have you tried to name the files like this:
fileName.0000.vtu
fileName.0001.vtu
fileName.0002.vtu
...

ParaView should recognize them as a time series.

That typically worked for me (cannot test it though at the moment).

-Armin




On Fri Mar 6 12:36:01 2015 GMT+0200, Ian Krukow wrote:
Hi all,

I want to load a series of VTU files, which are all stored in one
directory, but not numbered in a way that ParaView recognises them as
one series. In a python script, I can do it like this:

import glob
import paraview.simple as pv
pattern = 'directory/*.vtu'
files = glob.glob(pattern)
reader = pv.XMLUnstructuredGridReader( FileName=files )

The directory may be an input parameter to the script.
How can I transfer this into the GUI with the directory as a parameter?

I have looked at python macros, but obviously it is not possible to
define any parameters there.
Is it possible to run a script from the python shell with a parameter?
I also took a look at the Programmable Source. It should be a possible
solution, but I have not found much explanation of what to do.

Any ideas are welcome.
Kind regards
Ian
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

<?xml version="1.0"?>

<!--
   Title: FRAME SECTION (w/ SUBCYCLING)
 Program:  FMA-3D 
 Version:  V29.06 
    Date: 03-MAY-2007 
    Time: 09:02:20
 -->

<!--
 Last Problem Time:   2.0000687E-02
 Last Cycle Number:     3551
 -->

<VTKFile type="Collection" version="0.1" byte_order="LittleEndian">
  <Collection>
    <DataSet timestep="0001" part="001" file="fmavto.m001.t001.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0001" part="002" file="fmavto.m002.t001.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0001" part="003" file="fmavto.m003.t001.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0001" part="004" file="fmavto.m004.t001.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep="0002" part="001" file="fmavto.m001.t002.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0002" part="002" file="fmavto.m002.t002.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0002" part="003" file="fmavto.m003.t002.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0002" part="004" file="fmavto.m004.t002.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep="0003" part="001" file="fmavto.m001.t003.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0003" part="002" file="fmavto.m002.t003.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0003" part="003" file="fmavto.m003.t003.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0003" part="004" file="fmavto.m004.t003.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep="0004" part="001" file="fmavto.m001.t004.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0004" part="002" file="fmavto.m002.t004.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0004" part="003" file="fmavto.m003.t004.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0004" part="004" file="fmavto.m004.t004.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep="0005" part="001" file="fmavto.m001.t005.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0005" part="002" file="fmavto.m002.t005.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0005" part="003" file="fmavto.m003.t005.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0005" part="004" file="fmavto.m004.t005.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep="0006" part="001" file="fmavto.m001.t006.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0006" part="002" file="fmavto.m002.t006.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0006" part="003" file="fmavto.m003.t006.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0006" part="004" file="fmavto.m004.t006.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep="0007" part="001" file="fmavto.m001.t007.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0007" part="002" file="fmavto.m002.t007.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0007" part="003" file="fmavto.m003.t007.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0007" part="004" file="fmavto.m004.t007.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep="0008" part="001" file="fmavto.m001.t008.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0008" part="002" file="fmavto.m002.t008.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0008" part="003" file="fmavto.m003.t008.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0008" part="004" file="fmavto.m004.t008.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep="0009" part="001" file="fmavto.m001.t009.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0009" part="002" file="fmavto.m002.t009.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0009" part="003" file="fmavto.m003.t009.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0009" part="004" file="fmavto.m004.t009.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep="0010" part="001" file="fmavto.m001.t010.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0010" part="002" file="fmavto.m002.t010.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0010" part="003" file="fmavto.m003.t010.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0010" part="004" file="fmavto.m004.t010.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
    <DataSet timestep="0011" part="001" file="fmavto.m001.t011.vtu" name="Asmb:FRAME Part:FRONT Matl:ALUMINUM"/>
    <DataSet timestep="0011" part="002" file="fmavto.m002.t011.vtu" name="Asmb:FRAME Part:CORNER Matl:ALUMINUM"/>
    <DataSet timestep="0011" part="003" file="fmavto.m003.t011.vtu" name="Asmb:FRAME Part:BASE Matl:ALUMINUM"/>
    <DataSet timestep="0011" part="004" file="fmavto.m004.t011.vtu" name="Asmb:IMPACTOR Part:BLIVET Matl:ALUMINUM"/>
  </Collection>
</VTKFile>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to