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

drag calculation OF1.6

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2010, 07:37
Default drag calculation OF1.6
  #1
Member
 
Axel Söhngen
Join Date: Jan 2010
Location: Germany, Trier
Posts: 31
Rep Power: 16
chelvistero is on a distinguished road
Hello,
I'm new using OpenFoam and I want to calculate the drag of an icoFoam case. Is there a simple command to make such a calculation?

Thanks
chelvistero is offline   Reply With Quote

Old   January 18, 2010, 14:17
Default
  #2
Member
 
Join Date: May 2009
Posts: 54
Rep Power: 17
gfilip is on a distinguished road
Hi Axel,

You can simply add the code below to your system/controlDict file:

Code:
functions
(
    forceCoeffs
    {
    type forceCoeffs;
    functionObjectLibs ("libforces.so");
    patches (foil); //change to your patch name
    rhoName rhoInf;
    rhoInf 1.2255;
    CofR (0 0 0);
    liftDir (0 1 0);
    dragDir (1 0 0);
    pitchAxis (0 0 0);
    magUInf 0.621; //freestream U
    lRef 1; //reference length (for moment calculations)
    Aref 0.1;  //reference area 
    outputControl timeStep;
    outputInterval 1;
    }
);
This will create a forceCoeff folder in your case dir, with CL, CD, and CM, at the specified output intervals.


-Greg
gfilip 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
Calculation of Drag Coefficient manually PRASHANT GHADGE FLUENT 4 December 13, 2012 16:31
Drag Calculation... Code_Saturne? Or any other examples? ArtyB Main CFD Forum 1 January 10, 2010 19:18
lift and drag calculation actone CFX 0 December 27, 2006 18:11
Boundary condition and drag calculation. Kwame George Main CFD Forum 0 November 12, 2005 11:15
Warning 097- AB Siemens 6 November 15, 2004 05:41


All times are GMT -4. The time now is 22:52.