CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

force function not working in OF 1.6

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2009, 12:31
Default force function not working in OF 1.6
  #1
New Member
 
Francesco
Join Date: Jul 2009
Posts: 13
Rep Power: 17
franzisko is on a distinguished road
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
franzisko is offline   Reply With Quote

Old   August 4, 2009, 12:36
Default
  #2
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
try to add those in your controlDict :

outputControl outputTime;
outputInterval 1;
podallaire is offline   Reply With Quote

Old   August 4, 2009, 12:54
Smile thanks
  #3
New Member
 
Francesco
Join Date: Jul 2009
Posts: 13
Rep Power: 17
franzisko is on a distinguished road
Hi,
Thank you very much,
It seems to work good,
I hope to study better the code in the next...

Francesco
franzisko is offline   Reply With Quote

Old   August 4, 2009, 15:24
Default
  #4
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
... maybe "outputControl timeStep;" would be more appropriate for what you are doing

Good luck

PO
podallaire is offline   Reply With Quote

Reply

Tags
1.6, drag, force, icofoam, lift


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
Can anybody help me to solve the list errors while compiling Openfoam 15 on Opensuse 103 32bit coompressor OpenFOAM Installation 0 November 12, 2008 20:53
Could you please help me about the VTKFoam liugx212 OpenFOAM Pre-Processing 5 February 13, 2008 12:31
Force function calculator Anil CFX 0 March 20, 2007 19:45
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


All times are GMT -4. The time now is 10:04.