[Paraview] PVDReader and time

Berk Geveci berk.geveci at kitware.com
Tue Jun 16 15:25:48 EDT 2009


By the way, it looks like this didn't work in 3.4. It will work in
3.6. Try the following instead

reader_base.SMProxy.UpdatePipeline(1.2)

-berk

On Tue, Jun 9, 2009 at 9:16 AM, Utkarsh
Ayachit<utkarsh.ayachit at kitware.com> wrote:
> 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
>
>
> _______________________________________________
> 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
>
>


More information about the ParaView mailing list