CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] loop through vtk-files (different time step samples) (https://www.cfd-online.com/Forums/paraview/127342-loop-through-vtk-files-different-time-step-samples.html)

Soder December 9, 2013 09:20

loop through vtk-files (different time step samples)
 
Hi,
I use sample (both run-tima and as post) to create vtk files.
Which creates files in the following structure

surface/time/U_surfName.vtk

where time = 0, 0.1, 0.2, ....
Now I which to loop through these time steps

what I have found is that im supposed to execute
pvbatch test.py

where test.py is a python script.
Please help me with this script =)

If possible I would like to "annote time".
If I need to sample in different format sp be it


Best regards
Martin

Nucleophobe December 12, 2013 21:05

Soder,

This post from Bruno should help you get started:
http://www.cfd-online.com/Forums/par...tml#post460276


I would like to do something similar. I'll try to remember to share my code when I get to it.

Good luck!
-Nuc

wyldckat December 28, 2013 13:34

Greetings to all!

If either one of you already has something written in Python, but it doesn't work yet, please share the code, so that I can have a look into it.
I ask this simply because I don't feel like having to do everything myself ;)

And if by any chance you've already solved the problem, feel free to share it :)

Best regards,
Bruno


All times are GMT -4. The time now is 09:45.