CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Add layers on the whole surface (https://www.cfd-online.com/Forums/openfoam/196813-add-layers-whole-surface.html)

Emanueledes December 17, 2017 13:20

Add layers on the whole surface
 
2 Attachment(s)
Hi Foamers!

I'm trying to add layers on the whole surface of an hull, but as you can see from the image, layers collapse at one point and restart again after some space. Why this behaviour? I tried to play with all parameters in the snappyHexMeshDict, but didn't find the solution. Can anyone help me to figure out this problem? I would be really grateful. Thank you so much. I attach also my snappyHexMeshDict.

Emanuele

Taataa December 17, 2017 17:31

Try setting the featureAngle to 360. There are some other tweaks that can be done to improve the performance but featureAngle is the main one that control the termination of the layer.

Emanueledes December 17, 2017 19:48

Hi Taataa, thank you so much for your reply :) I'll try and let you know the results. Thank you again.

Emanuele

Emanueledes December 18, 2017 03:16

1 Attachment(s)
Hi! As you told me I tried setting the featureAngle to 360, but it didn't work, the results has not changed :( what can I do? Thank you again.

Emanuele

Taataa December 18, 2017 09:09

You need to give more information then. What is the reasons that you set such set such large values for maxLocalCells and maxGlobalCells? Why you set 180 for resolveFeatureAngle? Why such large values for finalLayerThickness and minThickness? Take a look at the log file and see if there is any error related to the layering part. It's the last job that is done so it should be close to the end.

Emanueledes December 18, 2017 09:22

Thank you for your reply :) I'm new in openFoam so I can't answer very well to your questions. Anyway, I have 13000000 of global cells in this problem, so to be sure I put those high numbers (I don't know if that can be a problem). For the resolveFeatureAngle I tried different values and it seems that with that value I've obtained the best result for now. For the layer thickness, my supervisor told me to put that values in order to have more large layers. The log file doesn't show any error, also checkmesh is perfect. Can you tell me something about that values and which is the best solution to improve my mesh? I will appreciate it very much. Thank you.

Taataa December 18, 2017 12:26

I see. So I would suggest to take at this link to get a sense of the parameters as well as some good starting values. All these setting can affect the layer specially the angles, I would suggest to use 60 for the resolveFeatureAngle and 360 for featureAngle. Then set the maxLocalCells to 3 mil and max global to 15 mil. If you didn't get a good results then try to set the relativeSizes in layer setting to false and give a suitable absolute value for the layers thickness. By absolute value I mean in meter, for example 0.1 for 10 cm and so. It depends on how much do you want thickness to be.

Emanueledes December 19, 2017 03:31

2 Attachment(s)
Thank you so much for your suggestions, now I understand better the meaning of those parameters. However, I tried to change the values as you told me, following also the suggestions on the link you posted, but this didn't solve the problem unfortunately (I tried also with relativeSize false, but it was worse). I attach the new snappy and the file log. I don't know what to do now :( do you have any other suggestion? thank you for your attention.

Emanuele

Emanueledes December 19, 2017 11:19

Any idea? I have to do this for my graduation and time is running out :( I really need your help. Thank you all.

Emanuele De Stradis

Taataa December 19, 2017 14:37

Unfortunately, there is no magic setting that can work for all the problem, it's just a matter of playing with the parameters. The angles and thicknesses are the most important ones. You can start by reducing the minThickness to something like 0.1 and finalLayerThickness of 0.4, keeping the angles at 60 and 360.

Emanueledes December 19, 2017 14:40

Thank you so much for your suggestions. I'll try :)

Emanuele


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