[Paraview] PVDReader and time

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Jun 9 09:16:01 EDT 2009


specify the time in the call to UpdatePipeline()
eg.

reader_base.UpdatePipeline(1.2)

Utkarsh



On Tue, Jun 9, 2009 at 3:20 AM, Felipe Bordeu Weldt <
bordeu at lmt.ens-cachan.fr> wrote:

> hello,
>
> How do I change the time value in the sources.PVDReader(). I have a pdv
> file with 6 time-steps, but I can access only the first one time step.
>
> ----.py-----------
>
> connection = Connect()
> reader_base = sources.PVDReader()
> reader_base.Initialize(connection)
>
> reader_base.FileName = "I/sol/para_pli1.pvd"
> reader_base.UpdatePipeline()
>
> info_base= reader_base.GetDataInformation()
>
> print info_base.GetTime()
>
> dep = info_base.GetPointDataInformation().GetArrayInformation(0)
> print dep.GetComponentRange(0)
>
> -----.pvd ---------------------
> <?xml version="1.0"?>
> <VTKFile type="Collection" version="0.1" byte_order="LittleEndian"
> compressor="vtkZLibDataCompressor">
> <Collection>
> <DataSet timestep="0" part="1" file="para_pli101M0000.vtu" />
> <DataSet timestep="1" part="1" file="para_pli101M0001.vtu" />
> <DataSet timestep="1.2" part="1" file="para_pli101M0002.vtu" />
> <DataSet timestep="1.4" part="1" file="para_pli101M0003.vtu" />
> <DataSet timestep="1.6" part="1" file="para_pli101M0004.vtu" />
> <DataSet timestep="1.8" part="1" file="para_pli101M0005.vtu" />
> <DataSet timestep="2" part="1" file="para_pli101M0006.vtu" />
> </Collection>
> </VTKFile>
> ------------------------------------------------------------------------
> Felipe Bordeu Weldt
> Doctorant - 3° année   (3° year PhD student)
> ------------------------------------------------------------------------
> LMT-Cachan
> (ENS Cachan/CNRS/UPMC/PRES UniverSud Paris)
> 61, av. du Président Wilson
> F-94230 Cachan
> France
> ------------------------------------------------------------------------
>
>
>
>
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090609/a3789cfb/attachment.htm>


More information about the ParaView mailing list