|
[Sponsors] |
October 5, 2010, 21:27 |
Forces printout for multiple patches
|
#1 |
Senior Member
jeff osborne
Join Date: Mar 2010
Posts: 108
Rep Power: 16 |
Hi all,
I'm trying to print out forces and forcesCoeffs for more than 1 patch and I'm not sure on the syntax that I use in my controlDict file. The case that I have is a simple 2D pipe flow with some bends. I am using my wall friction as a condition for convergence so I need to monitor it as I progress through my iterations. Any help would be greatly appreciated. Thanks |
|
October 29, 2010, 11:29 |
|
#2 |
Member
Nick Gardiner
Join Date: Apr 2009
Location: Chichester, UK
Posts: 94
Rep Power: 17 |
Hi
e.g.: forcesA { interval 25; type forces; functionObjectLibs ("libforces.so"); //Lib to load patches (vanA); // change to your patch name rhoName rhoInf; rhoInf 1.23; //Reference density for fluid CofR (0 0 0); //Origin for moment calculations } forcesB { interval 25; type forces; functionObjectLibs ("libforces.so"); //Lib to load patches (vanB); // change to your patch name rhoName rhoInf; rhoInf 1.23; //Reference density for fluid CofR (0 0 0); //Origin for moment calculations } forcesC { interval 25; type forces; functionObjectLibs ("libforces.so"); //Lib to load patches (vanC); // change to your patch name rhoName rhoInf; rhoInf 1.23; //Reference density for fluid CofR (0 0 0); //Origin for moment calculations } |
|
November 10, 2010, 12:01 |
|
#3 |
New Member
Amin
Join Date: Oct 2010
Location: Notre Dame, US
Posts: 6
Rep Power: 16 |
Hi Jeff,
I am kind of new in OpenFOAM world; could you please help me know how could I use calculated forces during run time in my solver? I want to use the calculated forces, but I don't know what I should do. Thank you. |
|
March 7, 2012, 13:59 |
|
#4 |
New Member
Gabriele
Join Date: Feb 2012
Posts: 6
Rep Power: 14 |
If you have multiple patches and if you want only the sum of the data (and not the data for each patch), you can use one "forces", e.g.
forces { type forces; functionObjectLibs ("libforces.so"); outputControl timeStep; outputInterval 1; patches (patch1 patch2); // change to your patches name rhoName rhoInf; log true; rhoInf 1.205; //Reference density for fluid CofR (0 0 0); //Origin for moment calculations } The sum of the data will be written in the "forces.dat" file Regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Forces in V1.6 | terrybarnaby | OpenFOAM Post-Processing | 72 | September 2, 2015 17:49 |
Error Message Determining Forces in OpenFOAM 1.7 | Greg Givogue | OpenFOAM | 3 | August 23, 2010 19:03 |
Forces calulated through pressure | LVDH | OpenFOAM Post-Processing | 2 | February 26, 2010 04:15 |
Moving mesh forces on patches and turbulence solver | jackdaniels83 | OpenFOAM Running, Solving & CFD | 3 | May 31, 2007 11:29 |
Valve Forces in CFdesign | Mike Clapp | Main CFD Forum | 3 | March 8, 2001 15:09 |