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

[snappyHexMesh] Controlling cells near wall to ensure delta x+ and z+ < 4*y+ for LES

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2023, 21:15
Default Controlling cells near wall to ensure delta x+ and z+ < 4*y+ for LES
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 402
Rep Power: 19
quarkz is on a distinguished road
Hi, I'm trying to run LES simulation. In the article by Wolf dynamics on "Turbulence modeling in OpenFOAM - Theory and applications", it is stated that the recommended mesh near wall should have delta x+ and z+ < 4*y+ for LES simulation.

As shown in the diagram, the x+ ~ 10*y+. What are the key variables which I must change in snappyHexMeshDict in order to achieve it?

Can someone help?

Thanks.
Attached Images
File Type: jpg cells.jpg (124.1 KB, 5 views)
quarkz is offline   Reply With Quote

Old   September 10, 2023, 02:06
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 658
Rep Power: 12
AtoHM is on a distinguished road
Disclaimer: snappyHexMesh is not a great tool for accurate low-Re meshes. If you look around here, alot of topics are about creating good layers but most of the time, its not possible to get a good solution.


That being said, you got to estimate the yplus, e.g. with this tool https://www.cfd-online.com/Tools/yplus.php. Then in the snappyHexMeshDict in the addLayersControls you set

Code:
relativeSizes false;
expansionRatio <whatYouWish>;
firstLayerThickness <yourValue>;
minThickness <smallerThanYourValue>;

layers
{
    YourMeshRegion { nSurfaceLayers <nLayers>; }
}
Where firstLayerThickness is what the yPlusEstimator puts out. minThickness should be below, about 1 or 2 magnitudes to allow the layers growing in all regions.
Good luck!
AtoHM is offline   Reply With Quote

Old   September 10, 2023, 22:31
Default
  #3
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 402
Rep Power: 19
quarkz is on a distinguished road
Hi AtoHM, thanks for the reply. I have already set the firstLayerThickness and expansionRatio. I'll check out the minThickness option.
quarkz is offline   Reply With Quote

Reply


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
flow over cylinder in openFoam saeed jamshidi OpenFOAM Pre-Processing 3 August 11, 2023 15:16
chtMultiRegionFoam speed up qwertz OpenFOAM Running, Solving & CFD 8 September 18, 2021 06:16
[snappyHexMesh] How to draw a 3D-Drawing for Meshing Kahnbein.Kai OpenFOAM Meshing & Mesh Conversion 4 June 15, 2021 12:16
cellZone not taking all the cells inside rahulksoni OpenFOAM 0 January 16, 2019 01:16
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


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