|
[Sponsors] |
March 18, 2010, 19:32 |
Forces on multiple bodies
|
#1 |
New Member
Join Date: Mar 2009
Posts: 14
Rep Power: 17 |
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); } ); // ************************************************** *********************** // |
|
March 19, 2010, 02:51 |
|
#2 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
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. |
|
|
|
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 |