CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Add layers on the whole surface

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Taataa
  • 1 Post By Taataa

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2017, 13:20
Default Add layers on the whole surface
  #1
New Member
 
Emanuele De Stradis
Join Date: Nov 2017
Posts: 14
Rep Power: 8
Emanueledes is on a distinguished road
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
Attached Images
File Type: jpg layers.jpg (190.9 KB, 61 views)
Attached Files
File Type: c snappyHexMeshDict.c (3.3 KB, 14 views)
Emanueledes is offline   Reply With Quote

Old   December 17, 2017, 17:31
Default
  #2
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
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 likes this.
Taataa is offline   Reply With Quote

Old   December 17, 2017, 19:48
Default
  #3
New Member
 
Emanuele De Stradis
Join Date: Nov 2017
Posts: 14
Rep Power: 8
Emanueledes is on a distinguished road
Hi Taataa, thank you so much for your reply I'll try and let you know the results. Thank you again.

Emanuele
Emanueledes is offline   Reply With Quote

Old   December 18, 2017, 03:16
Default
  #4
New Member
 
Emanuele De Stradis
Join Date: Nov 2017
Posts: 14
Rep Power: 8
Emanueledes is on a distinguished road
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
Attached Images
File Type: jpg layers.jpg (195.9 KB, 47 views)
Emanueledes is offline   Reply With Quote

Old   December 18, 2017, 09:09
Default
  #5
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
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.
Taataa is offline   Reply With Quote

Old   December 18, 2017, 09:22
Default
  #6
New Member
 
Emanuele De Stradis
Join Date: Nov 2017
Posts: 14
Rep Power: 8
Emanueledes is on a distinguished road
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.
Emanueledes is offline   Reply With Quote

Old   December 18, 2017, 12:26
Default
  #7
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
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 likes this.
Taataa is offline   Reply With Quote

Old   December 19, 2017, 03:31
Default
  #8
New Member
 
Emanuele De Stradis
Join Date: Nov 2017
Posts: 14
Rep Power: 8
Emanueledes is on a distinguished road
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
Attached Files
File Type: c snappyHexMeshDict.c (3.3 KB, 4 views)
File Type: c log.c (126.3 KB, 6 views)
Emanueledes is offline   Reply With Quote

Old   December 19, 2017, 11:19
Default
  #9
New Member
 
Emanuele De Stradis
Join Date: Nov 2017
Posts: 14
Rep Power: 8
Emanueledes is on a distinguished road
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
Emanueledes is offline   Reply With Quote

Old   December 19, 2017, 14:37
Default
  #10
Senior Member
 
Taher Chegini
Join Date: Nov 2014
Location: Houston, Texas
Posts: 125
Rep Power: 12
Taataa is on a distinguished road
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.
Taataa is offline   Reply With Quote

Old   December 19, 2017, 14:40
Default
  #11
New Member
 
Emanuele De Stradis
Join Date: Nov 2017
Posts: 14
Rep Power: 8
Emanueledes is on a distinguished road
Thank you so much for your suggestions. I'll try

Emanuele
Emanueledes is offline   Reply With Quote

Reply


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
[snappyHexMesh] adding layers on complex terrain surface in SHM potac OpenFOAM Meshing & Mesh Conversion 1 November 9, 2020 06:40
[snappyHexMesh] Collapsing layers RomCFD OpenFOAM Meshing & Mesh Conversion 5 January 18, 2020 01:39
[snappyHexMesh] Collapsing layers michi.ka OpenFOAM Meshing & Mesh Conversion 6 September 22, 2018 09:20
[snappyHexMesh] Layers don't fully surround surface EVBUCF OpenFOAM Meshing & Mesh Conversion 14 August 20, 2012 04:31
[snappyHexMesh] Add additional boundary layers to complex stl surface tobijingles OpenFOAM Meshing & Mesh Conversion 1 October 26, 2011 10:45


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