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

[snappyHexMesh] How to control the transition from the boundary layer mesh to the far field mesh?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By AtoHM
  • 1 Post By Yann
  • 1 Post By quarkz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2023, 12:37
Default How to control the transition from the boundary layer mesh to the far field mesh?
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Hi,

I'm reading the presentation by Wolf dynamics on controlling the transition
from the boundary layer mesh to the far field mesh.

In the attached picture, the right one is better than the left. However, it is not explained what changes have been done to achieve it. Can some experts help?

Thanks.
Attached Images
File Type: jpg shm_tmp.jpg (83.7 KB, 41 views)
quarkz is offline   Reply With Quote

Old   August 7, 2023, 03:30
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13
AtoHM is on a distinguished road
To me it looks like more layers and possibly a slightly higher ratio on the right. Regarding the topic name: you can specify several combinations of layer parameters. E.g. the first layer thickness and ratio, or the overall thickness and ratio (and nLayers of course). To influence the transition to the background mesh, you can specify a combination with the final layer thickess.


What combinations are valid will be printed out when u overload the definition, e.g. provide first and final layer thickness and ratio. Then you get a printout of the accepted combinations.
Yann likes this.
AtoHM is offline   Reply With Quote

Old   August 7, 2023, 10:00
Default
  #3
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Thanks for the suggestions AtoHM.

Yes, there are slightly more layers on the right. I know how to specify the layers and their thickness. However, I'm more concerned with the transition from small quads to the triangles and then the bigger quads.

In my simulation, I have the "smearing gradients" as described by wolf dynamics. I hope to have more small quads in the wall vicinity before they transition to triangles and large quads.

I'm guessing that it has something to do with mode distance and levels. However, I haven't been able to get it right.
quarkz is offline   Reply With Quote

Old   August 7, 2023, 10:31
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello,

You can change the nCellsBetweenLevels parameter to add more cells between each cell level transition. Your left pic looks like nCellBetweenLevels = 2.
https://doc.openfoam.com/2306/tools/...sBetweenLevels

This will change the number cells at each level transition, so it can increase a lot the cell count if you have a wide range of refinement levels in your mesh.

To explicitly control the cell sizes and transitions around your object you can use the distance mode in the refinementRegions section : https://doc.openfoam.com/2306/tools/...inementRegions
AtoHM likes this.
Yann is offline   Reply With Quote

Old   August 9, 2023, 21:56
Default
  #5
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Hi Yann,

Thanks for the suggestions. I tried the distance mode but it doesn't seem to work. I'll try with different settings to see if it works. Will post here if there's improvement.
quarkz is offline   Reply With Quote

Old   September 5, 2023, 22:07
Default
  #6
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
Hi, I found that the nCellsBetweenLevels parameter is the main factor controllling the change, as mentioned by Yann. Hope that helps!
Yann likes this.
quarkz 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] Holes in internal mesh when adding boundary layer snappyHex otaolafr OpenFOAM Meshing & Mesh Conversion 3 February 8, 2021 09:19
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 12:19
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 01:22.