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

[snappyHexMesh] proble of creating layers with snappyHexMesh

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

Like Tree1Likes
  • 1 Post By mwaqas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2015, 13:04
Default proble of creating layers with snappyHexMesh
  #1
Member
 
Zhiyi Li
Join Date: Mar 2015
Location: Germany
Posts: 43
Rep Power: 10
comingdaytime is on a distinguished road
Dear All,

I pretty new with snappyHexMesh. I just finish the central part refinement of the cyclone, which is attached here.

But does anyone know how should I add inflation layers to it?
I used this in snappyHexMeshDIct, but it is not working:

addLayers true;
......

// Settings for the layer addition.
addLayersControls
{
// 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
layers
{
cyclone.stl_walls
{
nSurfaceLayers 3;
}
}

// Expansion factor for layer mesh
expansionRatio 1.1;

// 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.5;

// 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.
minThickness 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;

// At non-patched sides allow mesh to slip if extrusion direction makes
// angle larger than slipFeatureAngle.
slipFeatureAngle 30;

// 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 17x! 90 degrees corresponds to 130 in 17x.
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;
}



Thank you
Best Regards

Litchy
Attached Images
File Type: jpg cyclone.jpg (65.9 KB, 99 views)
comingdaytime is offline   Reply With Quote

Old   June 18, 2015, 08:43
Default
  #2
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hello,

inflation layers are boundary layers, right? What is the error message you get?

Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   June 18, 2015, 10:00
Default
  #3
Member
 
Zhiyi Li
Join Date: Mar 2015
Location: Germany
Posts: 43
Rep Power: 10
comingdaytime is on a distinguished road
Quote:
Originally Posted by KateEisenhower View Post
Hello,

inflation layers are boundary layers, right? What is the error message you get?

Best regards,

Kate
Hallo, Kate,

Yes, inflation layer is boundary layer. There is no error message, simply no inflation layer created, just like the step 2 (snapping).

Right now I get the inflation layers somehow, I guess I was not setting the inflation part correctly, so It did not recognize it.

Thank you for your reply

Best Rrgards

Litchy
comingdaytime is offline   Reply With Quote

Old   May 24, 2018, 07:18
Default
  #4
Senior Member
 
Muhammad Waqas
Join Date: Jul 2014
Location: Germany
Posts: 122
Rep Power: 11
mwaqas is on a distinguished road
Send a message via Skype™ to mwaqas
Hi Litchy,


I know, it is an old thread but may be useful for someone else.

I think, the problem with you patch name


layers
{
cyclone.stl_walls
{
nSurfaceLayers 3;
}
}




"cyclone.stl_walls", it should be you patch name, instead of .stl file name


Regards
nepomnyi likes this.
mwaqas is offline   Reply With Quote

Reply

Tags
cyclone, inflation layer, snappyhexmesh

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[CAD formats] Creating waterproof STL using snappyHexMesh or salome Tobi OpenFOAM Meshing & Mesh Conversion 58 May 13, 2020 07:01
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 05:17
[snappyHexMesh] Triangular elements in boundary layers generated by snappyHexMesh mike.franky OpenFOAM Meshing & Mesh Conversion 0 June 3, 2018 10:46
mapFields Error with snappyHexMesh Source Added Layers sherif35 OpenFOAM Pre-Processing 0 September 29, 2014 18:01
[snappyHexMesh] 2D snappyHexMesh with layers grjmell OpenFOAM Meshing & Mesh Conversion 2 May 27, 2013 13:00


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