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

force function not working in OF 1.6

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 4, 2009, 11:31
Default force function not working in OF 1.6
  #1
New Member
 
Francesco
Join Date: Jul 2009
Posts: 13
Rep Power: 7
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, 11:36
Default
  #2
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 185
Rep Power: 8
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, 11:54
Smile thanks
  #3
New Member
 
Francesco
Join Date: Jul 2009
Posts: 13
Rep Power: 7
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, 14:24
Default
  #4
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 185
Rep Power: 8
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

Thread Tools
Display Modes

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 On
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 09: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 03:31.