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

[swak4Foam] MRF vs rotatingWallBC vs funkySetFields

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2014, 07:18
Default MRF vs rotatingWallBC vs funkySetFields
  #1
New Member
 
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16
Nolwenn is on a distinguished road
Hello everybody,

I try to simulate a rotor and i am very surprised by the results I obtain.
The rotor is rotating at 1.125 rad/s in a flow of 2.25m/s.

I run one case using MRF, here is the fvOptions file

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

MRF1
{
    type            MRFSource;
    active          true;
    selectionMode   cellZone;
    cellZone         rotationCellZone;

    MRFSourceCoeffs
    {
        origin      (0 0 0);
        axis        (1 0 0);
        omega       -1.125;  //rad/s
    }
}
I run one case using rotatingWallBC, U is :

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#include        "include/initialConditions"

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

internalField   uniform $flowVelocity;


boundaryField
{
    //- Set patchGroups for constraint patches
   //- Set patchGroups for constraint patches
    #include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
    #include "include/lowerAndUpperPatches"
    #include "include/fixedInlet"

    outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           $internalField;
    }

   "rot.*"
    { 
    type rotatingWallVelocity;
    origin (0 0 0);
    axis (1 0 0);
    omega -1.125;  // rad/s
    value uniform (0 0 0);
    }

     fixeGroup
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

}
And one with funkySetField. funkySetBoundaryDict :
Code:
FoamFile 
{ 
    version     2.0; 
    format      ascii; 
    class       dictionary; 
    object      funkySetBoundaryDict; 
} 
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 
 
 
velocities1 { 
    field U; 
    expressions 
    ( 
        { 
            target value; 
            patchName rot_rotor; 
            expression "-1.125*vector(0,-pos().z,pos().y)"; 
        } 
    ); 
} 
velocities2 { 
    field U; 
    expressions 
    ( 
        { 
            target value; 
            patchName rot_blade; 
            expression "-1.125*vector(0,-pos().z,pos().y)"; 
        } 
    ); 
}
For the 3 cases the BCs on the rotor are correct (see solidBC.jpg)
Mx moment is very small for rotatingWallBC and MRF
Mx moment is very high for funkySet

The velocity around the blades is very different from one case to the other (see rotatingWallBC.jpg, MRFrame.jpg and funkyBC.jpg).
By plotting streams around the rotor I see almost no rotation of the fluid with MRF and rotatingWallBC, and very important rotation with funkyBC.

If someone can help me to understand why my results are so different, it would be very appreciated !

Nolwenn
Attached Images
File Type: jpg solidBC.jpg (19.6 KB, 34 views)
File Type: jpg rotatingWallBC.jpg (22.8 KB, 37 views)
File Type: jpg MRFrame.jpg (23.4 KB, 32 views)
File Type: jpg funkyBC.jpg (25.4 KB, 36 views)
Nolwenn is offline   Reply With Quote

Old   September 7, 2014, 07:35
Default
  #2
Member
 
Julian Langowski
Join Date: May 2011
Location: Bremen, Germany
Posts: 91
Rep Power: 14
Ruli is on a distinguished road
Hi Nolwenn,

just a guess: You are comparing absolute and relative velocity fields.

Search the Urel function on this forum and convert absolute intro relative velocity fields an than compare again.

Best regards
Julian
__________________
πάντα ῥεῖ - Heraclitus
Ruli is offline   Reply With Quote

Old   September 7, 2014, 09:27
Default
  #3
New Member
 
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16
Nolwenn is on a distinguished road
Hello Julian,

Thanks for your answer, I try to calculate Urel (not working for the moment ...) and I will check this.

Nolwenn
Nolwenn is offline   Reply With Quote

Old   September 7, 2014, 13:31
Default
  #4
New Member
 
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16
Nolwenn is on a distinguished road
Not better ...
Considering Urel or U, the velocity field obtain with MRF is totally different from the one obtain with funkyBC
Attached Images
File Type: jpg MRFUrel.jpg (31.2 KB, 25 views)
File Type: jpg MRFUrelZ.jpg (28.8 KB, 18 views)
Nolwenn is offline   Reply With Quote

Old   September 8, 2014, 14:35
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
The sign for omega is correct?

Anyway: why would you not want to use the rotational-BC? It is built for this purpose.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   September 8, 2014, 15:17
Default
  #6
New Member
 
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16
Nolwenn is on a distinguished road
Hello Bernhard,

Thank you for your answer, the sign of omega is correct (even worst results if I change the sign !).
I tried to use rotational BC (rotatingWallBC) but I am very surprised by the results, the moment around the axis is a lot of smaller than what I expect and the flow around the blades don't seem to rotate (on the picture only the front part and the blades have a rotating BC, the cylinder and the back are fixed).

Nolwenn
Attached Images
File Type: jpg rotatingWStreams.jpg (44.8 KB, 31 views)
Nolwenn is offline   Reply With Quote

Old   September 9, 2014, 10:44
Default
  #7
Member
 
Join Date: Jun 2012
Posts: 76
Rep Power: 13
maHein is on a distinguished road
When I do MRF-Simulations, I only use fixedValue boundary conditions since the MRF-Zone already handles the rotational velocity of the walls within the rotating zone (except for those defined as nonRotatingPatches).
maHein is offline   Reply With Quote

Old   September 9, 2014, 14:33
Default
  #8
New Member
 
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16
Nolwenn is on a distinguished road
Hello maHein,

I also use fixedValue boundary conditions when I run MRF simulation. RotatingWallBC is used in another case to compare. But in both cases the resultant moment is to small.
Nolwenn is offline   Reply With Quote

Reply

Tags
funkysetfields, mrf, rotatingwallbc


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
MRF and topoSet problem- Rotating volume doesn't rotate andreas0209@hotmail.com OpenFOAM 1 April 4, 2021 13:35
Possibly serious MRF implementation issue Ali Blues OpenFOAM Bugs 1 December 16, 2015 06:04
MRF setup andreas0209@hotmail.com OpenFOAM Pre-Processing 1 August 6, 2015 09:36
Particle tracking in and after MRF andreas0209@hotmail.com OpenFOAM Running, Solving & CFD 1 July 6, 2015 08:36
Should an empty MRF zone really induce this much cross-flow? sylvester OpenFOAM 5 November 18, 2010 03:48


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