CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

loop through vtk-files (different time step samples)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 9, 2013, 10:20
Default loop through vtk-files (different time step samples)
  #1
New Member
 
Martin Söder
Join Date: Jun 2011
Posts: 8
Rep Power: 6
Soder is on a distinguished road
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
Soder is offline   Reply With Quote

Old   December 12, 2013, 22:05
Default
  #2
Member
 
Ken
Join Date: Aug 2012
Posts: 61
Blog Entries: 1
Rep Power: 5
Nucleophobe is on a distinguished road
Soder,

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!
-Nuc
Nucleophobe is offline   Reply With Quote

Old   December 28, 2013, 14:34
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat 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,
Bruno
wyldckat is offline   Reply With Quote

Reply

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 27 May 12, 2015 20:04
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 02:31.