|
[Sponsors] |
June 11, 2009, 09:41 |
SnappyHexMesh
|
#1 |
New Member
Join Date: Jun 2009
Posts: 9
Rep Power: 16 |
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. |
|
June 17, 2009, 08:22 |
|
#2 |
Senior Member
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21 |
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. |
|
June 17, 2009, 10:00 |
|
#3 |
New Member
Join Date: Jun 2009
Posts: 9
Rep Power: 16 |
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? |
|
June 18, 2009, 04:59 |
|
#4 |
Senior Member
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21 |
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? |
|
June 18, 2009, 05:37 |
|
#5 |
New Member
Join Date: Jun 2009
Posts: 9
Rep Power: 16 |
yes! thanks! I'll have a look at it and i'll ask if i have any doubts! danke!
|
|
December 9, 2009, 10:50 |
|
#6 |
New Member
Anne Gosset
Join Date: May 2009
Posts: 3
Rep Power: 16 |
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? |
|
December 9, 2009, 11:05 |
|
#7 |
Senior Member
Wolfgang Heydlauff
Join Date: Mar 2009
Location: Germany
Posts: 136
Rep Power: 21 |
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 |
|
|
|
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 06:01 |
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing | peterhess | OpenFOAM Meshing & Mesh Conversion | 2 | January 3, 2018 02:54 |
[snappyHexMesh] Tutorial crashes: snappyHexMesh floating point exception. | jasv | OpenFOAM Meshing & Mesh Conversion | 4 | May 10, 2016 02:55 |
[snappyHexMesh] snappyhexmesh doesn't creat mesh in parallel issue? | klausb | OpenFOAM Meshing & Mesh Conversion | 1 | March 7, 2015 11:55 |
[snappyHexMesh] stitchMesh and snappyHexMesh | gdbaldw | OpenFOAM Meshing & Mesh Conversion | 0 | December 23, 2009 02:09 |