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

[OpenFOAM] loop through vtk-files (different time step samples)

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

Reply
 
LinkBack Thread Tools Search this Thread 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: 14
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
 
Join Date: Aug 2012
Posts: 68
Blog Entries: 1
Rep Power: 13
Nucleophobe is on a distinguished road
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
Nucleophobe is offline   Reply With Quote

Old   December 28, 2013, 14:34
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 11:08
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58


All times are GMT -4. The time now is 20:35.