CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] how to run movingCone and groobler in groovyBC

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 22, 2012, 12:11
Default how to run movingCone and groobler in groovyBC
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
what commands should I use to run movingCone and groobler examples?
immortality is offline   Reply With Quote

Old   December 22, 2012, 14:51
Default
  #2
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 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
__________________
wyldckat is offline   Reply With Quote

Old   December 22, 2012, 16:11
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thank you bruno.what about second one if i remember its name correctly because i have no access to openfoam at the moment.
Thanks.
immortality is offline   Reply With Quote

Old   December 22, 2012, 18:39
Default
  #4
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
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
__________________
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



All times are GMT -4. The time now is 07:25.