CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Could not Add Boundary Layers near a Rectangular Channel Wall using SnappyHexMesh (https://www.cfd-online.com/Forums/openfoam-meshing/203645-could-not-add-boundary-layers-near-rectangular-channel-wall-using-snappyhexmesh.html)

Gary July 3, 2018 06:31

Could not Add Boundary Layers near a Rectangular Channel Wall using SnappyHexMesh
 
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 July 10, 2018 09:06

3 Attachment(s)
Just to make sure any body has an interest to help me, I have uploaded the essential files.

Thanks

symphonicity July 28, 2018 02:48

refineWallLayer command
 
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.

Gary July 30, 2018 04:14

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


All times are GMT -4. The time now is 07:00.