CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Airfoil NACA0012 drag and lift coefficient validation

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

Like Tree4Likes
  • 1 Post By Geon-Hong
  • 2 Post By JRemington
  • 1 Post By JRemington

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 13, 2024, 10:23
Default Airfoil NACA0012 drag and lift coefficient validation
  #1
New Member
 
Sigfrido Valentino
Join Date: Mar 2024
Posts: 2
Rep Power: 0
sigfridovalentino is on a distinguished road
Hello everyone,
I've recently started some CFD simulations in OpenFOAM 10, but I'm facing some problems with drag and lift coefficient calculation.
I'm basically using Openfoam's simpleFoam Airfoil 2D NACA0012 tutorial and have reproduced the conditions described here:https://www.openfoam.com/documentati...l-2d-resources. Inside the controlDict file I inserted the functions to calculate the drag and lift coefficient, but the values ​​obtained do not match the experimental data (https://turbmodels.larc.nasa.gov/NAC...on_expdata.dat), for example, using the configuration described in the first link, for an angle of attack of 0° I get cd=1.69e-02 instead of 0.809e-02.
There are similar discussions on the forum, but despite having tried what had been recommended to others (lowering the solver tolerances, increasing the number of iterations, checking the initial conditions several times, ...) it didn't work. What's strange is that this and other tutorials (like the rhoSimpleFoam airfoil one) don't give me results comparable to those of the experimental data.
You can find all the files in this repository of mine: https://github.com/sigfridovalentino/airfoil2dnaca0012
Thank you all
sigfridovalentino is offline   Reply With Quote

Old   March 15, 2024, 08:10
Default You should check the model again. It doesn't look like NACA0012 airfoil
  #2
Member
 
Geon-Hong Kim
Join Date: Feb 2010
Location: Ulsan, Republic of Korea
Posts: 36
Rep Power: 17
Geon-Hong is on a distinguished road
Hi,

I have a question. Is the airfoil really NACA0012? Where did you get the airfoil data?

First of all, your airfoil doesn't seem to be NACA0012. Even the airfoil looks like a cambered one. And the thickness ratio is over 18%, not 12%. Please check if the model is NACA0012 or not. Please refer to fig 1.

Second, the mesh has too high y+. y+ of your mesh shows,

Code:
patch walls y+ : min = 2368.4886, max = 19630.814, average = 14302.302
This means that the wall bounded flow is not resolved properly. (fig 2)


In addition, in my opinion, your mesh is too coarse to simulate an airfoil (fig 3). I recommend you to review the model and mesh first.

Good luck!
Attached Images
File Type: jpg fig 1.jpg (34.3 KB, 36 views)
File Type: png fig 2.png (6.0 KB, 24 views)
File Type: jpg fig 3.jpg (196.2 KB, 32 views)
AtoHM likes this.
Geon-Hong is offline   Reply With Quote

Old   March 15, 2024, 08:30
Default
  #3
New Member
 
Sigfrido Valentino
Join Date: Mar 2024
Posts: 2
Rep Power: 0
sigfridovalentino is on a distinguished road
Quote:
Originally Posted by Geon-Hong View Post
Hi,

I have a question. Is the airfoil really NACA0012? Where did you get the airfoil data?

First of all, your airfoil doesn't seem to be NACA0012. Even the airfoil looks like a cambered one. And the thickness ratio is over 18%, not 12%. Please check if the model is NACA0012 or not. Please refer to fig 1.

Second, the mesh has too high y+. y+ of your mesh shows,

Code:
patch walls y+ : min = 2368.4886, max = 19630.814, average = 14302.302
This means that the wall bounded flow is not resolved properly. (fig 2)


In addition, in my opinion, your mesh is too coarse to simulate an airfoil (fig 3). I recommend you to review the model and mesh first.

Good luck!

Hi Geon-Hong,
thank you for your kind reply.
The mesh I'm using is the one given on the very same page 'Turbulent flow over NACA0012 airfoil (2D)' of the User Guide of OpenFOAM (link to the page: https://www.openfoam.com/documentati...l-2d-resources, link to the repository with the mesh: https://develop.openfoam.com/Develop...Foam/airFoil2D).
I'm super confident with the fact that you are right about the issue, nevertheless I cannot validate the drag and lift coefficients by using the other tutorials given with OpenFOAM 10, for example the rhoSimpleFoam-airfoil NACA0012 one, even if I'm setting the same initial conditions of the experiment.
Thank you
Attached Images
File Type: jpg Screenshot from 2024-03-15 13-15-16.jpg (56.5 KB, 19 views)
sigfridovalentino is offline   Reply With Quote

Old   March 15, 2024, 10:34
Default
  #4
Senior Member
 
Join Date: Dec 2021
Posts: 292
Rep Power: 6
Alczem is on a distinguished road
The mesh is probably responsible here, but are you also sure you are using the correct reference area to compute your Cd? There is a factor of around 2 between the two Cd, and I have made this mistake when comparing drag coefficients between bodies but using irrelevant reference areas. I would rather compare the drag and lift forces to make sure it has nothing to do with postprocessing the data (but again, the y+ is NOT fine ).
Alczem is offline   Reply With Quote

Old   August 13, 2025, 14:42
Default
  #5
New Member
 
Jim Remington
Join Date: Jul 2025
Posts: 7
Rep Power: 2
JRemington is on a distinguished road
This is an old post, but I had the same problem. The airfoil in the incompressible/airFoil2D example is NOT NACA0012. It is not symmetrical, and it is too thick.


Furthermore the mesh fails the checkMesh test, and has the y+ problem indicated above.


The example is unsuitable for validation of OpenFoam.
Svetlana and Reptider like this.
JRemington is offline   Reply With Quote

Old   August 17, 2025, 22:21
Default
  #6
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 428
Rep Power: 16
Svetlana is on a distinguished road
Quote:
Originally Posted by JRemington View Post
This is an old post, but I had the same problem. The airfoil in the incompressible/airFoil2D example is NOT NACA0012. It is not symmetrical, and it is too thick.


Furthermore the mesh fails the checkMesh test, and has the y+ problem indicated above.


The example is unsuitable for validation of OpenFoam.
Could you please advise; what version of openfoam you are using.
Svetlana is offline   Reply With Quote

Old   August 17, 2025, 22:30
Default
  #7
New Member
 
Jim Remington
Join Date: Jul 2025
Posts: 7
Rep Power: 2
JRemington is on a distinguished road
I'm using OpenFOAM versions 2412 and 13 on two different machines.


However, just by looking at the mesh, it is obvious that the airfoil is not NACA0012. Until you know what the mesh actually represents, there is no point in using the example for validation, as there are no experimental data for comparison.


See my other post for a satisfactory validation with NACA0012, using the NASA meshes.
Unable to validate OpenFoam installation with airFoil2D tutorial

Last edited by JRemington; August 17, 2025 at 22:41. Reason: typos
JRemington is offline   Reply With Quote

Old   August 18, 2025, 04:17
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,358
Rep Power: 32
Yann will become famous soon enoughYann will become famous soon enough
JRemington is right, the airfoil2D tutorial default setup in not a NACA0012.

For those who might be interested, there is a NACA0012 blockMesh in the aerofoilNACA0012 tutorial:
https://develop.openfoam.com/Develop...rofoilNACA0012
Yann is offline   Reply With Quote

Old   August 18, 2025, 12:32
Default
  #9
New Member
 
Jim Remington
Join Date: Jul 2025
Posts: 7
Rep Power: 2
JRemington is on a distinguished road
Thanks for pointing to that tutorial. However, it seems to be missing a file.
Attempts to run blockMesh in OpenFOAM version 2412 for the case result in this error message


Quote:
Creating block mesh from "system/blockMeshDict"


--> FOAM FATAL ERROR: (openfoam-2412 patch=250528)
Cannot find surface "NACA0012.obj" starting from "/home/jim/tutorial/aerofoilNACA0012/constant/geometry/aerofoil"


From static Foam::fileName Foam::fileFormats::surfaceFormatsCore::checkFile(c onst Foam::IOobject&, const Foam::dictionary&, bool)
in file surfaceFormats/surfaceFormatsCore.C at line 297.

FOAM exiting
Presumably that surface contains all the interesting NACA0012 airfoil details.
JRemington is offline   Reply With Quote

Old   August 18, 2025, 12:40
Default
  #10
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,358
Rep Power: 32
Yann will become famous soon enoughYann will become famous soon enough
Did you check/run the Allrun script?
The geometry has to be copied from the resources directory before running blockMesh. It should be there.

Code:
mkdir -p constant/geometry

cp -f \
    "$FOAM_TUTORIALS"/resources/geometry/NACA0012.obj.gz \
    constant/geometry

restore0Dir

runApplication blockMesh
Yann is offline   Reply With Quote

Old   August 18, 2025, 12:47
Default
  #11
New Member
 
Jim Remington
Join Date: Jul 2025
Posts: 7
Rep Power: 2
JRemington is on a distinguished road
Ahh, thanks! I missed that step, and will study the results of the complete run.
Yann likes this.
JRemington is offline   Reply With Quote

Reply

Tags
airfoil 2d, data validation, drag coefficient, lift coefficient, openfoam tutorial

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
Calculation of lift and drag coefficients on airfoil CoolHersheys OpenFOAM Post-Processing 5 September 27, 2021 07:04
oepnfoam naca0012 I can not get the correct lift coefficient and drag coefficient cheng1 OpenFOAM 4 April 20, 2021 00:43
Airfoil Coefficient of Lift and Drag - Published Data vs CFD Results Mick2450 CFX 4 April 23, 2020 20:18
wrong SU2 calculation for lift and drag coefficient for NAC4421 mechy SU2 7 January 9, 2017 06:18
High drag for airfoil compared to XFOIL and wind tunnel data Ry10 SU2 15 October 30, 2016 18:27


All times are GMT -4. The time now is 19:47.