CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] Generating Mesh - NACA0012 Airfoil

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

Like Tree1Likes
  • 1 Post By baila12

LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2013, 09:13
Default Generating Mesh - NACA0012 Airfoil
New Member
Cay Myers
Join Date: Jun 2013
Posts: 14
Rep Power: 12
baila12 is on a distinguished road
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!
iafpython likes this.
baila12 is offline   Reply With Quote

Old   July 2, 2013, 09:41
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
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
My Personal Website (
Telegram channel (
nimasam is offline   Reply With Quote

Old   July 2, 2013, 09:45
New Member
Cay Myers
Join Date: Jun 2013
Posts: 14
Rep Power: 12
baila12 is on a distinguished road
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.
baila12 is offline   Reply With Quote

Old   July 25, 2013, 06:57
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 17
hk318i is on a distinguished road
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.
hk318i is offline   Reply With Quote


airfoil mesh, blockmeshdict, naca0012

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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
[snappyHexMesh] How to Do External Mesh for Airfoil sHM msuaeronautics OpenFOAM Meshing & Mesh Conversion 1 September 23, 2012 04:00
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52

All times are GMT -4. The time now is 16:02.