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

[snappyHexMesh] Openfoam snappyhexmesh addLayersControls (can not generate boundary layer as defined)

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2016, 13:43
Default
  #21
Member
 
LVDH's Avatar
 
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 17
LVDH is on a distinguished road
Waiting for your mesh to finish seems to be boring:
With the blockMesh and the refinement of 7 at the cube you get cells in the region of 1mm there.
With your first cell layer height and the 55 layers with the 1.1 growth rate the surface layers will be larger than the surrounding normal cells. So your 55 layers are too much geometrically and for sure for shm.
__________________
www.MantiumCAE.com
LVDH is offline   Reply With Quote

Old   July 15, 2016, 14:10
Default
  #22
Member
 
LVDH's Avatar
 
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 17
LVDH is on a distinguished road
OK,

I changed this in the blockMeshDict:
Code:
hex (0 1 2 3 4 5 6 7) (45 30 30) simpleGrading (1 1 1)
and if I remember correctly this in the shmDict:
Code:
castellatedMeshControls
{
    // Resolve sharp angles
    resolveFeatureAngle 30;
...


addLayersControls
{

    relativeSizes true;
    firstLayerThickness 0.05;
    minThickness 0;
    featureAngle 330;
    slipFeatureAngle 330;
...
I used the implicit feature snap. This is not important. I first recommended because I did not know that you knew how to use the eMesh stuff. I now used it because I am lazy.

The picture attached shows 25 surface layers. They are around the edge. However they obviously do not look super nice. I do not think that you could repair this with shm. Ten layers should probably be the max.
Attached Images
File Type: jpg cubeSLs.jpg (168.9 KB, 165 views)
__________________
www.MantiumCAE.com
LVDH is offline   Reply With Quote

Old   July 18, 2016, 06:37
Default
  #23
New Member
 
Join Date: Nov 2015
Posts: 28
Rep Power: 11
jiaodanuma is on a distinguished road
Quote:
Originally Posted by LVDH View Post
OK,

I changed this in the blockMeshDict:
Code:
hex (0 1 2 3 4 5 6 7) (45 30 30) simpleGrading (1 1 1)
and if I remember correctly this in the shmDict:
Code:
castellatedMeshControls
{
    // Resolve sharp angles
    resolveFeatureAngle 30;
...


addLayersControls
{

    relativeSizes true;
    firstLayerThickness 0.05;
    minThickness 0;
    featureAngle 330;
    slipFeatureAngle 330;
...
I used the implicit feature snap. This is not important. I first recommended because I did not know that you knew how to use the eMesh stuff. I now used it because I am lazy.

The picture attached shows 25 surface layers. They are around the edge. However they obviously do not look super nice. I do not think that you could repair this with shm. Ten layers should probably be the max.
Yeah, it looks much better now. However, when I tried to re-implement the mesh generation to add 25 layers as the code you mentioned, the mesh was not the same with yours as shown in the picture. If possible, could you please upload the shmDict file you modified, which will be very helpful for me to compare with my current code and try to understand each utility. Thanks a lot!
Attached Images
File Type: png 25 layer.png (3.5 KB, 115 views)
jiaodanuma is offline   Reply With Quote

Old   July 18, 2016, 07:11
Default
  #24
Member
 
LVDH's Avatar
 
Andre Z
Join Date: Dec 2009
Posts: 75
Rep Power: 17
LVDH is on a distinguished road
25 layers work fine. I used OF 3.0.1.
I have attached the shmDict.
When you run the mesh you will notice new issues though. You will have to fine tune some other parameters in the shmDict. But at least you now get your layers.
Attached Files
File Type: txt snappyHexMeshDict.txt (11.8 KB, 113 views)
__________________
www.MantiumCAE.com
LVDH is offline   Reply With Quote

Old   July 18, 2016, 07:12
Default
  #25
New Member
 
Join Date: Nov 2015
Posts: 28
Rep Power: 11
jiaodanuma is on a distinguished road
Quote:
Originally Posted by LVDH View Post
25 layers work fine. I used OF 3.0.1.
I have attached the shmDict.
When you run the mesh you will notice new issues though. You will have to fine tune some other parameters in the shmDict. But at least you now get your layers.
Many many thanks for your help!
jiaodanuma is offline   Reply With Quote

Reply

Tags
boundary layer, openfoam, snappyhexmesh


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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
[snappyHexMesh] Openfoam snappyhexmesh addLayersControls - non uniform layer BakedAlmonds OpenFOAM Meshing & Mesh Conversion 1 July 19, 2016 15:39
[snappyHexMesh] Boundary layer in a pipe Clementhuon OpenFOAM Meshing & Mesh Conversion 6 March 12, 2012 13:41
errors Fahad Main CFD Forum 0 March 23, 2004 14:20


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