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

[snappyHexMesh] Could not Add Boundary Layers near a Rectangular Channel Wall using SnappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2018, 07:31
Default Could not Add Boundary Layers near a Rectangular Channel Wall using SnappyHexMesh
  #1
New Member
 
Join Date: Sep 2010
Posts: 11
Rep Power: 16
Gary is on a distinguished road
Hi All,


I have been struggling with this issue for a while.



The geometry is very simple, just a rectangular channel consisting of inlet, outlet and side walls.


The castellatedMesh & snap steps were OK, only the addLayers step failed.


Many suggestions found on this site have been tried but unfortunately none of them worked, therefore I decide to put a new thread regarding this for further help.



The geometry is in stl format and pasted below:


solid channel_inlet
facet normal -1 0 0
outer loop
vertex 0 0.0005 -0.0005
vertex 0 -0.0005 -0.0005
vertex 0 -0.0005 0.0005
endloop
endfacet
facet normal -1 -0 -0
outer loop
vertex 0 -0.0005 0.0005
vertex 0 0.0005 0.0005
vertex 0 0.0005 -0.0005
endloop
endfacet
endsolid channel_inlet
solid channel_sides
facet normal 0 -1 0
outer loop
vertex 0.01 -0.0005 0.0005
vertex 0 -0.0005 0.0005
vertex 0 -0.0005 -0.0005
endloop
endfacet
facet normal 0 -1 0
outer loop
vertex 0 -0.0005 -0.0005
vertex 0.01 -0.0005 -0.0005
vertex 0.01 -0.0005 0.0005
endloop
endfacet
facet normal 0 0 -1
outer loop
vertex 0.01 -0.0005 -0.0005
vertex 0 -0.0005 -0.0005
vertex 0 0.0005 -0.0005
endloop
endfacet
facet normal -0 -0 -1
outer loop
vertex 0 0.0005 -0.0005
vertex 0.01 0.0005 -0.0005
vertex 0.01 -0.0005 -0.0005
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0.01 0.0005 -0.0005
vertex 0 0.0005 -0.0005
vertex 0 0.0005 0.0005
endloop
endfacet
facet normal 0 1 0
outer loop
vertex 0 0.0005 0.0005
vertex 0.01 0.0005 0.0005
vertex 0.01 0.0005 -0.0005
endloop
endfacet
facet normal -0 0 1
outer loop
vertex 0.01 0.0005 0.0005
vertex 0 0.0005 0.0005
vertex 0 -0.0005 0.0005
endloop
endfacet
facet normal 0 -0 1
outer loop
vertex 0 -0.0005 0.0005
vertex 0.01 -0.0005 0.0005
vertex 0.01 0.0005 0.0005
endloop
endfacet
endsolid channel_sides
solid channel_outlet
facet normal 1 0 0
outer loop
vertex 0.01 -0.0005 0.0005
vertex 0.01 -0.0005 -0.0005
vertex 0.01 0.0005 -0.0005
endloop
endfacet
facet normal 1 0 0
outer loop
vertex 0.01 0.0005 -0.0005
vertex 0.01 0.0005 0.0005
vertex 0.01 -0.0005 0.0005
endloop
endfacet
endsolid channel_outlet


Regards,


Gary
Gary is offline   Reply With Quote

Old   July 10, 2018, 10:06
Default
  #2
New Member
 
Join Date: Sep 2010
Posts: 11
Rep Power: 16
Gary is on a distinguished road
Just to make sure any body has an interest to help me, I have uploaded the essential files.

Thanks
Attached Files
File Type: txt blockMeshDict.txt (1.7 KB, 0 views)
File Type: txt surfaceFeatureExtractDict.txt (1.5 KB, 0 views)
File Type: txt snappyHexMeshDict.txt (13.9 KB, 4 views)
Gary is offline   Reply With Quote

Old   July 28, 2018, 03:48
Default refineWallLayer command
  #3
New Member
 
Join Date: Dec 2017
Posts: 1
Rep Power: 0
symphonicity is on a distinguished road
Hello Gary,

I am also facing issues about layer addition process in snappyHexMesh. But I have found a way that mentioned in the forum which worked for me.

Set the layer number to 1 in the snappyHexMeshDict file.

Code:
nSurfaceLayers  1;
Then run snappyHexMesh. After that, simply divide the single layer generated by snappyHexMesh with the following command:

Code:
refineWallLayer sides 0.3
Hope this helps,

Yusuf.
symphonicity is offline   Reply With Quote

Old   July 30, 2018, 05:14
Default
  #4
New Member
 
Join Date: Sep 2010
Posts: 11
Rep Power: 16
Gary is on a distinguished road
Hi Yusuf,

Many thanks for you help.

I guess using this utility, say refineWallLayer "sides" 0.5, several times can get stretched near wall layers.

Regards, Gary
Gary 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
Low torque values on Screw Turbine Shaun Waters CFX 34 July 23, 2015 09:16
Radiation interface hinca CFX 15 January 26, 2014 18:11
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 16:55
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


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