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

[snappyHexMesh] Usage of locationsInMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By GerhardHolzinger
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2019, 05:01
Exclamation Usage of locationsInMesh
  #1
New Member
 
mingzi zhang
Join Date: Jun 2019
Posts: 2
Rep Power: 0
mzhang is on a distinguished road
Hi, guys,
I am trying to solve an internal flow problem, and I wish to seperate the mesh for the flow channel into two regions with a surface to ease the post processing.

What I did is that I defined two points respectively located in the two regions with locationsInMesh, but snappyHexMesh returned with an error:

keyword locationInMesh is undefined in dictionary "/home/mzhang/openfoam6/pROJECTS/testlocationsinmesh/system/snappyHexMeshDict.castellatedMeshControls"

I wonder if any of you would please be able to identify where the problem is?

Thanks,
Mingzi

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

    castellatedMesh true;
    snap true;
    addLayers true;


    geometry
    {
        inlet.stl
        {
            type triSurfaceMesh;
            name inlet;
            appendRegionName false;
        }

        necksurface.stl
        {
            type triSurfaceMesh;
            name necksurface;
            appendRegionName false;
        }

        outlet1.stl
        {
            type triSurfaceMesh;
            name outlet1;
            appendRegionName false;
        }

        outlet2.stl
        {
            type triSurfaceMesh;
            name outlet2;
            appendRegionName false;
        }

        wall.stl
        {
            type triSurfaceMesh;
            name wall;
            appendRegionName false;
        }

    };

    castellatedMeshControls
    {
        features
        (
        
        {
            file "inlet_line.eMesh";
            levels ((0.0 0));
            refineFeatureEdgesOnly false;
        }

        
        {
            file "necksurface_line.eMesh";
            levels ((0.0 0));
            refineFeatureEdgesOnly false;
        }

        
        {
            file "outlet1_line.eMesh";
            levels ((0.0 0));
            refineFeatureEdgesOnly false;
        }

        
        {
            file "outlet2_line.eMesh";
            levels ((0.0 0));
            refineFeatureEdgesOnly false;
        }

        
        {
            file "wall_line.eMesh";
            levels ((0.0 0));
            refineFeatureEdgesOnly false;
        }

        );

        refinementSurfaces
        {
            inlet
            {
                level ( 2 4 );
            }

            necksurface
            {
                level ( 2 4 );
            }

            outlet1
            {
                level ( 2 4 );
            }

            outlet2
            {
                level ( 2 4 );
            }

            wall
            {
                level ( 4 5 );
            }

        }

        refinementRegions
        {
        }

        //locationInMesh (0.0527 0.0482 0.0415);
        locationsInMesh         
        (
            (( 0.0527 0.0482 0.0415 ) intraIA)
            (( 0.0564 0.0558 0.0386 ) intraPA)
        );


        maxLocalCells 10000000;
        maxGlobalCells 20000000;
        minRefinementCells 0;
        nCellsBetweenLevels 1;
        resolveFeatureAngle 80.0;
        allowFreeStandingZoneFaces true;
        planarAngle 30.0;
        maxLoadUnbalance 0.1;
    }

    snapControls
    {
        nSolveIter 30;
        nSmoothPatch 3;
        tolerance 1.0;
        nRelaxIter 5;
        nFeatureSnapIter 10;
        implicitFeatureSnap false;
        explicitFeatureSnap true;
        multiRegionFeatureSnap false;
    }

    addLayersControls
    {
        layers
        {
        }

        relativeSizes true;
        expansionRatio 1.0;
        finalLayerThickness 0.3;
        minThickness 0.25;
        nGrow 0;
        featureAngle 130.0;
        slipFeatureAngle 30.0;
        nRelaxIter 5;
        nSmoothSurfaceNormals 1;
        nSmoothNormals 3;
        nSmoothThickness 10;
        maxFaceThicknessRatio 0.5;
        maxThicknessToMedialRatio 0.3;
        minMedialAxisAngle 90;
        nBufferCellsNoExtrude 0;
        nLayerIter 50;
        nRelaxedIter 20;
        writeVTK false;
        noErrors false;
        layerRecovery 1;
        growZoneLayers false;
        projectGrownUp 0.0;
    }

    meshQualityControls
    {
        maxNonOrtho 65.0;
        maxBoundarySkewness 20;
        maxInternalSkewness 4;
        maxConcave 80.0;
        minFlatness 0.5;
        minVol 1.0E-21;
        minTetQuality 1.0E-15;
        minArea -1.0;
        minTwist 0.02;
        minDeterminant 0.001;
        minFaceWeight 0.05;
        minVolRatio 0.01;
        minTriangleTwist -1.0;
        nSmoothScale 4;
        errorReduction 0.75;
        relaxed
        {
            maxNonOrtho 75;
        }

    }

    debug 0;
    mergeTolerance 1.0;
    autoBlockMesh false;
mzhang is offline   Reply With Quote

Old   July 6, 2020, 10:01
Default
  #2
Member
 
Yann Guyot
Join Date: Feb 2019
Posts: 37
Rep Power: 7
YannGuyot is on a distinguished road
Hello,


Could you fix this problem?
YannGuyot is offline   Reply With Quote

Old   July 7, 2020, 03:53
Default
  #3
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
I think the keyword locationsInMesh in only available in the ESI releases of OpenFOAM, i.e. OpenFOAM-20.05 etc.

The foundation release, i.e. OpenFOAM-6 and others, does not support the locationsInMesh keyword.
omete and Kavi like this.
GerhardHolzinger is offline   Reply With Quote

Old   April 14, 2021, 11:44
Default
  #4
New Member
 
Greater Manchester
Join Date: Oct 2019
Posts: 1
Rep Power: 0
omete is on a distinguished road
Quote:
Originally Posted by GerhardHolzinger View Post
I think the keyword locationsInMesh in only available in the ESI releases of OpenFOAM, i.e. OpenFOAM-20.05 etc.

The foundation release, i.e. OpenFOAM-6 and others, does not support the locationsInMesh keyword.

-----
Is there a way to use ESI releases over Docker? I need to use locationsInMesh and hit the same problem. However, my docker provides OpenFOAM-6.

Thanks!
omete is offline   Reply With Quote

Old   April 14, 2021, 12:41
Default
  #5
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,070
Rep Power: 26
Yann will become famous soon enough
Quote:
Originally Posted by omete View Post
-----
Is there a way to use ESI releases over Docker? I need to use locationsInMesh and hit the same problem. However, my docker provides OpenFOAM-6.

Thanks!
You should find all the information you need on their website: https://www.openfoam.com/download/current-release
omete likes this.
Yann 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
[ANSYS Meshing] is my memory usage normal? Renold ANSYS Meshing & Geometry 2 April 9, 2019 14:09
New workstation for different usage scenarios - CPU and RAM natem Hardware 6 August 7, 2013 02:47
Boosting CPU usage earlybird FLUENT 2 November 2, 2012 10:32
BoF-Group: interFoam - documentation and usage unnikrsn OpenFOAM Running, Solving & CFD 0 November 12, 2011 22:39
OpenFOAM Solver/BC usage description murrayjc OpenFOAM 3 August 25, 2009 04:48


All times are GMT -4. The time now is 20:59.