CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] snnapyhexMesh creating layers on sharp edges (https://www.cfd-online.com/Forums/openfoam-meshing/218178-snnapyhexmesh-creating-layers-sharp-edges.html)

efirvida June 11, 2019 09:26

snnapyhexMesh creating layers on sharp edges
 
2 Attachment(s)
Hello, I'm trying to create a mesh using SHM tool around an infinite parabola, I think that my castelled mesh process is successful but I canīt figure out how to create a layer on the corners of the obstacle where the geometry is very sharp. I attach an image of my best attempt, and also I'm uploading the case file.

Any advice with this?

yongxiang October 6, 2019 10:52

Hello Eduardo,
have you solved this problem with adding layer to sharp corner? I have the same problem with my mesh. Could you please share with me your solution.


regards
Yong

piotr.mecht October 7, 2019 04:05

Try to play with featureAngle parameter in addLayersControl.
Third picture on this tutorial seems to be self-explainatory on how this angle affects your mesh:
https://www.cfdsupport.com/OpenFOAM-...t/node128.html


Sometimes cells on this edge cannot be created, in order to prevent creating warped cells. You can force layer addition anyway by setting maxFaceThicknessRatio parameter to a greater value (like 2.0 or 3.0 instead or 0.5), but it might affect your mesh quality.

efirvida October 9, 2019 10:09

for such geometry seems that I canīt create the desired mesh, so what I deed is change a littelbit the geometry rounding that edge, and that works for me

Quote:

Originally Posted by yongxiang (Post 746312)
Hello Eduardo,
have you solved this problem with adding layer to sharp corner? I have the same problem with my mesh. Could you please share with me your solution.


regards
Yong


Krao October 10, 2019 05:16

Quote:

Originally Posted by efirvida (Post 746598)
for such geometry seems that I canīt create the desired mesh, so what I deed is change a littelbit the geometry rounding that edge, and that works for me

I use cfMesh and I have a similar problem too, as you have mentioned, de-featuring is the best solution, what I have found during mesh generation. Making the sharp feature blunt or making round edges would definitely solve the problem.

MaySea November 11, 2020 10:38

Hi Yong,

Have you solved the problem? I have a similar issue with my mesh, see here.

The layers keep "breaking", where mesh angles are big. I increased the featureAngle param - it helped a bit, but as you can see, the problem persists.

Cheers,
Jan

sandBo January 20, 2021 16:24

Did you solved it?


I sometimes managed it to get higher coverage of the boundaryLayer by increasing the firstLayerThickness, but sometimes that also caused some other Mesh problems.
Maybye the terminationAngle could be a Solutions, which is usually 0.5 * featureAngle - but i dont have much experience with this parameter

MaySea January 22, 2021 05:31

Hi sandBo,

No, I haven't, playing with the featureAngle parameter helped to ensure coverage almost everywhere except one part of my mesh with an extremely steep angle. Thanks for the tip with the firstLayerThickness - may try in the future.


All times are GMT -4. The time now is 02:05.