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

MRFZones with two rotating zones

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By amgode
  • 1 Post By lukasf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2010, 00:31
Default MRFZones with two rotating zones
  #1
New Member
 
Benjamin
Join Date: Jan 2010
Posts: 9
Rep Power: 16
chemeng is on a distinguished road
Hello everybody! I have a mixer tank with two impellers in the same axis (0 1 0) at a different high. The solver only recognizes the first rotating zone. My MRFZones file is:
1
(
IMPELLER1ST
{
// Fixed patches (by default they 'move' with the MRF zone)
nonRotatingPatches (SLIPWALL BAFFLE WALL CYCLIC);

origin origin [0 1 0 0 0 0 0] (0 0 0);
axis axis [0 0 0 0 0 0 0] (0 1 0);
omega omega [0 0 -1 0 0 0 0] 10.5;
}
)
2
(
IMPELLER2ND
{
// Fixed patches (by default they 'move' with the MRF zone)
nonRotatingPatches (SLIPWALL BAFFLE WALL CYCLIC);

origin origin [0 1 0 0 0 0 0] (0 0 0);
axis axis [0 0 0 0 0 0 0] (0 1 0);
omega omega [0 0 -1 0 0 0 0] 10.5;
}
)

I have tried to put in the IMPELLER2ND axis (0 -1 0) but it doesnt work. I have tried also a lot of differents forms but no one work.
I hope your suggestions. Thanks in advance!
chemeng is offline   Reply With Quote

Old   March 11, 2010, 01:57
Default
  #2
New Member
 
amgode's Avatar
 
Amol
Join Date: Jul 2009
Location: Limerick, Ireland
Posts: 24
Blog Entries: 2
Rep Power: 17
amgode is on a distinguished road
Could you please post the error also. That would be most helpful...

Try this...constant/MRFZones file:

2
(
IMPELLER1ST
{
// Fixed patches (by default they 'move' with the MRF zone)
nonRotatingPatches (SLIPWALL BAFFLE WALL CYCLIC);

origin origin [0 1 0 0 0 0 0] (0 0 0);
axis axis [0 0 0 0 0 0 0] (0 1 0);
omega omega [0 0 -1 0 0 0 0] 10.5;
}
IMPELLER2ND
{
// Fixed patches (by default they 'move' with the MRF zone)
nonRotatingPatches (SLIPWALL BAFFLE WALL CYCLIC);

origin origin [0 1 0 0 0 0 0] (0 0 0);
axis axis [0 0 0 0 0 0 0] (0 1 0);
omega omega [0 0 -1 0 0 0 0] 10.5;
}
)

Make sure that the the MRF zones are included in the constant/polyMesh/cellZones

Hope this helps !

Regards,

-- Amol
gozo likes this.
amgode is offline   Reply With Quote

Old   March 11, 2010, 02:10
Default
  #3
New Member
 
Benjamin
Join Date: Jan 2010
Posts: 9
Rep Power: 16
chemeng is on a distinguished road
I dont have any error, It just when I see the results only in the bottom part of the tank the flow field is rotating. In the upper part is static. I have tried the configuration that you have written and it doesnt work.
Any other possibility?
chemeng is offline   Reply With Quote

Old   March 11, 2010, 02:15
Default
  #4
New Member
 
Benjamin
Join Date: Jan 2010
Posts: 9
Rep Power: 16
chemeng is on a distinguished road
Ok, problem solved. you were right. I have just try again with your configuration and all is ok, sorry. Thank you very much!!
chemeng is offline   Reply With Quote

Old   March 30, 2018, 12:09
Default Two propellers simulation
  #5
New Member
 
Join Date: Jun 2017
Posts: 15
Rep Power: 9
Simone81 is on a distinguished road
Hi,

I am running two propellers simulation, but only one propeller rotating! I am using pimpleDyMFoam (from propeller tutorial). This is my dynamicMeshDict file:

Code:
dynamicFvMesh   solidBodyMotionFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

solidBodyMotionFvMeshCoeffs
{
    cellZone        innerCylinderSmall1;

    solidBodyMotionFunction  rotatingMotion;
    rotatingMotionCoeffs
    {
        origin      (0 0 0);
        axis        (0 1 0);
        omega       50; // rad/s
    }

    cellZone        innerCylinderSmall2;

    solidBodyMotionFunction  rotatingMotion;
    rotatingMotionCoeffs
    {
        origin      (0.5 0 0);
        axis        (0 1 0);
        omega       50; // rad/s
    }
}
In the picture you can see only the second propeller is rotating. Any idea about what I am doing wrong?
Thank you !
Simone
Attached Images
File Type: jpg Screenshot from 2018-03-30 09-06-00.jpg (99.4 KB, 114 views)
Simone81 is offline   Reply With Quote

Old   April 3, 2018, 06:32
Default
  #6
New Member
 
amgode's Avatar
 
Amol
Join Date: Jul 2009
Location: Limerick, Ireland
Posts: 24
Blog Entries: 2
Rep Power: 17
amgode is on a distinguished road
Quote:
Originally Posted by Simone81 View Post
Hi,

I am running two propellers simulation, but only one propeller rotating! I am using pimpleDyMFoam (from propeller tutorial). This is my dynamicMeshDict file:

Code:
dynamicFvMesh   solidBodyMotionFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

solidBodyMotionFvMeshCoeffs
{
    cellZone        innerCylinderSmall1;

    solidBodyMotionFunction  rotatingMotion;
    rotatingMotionCoeffs
    {
        origin      (0 0 0);
        axis        (0 1 0);
        omega       50; // rad/s
    }

    cellZone        innerCylinderSmall2;

    solidBodyMotionFunction  rotatingMotion;
    rotatingMotionCoeffs
    {
        origin      (0.5 0 0);
        axis        (0 1 0);
        omega       50; // rad/s
    }
}
In the picture you can see only the second propeller is rotating. Any idea about what I am doing wrong?
Thank you !
Simone
In the dynamicMeshDict file above, it is not mentioned if the number of regions is one / two, I think that's what causing the problem.

Please check what input needs to be added to the dict file to tell the solver that there are two rotating zones present and not one.
__________________
Amol Gode
amgode is offline   Reply With Quote

Old   August 4, 2018, 15:41
Default help
  #7
New Member
 
zeshan
Join Date: Apr 2016
Posts: 24
Rep Power: 10
Thecomebackkid is on a distinguished road
Quote:
Originally Posted by amgode View Post
In the dynamicMeshDict file above, it is not mentioned if the number of regions is one / two, I think that's what causing the problem.

Please check what input needs to be added to the dict file to tell the solver that there are two rotating zones present and not one.


I need the same help, if anyone can shed some light on this
Thecomebackkid is offline   Reply With Quote

Old   October 26, 2018, 05:37
Default
  #8
Member
 
Andreas P.
Join Date: May 2017
Posts: 41
Rep Power: 9
AndreasPe is on a distinguished road
Quote:
Originally Posted by Thecomebackkid View Post
[/U]
I need the same help, if anyone can shed some light on this
Hi,

did you solve the problem? Which OpenFOAM version are you using? I also want to use multiple rotating zones but i can't find any reference on how to do it in OpenFOAM 5/6. In Foam-Extend-4.0 it is very easy with the turboFVMesh.

Thank you!

Andreas
AndreasPe is offline   Reply With Quote

Old   October 26, 2018, 08:42
Default
  #9
New Member
 
zeshan
Join Date: Apr 2016
Posts: 24
Rep Power: 10
Thecomebackkid is on a distinguished road
Quote:
Originally Posted by AndreasPe View Post
Hi,

did you solve the problem? Which OpenFOAM version are you using? I also want to use multiple rotating zones but i can't find any reference on how to do it in OpenFOAM 5/6. In Foam-Extend-4.0 it is very easy with the turboFVMesh.

Thank you!

Andreas
I think the way is to reference domain in separate patches but not sure since my simulation is not time marching properly yet. I have moving MRF's when running moveDynamicMesh however

im using v5 - I think - blue cfd 2017.
Thecomebackkid is offline   Reply With Quote

Old   July 9, 2019, 09:31
Default
  #10
New Member
 
Mohamad
Join Date: Apr 2017
Location: Oxford, UK
Posts: 10
Rep Power: 9
mhasif02 is on a distinguished road
Quote:
Originally Posted by Simone81 View Post
Hi,

I am running two propellers simulation, but only one propeller rotating! I am using pimpleDyMFoam (from propeller tutorial). This is my dynamicMeshDict file:

Code:
dynamicFvMesh   solidBodyMotionFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

solidBodyMotionFvMeshCoeffs
{
    cellZone        innerCylinderSmall1;

    solidBodyMotionFunction  rotatingMotion;
    rotatingMotionCoeffs
    {
        origin      (0 0 0);
        axis        (0 1 0);
        omega       50; // rad/s
    }

    cellZone        innerCylinderSmall2;

    solidBodyMotionFunction  rotatingMotion;
    rotatingMotionCoeffs
    {
        origin      (0.5 0 0);
        axis        (0 1 0);
        omega       50; // rad/s
    }
}
In the picture you can see only the second propeller is rotating. Any idea about what I am doing wrong?
Thank you !
Simone



Look into the multiMotion solver.

Mohamad
mhasif02 is offline   Reply With Quote

Old   February 7, 2020, 06:36
Default
  #11
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8
lukasf is on a distinguished road
I can recommend this link: https://openfoamwiki.net/index.php/P...dyMotionFvMesh


Let me share a working example of a dynamicMeshDict with 2 rotating zones:

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh   multiSolidBodyMotionFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );


//rotating cellZone and attributes

multiSolidBodyMotionFvMeshCoeffs
{


    rotating_r2 // this is a cellzone which has been created before the simulation starts
        {
            solidBodyMotionFunction  rotatingMotion;
            rotatingMotionCoeffs
            {
                origin      (0 -0.1 0); //origin (x y z) of rotation
                axis        (0 1 0); // axis of rotation (x y z)
                omega       6;  // rad/s
            }
        }
    
    rotating_r0 // this is a cellzone which has been created before the simulation starts
        {
            solidBodyMotionFunction  rotatingMotion;
            rotatingMotionCoeffs
            {
                origin      (1.38 -0.1 0); //origin (x y z) of rotation
                axis        (0 1 0); // axis of rotation (x y z)
                omega       -6; // rad/s
            }

        }

}


// ************************************************************************* //
raj kumar saini likes this.
lukasf is offline   Reply With Quote

Old   March 2, 2022, 12:41
Default
  #12
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8
lukasf is on a distinguished road
I published CFD results using OpenFOAM and the moving mesh approach here:


https://asmedigitalcollection.asme.o...12A002/1120033


It worked well to predict the turbulent flow field downstream of active turbulence generators. In the paper we validated our CFD results with experimental data.





Quote:
Originally Posted by lukasf View Post
I can recommend this link: https://openfoamwiki.net/index.php/P...dyMotionFvMesh


Let me share a working example of a dynamicMeshDict with 2 rotating zones:

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh   multiSolidBodyMotionFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );


//rotating cellZone and attributes

multiSolidBodyMotionFvMeshCoeffs
{


    rotating_r2 // this is a cellzone which has been created before the simulation starts
        {
            solidBodyMotionFunction  rotatingMotion;
            rotatingMotionCoeffs
            {
                origin      (0 -0.1 0); //origin (x y z) of rotation
                axis        (0 1 0); // axis of rotation (x y z)
                omega       6;  // rad/s
            }
        }
    
    rotating_r0 // this is a cellzone which has been created before the simulation starts
        {
            solidBodyMotionFunction  rotatingMotion;
            rotatingMotionCoeffs
            {
                origin      (1.38 -0.1 0); //origin (x y z) of rotation
                axis        (0 1 0); // axis of rotation (x y z)
                omega       -6; // rad/s
            }

        }

}


// ************************************************************************* //
lukasf is offline   Reply With Quote

Old   November 27, 2023, 04:47
Default
  #13
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8
lukasf is on a distinguished road
The applications of these moving mesh settings was published in this journal paper (open-access).

https://asmedigitalcollection.asme.o...nd-1D-Hot-Wire
lukasf 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
question about governing equation in CFX using rotating/non rotating reference frame rystokes CFX 0 January 12, 2010 07:14
transient simulation of a rotating rectangle icesniffer CFX 1 August 8, 2009 08:25
IcoDyMFoam how to define more than one rotating regions naoko_oyama OpenFOAM Running, Solving & CFD 0 November 14, 2008 09:25
Difference b/t rotating wall and rotating domain? Juno Kim CFX 2 February 20, 2007 21:08
about mutiple rotating reference frame lingo FLUENT 0 December 12, 2002 05:13


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