CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Is there a tool to reset case or delete the timestep folders of previous running?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 23, 2013, 07:35
Default Is there a tool to reset case or delete the timestep folders of previous running?
  #1
New Member
 
Lü Yi
Join Date: Aug 2013
Posts: 3
Rep Power: 5
funature is on a distinguished road
hello everyone,

I want to run a case several times with different boundary conditions, the BC dictionaries are changed programmaticlly. And I need a tool to reset the case before each running so that I can get the last timestep correctly. Is there such a tool to help clean up the folder?




regards

Yi
funature is offline   Reply With Quote

Old   September 23, 2013, 07:37
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 14
Bernhard is on a distinguished road
pyFoamClearCase.py might help you: http://openfoamwiki.net/index.php/Contrib_PyFoam
Bernhard is offline   Reply With Quote

Old   September 23, 2013, 07:51
Default
  #3
New Member
 
Lü Yi
Join Date: Aug 2013
Posts: 3
Rep Power: 5
funature is on a distinguished road
Quote:
Originally Posted by Bernhard View Post
pyFoamClearCase.py might help you: http://openfoamwiki.net/index.php/Contrib_PyFoam
Bernhard, thanks! It seems to be the right tool for me, but unfortuntly I cannot use PyFoam. Is there no such tool inside OpenFoam?
funature is offline   Reply With Quote

Old   September 23, 2013, 07:54
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 14
Bernhard is on a distinguished road
You just have to install PyFoam first, you can do that in your own folders.

Alternatively, you can look in $WM_PROJECT_DIR/bin/tools/CleanFunctions where you find some bash functions using the same thing. However, I like pyFoam a bit better.
Bernhard is offline   Reply With Quote

Old   September 23, 2013, 08:17
Default
  #5
New Member
 
Lü Yi
Join Date: Aug 2013
Posts: 3
Rep Power: 5
funature is on a distinguished road
Quote:
Originally Posted by Bernhard View Post
You just have to install PyFoam first, you can do that in your own folders.

Alternatively, you can look in $WM_PROJECT_DIR/bin/tools/CleanFunctions where you find some bash functions using the same thing. However, I like pyFoam a bit better.
Sorry, I forgot to mention that I use OpenFoam under Windows because of certain reason. I do think the things will be easier if I can do it under Linux. I'll try PyFoam later.
About the second method, I'm not quite sure how I can use it. I'm using the windows port by symscape. I copied the Allclean file from a tutorial case, but it didn't work, I think I must change something properly for windows even the CleanFunctions work. I tried to google some information about the bash function but without success, maybe you can give me some advice.
funature is offline   Reply With Quote

Old   September 23, 2013, 08:24
Default
  #6
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 14
Bernhard is on a distinguished road
For Windows, I have no clue.
Bernhard 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
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
How to save a case running in background us FLUENT 0 July 6, 2005 10:43


All times are GMT -4. The time now is 14:34.