CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Is there a tool to reset case or delete the timestep folders of previous running? (https://www.cfd-online.com/Forums/openfoam-solving/123873-there-tool-reset-case-delete-timestep-folders-previous-running.html)

funature September 23, 2013 08:35

Is there a tool to reset case or delete the timestep folders of previous running?
 
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

Bernhard September 23, 2013 08:37

pyFoamClearCase.py might help you: http://openfoamwiki.net/index.php/Contrib_PyFoam

funature September 23, 2013 08:51

Quote:

Originally Posted by Bernhard (Post 453107)
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?

Bernhard September 23, 2013 08:54

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.

funature September 23, 2013 09:17

Quote:

Originally Posted by Bernhard (Post 453110)
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.

Bernhard September 23, 2013 09:24

For Windows, I have no clue.


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