[Paraview] PVDReader and time

Felipe Bordeu Weldt bordeu at lmt.ens-cachan.fr
Tue Jun 9 02:50:52 EDT 2009


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
------------------------------------------------------------------------








More information about the ParaView mailing list