Skip to content

SnappyHexMesh doesn't create layers on a not aligned surface

Summary

I need to mesh a delta wing using snappyHexMesh and adding the boundary layers is a must. I've been working on the configuration of snappyHexMeshDict to include these layers and I couldn't make SHM to add the layers over the entire surface. I simplified the geometry to include only the sharp leading edge and the results are very interesting:

  • If the geometry is perfectly aligned with the mesh and the coordinates system, SHM adds the boundary layers as I whish
  • If the geometry is rotated around 5 degrees (I used surfaceTrasnformPoints -yawPithRoll...) SHM is not capable of adding the boundary layers.

In the previous cases the SHMDict is the same.

It is not clear to me if this is a bug or a misconfiguration of the SHMDict.

Steps to reproduce

  1. Download case aligned
  2. Run Allrun script to generate the mesh
  3. See the boundary layer mesh
  4. Download case notaligned
  5. Run Allrun script to generate the mesh
  6. See the boundary layer mesh
  7. Compare the meshes

Example case

aligned.tar.gz

notaligned.tar.gz

What is the current bug behaviour?

snappyHexMesh doesn't generate boundary layers in a not aligned edge.

What is the expected correct behavior?

snappyHexMesh to generate boundary layers in a not aligned edge as it can with the aligned case.

Relevant logs and/or images

Environment information

  • OpenFOAM version : v2006
  • Operating system : kubuntu 2004
  • Hardware info : -
  • Compiler : -

Possible fixes