|
[Sponsors] |
April 26, 2015, 14:36 |
forceCoeffs
|
#1 |
New Member
shokat
Join Date: Apr 2015
Location: Iran,Amol
Posts: 9
Rep Power: 11 |
Dear friends,
I run a case study in openfoam, i added to controlDict a subfunction for computing Cd and CL,such as, --------------------------------------------------------------------------------- forceCoeffs_object { // 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 ("body1" "body2" "body3"); type forceCoeffs; functionObjectLibs ("libforces.so"); //patches ("body1" "body2" "body3"); patches (movingWall); pName p; Uname U; rhoName rhoInf; rhoInf 1.0; //// Dump to file log true; CofR (0.0 0 0); liftDir (0 1 0); dragDir (1 0 0); pitchAxis (0 0 1); magUInf 1.0; lRef 1; // reference length for moments!!! Aref 2.0; // reference area 1 for 2d outputControl outputInterval timeStep; outputInterval 1; --------------------------------------------------------------------------------- the program has been run without error,but it did not have output for forceCoefficient!!! I do not know how i compute these parameters and draw!!! please help me, thanks |
|
April 26, 2015, 14:41 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
Dear khatereh
Did you define patch name properly?
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
April 26, 2015, 15:35 |
|
#3 |
New Member
shokat
Join Date: Apr 2015
Location: Iran,Amol
Posts: 9
Rep Power: 11 |
hi,
i am sure for patch name! |
|
April 28, 2015, 05:06 |
|
#4 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24 |
then upload your test , your setup seems perfect
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
forceCoeffs and rhoInf dependency | Horus | OpenFOAM | 3 | August 9, 2018 03:55 |
Problem in simpleFoam airFoil2D forceCoeffs | junkie71189 | OpenFOAM Running, Solving & CFD | 31 | March 11, 2017 21:56 |
Adding forcecoeffs file to the controldict is causing pimpleDyMfoam to crash. | pruthvi1991 | OpenFOAM Running, Solving & CFD | 13 | April 13, 2015 01:46 |
RNG diverged during the analysis the flow over a multi element airfoil, why? | s.m | OpenFOAM Running, Solving & CFD | 0 | August 5, 2013 08:39 |
Problem in forceCoeffs file | srini_esi | OpenFOAM | 0 | October 19, 2012 06:34 |