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

Lift and Drag Coefficients not calculated correctly

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2016, 18:39
Default Lift and Drag Coefficients not calculated correctly
  #1
Member
 
Join Date: Apr 2016
Posts: 39
Rep Power: 10
ss32 is on a distinguished road
I've run into a weird problem that only shows up with meshes imported from Pointwise. I can run the same case for a NACA0012 and get different results depending on if the mesh was generated by OpenFoam or if it was created in Pointwise and imported. I'm using this as a test bed - https://github.com/petebachant/NACAFoil-OpenFOAM

I run his script to generate the airfoil at 0 angle of attack, and then modify 0/U to a 5m/s free stream at an 8 degree angle of attack. I do the same thing for a NACA0012 generated with a Pointwise script, generate the C grid (albeit higher resolution), define the same boundary conditions, and import it into OpenFoam. For the same time steps I'm getting two orders of magnitude difference in values of Cl and for the life of me cannot figure out why.

Full case directories for both:
Python/Github NACA case - https://dl.dropboxusercontent.com/u/...Python0012.zip
Pointwise case - https://dl.dropboxusercontent.com/u/...ntwise0012.zip
ss32 is offline   Reply With Quote

Old   April 28, 2016, 08:19
Default
  #2
Senior Member
 
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12
Kina is on a distinguished road
Your 0/U in the Pointwise directory says:

Code:
    inlet
    {
        type            fixedValue;
        value           uniform (1 0 0);
    }
meaning you initialize your internalField with 5m/s but the the freestream flow changes to (1 0 0). I recommend changing the code to:

Code:
    inlet
    {
        type            fixedValue;
        value           $internalField;
    }
to avoid such errors.

Cheers
Alex
Kina is offline   Reply With Quote

Old   April 28, 2016, 08:40
Default
  #3
Member
 
Join Date: Apr 2016
Posts: 39
Rep Power: 10
ss32 is on a distinguished road
Oh wow I feel dumb, thank you! Cl values are looking good for the pontwise mesh now!
ss32 is offline   Reply With Quote

Reply


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
wrong SU2 calculation for lift and drag coefficient for NAC4421 mechy SU2 7 January 9, 2017 06:18
Can fluent get the lift and drag coefficients of the two walls (in different directio yuyuxuan FLUENT 8 January 10, 2014 21:13
lift and drag coefficients around a ground vehicle Pedro CFX 3 September 5, 2012 19:31
Great lift coefficients but negative drag coefficient?! nez FLUENT 0 November 28, 2011 14:57
Lift and Drag Coefficients Reliability Luis FLUENT 2 December 27, 2005 15:45


All times are GMT -4. The time now is 14:06.