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

having trouble using simpleFoam and moving reference frame (MRF)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2014, 04:07
Default having trouble using simpleFoam and moving reference frame (MRF)
  #1
New Member
 
YOONWHAN JO
Join Date: Dec 2014
Posts: 3
Rep Power: 11
joyw is on a distinguished road

[Figure 1]

Hi, I am new to Openfoam and I am trying to run a simulation on a model shown in Figure 1.
The dimensions of the computational domain are 0.1 m x 0.1 m x 0.1 m and there is a cylinder of length 0.05 m, outer diameter 0.02 m and inner diameter 0.01 m at the center.
I’m trying to spin the cylinder as shown in Figure 2.


[Figure 2]

I ran the simulation using simpleFoam (I'm using OpenFoam version 2.3.0.) and specified the information on the rotational motion in fvoptions.
After setting all the control values to 0.001 in the residual control, the results seem to show excessive velocities.
The following (Figure 3) is an YZ cross-section. Given the outer radius of 0.02 m and rotational speed of 3.1416 rad/s, the maximum fluid velocity comes out to be 0.351 m/s. Simple hand calculation would show that the maximum fluid velocity should be around 0.0628 m/s (radius x rot. speed).


[Figure 3]

The mesh used in this test is shown below. The mesh is made up of simple tetrahedrals. The red circle is where the cylinder is placed.


[Figure 4]

The following is what I specified in fvoptions.
Quote:
MRF1
{
type MRFSource;
active yes;
selectionMode cellZone;
cellZone cellTable_2;

MRFSourceCoeffs
{
// Fixed patches (by default they 'move' with the MRF zone)
//nonRotatingPatches ();

origin (0 0 0);
axis (0 1 0);
omega constant 3.14159265358979;
}
}
In order to obtain a more reasonable result, what are the issues that I need to resolve and if there is anything wrong with the above specifications, please let me know. Thank you.
joyw is offline   Reply With Quote

Old   December 2, 2014, 04:37
Default
  #2
New Member
 
Jacques
Join Date: Oct 2009
Posts: 15
Rep Power: 16
jackpap is on a distinguished road
Hi, if you are trying to spin a solid annular cylinder :
  1. You shouldn't have mesh inside the solid part (unless you're doing some Conjugate Heat Transfer simulation...)
  2. You shouldn't need an MRF. A simple rotatingWallVelocity boundary condition on your cylinder walls should do the trick.

If the solid annular cylinder is only the "MRF ZONE" then what / where is the rotating geometry you are simulating?

Good luck.
jackpap is offline   Reply With Quote

Old   December 9, 2014, 21:53
Default
  #3
New Member
 
YOONWHAN JO
Join Date: Dec 2014
Posts: 3
Rep Power: 11
joyw is on a distinguished road
Thank you for your reply.
It seems there has been a misunderstanding due to a lack of explanation.
What I am trying to simulate is a simplified/modeled mixer, rather than a solid annular cylinder. (For reference, the fluid is simply water). So what can be done in this case?
joyw is offline   Reply With Quote

Old   December 10, 2014, 14:44
Default
  #4
New Member
 
Jacques
Join Date: Oct 2009
Posts: 15
Rep Power: 16
jackpap is on a distinguished road
In figure 3 how come we can't see the solid outline of the mixer blades ?
jackpap is offline   Reply With Quote

Old   December 10, 2014, 19:30
Default
  #5
New Member
 
YOONWHAN JO
Join Date: Dec 2014
Posts: 3
Rep Power: 11
joyw is on a distinguished road
It's just a simple model simulating the motion of the mixer without actually modeling the blades, simply giving tangential velocity components to the flow around it.
joyw is offline   Reply With Quote

Old   June 24, 2018, 15:23
Default
  #6
Member
 
Ben 017
Join Date: Nov 2017
Posts: 70
Rep Power: 8
Ben UWIHANGANYE is on a distinguished road
Hello,

Hope you are well!


May you help on this case?
Indeed i want to move a solid cylinder, I have coded in c++ the equation of motion(simple harmonic equation). The cylinder was created using cylinderTocell in topoSetDict.

Can you help to know how make that cylinder oscillating using that equation.

or if you know another way to use to make that cylinder oscillating without dynamic mesh, i will be happy to hear from you.

Attached is the c++ equation of motion.



Regard!

Thank you.
Ben UWIHANGANYE is offline   Reply With Quote

Reply

Tags
fvoptions, moving reference frames, mrfsimplefoam, simplefoam


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
Initial conditions and change in reference frame jimteb OpenFOAM Pre-Processing 0 November 24, 2014 09:21
moving reference frame - weird results! Amir OpenFOAM 17 August 7, 2011 04:22
Moving from simpleFoam to interFoam with alpha = 0 kjetil OpenFOAM Running, Solving & CFD 1 November 8, 2009 20:04


All times are GMT -4. The time now is 12:04.