CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

drag calculation OF1.6

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

LinkBack Thread Tools Display Modes
Old   January 18, 2010, 07:37
Default drag calculation OF1.6
Axel Söhngen
Join Date: Jan 2010
Location: Germany, Trier
Posts: 31
Rep Power: 7
chelvistero is on a distinguished road
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?

chelvistero is offline   Reply With Quote

Old   January 18, 2010, 14:17
Join Date: May 2009
Posts: 51
Rep Power: 8
gfilip is on a distinguished road
Hi Axel,

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

    type forceCoeffs;
    functionObjectLibs ("");
    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.

gfilip 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

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 CD-adapco 6 November 15, 2004 05:41

All times are GMT -4. The time now is 21:29.