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

[snappyHexMesh] Layers in SHM and refineWallLayer

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2012, 06:21
Default Layers in SHM and refineWallLayer
  #1
Senior Member
 
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17
danvica is on a distinguished road
Hi,
This argument has been discussed several times but I haven't got a clear idea so far.

What is the difference between the addlayer step in SHM and the refineWallLayer utility ?

I've never been able to add layers in complex geometries with SHM but with rWL is simple. Unluckily the meshes obtained with the utility have usually severe non-orto and skewness problems.

I already tried following the advices in this threads:
http://www.cfd-online.com/Forums/ope...bent-tube.html

http://www.cfd-online.com/Forums/ope...al-layers.html

http://www.cfd-online.com/Forums/ope...tlet-pipe.html

But I couldn't get a clear general procedure... I don't think it's a problem related to my geometries, more probably to my brain

Has someone some hint ? Thanks.
__________________
Daniele Vicario

blueCFD2.1 - Windows 7
danvica is offline   Reply With Quote

Old   April 30, 2012, 05:02
Default
  #2
Senior Member
 
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17
danvica is on a distinguished road
I haven't completely solved my problem yet, but I found that is more simple, with SHM, to add one layer at time.

In the enclosed picture you can see 7 layers added to a simple pipe running SHM (guess...) 7 times.

finalLayerThickness is 0.9 in this case.

I don't know why but setting nSurfaceLayers=7 results in no layer added.

I still have to try on complex geometries.
Attached Images
File Type: jpg lay7.jpg (89.4 KB, 190 views)
__________________
Daniele Vicario

blueCFD2.1 - Windows 7
danvica is offline   Reply With Quote

Old   April 30, 2012, 05:52
Default
  #3
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
If you post your snappyHexMesh dict I could have a look and see if I can find a reason why you don't get layers at once…
lovecraft22 is offline   Reply With Quote

Old   April 30, 2012, 06:32
Default
  #4
Senior Member
 
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17
danvica is on a distinguished road
The reason is because I played too much with parameters... actually I can have 7 layers in one step if I choose the right values.

Here is my SHMDict for addlayer:

Code:
addLayersControls
{
    relativeSizes true;
 
    layers
    {
        walls
        {
            nSurfaceLayers 7;
        }
     }
 
    expansionRatio 1.1;
 
    finalLayerThickness 0.9;
 
    minThickness 0.000001;
 
    nGrow 0;
 
    featureAngle 30;
 
    nRelaxIter 5;
    nSmoothSurfaceNormals 1;
    nSmoothNormals 3;
    nSmoothThickness 10;
    maxFaceThicknessRatio 0.5;
    maxThicknessToMedialRatio 0.3;
    minMedianAxisAngle 90;
 
    nBufferCellsNoExtrude 0;
 
    nLayerIter 100;
}
With this expansionRatio and finalLayerThickness I am able to get the correct result.

Using my older values, expansionRatio=1.8 and finalLayerThickness=1, SHM is getting more than 100000 faces with zero volume and the results is no layer added.

I'll make some more tests.
__________________
Daniele Vicario

blueCFD2.1 - Windows 7
danvica is offline   Reply With Quote

Reply

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
[snappyHexMesh] Controlling y+ values with snappyHexMesh? cjm OpenFOAM Meshing & Mesh Conversion 67 July 10, 2019 19:56
[snappyHexMesh] snappyHexMesh and refineWallLayer Claudio OpenFOAM Meshing & Mesh Conversion 0 June 20, 2013 14:36


All times are GMT -4. The time now is 05:22.