CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   TurbDyMFoam for dummies (

antonio_ing December 29, 2008 05:50

Hi everybody and happy 2009 I
Hi everybody and happy 2009
I have started today working with a darrieus VAWT geometry. I did a first simulation without any rotation with simpleFoam but now I have to add the rotation of the profiles. Since the vortices will interact in a unsteady way, i guess that the best solver should be turbDyMFoam, but i have no experience with this solver (or equivalently icoDyMFoam).
Can anyone give me some details?

thanks in advance

antonio_ing January 7, 2009 04:01

can anyone give me some help?
can anyone give me some help?

mparodi March 22, 2010 19:04

Help on turbDyMFoam
Hi Antonio,

did you manage to get some basic material on turbDyMFoam?

I am also trying to set up a case, but without success.


NickG April 30, 2010 09:29


This is what I do starting from separate inner and outer meshses:

-> mergeMeshes /home/nick/OpenFOAM/nick-1.5-dev/Turbine/2degGgi/ 600mm2degTunnel /home/nick/OpenFOAM/nick-1.5-dev/Turbine/2degGgi/ 600mm2degRotor
[That has 4 arguments: master root ; master case; slave root; slave case]

To set up case from combined mesh in new folder:

copy to new case folder from tutorials/IcoDyMFoam/mixerGgi: 0, constant, system

replace /constant/polymesh with mergeMeshes polymesh (inside the folder named from the value of your timestep in mergeMeshes controlDict)

change type for inside and outside sliding interface to ggi and paste underneath startFace:

shadowPatch outsideSlider;
zone insideZone;
bridgeOverlap false;

for insideSlider and:

shadowPatch insideSlider;
zone outsideZone;
bridgeOverlap false;

for outsideSlider. Your sliding faces maybe named differently so replace insideSlider and outsideSlider accordingly. e.g. mine read:

type ggi;
nFaces 180;
startFace 7782;
shadowPatch InterR;
zone outsideZone;
bridgeOverlap off; //relates to consistency of mesh size across interface: can be true, false, on, off
type ggi;
nFaces 180;
startFace 15482;
shadowPatch InterT;
zone insideZone;
bridgeOverlap off;

change names of slider moving and static arguments in dynamicMeshDict to correspond to your interface boundary names (e.g. from insideSlider to InterR for my case)
change rpm and coordinateSystem if necessary.

write k, epsilon, etc. depending upon turbulence model. Use example from turbFoam as an example for interface patches: type ggi; e.g. from my k file:

type ggi;
value uniform 25; // you don't need to include this line

[if you want to run in parallel: add to decomposeParDict: globalFaceZones ( insideZone outsideZone );]

write "setBatch" file: faceSet insideZone new patchToFace InterR
faceSet outsideZone new patchToFace InterT
place in case folder

-> setSet -batch setBatch

-> setsToZones -noFlipMap

-> turbDyMFoam

Hopefully it runs!

mparodi May 3, 2010 15:13

Hi Nick,

I really appreciate your help :).

The model looks to be running now!

Many Thanks,


lordvon September 24, 2010 07:10

You did not have to replace the fvsolution or fvscheme files under /system/ in the icoDyMFoam tutroial?

NickG September 24, 2010 08:16

If you're using turbDyMFoam but starting from IcoDyMFoam then you need equations for the turbulence. Check fvsolution or fvschemes in turbFoam tutorial for examples

All times are GMT -4. The time now is 08:46.