CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Native Meshers: snappyHexMesh and Others (
-   -   AddLayers on an Airfoil (

rdrr84 March 27, 2012 11:41

AddLayers on an Airfoil
2 Attachment(s)
Hi Foamers!
I have a problem in creating the Boundary Layer on an airfoil geometry with SHM.
The castellated and snappy phase are ok whereas "addLayers " results in no layer added. Could someone help me?
Thanks a lot


I attach the snappyHexMeshDict and the log file for the addLayer phase

lovecraft22 March 27, 2012 12:30

Have you tried this (from your log):


Please set nGrow=0

rdrr84 March 28, 2012 05:42

2 Attachment(s)
thx for your answer.
Yes I did it but no layer is added... I also changed the exp ratio to 0.1 to have a greater avg thickness.


lovecraft22 March 28, 2012 06:00

I would suggest you to stick with the default parameters and then change only one of them at a time. Every time remember to get rid of every file mesh related.

For example, you set

expansionRatio 0.1;
and there's no point to me in setting this for an airfoil:

/------------------------------------------ Layer 3
| c
/------------------------------------------ Layer 2
| b
/------------------------------------------ Layer 1
/////////////////////////////////////////// Wall

expansionRatio = c/b = b/a

The layers should grow in height when moving away from the wall. In your case they are getting smaller.


finalLayerThickness 0.1;
doesn't make much of a sense to me…

MadsR April 18, 2012 06:06

Do you need snappyHexMesh? If feasible for your airfoil you could use my little airfoil mesher, found here:


A.Wendy August 22, 2012 02:46


i have a question to the airfoil mesher. the linked website to worldofkrauss is not working to see the example dat-file. maybe you can show one?



wyldckat August 22, 2012 03:19

Greetings to all!

@Andy: Seems like the server for the worldofkrauss website is having bad luck. You can find some information here: - it seems it was up again in July, but went down again now in August.

Best regards,

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