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

lift and drag coefficient of box

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2011, 07:27
Default lift and drag coefficient of box
  #1
Member
 
Arina
Join Date: Oct 2009
Location: Belarus
Posts: 71
Rep Power: 16
Akuji is on a distinguished road
Send a message via ICQ to Akuji
Hello!

I visualized turbulent flow around a box. I try to calculate lift and drag coefficients. In controlDict I add

functions
{ forces
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
outputControl timeStep;
outputInterval 1;
patches
( box );
rhoName rhoInf;
log true;
rhoInf 1.2041;
CofR ( 0 0 0 );
liftDir (0 1 0);
dragDir (0 0 1);
pitchAxis (0 0 0);
magUInf 4.0;
lRef 0.8;
Aref 0.64;
}
}

At the end of time, I have a file forces. The results are wrong:
Cd=-1.85
Cl=-12665

Size of box: fin is 0.8m
Size of tunnel: fin is 5.6m, heigh is 2.4m

Where I have a mistake?
Akuji is offline   Reply With Quote

Old   March 30, 2011, 10:12
Default
  #2
Member
 
Arina
Join Date: Oct 2009
Location: Belarus
Posts: 71
Rep Power: 16
Akuji is on a distinguished road
Send a message via ICQ to Akuji
Nobody has problems with problem like this?..
Akuji is offline   Reply With Quote

Old   March 30, 2011, 10:44
Default
  #3
New Member
 
Fatih
Join Date: Sep 2010
Location: Hamburg
Posts: 12
Rep Power: 15
ang_dipl_ing_fd is on a distinguished road
hi akuji,

if your simulation is 2D, then you have to check your Aref. lets say your 2D mesh is only 1 mm thick than you have to set your Aref

Aref=lRef*thickness-of-mesh=0.8/0.001

Edit:

Sorry, it should be Aref=0.8*0.001 not 0.8/0.001

Last edited by ang_dipl_ing_fd; March 31, 2011 at 06:15.
ang_dipl_ing_fd is offline   Reply With Quote

Old   March 31, 2011, 06:18
Default
  #4
Member
 
Arina
Join Date: Oct 2009
Location: Belarus
Posts: 71
Rep Power: 16
Akuji is on a distinguished road
Send a message via ICQ to Akuji
Quote:
Originally Posted by ang_dipl_ing_fd View Post
hi akuji,

if your simulation is 2D, then you have to check your Aref. lets say your 2D mesh is only 1 mm thick than you have to set your Aref

Aref=lRef*thickness-of-mesh=0.8/0.001

Edit:

Sorry, it should be Aref=0.8*0.001 not 0.8/0.001

And...if my mesh is 3D? (It's really 3d)
Akuji is offline   Reply With Quote

Old   March 31, 2011, 15:28
Default
  #5
New Member
 
Fatih
Join Date: Sep 2010
Location: Hamburg
Posts: 12
Rep Power: 15
ang_dipl_ing_fd is on a distinguished road
in openfoam it is always 3D. with 2D i meant that front and back patches are empty. the 3rd dimension is the thickness of the volume.

best regards
ang_dipl_ing_fd is offline   Reply With Quote

Old   April 7, 2011, 05:39
Default
  #6
Member
 
Arina
Join Date: Oct 2009
Location: Belarus
Posts: 71
Rep Power: 16
Akuji is on a distinguished road
Send a message via ICQ to Akuji
Well, I find a right solution. But I still have a question.

rhoName rhoInf;
log true;
rhoInf 1.2041;
CofR ( 0 0 0 );
liftDir (0 -0.01 0);
dragDir (0 0 1);
pitchAxis (0 0 0);
magUInf 4.0;
lRef 0.8;
Aref 0.64;


Why I need to set liftDir 0.01?
Akuji is offline   Reply With Quote

Old   April 7, 2011, 05:51
Default
  #7
Member
 
Arina
Join Date: Oct 2009
Location: Belarus
Posts: 71
Rep Power: 16
Akuji is on a distinguished road
Send a message via ICQ to Akuji
And one more question

I find information, that wrong to calculate lift coefficient if square of windward surface is not equal of square of downwind surface. What to do in this case?
Akuji 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
lift & drag coefficient on airfoil n. natik FLUENT 8 March 31, 2015 19:02
Drag and Lift coefficient from Least square regression tparente Main CFD Forum 1 September 2, 2010 14:08
Drag coefficient & Lift coefficient?? mehrdadeng CFX 15 December 9, 2009 21:49
Automotive test case vinz OpenFOAM Running, Solving & CFD 98 October 27, 2008 08:43
drag and lift coefficient Noé Siemens 5 July 13, 2004 10:21


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