CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   force function not working in OF 1.6 (

franzisko August 4, 2009 11:31

force function not working in OF 1.6
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

type forces;
functionObjectLibs (""); //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

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


podallaire August 4, 2009 14:24

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

Good luck


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