CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   force function not working in OF 1.6 (http://www.cfd-online.com/Forums/openfoam/67115-force-function-not-working-1-6-a.html)

franzisko August 4, 2009 11:31

force function not working in OF 1.6
 
Hi,
I want to calculate forces, and then lift and drag with OF 1.6. I want to run using icoFoam for now. I start inserting

functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so"); //Lib to load -> dylib on Mac and so on Linux
patches (sfera_Sphere); //Name of patche to integrate forces
rhoInf 1.0; //Reference density for fluid - can be changed later ...
//CofR (0 0 0); //Origin for moment calculations
}
);

in my system/controlDict file but it gives me this error:
keyword outputControl is undefined in dictionary "::functions::forces"

file: ::functions::forces from line 54 to line 57.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 388.

FOAM exiting

can anybody help me?
thanks, Francesco

podallaire August 4, 2009 11:36

try to add those in your controlDict :

outputControl outputTime;
outputInterval 1;

franzisko August 4, 2009 11:54

thanks
 
Hi,
Thank you very much,
It seems to work good,
I hope to study better the code in the next...

Francesco

podallaire August 4, 2009 14:24

... maybe "outputControl timeStep;" would be more appropriate for what you are doing

Good luck

PO


All times are GMT -4. The time now is 22:21.