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

[snappyHexMesh] cannot find MRF cellZone

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By linnemann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 1, 2021, 21:55
Default cannot find MRF cellZone
  #1
Member
 
Muhammad Ahyar
Join Date: Mar 2020
Posts: 30
Rep Power: 6
Ahyar is on a distinguished road
hello i'm trying to build a simulation with MRF on it. but when i tried to run the solution command, i've got this error



on the other hand, i've declared the cellZone on my snappyHexMeshDict
Code:
/*--------------------------------*- 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       dictionary;
    object      snappyHexMeshDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

castellatedMesh true;
snap            true;
addLayers       false;

geometry
{
    inlet.stl
    {
        type triSurfaceMesh;
        name inlet;
    }
    tank.stl
    {
        type triSurfaceMesh;
        name tank;
    }
    impeller 
    {
        type triSurfaceMesh;
        file "impeller.stl";
    }
    MRF 
    {
        type searchableCylinder;
        point1 (0.0 0.0 -0.1);
        point2 (0.0 0.0 0.9);
        radius 0.4;
    }
}


castellatedMeshControls
{

    maxLocalCells 100000;

    maxGlobalCells 2000000;

    minRefinementCells 0;

    nCellsBetweenLevels 2;

    maxLoadUnbalance 0.10;

    features
    (
        {
            file "inlet.eMesh";
            level 0;
        }

        {
            file "tank.eMesh";
            level 0;
        }
        {
            file "impeller.eMesh";
            level 0;
        }

    );

    resolveFeatureAngle 30;

    refinementSurfaces
    {
        inlet
        {
            level (0 0);
        }
        tank
        {
            level (0 0);
        }
        impeller
        {
            level (0 0);
        }
        MRF 
        {
            level (1 1);
            cellZones cellMRFzone;
            faceZones faceMRFzone;
            cellZoneInside inside;
        }

    }

    refinementRegions
    {
        MRF
        {
            mode inside;
            levels ((1E15 1));
        }
        
    }

    locationInMesh (0.0 0.0 0.3); // Inside point

    allowFreeStandingZoneFaces true;
}

// Settings for the snapping.
snapControls
{

    nSmoothPatch 3;

    tolerance 1.0;

    nSolveIter 300;

    nRelaxIter 10;

    nFeatureSnapIter 10;

    implicitFeatureSnap true;

    explicitFeatureSnap false;

    multiRegionFeatureSnap true;
}

// Settings for the layer addition.
addLayersControls
{

    relativeSizes true;

    layers
    {
    }

    expansionRatio 1.0;

    finalLayerThickness 0.3;

    minThickness 0.25;

    nGrow 0;

    featureAngle 30;

    nRelaxIter 5;

    nSmoothSurfaceNormals 1;

    nSmoothNormals 3;

    nSmoothThickness 10;

    maxFaceThicknessRatio 0.5;

    maxThicknessToMedialRatio 0.3;

    minMedianAxisAngle 90;

    nBufferCellsNoExtrude 0;

    nLayerIter 50;

    nRelaxedIter 20;
}

meshQualityControls
{
    #include "meshQualityDict"

    relaxed
    {
        maxNonOrtho 75;
    }
}

writeFlags
(
);

mergeTolerance 1E-6;


// ************************************************************************* //
and here's the MRFProperties if it matters

Code:
/*--------------------------------*- 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       dictionary;
    location    "constant";
    object      MRFProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

MRFImpeller
{
    cellZone    cellMRFzone;
    active      yes;

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

    origin    (0.0 0.0 0.0);
    axis      (0 1 0);
    omega     constant 12.56; // ~120 RPM
}

// ************************************************************************* //
what should i do?
thanks in advance
Attached Images
File Type: png tanya_openfoam_2.png (10.4 KB, 127 views)
Ahyar is offline   Reply With Quote

Old   November 2, 2021, 02:58
Default
  #2
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi


Code:
MRF 
{
     level (1 1);
     cellZones cellMRFzone;
     faceZones faceMRFzone;
     cellZoneInside inside;
}
Should be

Code:
MRF 
{
     level (1 1);
     cellZone cellMRFzone;
     faceZone faceMRFzone;
     cellZoneInside inside;
}
You can open the case in Paraview after meshing choose to select "Read zones" go to filter "Extract block" and choose the cellzone. That way you can inspect it has been created correctly. checkMesh command will also show if the cellZone has been created.




Attached Images
File Type: png 2021-11-02 07_54_12-Window.png (8.4 KB, 25 views)
Ahyar likes this.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   November 2, 2021, 03:28
Default
  #3
Member
 
Muhammad Ahyar
Join Date: Mar 2020
Posts: 30
Rep Power: 6
Ahyar is on a distinguished road
Quote:
Originally Posted by linnemann View Post
Hi


Code:
MRF 
{
     level (1 1);
     cellZones cellMRFzone;
     faceZones faceMRFzone;
     cellZoneInside inside;
}
Should be

Code:
MRF 
{
     level (1 1);
     cellZone cellMRFzone;
     faceZone faceMRFzone;
     cellZoneInside inside;
}
You can open the case in Paraview after meshing choose to select "Read zones" go to filter "Extract block" and choose the cellzone. That way you can inspect it has been created correctly. checkMesh command will also show if the cellZone has been created.




thank you so much, it really works
Ahyar 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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[swak4Foam] swak4Foam compilation can't find -lOpenFOAM BobR OpenFOAM Community Contributions 4 August 10, 2015 15:49
[foam-extend.org] Installing foam-extend 3.1 on Ubuntu 14.04 stephie OpenFOAM Installation 16 April 23, 2015 17:18
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
Problem Building OF on Centos cluster (no admin rights) CKH OpenFOAM Installation 5 November 13, 2011 07:32


All times are GMT -4. The time now is 07:21.