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

forceCoeffs in simpleFoam for and airfoil

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2012, 05:31
Exclamation forceCoeffs in simpleFoam for and airfoil
  #1
New Member
 
Aroua
Join Date: Mar 2012
Posts: 14
Rep Power: 14
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:
functions
{
forces
{
type forces;
functionObjectLibs ("libforces.so"); //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;
}
forceCoeffs
{
// 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 ("libforces.so");
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, 35 views)
appa is offline   Reply With Quote

Old   June 7, 2012, 06:04
Default
  #2
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
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

Reply

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



All times are GMT -4. The time now is 08:05.