CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Rotating Cylinder in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kkpal

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2015, 11:45
Default Rotating Cylinder in OpenFoam
  #1
New Member
 
Alex Benjamin
Join Date: Jun 2015
Posts: 6
Rep Power: 11
arb93 is on a distinguished road
Hey!

So I am new to OpenFoam and would like to be able to simulate a rotating cylinder in an otherwise stationary fluid (laminar and incompressible).

Has anyone done such studies and/or could anyone point me to existing tutorials that might help?

I really appreciate the help!

Thanks!
arb93 is offline   Reply With Quote

Old   June 9, 2015, 14:14
Default
  #2
Member
 
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14
kebsiali is on a distinguished road
Hello

I've done such a task using FreeFEM++ (the cylinder rotates around its axis), I geuss you are trying to study the effect of the oscillation frequency on the resulting vortex frequency?
I think you will have to follow the same idea. everything in the solver will stay the same, you can use pimpleFoam, icoFoam, or pisoFoam.
you will have to create a new boundary condition where the velocity of each point in the cylinder surface (no slip condition) will have its value.

you will start by saying that a point at (x,y) is at x=rcos(\theta) and y=rsin(\theta)
you will define an angular velocity omega=f(time) as you like and then simple math gives velocity vector (vx,vy,vz) as a function of space and time (since every point will have its velocity components)

your task will be to create a new boundary condition type in openfoam

search for that. there are many tutorials.
kebsiali is offline   Reply With Quote

Old   June 9, 2015, 14:31
Default
  #3
New Member
 
Alex Benjamin
Join Date: Jun 2015
Posts: 6
Rep Power: 11
arb93 is on a distinguished road
Thanks, but I am actually not trying to simulate an oscillating cylinder.

Just a cylinder rotating at a constant speed in a fluid.
arb93 is offline   Reply With Quote

Old   June 9, 2015, 14:52
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Is it similar to tutorials/incompressible/SRFPimpleFoam/rotor2D? (though it is fluid rotating around static rotor).

Is it transient case? Do you need to track free surface of the fluid?
alexeym is offline   Reply With Quote

Old   June 9, 2015, 15:01
Default
  #5
New Member
 
Alex Benjamin
Join Date: Jun 2015
Posts: 6
Rep Power: 11
arb93 is on a distinguished road
I don't need to track the free surface of the liquid and it is steady state for now.

Thanks in advance!
arb93 is offline   Reply With Quote

Old   June 9, 2015, 15:06
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Start with tutorials/incompressible/SRFSimpleFoam/mixer. It is again fluid rotating around static mixer boundary. You need to make mesh more simple (in you case inner wall is just a cylinder), change RASModel to laminar, and case become the one you have described in your post.
alexeym is offline   Reply With Quote

Old   June 9, 2015, 15:32
Default
  #7
New Member
 
Alex Benjamin
Join Date: Jun 2015
Posts: 6
Rep Power: 11
arb93 is on a distinguished road
Thank you!
arb93 is offline   Reply With Quote

Old   December 6, 2015, 08:47
Default
  #8
Senior Member
 
Join Date: Jan 2013
Posts: 135
Rep Power: 13
kkpal is on a distinguished road
How about try setting the boundary velocity of the cylinder to
Code:
rotatingWallVelocity
?
ancolli likes this.
kkpal is offline   Reply With Quote

Old   November 1, 2019, 12:12
Default Querry
  #9
New Member
 
Deepanker Chaudhary
Join Date: Oct 2019
Location: France
Posts: 7
Rep Power: 6
ShanuNith is on a distinguished road
hey,
I have a doubt in my mind, how do i know the axis direction of my rotating cylinder.

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
leftWall
{
type noSlip;
}
rightWall
{
type noSlip;
}
lowerWall
{
type noSlip;
}
atmosphere
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
cylinder1Wall
{
type rotatingWallVelocity;
origin (-0.035 0 -1);
axis (0 0 1);
omega constant -2; //rad per sec
}
cylinder2Wall
{
type rotatingWallVelocity;
origin (0.035 0 1);
axis (0 0 1);
omega constant 2; //rad per sec
}
defaultFaces
{
type empty;
}
}


// ************************************************** *********************** //

i have two cylinders of which the first cylinder is at left and second is at right. Left one is to be rotated in clockwise directiln while the right on is to be roated in counter-clockwise direction such that a converging velocity field is made in between the cylinders. but i am not sure how to define the direction because i exactly dont know what (0 0 1) represtns in front of axis. and what if its is (0 0 -1)

I am really confused.
ShanuNith is offline   Reply With Quote

Old   October 1, 2021, 12:53
Smile
  #10
New Member
 
Nasos_bal
Join Date: Oct 2021
Posts: 8
Rep Power: 4
Nasos_bal is on a distinguished road
Quote:
Originally Posted by arb93 View Post
Hey!

So I am new to OpenFoam and would like to be able to simulate a rotating cylinder in an otherwise stationary fluid (laminar and incompressible).

Has anyone done such studies and/or could anyone point me to existing tutorials that might help?

I really appreciate the help!

Thanks!
Hello! I am trying to simulate a fluid inside a cylinder which is 5 degrees inclined. Could you help me?
Nasos_bal is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
3D Rotating Cylinder Boundary Conditions Ledeeb FLUENT 6 February 18, 2015 08:15
Flow past rotating cylinder: Problem with ForeCoeffs raf1111 OpenFOAM 1 December 16, 2013 09:45
Rotating cylinder ole OpenFOAM 6 February 10, 2010 04:45
Rotating cylinder Johnny Main CFD Forum 5 December 7, 2004 09:55
Fluid in a rotating cylinder Fluid Novice Main CFD Forum 1 December 17, 1998 17:25


All times are GMT -4. The time now is 17:56.