|
[Sponsors] |
[snappyHexMesh] SnappyHexMesh for airfoil 2D case: High computational effort for low quality mesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 15, 2013, 17:57 |
SnappyHexMesh for airfoil 2D case: High computational effort for low quality mesh
|
#1 |
New Member
Deutschland
Join Date: May 2013
Posts: 5
Rep Power: 13 |
Good Evening,
using SnappyHexMesh for a 2D airfoil case, I encounter the following problem: short description: Snappy meshes in 3rd dimension and consumes high computational power, but after extrudeMesh, the mesh quality is low. In blockMesh, the patches "left" and "right" are set "empty", which should tell snappy to not mesh in the 3rd dimension - however, this is happening along the stl surface. The workaround to then generate a 2D mesh as described in the various threads here is to extrude one of the empty patches using extrudeMesh. In theory, this works. In practice, I have to generate a 20 million cells mesh with snappy to get 100000 cells after having used extrudeMesh. Is something wrong in this workflow, or is there actually some kind of bug in snappy that causes computational inefficiency ? platform: Ubuntu 12.10, OF 2.2.0 (also encountered the same problem on a OF 1.6 machine) Thank you very much for any help regarding this problem. case file: https://dl.dropboxusercontent.com/u/...nlineDB.tar.gz |
|
May 16, 2013, 03:47 |
|
#2 | |||
Senior Member
Join Date: Dec 2011
Posts: 111
Rep Power: 20 |
Quote:
Quote:
Quote:
Last edited by haakon; May 16, 2013 at 04:33. Reason: Typo |
||||
May 16, 2013, 04:35 |
|
#3 | |
New Member
Deutschland
Join Date: May 2013
Posts: 5
Rep Power: 13 |
Quote:
thank you very much for your quick answer. Yes, I have seen and done that tutorial which is very helpful, however, I am simulating a multi element airfoil and using blockMesh for the slat and airfoil seems to be very complex and difficult. |
||
May 16, 2013, 04:39 |
|
#4 |
Senior Member
Join Date: Dec 2011
Posts: 111
Rep Power: 20 |
I am not utilizing blockMesh in that tutorial, but snappyHexMesh. There is the "alternative meshing", which is blockMesh, but if you download the tutorial files, you get a sHM case.
When it comes to your problem, you say that you suffer from bad mesh quality after the extrude process. Can you give any examples (I have not run your case)? It might be easier to help you if you describe your problem in more details. |
|
May 16, 2013, 04:56 |
|
#5 |
New Member
Deutschland
Join Date: May 2013
Posts: 5
Rep Power: 13 |
Sorry for the non-explicit wording. "Bad quality" in this case refers not to any checkMesh results or anything else related to the final mesh and its geometric properties.
What I meant is the general quality of the mesh in terms of cell quantity necessary for that test case. It takes hours to create the 3D mesh with all the useless cells along the surface in the 3rd dimension, and finally I can only use 100000 out of 20 Mio. cells. Changing the depth of the initial mesh did not significantly change the number of cells on the stl-surface. |
|
May 27, 2013, 12:48 |
snap
|
#6 |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
hello
i want to mesh a 2d airfoil but not span it can any one help me? |
|
May 27, 2013, 12:56 |
snap
|
#7 |
Member
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
the following is the my test case
|
|
August 12, 2013, 10:07 |
snappy
|
#8 | |
Member
|
Quote:
Sadly i still have problems with tail zone and prism layers there. See it here. 1.jpg 3.jpg
__________________
practice makes perfect |
||
August 13, 2013, 04:46 |
|
#9 |
New Member
Deutschland
Join Date: May 2013
Posts: 5
Rep Power: 13 |
hello ilya,
it is difficult to get rid of the collapsing layers at the trailing edge, actually, the only thing to make it less bad is to set a refinement box at the trailing edge with the same size as your layers are. The layers are usually growing with an expansion ratio, and there is no way to set the in the refinement box, it is all linear there. good luck |
|
August 13, 2013, 05:35 |
|
#10 | |
Member
|
Quote:
i don't ever think about it. Thanks!
__________________
practice makes perfect |
||
September 12, 2013, 00:54 |
|
#11 |
New Member
QuocThien
Join Date: Apr 2013
Posts: 16
Rep Power: 13 |
trailing edge has the big feature angle so to solve this problem i think u need to increase limited feature angle
|
|
September 12, 2013, 05:30 |
|
#12 |
Member
|
of course feature angle has influence on meshing near tail. but not for this case, i think.
__________________
practice makes perfect |
|
October 5, 2014, 03:09 |
Airfoil mesh with only square blocks
|
#13 |
New Member
Srsh
Join Date: Oct 2014
Posts: 7
Rep Power: 12 |
Hello
Actually I am new to OpenFoam. I generate a mesh for the airfoil same as OpenFoam tutorial. But I want to have full face match cubic mesh instead of triangles. As you can see from the airfoil picture there are triangles in the grid which I want them to eliminate and have something like second picture (cubic mesh). Can someone guide me to how to get rid of triangles mesh? What feature in snappyhexmesh I should hide to have only square blocks. Thanks |
|
October 6, 2014, 03:38 |
|
#14 | |
Member
|
Quote:
__________________
practice makes perfect |
||
October 6, 2014, 10:55 |
|
#15 |
New Member
Srsh
Join Date: Oct 2014
Posts: 7
Rep Power: 12 |
Hello ilya,
Thank you so much for your answer. Would you please help me how can I produce multi level of refinement of quadrilateral mesh with blockMesh? Is there any tutorials for making multi level of refinement with blockMesh? I greatly appreciate your help. Thanks |
|
October 18, 2014, 14:10 |
|
#16 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Srsh: I hope you don't mind, I'll quote a question you sent me via private message, with a question very similar to the posts above. In addition, I'll try to answer some of the questions above. I've trimmed a bit the message, to get to the bulk of the question: Quote:
Actually, I'll start with your first post: there is a misconception of the mesh you're seeing in ParaView. Have a look at this FAQ entry: http://openfoamwiki.net/index.php/FA...is_in_ParaView - there you'll see how to see the real mesh and not the one you're seeing. Because the mesh you're seeing already has decomposed the more complex cells down to tetrahedral/prisms and in that FAQ is explained how to see the original cells. Regarding blockMesh, check this page: http://openfoamwiki.net/index.php/BlockMesh Regarding snappyHexMesh: http://openfoamwiki.net/index.php/SnappyHexMesh Now, as for the questions in the private message: it's very tricky to do such a mesh with snappyHexMesh. This mesher is essentially what I call a chiseller: it will chisel the initial base+refined mesh onto the geometry, therefore it might end up having to deform some cells more than it might be acceptable. I suggest you go ask Daniel Wei for a copy of the Enosh mesher: http://www.cfd-online.com/Forums/ope...generator.html - that mesher allegedly was specifically designed to assist in creating better meshes for airfoils. Best regards, Bruno
__________________
|
||
October 21, 2014, 13:20 |
|
#17 | |
New Member
Srsh
Join Date: Oct 2014
Posts: 7
Rep Power: 12 |
Quote:
Thank you so much for your kind response. That was really helpful. I was wondering how can I extract these meshes from OpenFoam. I am trying to export the mesh to the plot3D format but apparently OpenFoam doesn't have this option. I used writeMeshObj command to export mesh but it seems it doesn't help. Would you please let me know if there is any way to transfer grid to structural format like plot3D. Thank you again. Best Regards, Srsh |
||
October 21, 2014, 14:15 |
|
#18 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
October 27, 2014, 12:46 |
|
#19 | |
New Member
Srsh
Join Date: Oct 2014
Posts: 7
Rep Power: 12 |
Quote:
Thank you for your concern. Actually one of my test cases was working on the airfoil. I choose airfoil to see if I could generate quad mesh with SHM. I have to generate grid for several geometries which are different from airfoil. |
||
October 27, 2014, 16:39 |
|
#20 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Srsh,
Quote:
There is a utility named plot3dToFoam, which does the opposite of what you're looking for. The source code is located at the path indicated by the following command: Code:
echo $FOAM_UTILITIES/mesh/conversion/plot3dToFoam Good luck! Best regards, Bruno |
||
Tags |
meshing a 2d, snappyhexmesh 2d |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
[ANSYS Meshing] High quality unstructured hybrid mesh around ship | flinde | ANSYS Meshing & Geometry | 2 | March 3, 2015 19:04 |
2d irregular grid | Remy | Main CFD Forum | 1 | December 22, 2008 05:49 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |