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

[snappyHexMesh] How to add one surface layer at a time?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2021, 11:30
Default How to add one surface layer at a time?
  #1
New Member
 
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 5
saladbowl is on a distinguished road
I am learning how to use snappyHexMesh and in some threads it is recommended to add one surface layer at a time. I am adding the first surface layer with the settings:

Code:
relativeSizes false;
expansionRatio 1.1;
firstLayerThickness 0.005;
minThickness 0.001;
nSurfaceLayers 1;


Given that I want, for example, 6 layers: should I simply run snappyHexMesh again with nSurfaceLayers 2? Then 3, 4, 5, and 6?

Or should I run the first time with:

run 1

Code:
relativeSizes false;
expansionRatio 1.1;
overallThickness 0.03857805;
minLayerThickness 0.001;
nSurfaceLayers 1;

followed by 5 runs with successive settings changing only the parameter overallThickness to the following values:

run 2

Code:
overallThickness 0.0305255;
run 3

Code:
overallThickness 0.023205;
run 4

Code:
overallThickness 0.01655;
run 5

Code:
overallThickness 0.0105;
run 6

Code:
overallThickness 0.005;
Any guidance is highly appreciated.
saladbowl is offline   Reply With Quote

Old   October 21, 2021, 17:05
Default
  #2
New Member
 
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 5
saladbowl is on a distinguished road
I'm going to go ahead and answer my own question since I tried it out on a tutorial by the people over at Wolf Dynamics (http://www.wolfdynamics.com/wiki/101SHM.tar.gz). Basically the second option above should work. Instead of specifying the overallThickness and expansionRatio, I used firstLayerThickness and expansionRatio. Since one layer is added at a time, this should not make a difference.

I should note that at the addition of each additional layer, the polyMesh folder in constant/polyMesh should be replaced by the polyMesh folder generated in the time folder by the previous layer addition.

No layers

First layer added

Second layer added

Third layer added

All layers added at once
saladbowl is offline   Reply With Quote

Old   October 26, 2021, 19:57
Default Added clarification
  #3
New Member
 
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 5
saladbowl is on a distinguished road
When giving the advice above I was using OpenFOAM 8 in serial. More recently I was able to generate successive surface layers in parallel with OpenFOAM v2012 by the same procedure, but without any need to replace the polyMesh folder. Within each processor directory a new time folder is created for every run of snappyHexMesh. In the end I get a series of time folders with an increasing number of surface layers.
saladbowl is offline   Reply With Quote

Reply

Tags
incremental, snappyhexmesh, surface layer

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] Error defining boundary layer around cube snappyHexMesh crizpi21 OpenFOAM Meshing & Mesh Conversion 5 October 16, 2021 11:56
[snappyHexMesh] snappyHexMesh Boundary Layer at Corner panpanzhong OpenFOAM Meshing & Mesh Conversion 5 July 3, 2018 06:53
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
[snappyHexMesh] Problem airfoil snappyhexmesh add layer bye bye my blue OpenFOAM Meshing & Mesh Conversion 1 May 5, 2017 06:56
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20


All times are GMT -4. The time now is 19:23.