CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Add Layers in snappyHexMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 9, 2010, 11:29
Default Add Layers in snappyHexMesh
  #1
Member
 
Mihails čepanskis
Join Date: Jul 2009
Posts: 36
Rep Power: 7
shchepan is on a distinguished road
Hi,
I have the problem with adding layers in snappyHexMesh.
My geometry is:
Code:
geometry
{
    topSurfFlat.stl
    {
        type triSurfaceMesh;
        name topSurf;
    }

    sideWall.stl
    {
        type triSurfaceMesh;
        name sideWall;
    }

    botWall.stl
    {
        type triSurfaceMesh;
        name botWall;
    }
};
And I try to add layer:

Code:
addLayersControls
{
    relativeSizes true;
    layers
    {
        sideWall
        {
            nSurfaceLayers 1;
        }
    }
    expansionRatio 1.0;
    finalLayerThickness 1.0;
    minThickness 0.9;
    nGrow 1;
    featureAngle 60;
    nRelaxIter 5;
    nSmoothSurfaceNormals 1;
    nSmoothNormals 3;
    nSmoothThickness 10;
    maxFaceThicknessRatio 0.5;
    maxThicknessToMedialRatio 0.3;
    minMedianAxisAngle 130;
    nBufferCellsNoExtrude 0;
    nLayerIter 50;
}
But no layer is created:

Quote:
No layers to generate ...
Layer mesh : cells:835968 faces:2744876 points:1073627
Cells per refinement level:
0 163968
1 120336
2 551664
Writing mesh to time 10.015
Written mesh in = 69.17 s.
Finished meshing in = 403.37 s.
End
What should I do?
__________________
Mihails Ščepanskis
Laboratory for Mathematical Modelling of Environmental and Technological Processes
University of Latvia
shchepan is offline   Reply With Quote

Old   June 17, 2012, 02:39
Default Same problem: no layers added
  #2
New Member
 
Jeff Kollasch
Join Date: Dec 2011
Location: Ames, Iowa
Posts: 3
Rep Power: 4
spatz is on a distinguished road
This is my first post on these forums.

I am having more or less the same exact issue in trying to mesh a boundary layer region on a pipe made in FreeCAD. As the previous poster did (over a year ago) I have explicitly specified patches to add layers in the same way yet find no layers added and a message "No layers to generate ..."

Attached is my case file. I already have made .eMesh files for the edge snapping feature so it can be run by

tar xvzf SimplePipe-SAV02.tar.gz
cd SimplePipe-SAV02
blockMesh
snappyHexMesh

Any suggestion on how to change snappyHexMeshDict will be appreciated. Obviously a lot of people have got this working so I'm sure it's something simple.
Attached Images
File Type: jpg darn.jpg (56.8 KB, 114 views)
Attached Files
File Type: gz SimplePipe-SAV02.tar.gz (14.2 KB, 24 views)
spatz is offline   Reply With Quote

Old   June 17, 2012, 06:23
Default
  #3
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 425
Rep Power: 8
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Haven't ran you case but I'm pretty sure that if you look for "layers" within your sHM log file, you'll see that it's probably complaining about the patch WALL that is not found and it may suggest you to use WALL_patch0 instead.

So WALL_patch0 is what you should have in the layers section of your sHMDict.
__________________
I use PowerFLOW!
lovecraft22 is offline   Reply With Quote

Old   June 17, 2012, 14:23
Default
  #4
New Member
 
Jeff Kollasch
Join Date: Dec 2011
Location: Ames, Iowa
Posts: 3
Rep Power: 4
spatz is on a distinguished road
Hi,

Thank you so much for your advice. That was exactly my problem. I'm almost there, just having a lot of trouble figuring out what parameter to tweak so the BL region will extend all the way to the inlet and outlet. Does someone know this off-hand?

Thanks for the help.

Jeff
Attached Images
File Type: jpg almost_there.jpg (76.1 KB, 170 views)
spatz is offline   Reply With Quote

Old   June 17, 2012, 14:55
Default
  #5
New Member
 
Jeff Kollasch
Join Date: Dec 2011
Location: Ames, Iowa
Posts: 3
Rep Power: 4
spatz is on a distinguished road
Never mind my above post. I found a sufficient example here which should do fine.

https://sites.google.com/site/snappy.../cylinder-case

Thanks again.
spatz is offline   Reply With Quote

Old   October 23, 2013, 07:12
Default
  #6
Member
 
R. P.
Join Date: Jul 2010
Location: Glasgow - UK
Posts: 59
Rep Power: 6
Rophys is on a distinguished road
Hi all,

I am trying to add a layer in my geometry but I didn't manage to do it.
I already tried to change the patch name, run sHM using geometry in binary and ascii, etc. Could you have a look in my case and give some tip in how to properly add layers on it ? I tried to upload the case here but it's bigger than 97.7 kb. I can send it by email.

Thanks a lot.
Rophys is offline   Reply With Quote

Old   October 23, 2013, 07:17
Default
  #7
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 852
Blog Entries: 1
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Tobias.holzmann@holzmann-cfd.de

Maybe I can have a look today evening.
  • Can you put your Output for the layer adding Phase ?
Tobi is online now   Reply With Quote

Old   October 23, 2013, 08:17
Default
  #8
Member
 
R. P.
Join Date: Jul 2010
Location: Glasgow - UK
Posts: 59
Rep Power: 6
Rophys is on a distinguished road
Hi Tobias,

Thanks for you quickly response. I tried to upload the out (just the layer part) here, but I got the message: "The text that you have entered is too long (68499 characters). Please shorten it to 20000 characters long".

I sent you the case anyway, you be able to see the output for the sHM.

Thanks again.
Rophys is offline   Reply With Quote

Old   October 23, 2013, 13:37
Default
  #9
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 852
Blog Entries: 1
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
For all,

the problem was the OF version.
After starting sHM with 2.2.x everything works fine.

In OpenFOAM-2.1.x I realized that the layer thickness calculation in the beginning is a bit strange. To be sure you have to do the following steps:

1. sHMDict: castellated and snapping on // layer generation off
2. snappyHexMesh -overwrite
3. sHMDict: castellated and snapping off // layer generation on
4. snappyHexMesh -overwrite

Done.

Have Fun.
Tobi is online now   Reply With Quote

Old   October 23, 2013, 13:42
Default
  #10
Member
 
R. P.
Join Date: Jul 2010
Location: Glasgow - UK
Posts: 59
Rep Power: 6
Rophys is on a distinguished road
Yes, it's working perfectly with 2.2.x openFoam version.

Thanks Tobi.
Rophys is offline   Reply With Quote

Old   November 4, 2013, 11:53
Default
  #11
New Member
 
hasan hasan hasan
Join Date: Apr 2013
Posts: 3
Rep Power: 3
hasanmas is on a distinguished road
hallo,

i am also having problems adding layers. i have tried changing many different parameters, but still i cant get the layers to grown. i am sure that i now have the write patch name!

i think its might be the geometry. the best way to describe it would be a flying carpet. a thin wall ( 1- 2 cm thick) but with waved surface. much more like a sail.

could you please help me with some tips or ideas how to solve the problem.

thank you!
hasanmas is offline   Reply With Quote

Old   November 4, 2013, 13:48
Default
  #12
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 852
Blog Entries: 1
Rep Power: 17
Tobi will become famous soon enough
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
what is the output of the layer generation?
Tobi is online now   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
snappyHexMesh - layers in 3d pipe bifurcation nihil OpenFOAM Native Meshers: snappyHexMesh and Others 13 April 9, 2013 08:32
SnappyHexMesh doesn't succeed in adding several layers eti0123456789 OpenFOAM Native Meshers: snappyHexMesh and Others 5 April 9, 2013 02:36
SnappyHexMeshDict fabrizio OpenFOAM Mesh Utilities 25 October 14, 2011 07:00
snappyHexMesh layers part marine OpenFOAM 7 April 27, 2010 07:09
no boundary layers using snappyHexMesh thorsten OpenFOAM Native Meshers: snappyHexMesh and Others 1 October 22, 2009 06:01


All times are GMT -4. The time now is 04:35.