CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Paraview & paraFoam

loop through vtk-files (different time step samples)

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 9, 2013, 10:20
Default loop through vtk-files (different time step samples)
New Member
Martin Söder
Join Date: Jun 2011
Posts: 8
Rep Power: 7
Soder is on a distinguished road
I use sample (both run-tima and as post) to create vtk files.
Which creates files in the following structure


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

where 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
Soder is offline   Reply With Quote

Old   December 12, 2013, 22:05
Join Date: Aug 2012
Posts: 65
Blog Entries: 1
Rep Power: 6
Nucleophobe is on a distinguished road

This post from Bruno should help you get started:
pvbatch script for saving animations modifing each frame

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

Good luck!
Nucleophobe is offline   Reply With Quote

Old   December 28, 2013, 14:34
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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,
wyldckat is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Time step size and max iterations per time step pUl| FLUENT 31 August 21, 2015 04:46
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 07:47
number of iterations per time step chouki FLUENT 1 August 13, 2013 00:11
AMI speed performance danny123 OpenFOAM 19 October 24, 2012 07:44
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58

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