CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   funkyAllrun script (http://www.cfd-online.com/Forums/openfoam-solving/75388-funkyallrun-script.html)

gwierink April 23, 2010 12:17

funkyAllrun script
 
Dear all,

I was thinking that it would be nice to have a script that runs many cases over the weekend. There are of course several Allrun scripts, but these are not all useful for *any* application and usually do not include setFields and foamToVTK. So, for that I modified two scripts to read the application name from the controlDict and run blockMesh, then setFields, then the solver, and finally foamToVTK on all cases in the directory and subdirectories. Perhaps no Nobel prize material, but it is a handy tool I just wanted to share :).

The recipe goes like this:
  • Get the scripts from here
  • Put funkyFoamRunTutorials in $WM_PROJECT_DIR/bin/
  • Make sure it is executable by
    Code:

    chmod +x funkyFoamRunTutorials
  • Make a directory containing all cases you want to run, with correct application names in controlDict and put funkyAllrun in this "master directory"
  • Make sure also funkyAllrun is executable by
    Code:

    chmod +x funkyAllrun
  • Run funkyAllrun by
    Code:

    ./funkyAllrun

Hope this is useful for someone :)


All times are GMT -4. The time now is 00:26.