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

Forces on multiple bodies

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2010, 19:32
Default Forces on multiple bodies
  #1
New Member
 
Join Date: Mar 2009
Posts: 14
Rep Power: 17
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: 556
Rep Power: 27
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


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
Reading forces from previous time step within solver SD@TUB OpenFOAM Programming & Development 5 April 24, 2023 12:51
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 14: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 14:17.