CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] how to run movingCone and groobler in groovyBC (https://www.cfd-online.com/Forums/openfoam-community-contributions/110845-how-run-movingcone-groobler-groovybc.html)

immortality December 22, 2012 11:11

how to run movingCone and groobler in groovyBC
 
what commands should I use to run movingCone and groobler examples?

wyldckat December 22, 2012 13:51

Greetings ehsan,

Quoting from the README file at swak4Foam repository (revision 1978):
Quote:

Code:

**** movingConeDistorted
    - Solver :: pimpleDyMFoam
    - Also demonstrates :: =swakExpression= with =surface=. Due to a
    problem described below this currently doesn't work


Now, from the "system/controlDict" file in that example, it indicates that the solver used there was "icoFoamAutoMotion". A little research and it looks like it's a very old version of the currently existing "icoDyMFoam" in 1.6-ext.

Anyway, the case isn't ready to be used right out-of-the-box, but I think you can make the necessary modifications for making this work in OpenFOAM 2.1.x (i.e. get "icoDyMFoam" from 1.6-ext and build on 2.1.x) and then simply run:
Code:

blockMesh
icoDyMFoam

Best regards,
Bruno

immortality December 22, 2012 15:11

thank you bruno.what about second one if i remember its name correctly because i have no access to openfoam at the moment.
Thanks.

wyldckat December 22, 2012 17:39

Hi ehsan,

OK, here are the steps I've used:
  1. Code:

    cd $FOAM_RUN
    cd ..
    mkdir icoDyMFoam
    cd icoDyMFoam

    for a in readControls.H icoDyMFoam.C createFields.H correctPhi.H UEqn.H
    do
      wget "http://openfoam-extend.git.sourceforge.net/git/gitweb.cgi?p=openfoam-extend/OpenFOAM-1.6-ext;a=blob_plain;f=applications/solvers/incompressible/icoDyMFoam/$a" -O "$a"
    done

    for a in checkTotalVolume.H initTotalVolume.H
    do
      wget "http://openfoam-extend.git.sourceforge.net/git/gitweb.cgi?p=openfoam-extend/OpenFOAM-1.6-ext;a=blob_plain;f=src/OpenFOAM/include/$a" -O "$a"
    done

    sed -i -e 's=piso\.=pisoDict.=g' readControls.H

    mkdir Make
    cd Make

    for a in files options
    do
      wget "http://openfoam-extend.git.sourceforge.net/git/gitweb.cgi?p=openfoam-extend/OpenFOAM-1.6-ext;a=blob_plain;f=applications/solvers/incompressible/icoDyMFoam/Make/$a" -O "$a"
    done

    sed -i -e "s=FOAM_APPBIN=FOAM_USER_APPBIN=" files
    sed -i -e "s=\-llduSolvers==" options
    sed -i -e "s=dynamicMesh/dynamicFvMesh=dynamicFvMesh=" options

    cd ..
    wmake

  2. In the "movingConeDistorted" folder, edit the file "system/fvSchemes", replace "PIMPLE" for "PISO".
  3. And like I wrote before, you can run the case like this:
    Code:

    blockMesh
    icoDyMFoam

Best regards,
Bruno


All times are GMT -4. The time now is 04:01.