forceCoeffs in simpleFoam for and airfoil
1 Attachment(s)
Hi everyone,
I am learning how to get Cl and Cd coefficients from a simpleFoam simulation . I added the following part to my controlDict file
PHP Code:
functions { forces { type forces; functionObjectLibs ("libforces.so"); //Lib to load patches (wall); // change to your patch name rhoName rhoInf; rhoInf 1.006; //Reference density for fluid CofR (1 -0.004 0); //Origin for moment calculations outputControl timeStep; outputInterval 1; } forceCoeffs { // 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"); patches (wall); rhoName rhoInf; rhoInf 1.006; CofR (1 -0.004285 0); liftDir (0 1 0); dragDir (1 0 0); pitchAxis (0 0 1); magUInf 67; lRef 1; Aref 1;
outputControl timeStep; outputInterval 1; }
}
the problem is that I am getting a file with 2000 values of each coefficient!! I don't know how to get the final one ? can someone please help me
|