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

[snappyHexMesh] SnappyHexMesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2009, 10:41
Default SnappyHexMesh
  #1
New Member
 
Join Date: Jun 2009
Posts: 9
Rep Power: 16
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 10:59.
nicchani is offline   Reply With Quote

Old   June 17, 2009, 09:22
Default
  #2
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21
wolle1982 will become famous soon enough
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, 11:00
Default
  #3
New Member
 
Join Date: Jun 2009
Posts: 9
Rep Power: 16
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, 05:59
Default
  #4
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21
wolle1982 will become famous soon enough
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, 66 views)
wolle1982 is offline   Reply With Quote

Old   June 18, 2009, 06:37
Default
  #5
New Member
 
Join Date: Jun 2009
Posts: 9
Rep Power: 16
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, 11:50
Default
  #6
New Member
 
Anne Gosset
Join Date: May 2009
Posts: 3
Rep Power: 16
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, 12:05
Default
  #7
Senior Member
 
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21
wolle1982 will become famous soon enough
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 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
[CAD formats] Creating waterproof STL using snappyHexMesh or salome Tobi OpenFOAM Meshing & Mesh Conversion 58 May 13, 2020 07:01
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing peterhess OpenFOAM Meshing & Mesh Conversion 2 January 3, 2018 03:54
[snappyHexMesh] Tutorial crashes: snappyHexMesh floating point exception. jasv OpenFOAM Meshing & Mesh Conversion 4 May 10, 2016 03:55
[snappyHexMesh] snappyhexmesh doesn't creat mesh in parallel issue? klausb OpenFOAM Meshing & Mesh Conversion 1 March 7, 2015 12:55
[snappyHexMesh] stitchMesh and snappyHexMesh gdbaldw OpenFOAM Meshing & Mesh Conversion 0 December 23, 2009 03:09


All times are GMT -4. The time now is 03:40.