Generating Mesh - NACA0012 Airfoil
I am trying to generate a mesh of a NACA0012 airfoil and then run a case with water and air running over the airfoil. I have an stl file of the airfoil and have attempted to convert this to a blockMeshDict file to be able to modify the airFoil2D tutorial case and use blockMesh to generate the mesh, but haven't had any luck. I am very new to OpenFOAM and CFD concepts, so I may be going about this entirely the wrong way. I am using Ubuntu 12.04 and OpenFOAM-2.2.0.
Any help pointing me in the right direction, such as how to correctly generate the mesh, what solvers to use, etc., would be greatly appreciated!
welcome to forum
first of all, you can find your solution faster by search in forum, forexample search airfoil,
NACA and so on , i made it for you, and some interesting link is below:
in brief, you have two choice:
1- using blockMesh ( create a Cmesh around airfoil)
2-uisng snappyHexMesh if you have stl file
Thanks for the quick reply, although I have already searched the forum and have read both of those threads. Either the person who posted the thread had some information previously that I did not have or there were parts of the given solution that I didn't understand, so that's why I decided to post my own question.
I think you should follow the wingMotion tutorial. You could find it under incompressible/pimpleDyMFoam.
Check the Allrun file.
Basically, you will have to follow the following steps;
1 - Generate .stl file using any CAD program like FreeCAD.
2 - Create background mesh using blockMesh
3 - Using snappyHexMesh to create your mesh
4 - use extrudeMesh to create 2D mesh
And to achieve a good yPlus value for your case you could use refineWallLayer
Also you could use blockMesh only which I am not prefer. I use it only for simple cases.
|All times are GMT -4. The time now is 15:51.|