CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Resolving Trailing Edges of Airfoil in sHM

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

LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2019, 14:18
Default Resolving Trailing Edges of Airfoil in sHM
New Member
Join Date: Dec 2016
Posts: 5
Rep Power: 9
sfluck is on a distinguished road
Hi there

I am trying to make a mesh with snappyHexMesh for a multi element airfoil chord 37 cm). I have the airfoil as an stl with three named regions (slat, main, flap).

I struggle mainly with resolving the trailing edges nicely with at least 1 adjacent cell, my inflation layers keep collapsing at the trailing edge. The trailing edges are cut to a width of about 0.5 mm. All feature edges are extracted with surfaceFeatures (OF V7), the generated obj of the feature edges shows that clearly. Attached are some images of the problem areas. The trailing edge cuts of the stl geometry are about perpendicular to the form, not as crooked as they appear in the mesh.
SnappyHexMeshDict can be found here:

I managed to do a case with pointy trailing edges (uncut) with a mere 4 and relatively thick inflation layers that wrap nicely around the trailing edge, but y+ values are too high like that. Making the layers thinner makes them collapse again, also increasing the refinement leads to a collapsing boundary layer. I played around with tolerances, feature snapping parameters, featureAngle, nothing seems to help, I started to get a bit annoyed. Especially because I don't really know what some parameters mean and don't find the documentation to be really helpful.

What are the parameters that steer the "wrapping-around-corner"-behavior in the sHMDict? Where would you start tuning? On my 8-core pc generating a new mesh takes (depending on n<...>Iterations) about 5-10minutes for castellated, snapping and addLayer-Phases. I've been playing around for about a week now trying different settings, good thing I'm a student and "free" workforce :-).

Also, my base mesh is generated with blockMesh, and it's quite coarse. I figured the refinementRegions in the sHM are enough to break the base mesh down a bit for surface snapping. The snapping step seems to work neatly though, except for the trailing edge snapping. Shouldn't
surfaceFeatures do the trick there?

Any help is appreciated! It's probably not that hard of a problem, I just seem to not see the solution anymore.

Kind wishes
Attached Images
File Type: jpg Anmerkung 2019-09-15 195636.jpg (121.9 KB, 164 views)
File Type: jpg Anmerkung 2019-09-15 195703.jpg (107.1 KB, 163 views)
sfluck is offline   Reply With Quote

Old   September 16, 2019, 01:51
Senior Member
linnemann's Avatar
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
This will be very difficult to obtain.

I would advice you to test out cfMesh.
It does a lot better in taking proper care of layers like this.

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   September 16, 2019, 13:35
New Member
Join Date: Dec 2016
Posts: 5
Rep Power: 9
sfluck is on a distinguished road
Thanks, I'll look into it.
sfluck is offline   Reply With Quote

Old   October 29, 2020, 05:45
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 615
Rep Power: 15
mAlletto will become famous soon enough
Hei hei. Did you find a solution how to get a few layers on a sharp trailing edge with either snappyHexMesh or cfmesh. I tried both and I was not successful. With snappyHexMesh (see attached figure) at the trailing edge no layer was added. (The picture is a section of the onera M6 wing).

For the one which is interested the corresponding case can be found in

I also tried cfmesh to get better resolved the wall but if i add layers at the wing I optain highly skewed faces close to the sharp trailing edge. Is there a way to avoid highly skewed faces at a sharp trailing edge?

I found a airfoil meshed with cfmesh ( but in this case the trailing edge is blunt. He got 10 layers around the airfoil and the mesh did not contain highly skewed faces.
Attached Images
File Type: png trailingedge.png (72.0 KB, 120 views)
mAlletto is offline   Reply With Quote

Old   April 17, 2024, 08:15
New Member
Join Date: Mar 2024
Posts: 1
Rep Power: 0
Brainwaves is on a distinguished road
Has anyone found a solution?
Brainwaves is offline   Reply With Quote


addlayercontrols, parameters, snappyhesmeshdict

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
Ffd_control_point_2d feiyi SU2 4 September 30, 2019 12:42
How to deal with prism layers in sharp trailing edge of the airfoil Rinia STAR-CCM+ 1 March 11, 2019 20:25
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
Boundary layer meshing with sharp trailing edges Andrew Berner FLUENT 1 August 28, 2007 17:39

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