|
[Sponsors] |
June 9, 2015, 11:45 |
Rotating Cylinder in OpenFoam
|
#1 |
New Member
Alex Benjamin
Join Date: Jun 2015
Posts: 6
Rep Power: 11 |
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! |
|
June 9, 2015, 14:14 |
|
#2 |
Member
ali alkebsi
Join Date: Jan 2012
Location: Strasbourg, France
Posts: 82
Rep Power: 14 |
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. |
|
June 9, 2015, 14:31 |
|
#3 |
New Member
Alex Benjamin
Join Date: Jun 2015
Posts: 6
Rep Power: 11 |
Thanks, but I am actually not trying to simulate an oscillating cylinder.
Just a cylinder rotating at a constant speed in a fluid. |
|
June 9, 2015, 14:52 |
|
#4 |
Senior Member
|
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? |
|
June 9, 2015, 15:01 |
|
#5 |
New Member
Alex Benjamin
Join Date: Jun 2015
Posts: 6
Rep Power: 11 |
I don't need to track the free surface of the liquid and it is steady state for now.
Thanks in advance! |
|
June 9, 2015, 15:06 |
|
#6 |
Senior Member
|
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.
|
|
June 9, 2015, 15:32 |
|
#7 |
New Member
Alex Benjamin
Join Date: Jun 2015
Posts: 6
Rep Power: 11 |
Thank you!
|
|
December 6, 2015, 08:47 |
|
#8 |
Senior Member
Join Date: Jan 2013
Posts: 135
Rep Power: 13 |
How about try setting the boundary velocity of the cylinder to
Code:
rotatingWallVelocity |
|
November 1, 2019, 12:12 |
Querry
|
#9 |
New Member
Deepanker Chaudhary
Join Date: Oct 2019
Location: France
Posts: 7
Rep Power: 6 |
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. |
|
October 1, 2021, 12:53 |
|
#10 | |
New Member
Nasos_bal
Join Date: Oct 2021
Posts: 8
Rep Power: 4 |
Quote:
|
||
|
|
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 |