CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

forceCoeffs in simpleFoam for and airfoil

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

LinkBack Thread Tools Display Modes
Old   June 7, 2012, 04:31
Exclamation forceCoeffs in simpleFoam for and airfoil
New Member
Join Date: Mar 2012
Posts: 14
Rep Power: 5
appa is on a distinguished road
Hi everyone,

I am learning how to get Cl and Cd coefficients from a simpleFoam simulation . I added the following part to my controlDict file
PHP Code:
type forces;
functionObjectLibs (""); //Lib to load
patches (wall); // change to your patch name
rhoName rhoInf;
rhoInf 1.006//Reference density for fluid
CofR (-0.004 0); //Origin for moment calculations
outputControl   timeStep;
outputInterval  1;
// rhoInf - reference density
// CofR - Centre of rotation
// dragDir - Direction of drag coefficient
// liftDir - Direction of lift coefficient
// pitchAxis - Pitching moment axis
// magUinf - free stream velocity magnitude
// lRef - reference length
// Aref - reference area
type forceCoeffs;
functionObjectLibs ("");
patches (wall);
rhoName rhoInf;
rhoInf 1.006;
CofR (-0.004285 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 0 1);
magUInf 67;
lRef 1
Aref 1;

outputControl   timeStep;
outputInterval  1;

the problem is that I am getting a file with 2000 values of each coefficient!! I don't know how to get the final one ? can someone please help me
Attached Files
File Type: txt forceCoeffs.txt (80.3 KB, 29 views)
appa is offline   Reply With Quote

Old   June 7, 2012, 05:04
Senior Member
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
You are getting a value for every iteration. You may want to average the last iterations. I would pick at least the last 500 iterations.
lovecraft22 is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

All times are GMT -4. The time now is 11:35.