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

Forces on multiple bodies

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 18, 2010, 19:32
Default Forces on multiple bodies
  #1
New Member
 
Join Date: Mar 2009
Posts: 12
Rep Power: 8
jakaranda is on a distinguished road
Hello,
I am trying to get the forces on various bodies within a simulation.
How should I modify my controlDict file so that it spits out the forces on two different objects?

below is my current controlDict file which doesn't do what I want it to. It only gives me the force on my "tuna"

functions
(
forces
{
type forces;
functionObjectLibs ("libforces.so");
outputControl timeStep;
outputInterval 1;
patches (TUNA);
//patches (SIDEWALL);

pname p;
Uname U;
rhoName rhoInf;
log true;
rhoInf 998.0;
CofR (0 0 0);
}


);


// ************************************************** *********************** //
jakaranda is offline   Reply With Quote

Old   March 19, 2010, 02:51
Default
  #2
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 450
Rep Power: 15
linnemann will become famous soon enough
Hi

Should be done like so

Code:
functions
(
forces1
{
type forces;
functionObjectLibs ("libforces.so");
outputControl timeStep;
outputInterval 1;
patches (TUNA);
//patches (SIDEWALL);

pname p;
Uname U;
rhoName rhoInf;
log true;
rhoInf 998.0;
CofR (0 0 0);
}

forces2
 {
 type forces;
 functionObjectLibs ("libforces.so");
 outputControl timeStep;
 outputInterval 1;
 patches (TUNA);
 //patches (SIDEWALL);
 
 pname p;
 Uname U;
 rhoName rhoInf;
 log true;
 rhoInf 998.0;
 CofR (0 0 0);
 }

);
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Reply

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
Reading forces from previous time step within solver SD@TUB OpenFOAM Programming & Development 0 March 14, 2010 07:58
Forces calulated through pressure LVDH OpenFOAM Post-Processing 2 February 26, 2010 04:15
Calculate forces without hydrostatic pressure geir_oye FLUENT 4 November 12, 2009 10:12
Forces on symmetrical bodies Virag CFX 2 July 8, 2007 13:50
Valve Forces in CFdesign Mike Clapp Main CFD Forum 3 March 8, 2001 15:09


All times are GMT -4. The time now is 05:09.