|
[Sponsors] |
[snappyHexMesh] How to add one surface layer at a time? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 21, 2021, 11:30 |
How to add one surface layer at a time?
|
#1 |
New Member
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 7 |
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; Code:
overallThickness 0.023205; Code:
overallThickness 0.01655; Code:
overallThickness 0.0105; Code:
overallThickness 0.005; |
|
October 21, 2021, 17:05 |
|
#2 |
New Member
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 7 |
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 |
|
October 26, 2021, 19:57 |
Added clarification
|
#3 |
New Member
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 7 |
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.
|
|
Tags |
incremental, snappyhexmesh, surface layer |
|
|
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 |