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

[snappyHexMesh] Multi Layers SnappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2019, 09:26
Default Multi Layers SnappyHexMesh
  #1
New Member
 
Edoardo
Join Date: Mar 2019
Posts: 15
Rep Power: 7
cutmountain is on a distinguished road
Good Morning everybody,



I am Edoardo and I am currently working on the Ahmed Body. Right now I am trying to give different setting for the layers in snappy but I do not know why nothing happened; it seems like the local parameters that I gave to in the Dict were not red.



In particular I want to give different layer specification ( such as n of layers, expansion ratio and the final layer thickness) to different patches. I hope it is possible to do that in snappy.



This is what I wrote in my snappyDict for the layers:



addLayersControls
{
// Are the thickness parameters below relative to the undistorted
// size of the refined cell outside layer (true) or absolute sizes (false).
relativeSizes true;

//GLOBAL PARAMETERS

// Expansion factor for layer mesh
expansionRatio 1.3;

// 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.
// See relativeSizes parameter.
finalLayerThickness 0.53;

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

// Per final patch (so not geometry!) the layer information
layers
{
"Ahmed_patch0|Ahmed_patch2|Ahmed_patch4|Ahmed_patc h6|Ahmed_patch8|Ahmed_patch9|"
{
//LOCAL PARAMETERS
nSurfaceLayers 5;
expansionRatio 1.3;
finalLayerThickness 0.53;

}


"groundWall"
{
//LOCAL PARAMETERS
nSurfaceLayers 5;
expansionRatio 1.3;
firstLayerThickness 0.09;
}


}



Thanks in advance,


Edoardo.
cutmountain is offline   Reply With Quote

Old   March 28, 2019, 11:03
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
As a workaround, you can try running snappy more than once, each time with a different snappyHexMeshDict.
LuckyTran is offline   Reply With Quote

Reply

Tags
layer addition, openfoam, snappy hex mesh


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
[snappyHexMesh] Triangular elements in boundary layers generated by snappyHexMesh mike.franky OpenFOAM Meshing & Mesh Conversion 0 June 3, 2018 10:46
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 08:05
[snappyHexMesh] 2D snappyHexMesh with layers grjmell OpenFOAM Meshing & Mesh Conversion 2 May 27, 2013 13:00
[snappyHexMesh] Adding layers goes wrong with SnappyHexMesh Elise OpenFOAM Meshing & Mesh Conversion 1 April 22, 2013 03:32
[snappyHexMesh] SnappyHexMesh doesn't succeed in adding several layers eti0123456789 OpenFOAM Meshing & Mesh Conversion 5 April 9, 2013 03:36


All times are GMT -4. The time now is 03:54.