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

Calculate Lift and Drag Coefficients CL and CD

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 3 Post By Simon Lapointe
  • 1 Post By desert_1250

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 28, 2009, 20:04
Default Calculate Lift and Drag Coefficients CL and CD
  #1
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17
sven is on a distinguished road
Hi,

I am simulating a turbulent flow around a square. For This flow, I want to calculate the lift and the drag coefficients CD and CL. By scanning through posts in this forum, I found that this is possible by adding the following lines to the controlDict file:

Code:
functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so"); //Lib to load
patches (cylinder); // change to your patch name
rhoInf 1.204; //Reference density for fluid
CofR (0 0 0); //Origin for moment calculations
outputControl timeStep;
outputInterval 100;
}

forceCoeffs
{
type forceCoeffs;
functionObjectLibs ("libforces.so");
patches (cylinder); //change to your patch name
rhoInf 1.204;
CofR (0 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 0);
magUInf 0.1;
lRef 1;
Aref 1;
outputControl timeStep;
outputInterval 100;
}
);
Unfortunately this does not yield the expected values for CL and CD. For fixing this problem and obtaining the correct CL/CD I first need some information on the code posted above:


  1. rhoInf: What is the reference density? The density in my free stream?
  2. What is magUInf? How can i determine/calculate this value?
  3. The program seems to use "libforces.so". I could find this file, but where can I find the corresponding source code?
  4. Where are the equations for calculating CD and CL defined?
I appreciate your help. Thank you very much
sven is offline   Reply With Quote

 


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



All times are GMT -4. The time now is 10:25.