CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How to find Cd & Cl in Motorcycle tutorial (https://www.cfd-online.com/Forums/openfoam/87589-how-find-cd-cl-motorcycle-tutorial.html)

athirach2428 April 24, 2011 06:33

How to find Cd & Cl in Motorcycle tutorial
 
Hello,
I’m a new OpenFoam user

since I'm able to configure an run simple OpenFoam cases
, I went through the motorBike tutorial Everything worked .So I don’t know how to find Cd(drag coefficient) and Cl(lift coefficient) on this tutorial .I would be thankful if there anyone who can help me.

Greg Givogue April 24, 2011 16:00

Here is another example of the forces utility parameters that you need to edit for the motorBike Tut and add to the end of the controlDict file.

functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so"); // lib to load
patches (pod); // patch name. for multiple patches, seperate patch names by a space
pName p;
UName U;
rhoName rhoInf;
log true;
rhoInf 1.225; // Reference density for fluid - changed to SL air from 1.204
CofR (0.5588 0 -0.635); //for moment calc
outputControl timeStep;
outputInterval 1;
}

forceCoeffs
{
type forceCoeffs;
functionObjectLibs ("libforces.so");
patches (pod);
pName p;
UName U;
rhoName rhoInf;
log true;
rhoInf 1.225;
CofR (0.5588 0 -0.635); //edit for Cm
liftDir (0 0 -1);
dragDir (-1 0 0);
pitchAxis (0 1 0);
magUInf 89.41;
lRef 9.8; // ref length
Aref 2.2; // X-section of body
outputControl timeStep;
outputInterval 1;
}
);

athirach2428 April 25, 2011 11:20

Thank you very much


All times are GMT -4. The time now is 19:16.