CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   MRF setup (https://www.cfd-online.com/Forums/openfoam-pre-processing/148992-mrf-setup.html)

andreas0209@hotmail.com February 23, 2015 11:34

MRF setup
 
Hi Folks,

I have a question regarding dynamic parts. I try to simulate the effect of different rotation speeds on particle laden flows. For that I want to rotate a goeometry (here a Rotor called Dynamic) and I think that a MRF is the best (?) for these kinds of problems.

Now I have included the MRF setting in snappyHexMesh

Code:

refinementSurfaces
    {
        Dynamic        //3
        {
            // Surface-wise min and max refinement level
            level (5 6);
        }
    Nacelle_simple_lang    //4
        {
            // Surface-wise min and max refinement level
            level (5 6);
        }
    refinementCylinder
    {
        level (2 2);
        faceZone MRF;
        cellZone MRF;
        cellZoneInside inside;
    }

in /system/fvOptions

Code:

MRF
{
    type                  MRFSource;
    active                true;
    selectionMode    cellZone;
    cellZone            MRF;

    MRFSourceCoeffs
    {
        origin    (0 0 0);
        axis      (1 0 0);
        omega    100;
    }
}

and also in /system/topoSetDict

Code:

actions
(
    {
        name    MRF;
        type    cellZoneSet;
        action  new;
        source  zoneToCell;
        sourceInfo
        {
            name MRF;
        }
    }
);

But I have no idea if all setting are correct or not.

I also get this message

Code:

--> FOAM FATAL ERROR:
Cannot find cellZone refinementCylinder
Valid cellZones are 1(MRF)

    From function option::setCellIds()
    in file fvOptions/fvOption.C at line 158.

FOAM exiting

Where is the mistake?

One other point is the following:
Are the origin coordinates (here in red) the coordinates relative to your rotating frame?

MRFSourceCoeffs
{
origin (0 0 0);

All help is welcome.

Andreas

Minisasi August 6, 2015 09:36

Hello,
Maybe you have already solved your problem, anyway.... I think the problem is that your
''refinementCylinder'' is not a defined .stl geometry file. That's why it cannot be found. Try to define it among your geometries and maybe it will work.

I am having some trouble creating MRF and baffles through SnappyHexMesh as well. I am not really an expert,so if you have solved your problem could you post your SHMDict file please?
Thx

Cheers!


All times are GMT -4. The time now is 06:26.