CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion > OpenFOAM Native Meshers: snappyHexMesh and Others

keyword nGrow undefined in "...snappyHexMeshDict.addLayersControls"

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   April 11, 2013, 09:36
Default keyword nGrow undefined in "...snappyHexMeshDict.addLayersControls"
New Member
rama13's Avatar
Damiano Natali
Join Date: Mar 2013
Location: Genova, Italy
Posts: 17
Rep Power: 6
rama13 is on a distinguished road
Hi all OpenFOAMers,

I'm using snappyHexMesh (OF v.2.2).
Unfortunately the process breaks down with the following error:

keyword nGrow is undefined in dictionary "/home/damiano/openfoamcourse/spillway/system/snappyHexMeshDict.addLayersControls"

file: /home/damiano/openfoamcourse/spillway/system/snappyHexMeshDict.addLayersControls from line 201 to line 271.

    From function dictionary::lookupEntry(const word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 402.

FOAM exiting
even if I specify keyword nGrow in my snappyHexMeshDict:
// Settings for the layer addition.
    // Are the thickness parameters below relative to the undistorted
    // size of the refined cell outside layer (true) or absolute sizes (false).
    relativeSizes true;

    // Per final patch (so not geometry!) the layer information
            nSurfaceLayers 2;

    // Expansion factor for layer mesh
    expansionRatio 1.3; //1.0;

    // Wanted thickness of final added cell layer. If multiple layers
    // is the thickness of the layer furthest away from the wall.
    // Relative to undistorted size of cell outside layer.
    // is the thickness of the layer furthest away from the wall.
    // See relativeSizes parameter.
    finalLayerThickness 0.7; //0.3;

    // Minimum thickness of cell layer. If for any reason layer
    // cannot be above minThickness do not add layer.
    // Relative to undistorted size of cell outside layer.
    // See relativeSizes parameter.
    minThickness 0.25 //0.1;

    // If points get not extruded do nGrow layers of connected faces that are
    // also not grown. This helps convergence of the layer addition process
    // close to features.
    // Note: changed(corrected) w.r.t 17x! (didn't do anything in 17x)
    nGrow 1;

    // Advanced settings

    // When not to extrude surface. 0 is flat surface, 90 is when two faces
    // are perpendicular
    featureAngle 60;

    // Maximum number of snapping relaxation iterations. Should stop
    // before upon reaching a correct mesh.
    nRelaxIter 5;

    // Number of smoothing iterations of surface normals
    nSmoothSurfaceNormals 1;

    // Number of smoothing iterations of interior mesh movement direction
    nSmoothNormals 3;

    // Smooth layer thickness over surface patches
    nSmoothThickness 10;

    // Stop layer growth on highly warped cells
    maxFaceThicknessRatio 0.5;

    // Reduce layer growth where ratio thickness to medial
    // distance is large
    maxThicknessToMedialRatio 0.3;

    // Angle used to pick up medial axis points
    // Note: changed(corrected) w.r.t 16x! 90 degrees corresponds to 130 in 16x.
    minMedianAxisAngle 90;

    // Create buffer region for new layer terminations
    nBufferCellsNoExtrude 0;

    // Overall max number of layer addition iterations. The mesher will exit
    // if it reaches this number of iterations; possibly with an illegal
    // mesh.
    nLayerIter 50;
Please find the whole snappyHexMeshDict in attachment.
Any ideas?!

Thanks for your attention,
Attached Files
File Type: txt snappyHexMeshDict.txt (10.1 KB, 9 views)

Last edited by rama13; April 11, 2013 at 09:50. Reason: upoladed attachment
rama13 is offline   Reply With Quote

Old   April 15, 2013, 08:26
New Member
Håkon Bartnes Line
Join Date: Mar 2013
Posts: 27
Rep Power: 6
hakonbar is on a distinguished road
Errors like this are usually due to there being brackets out of place in the dictionary. In this case there seems to be one on line 54 that shouldn't be there. Try removing it, and run snappyHexMesh again.
hakonbar is offline   Reply With Quote

Old   April 16, 2013, 10:06
New Member
rama13's Avatar
Damiano Natali
Join Date: Mar 2013
Location: Genova, Italy
Posts: 17
Rep Power: 6
rama13 is on a distinguished road
Hi Håkon

first of all I would like to thank you.
Then I was able to solve the problem by deleting the file and modifying another one from probably you were right, it was just a matter of misplaced brackets or smth like that!

All the bests
rama13 is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 10 May 1, 2014 16:26
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 13:38
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 01:34

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