CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   Rotating wall (

karthik April 9, 2009 09:58

Rotating wall
Heloo foamer

i wanna simulate fluid flow in a partially filled horizontal cylinder at different speeds.
The rotation wil be about the half will be filled wit some fluid while the other will be air.
The objective being to simulate various flow regimes mainly taylor flow
i plan to use interfoam since it suppotrs VOF and 2 phase flow
but the main problem is ROTATING WALL,moving wall would hav been easy but roataing wall is a different thing.i found a few post wit the "solution" which i could not interpret so plz give step by step detailed info to make the wall rotate:) i am not much of an coder so i dont know how to define the rotating wall.


ngj April 10, 2009 04:30

Hi Karthik

If you do not intend to actually move the mesh, then you should simply apply the tangential vector velocity field on your rotating cylinder walls.
As you apparently are not interested in doing BC-implementations, I would recommend you to look into groovyBC, which I suspect should make it possible to apply your BC in a rather simple way.

Good luck,


paulo April 10, 2009 06:44

You can also look for rotationBC, that you ca download here.



karthik April 10, 2009 08:06

thank u very much:)will try and c both of the suggestions:) u guys hav been a gr8 help:)
also i would like to know if its possible to do heat trasfer and phase chane with this.
i wil be using a static mesh i just wanna know which code to use?
also i am havin confusion regardin defination of gamma. . . can it be done 4 cylinder?? the dam break case defines a box 4 dat . . . . .that causes a bit of worry 4 me. . . . .

ngj April 11, 2009 05:21

Hi Karthik

I have used neither, but in the directory:


you find a solver, which from the name promises to be able to handle phase change, and further the entire directory


is dedicated heat transfer, so both are present in the source, so you probably "just" need to put things together.

Best regards,


tamsilian May 26, 2010 10:54

Hi sir/madam
i simulated polymer in extruder(screw mill) by ViscoElastic fluidFoam,Jovani. According to my geometry, velocity vectors in boundary condition are changed .As result i should code variables condition in 0File>> U>> you know that GroovyBC was compiled to OpenFoam as defualt or i have to compile it?and how to compile groovyBC to OpenFoam v.1.6?if anybody coded one geometry by groovyBC this is thanksful to sent it me by
Thanks in advanced your help

All times are GMT -4. The time now is 09:31.