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

doubt about drag calculation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 16, 2016, 23:40
Question doubt about drag calculation
  #1
New Member
 
Ivan Gomez
Join Date: Feb 2016
Posts: 5
Rep Power: 10
id.gomez65 is on a distinguished road
Hello,

i am doing a simulation of ahmed body with OpenFoam and i know that OpenFoam calculate the drag with this algorithm in the ControlDict.
PHP Code:
forces
{
// 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" );
outputControl timeStep;
outputInterval 20;
patches
(
ahmed0
);
pName p;
UName U;
log true;
rhoName rhoInf;
rhoInf 1.225;
CofR 0 0 0 );
liftDir 0 1 0 );
dragDir ( -1 0 0 );
pitchAxis 0 0 1 );
magUInf 61.538;
lRef 1;
Aref 0.056016;

i have a doubt about the calculation of Drag, if i use a half of the body with a symmetry plane the Aref has to be the half of the Aref with the entire body?

where i can see the algorithm of calculation of Forces in openFoam?
id.gomez65 is offline   Reply With Quote

Old   February 18, 2016, 04:59
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 647
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

1. Yes for half a body you need half Aref

2. running

Code:
find $FOAM_SRC -iname *forceCoeffs.?
In the terminal will give you the locatation of some files with source code.

Regards,
Tom
id.gomez65 likes this.
tomf is offline   Reply With Quote

Reply

Tags
drag coefficient, simmetry


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
Pressure drag calculation lc05 Main CFD Forum 2 November 1, 2010 08:50
Drag calculation strange results Iddel Main CFD Forum 0 October 21, 2009 04:21
Solver and geometry choose for drag coefficient calculation around circular cylinder at large Re lin OpenFOAM Running, Solving & CFD 3 April 16, 2009 11:50
Drag Coeffecient Calculation Mohamed Sobh Main CFD Forum 5 April 8, 2005 15:07
Drag calculation from Navier stokes equat SONA Main CFD Forum 0 August 9, 2004 16:14


All times are GMT -4. The time now is 15:47.