CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Want to extract specific time steps from unstructured grid timeseries using paraview

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2018, 04:21
Default Want to extract specific time steps from unstructured grid timeseries using paraview
  #1
New Member
 
Join Date: Mar 2017
Posts: 7
Rep Power: 9
awa5114 is on a distinguished road
I have scalar data in a timeseries 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?
awa5114 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores puneet336 OpenFOAM Running, Solving & CFD 11 April 7, 2019 00:58
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 05:28
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 00:01


All times are GMT -4. The time now is 17:52.