CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   a problem in drag coefficient calculating (https://www.cfd-online.com/Forums/openfoam/86497-problem-drag-coefficient-calculating.html)

anijdon March 24, 2011 02:12

a problem in drag coefficient calculating
 
Hello foamers;
I want to calculate drag coefficient on each walls of a cube with unit dimension which is located in a flat plate. The inlet velocity components are (1,0,0) and the density of fluid is 0.1; I add the following code to controlDict :
functions
{ forces
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
outputControl timeStep;
outputInterval 1;
patches
(
top
);
pName p;
UName U;
log true;
rhoInf 0.1;
CofR (0 0 0 );
liftDir ( 0 0 0 );
dragDir ( 1 0 0 );
pitchAxis ( 0 0 0 );
magUInf 1;
lRef 1;
Aref 1;
}
}
But the result isn't true. Would you tell me the mistake?
Thanks;

EmadTandis March 20, 2013 12:11

Cd calculation
 
Hi
Do you use OpenFoam software for your simulation?


All times are GMT -4. The time now is 07:02.