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

SnappyHexMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 11, 2009, 09:41
Default SnappyHexMesh
  #1
New Member
 
Join Date: Jun 2009
Posts: 9
Rep Power: 7
nicchani is on a distinguished road
Hi, I'm new to OpenFoam and CFD in general. I have to mesh an aerofoil and as I will have to do it automatically I considered SnappyHexMesh as a good option because I can mesh from command line. However I have read that it doesn't handle well sharp edges and may not be suitable for some cases. Also it looks quite complex, and I can't find a tutorial where I see the necessary commands. Is there another mesher I could use for this like Salome for example?

Thanks!

Last edited by nicchani; June 11, 2009 at 09:59.
nicchani is offline   Reply With Quote

Old   June 17, 2009, 08:22
Default
  #2
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 7
wolle1982 is on a distinguished road
Hi nicchani,

sHM is not suitable for 2d-airofil meshing. refining in x and y direction it also refines in z direction. so the 2D situation is gone...

for a 2D airfoil the blockMesh is very suitable. ther you also have command input and ones created a "master-blockmeshdict"-file you can easily mesh any airfoil. it can also be automated by excel e.g.

problem with salome, the BL on the surface does not grow straight rectangular.

meshing with salome a 3d case shows up problems while exporting. it doesn't support pyramid which you need as connection between hexaeders and tetraeders.
wolle1982 is offline   Reply With Quote

Old   June 17, 2009, 10:00
Default
  #3
New Member
 
Join Date: Jun 2009
Posts: 9
Rep Power: 7
nicchani is on a distinguished road
thanks for your reply! I was trying with Salome. I'm sorry but I didn't understand the problem with Salome.

I will have a look at blockmesh too. The problem I see with blockmesh is that every time the geometry changes, I would have to change the whole file. Is that right?
nicchani is offline   Reply With Quote

Old   June 18, 2009, 04:59
Default
  #4
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 7
wolle1982 is on a distinguished road
Hi,

if you have a hybrid mesh in salome, means you have tets and hex with a connection layer of pyramids, how do you get it out of salome? the unv-export doesn't support pyramids. you would get impermeable cells. you could work around that by defining a cellset and transform that after...but don't ask me.

blockmesh.

a simple airfoilgrid in blockmesh would be a c-grid consisting of 6 blocks. I attached a blockMeshDict file for you. it is a simple airfoil (AH93). i think it already has a AoA.

Yes, for each airfoil you will have to change the file...but that is not so much work. just change the airfoil coordinates. changing the AoA would be made better with the boundary conditions (inlet stream direction).

for a better grid (more rectangle cells on the surface) you can increase the number of blocks from 6 to the coordinate numbers. then you get the best result. I wrote myself a excel-sheet that does it automatically for me. doing this is very simple since it works always after one procedure.

in the attached file in the header is a little legend embedded so one can see how it is built. one trick is, that you use even numbers for the top layer and uneven numbers for the behind layer. so you can easily tell the vertices apart.

that helped?
Attached Files
File Type: txt blockMeshDict.txt (16.7 KB, 65 views)
wolle1982 is offline   Reply With Quote

Old   June 18, 2009, 05:37
Default
  #5
New Member
 
Join Date: Jun 2009
Posts: 9
Rep Power: 7
nicchani is on a distinguished road
yes! thanks! I'll have a look at it and i'll ask if i have any doubts! danke!
nicchani is offline   Reply With Quote

Old   December 9, 2009, 10:50
Default
  #6
New Member
 
Anne Gosset
Join Date: May 2009
Posts: 3
Rep Power: 7
Anneg is on a distinguished road
Hi,

Thanks for posting the blockMeshDict file as en example.
Just a small question: is it a AH93 airfoil, or a NACA0012, as indicated in the file header?
Anneg is offline   Reply With Quote

Old   December 9, 2009, 11:05
Default
  #7
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 7
wolle1982 is on a distinguished road
hi,

sorry don't know. it's been too long, but if you plot it you will see. if it looks like a symmetrc airfoil, it is a NACA0012. otherwise it is a AH93
wolle1982 is offline   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 with local refinement of ONE STLfile wolle1982 OpenFOAM Mesh Utilities 16 August 23, 2013 12:12
Question about mesh produced by snappyHexMesh bigphil OpenFOAM Native Meshers: snappyHexMesh and Others 11 March 26, 2010 21:35
Parallel case setup boundry conditions snappyhexmesh oskar OpenFOAM Pre-Processing 5 September 11, 2009 01:12
SnappyHexMesh in 2D case sjs OpenFOAM Mesh Utilities 9 July 8, 2009 17:42
SnappyHexMesh not generate mesh first time mavimo OpenFOAM Mesh Utilities 4 August 26, 2008 07:08


All times are GMT -4. The time now is 05:38.