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

[snappyHexMesh] What does the values of gapLevel mean???

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 1 Post By sm0226
  • 2 Post By Светлана
  • 3 Post By Owais Shabbir

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 6, 2019, 22:49
Default What does the values of gapLevel mean???
  #1
New Member
 
Sangmin Kim
Join Date: Aug 2019
Posts: 6
Rep Power: 6
sm0226 is on a distinguished road
Hi. I`m new in openFoam. Just started learning about snappyHexMesh.

in snappyHexMeshDict, what does this number(4 0 10) mean??

gapLevel (4 0 10)

I think, the first number is the cell number between two surfaces. and last one is refinement level. That`s right??
Светлана likes this.
sm0226 is offline   Reply With Quote

Old   August 6, 2019, 22:58
Default
  #2
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 407
Rep Power: 14
Светлана is on a distinguished road
Hi sm0226

I didn't use this feature before, but a quick search shows this:

"The specification is enabled by using the gapLevel keyword in a refinementRegion (in the refinementRegions section in the snappyHexMeshDict dictionary) and consists of three integers:
  • the number of cells in the gap
  • minimum cell level at which to apply the detection and refinement, and
  • maximum cell level at which to apply the detection and refinement"
https://www.openfoam.com/releases/op...0+/meshing.php

Regards,
Svetlana
sm0226 and Gang Wang like this.
Светлана is offline   Reply With Quote

Old   August 7, 2019, 03:55
Smile Gaps for the stl files for example
  #3
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 6
Owais Shabbir is on a distinguished road
Hi,

To build on what Svetlana wrote..

I am using the gapLevel entity in my snappyHexMeshDict and it really helps when you have extremely narrow passages in your geometry and while having not very high refinement criteria defined in the castelled mesh section.

I will attached a picture(cross-section of my mesh) to show how it has helped.
I have two solid stls in my fluid domain. Yellow is 1 stl and red dots are 2nd stls.

The circle in green shows the narrow gap, it has in my case is 2 mm of gap bw two stls. Without gapLevel snappyHexMesh didnt produced mesh in that region, therefore no mesh was generated. but this is the result of using gapLevel.

I have chosen (2 0 2).
for simplicity, lets take your example of (4 0 10): takes every 4 cells throughout in the gap and apply refinement of min level 0 and max level of 10.
BR
Owais
Attached Images
File Type: jpg mesh_LI (2).jpg (50.6 KB, 225 views)
Светлана, sm0226 and redTo like this.
Owais Shabbir 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
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 06:55
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 22:38
Velocity values are normal but pressure values are too big rv82 OpenFOAM Running, Solving & CFD 4 April 13, 2015 03:59
Setting patch field values equal to internal field values leroyv OpenFOAM Programming & Development 1 October 21, 2014 15:49
Plotting raw data values Wilesco Siemens 0 January 5, 2006 05:34


All times are GMT -4. The time now is 16:13.