[Paraview] extract specific time steps from unstructured grid timeseries using paraview

Amine Aboufirass Amine.Aboufirass at deltares.nl
Mon Feb 26 05:29:19 EST 2018


Hello,

I have scalar data in a time series of unstructured grid datasets. I'd like to extract this data for specific timesteps. I tried the following but only seem to get the information for the very first time step:


AllFiles = ['File001.vtk', 'File002.vtk', 'File003.vtk', 'File004.vtk']
Reader = LegacyVTKReader(FileNames = AllFiles)
Reader = ExtractTimeSteps(Reader,1)

Output = servermanager.Fetch(Reader)
Results = vtk_to_numpy(Output.GetPointData().GetScalars('inc remental_deviatoric_strain_solid'))

I also tried:

Reader = ExtractTimeSteps(Reader,1)

But it throws an error:

Reader = ExtractTimeSteps(Reader,1)
File "C:\Program Files\ParaView 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\Lib\site-packages\paraview\simple.py", line 1674, in CreateObject
raise RuntimeError ("Expecting a proxy as input.")
RuntimeError: Expecting a proxy as input.

How can I pick the time step for which I want the data? Also is it possible to specify a range of time steps?

Amine Aboufirass

DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180226/d8519443/attachment.html>


More information about the ParaView mailing list