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

[snappyHexMesh] min y+ that can be gain with snappyHexMesh around airfoil

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2013, 01:54
Unhappy min y+ that can be gain with snappyHexMesh around airfoil
  #1
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
s.m is on a distinguished road
Hi,
i have a one element and a three element airfoil, and i wand use low Re turbulence models so i need yPlus < 50 for my mesh. i use snappyHexMesh.
my problem is to create a boundary layer with snappyHexMesh. How to control the number and thickness of the layers?
with what numbers in add layerControls we can reach to y+ < 50 ?
s.m is offline   Reply With Quote

Old   April 23, 2013, 10:57
Default
  #2
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16
fredo490 is on a distinguished road
First you have to "guess" the thickness of your first cell: http://www.cfd-online.com/Tools/yplus.php
You cannot calculate exactly what is the thickness needed because y+ depends of your solution. The link I gave you can however give you a good estimation.

I don't use snappyHexMesh but I can tell you that your first cell height must be of a close value from the estimation given by the link and the growth rate must be lower than 1.2.

Hope somebody can help you with Snappy
fredo490 is offline   Reply With Quote

Old   April 23, 2013, 18:00
Default
  #3
New Member
 
bscphil's Avatar
 
Phillip
Join Date: Mar 2012
Location: Germany
Posts: 27
Rep Power: 14
bscphil is on a distinguished road
Quote:
Originally Posted by s.m View Post
Hi,
i have a one element and a three element airfoil, and i wand use low Re turbulence models so i need yPlus < 50 for my mesh. i use snappyHexMesh.
my problem is to create a boundary layer with snappyHexMesh. How to control the number and thickness of the layers?
with what numbers in add layerControls we can reach to y+ < 50 ?
Hey s.m,

when you use a so-called "low-Re" turbulence model the yPlus values are usually much lower in this assumption (y+ ~ 1) or (y+ < 5, with attention).

In snappyHexMesh you can control the number and thickness of the layers with:
Code:
addLayersControls
{
    relativeSizes true; // when set to false --> change thickness to absolute values 
    layers
    {
        myWall
        {
            nSurfaceLayers 5;
        }
    }

    expansionRatio 1.0;
    finalLayerThickness 1.0;
    minThickness 0.1;
    nGrow 0;
    featureAngle 30; 
    slipFeatureAngle 30;
    nRelaxIter 5; 
    nSmoothSurfaceNormals 1;
    nSmoothNormals 3;
    nSmoothThickness 10;
    maxFaceThicknessRatio 0.5; 
    maxThicknessToMedialRatio 0.3;
    minMedianAxisAngle 80; 
    nBufferCellsNoExtrude 0;
    nLayerIter 50;
}
For more details look at: http://openfoamwiki.net/images/f/f0/Final-AndrewJacksonSlidesOFW7.pdf

For a good mesh you have to change the upper parameters, because this is only a example of usage...
hope i can help you? For more details post your case and entitle your problem with some code-examples and pictures...
bscphil is offline   Reply With Quote

Old   April 24, 2013, 04:58
Default
  #4
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 13
A.Wendy is on a distinguished road
hi,

like Frédéric said you can guess use the tool to calculate the thickness of the first wall layer. the final layer thickness in snappy hexmesh is the layer thickness wich is tha last layer (not the one at the wall) so you have to calculate final oundary layer depending on the expension ratio, number of layers and desired first layer thickness. yfinal = y*ratio^(n-1) (I think).
be sure to set relativeSize to false!

if you want to resolve your y+ should be smaller than 1 but at least below 5!

best wishes

Andreas
A.Wendy 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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 13:48
High drag for airfoil compared to XFOIL and wind tunnel data Ry10 SU2 15 October 30, 2016 17:27
Problem of simulating of small droplet with radius of 2mm liguifan OpenFOAM Running, Solving & CFD 5 June 3, 2014 02:53
On the damBreak4phaseFine cases paean OpenFOAM Running, Solving & CFD 0 November 14, 2008 21:14


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