OpenFOAM mesh generation of an aerofoil
Please suggest a method to generate an aerofoil profile using random points in OpenFOAM.Kindly help me as I am a beginner in OpenFOAM.This is a part of my final year project.
|
Hi Thomas,
I don't know if this is the best way to do it, but there are several NACA generators, like this one. It creates the point coordinates for you. Then you could use gmsh to create the geometry. Make a small slice, if you want to do it in 2D. Then mesh it, save the mesh as an stl surface mesh and create a hexagonal mesh with snappyhexmesh. Or simply generate a tetragonal mesh with gmsh. I did this for a project at university two years ago and it worked out fine. Best regards, Robert |
Hi
you can try this pre-Alpha software http://sourceforge.net/projects/cmeshfoil/ It might do what you want but I dont know if its working properly as I havent tested. |
Hi,
maybe sourcecode from http://sourceforge.net/projects/bladedesigner/ can be changed for your need as well. It was made to create mesh for OpenFoam at least and (python)scripting capabilaties are included. Others looked at Salome http://www.salome-platform.org/forum/forum_10/367832063 alternative Salome =>pythonflu http://pythonflu.wikidot.com/hybridflu => OF Or Blender http://openfoamwiki.net/index.php/Tut_andrew_blender http://jak-o-shadows.users.sourcefor...blairfoil.html Blender can be imported into engrid |
You might want to have a look at the scripts posted here: https://www.hpc.ntnu.no/display/hpc/...l+Calculations which describe the meshing around a NACA 4-digit airfoil.
There are two scripts: one that make an STL-file that you can use in combination with snappyHexMesh, and one that makes a blockMeshDict-file for a C-mesh. They both have their advantages and disadvantages, and you should probably play around with both if you are not very familiar with OpenFOAM. |
hi
how to download and compile cMeshFoam and bladeDesigner? |
Hi
Found this awesome page but I do not know who created it. Please let the author cometh forth to get our appraisal. Well basically it can create a blockMesh dict file for a blade geometry. http://hvirvel.dk/airfoilmesher/ Try it out. |
Thanks for the kind words :)
I made it some years ago - it has its flaws I am sure, but seems to be used quite a bit. You are of course most welcome to send me feedback. Mads Quote:
|
Quote:
please tell me if you found:) |
I downloaded what has come in post #7 (airfoilmesher) Saideh.
it was interesting.you can email the creator if have any questions. |
Quote:
|
email him:madsreck(at)gmail.com
he replies friendly and quickly ask him if he could give you the program. |
Just to clarify: there is nothing to download from http://hvirvel.dk/airfoilmesher/ . You just upload your airfoil x,y data and you get a blockMeshDict thrown back in your face :)
Mads |
Quote:
|
Hi saeidehmohamadi,
then there is something wrong with your Internet connection...I just checked from a remote place and it works just fine. Mads |
Hello dear MadsR,
I want to have an airfoil with a channel into it(from bottom of attack region to the top of back of airfoil),can it be done with your code? could you make some corrections in the code and upload in the page? the channel will be a line,the user can assign thicknes,the start point and the angle of it and your program will make the mesh and return it backto the user. could it be done without a too much efforts? thanks. |
Ehsan, not really sure what you mean. Anyway I don't think I will customize the mesher much, I am thinking maybe implementing some more general functionality at some point, but not at the moment.
Mads |
hi plz tall me tha procedure creating airfoil on ansys cfd i have co-ordinates but i dont know how can i creat tha airfoil.....plzzz its argent
|
Airfoil Meshing
4 Attachment(s)
Hi everyone,
I am running tests on the RAE2822 transonic airfoil http://www.grc.nasa.gov/WWW/wind/val...af/raetaf.html and I already have a mesh which looks like in the picture (closeup and afar) I used GMSH to generate the mesh and I would like to do something similar to what I have found in a book online http://www.pdas.com/refs/tm81198.pdf (pages 41 and 43) because I believe I will be getting better results. Can you help me with that? My Mesh closeup: Attachment 39293 My Mesh from afar: Attachment 39294 Type 1: Attachment 39295 Type 2: Attachment 39296 |
I think you mean hexahedral mesh instead of tetrahedral. If that what you mean, you need to use the transfinite algorithm in GMSH. Check the structured mesh tutorials for GMSH.
Also it is possible to mesh it using blockMesh, check this tutorial https://www.hpc.ntnu.no/display/hpc/...l+Calculations Quote:
|
2 Attachment(s)
Thank you for the help.
I have tried exactly that but I cannot make gmshToFoam to work with what I have and I really don't know what I'm doing wrong. So, I am using the data points of RAE2822 and surround it with a C-type grid. It looks like this: Attachment 40246 Now, my problem is that in order to make it look like that, I used many line loops and plane surfaces and I don't know how to name the physical surfaces: Code:
Physical Surface("back") = {1042,1020,1064,1108,1125,1086}; The gmshToFoam output is: Code:
... |
I had a quick look
Code:
Physical Volume("internal") = {50,52,54,55,53,51}; It should be Code:
Physical Volume("internal") = {1,2,3,4,5,6}; Quote:
|
Ok, so now the checkMesh fails (when I use transfinite)
Code:
Checking geometry... It works wonderfully if I comment all the transfinite lines and just let gmsh do its meshing work. Quote:
|
It isn't easy to get the right mesh from the first trial. You can check the location of these high aspect ratio cells in paraView
|
3 Attachment(s)
Hello all. After converting gmsh to foam and I run , why the results in the show is not like the one in the tutorial ? I run simplefoam for airfoil2d case . Location of faults where ? How do I fix it ? This is my final project. Please advise. Thank you very much
|
Quote:
|
It looks like the initial conditions, zero time.
|
Quote:
|
Quote:
I just tried to use your mesher with default settings (also no airfoil data file), and unfortunately the generated blockMeshDict seems to be broken: Code:
Basic statistics |
Quote:
I'm wondering which format should we use for the coordinates file when generating a different airfoil? Thanks! |
Quote:
Firstly, thanks for the mesher you provided. I'm just wondering when we submit the airfoil coordinates, which format should we use? Because I tried .dat, .txt and .rtf, they don't work. Thanks a lot for the help! Sincerely |
Hi Niels,
I'm wondering which format should we use when submitting a file? Thanks a lot! |
All times are GMT -4. The time now is 21:39. |