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

[snappyHexMesh] snappyHexMesh layers part

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2010, 11:53
Default snappyHexMesh layers part
  #1
Member
 
Marine
Join Date: Mar 2010
Posts: 38
Rep Power: 16
marine is on a distinguished road
hello!

I'm trying to use snappyhexmesh for an external flow around a ship and I don't really understand how the differents functions in addlayerscontrols work. Can someone explain me how I choose the values for finalLayerThickness, expansionRatio and minThickness? I've searched for posts about that on the forum but maybe missed them, if they already exit can you give me the link?

thank you very much!!

Marine
marine is offline   Reply With Quote

Old   April 16, 2010, 05:43
Default
  #2
Member
 
Marine
Join Date: Mar 2010
Posts: 38
Rep Power: 16
marine is on a distinguished road
I have a very high Reynolds, 10^9, and I'd like yplus about 100 wich give me a first mesh size of 1mm (using the online tool y+estimation). I guess I put "minthickness" to this value.
I don't understand why I have to give a value for "finalLayerThickness" if I specify the "minThickness", the "expansionRatio" and the "nsurfaceLayer" I want. Can someone explain me that?
thank you very much.
Marine
marine is offline   Reply With Quote

Old   April 19, 2010, 04:16
Default
  #3
Member
 
Marine
Join Date: Mar 2010
Posts: 38
Rep Power: 16
marine is on a distinguished road
Does someone know if the "expansionratio" is the ratio between two successives layers or between the furthest and the closest to the surface?
I tried to change it but my cells always have the same size as the ones on my surface (I defined nsurfacelayer = 10).
marine is offline   Reply With Quote

Old   April 20, 2010, 13:12
Default
  #4
Senior Member
 
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18
fra76 is on a distinguished road
The layers are controlled by the last element size (with "last" I mean the one far from the surface, close to the volume cells). You specify its desired size, in terms of ratio with the near volume cell, the expansionRatio, which I think is the ratio between the height of two consecutive layer cells, and all the elements are determined in this way. The minThickness is a quality parameter. If snappy can only build layers so that the relative first element height is below the minThickness value, layer extrusion from that face is disabled.

See the comment in the example snappyHexMeshDict:
Code:
     //- Minimum thickness of cell layer. If for any reason layer
      //  cannot be above minThickness do not add layer.
      //  See relativeSizes parameter.
      minThickness 0.25;
As far as I know, there's no way of specifying the height of the near-wall cell, neither absolute nor relative.

Hope this helps,
Francesco
fra76 is offline   Reply With Quote

Old   April 22, 2010, 05:30
Default
  #5
Member
 
Marine
Join Date: Mar 2010
Posts: 38
Rep Power: 16
marine is on a distinguished road
Thank you, I'm having a lot of dificulties with the boundary layer, sometimes I only have BL on the interior of my surface and sometimes only on the borders...
Do you know if it's possible to have a boundary layer on a surface with differents refinement levels? I'm trying with 2 differents levels (but not one on the boundaries and one on the middle), that could be the origin of my problem.

bests

Marine
marine is offline   Reply With Quote

Old   April 25, 2010, 13:51
Default
  #6
Senior Member
 
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18
fra76 is on a distinguished road
Yes, it is.
The transition in layers height above the two refinement levels is a bit too fast, but it works for sure.
fra76 is offline   Reply With Quote

Old   April 25, 2010, 14:09
Default
  #7
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Hi Franceso,

hope your are doing well! I wonder, if you would recommend to use absolute layer sizes to circumvent the above problem...

Regards!
Fabian
braennstroem is offline   Reply With Quote

Old   April 27, 2010, 07:09
Default
  #8
Senior Member
 
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18
fra76 is on a distinguished road
Hi Fabian!
Good point. Depending on the geometry, this is a good solution.

Francesco
fra76 is offline   Reply With Quote

Reply

Tags
addlayerscontrols, layers, snappyhexmesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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] Help with Snappy: no layers growing GianF OpenFOAM Meshing & Mesh Conversion 2 September 23, 2020 08:26
[snappyHexMesh] proble of creating layers with snappyHexMesh comingdaytime OpenFOAM Meshing & Mesh Conversion 3 May 24, 2018 06:18
[snappyHexMesh] snappyHexMesh layers at the corner missing wc34071209 OpenFOAM Meshing & Mesh Conversion 3 February 12, 2014 11:32
[snappyHexMesh] Internal layers in snappyHexMesh onyir OpenFOAM Meshing & Mesh Conversion 0 April 16, 2013 11:00
[snappyHexMesh] snappyHexMesh : Layers on patches Nucleophobe OpenFOAM Meshing & Mesh Conversion 0 October 11, 2012 17:34


All times are GMT -4. The time now is 23:42.