|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
jeff osborne
Join Date: Mar 2010
Posts: 103
Rep Power: 5 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Member
Nick Gardiner
Join Date: Apr 2009
Location: Plymouth, UK
Posts: 88
Rep Power: 6 ![]() |
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 } |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Amin
Join Date: Oct 2010
Location: Notre Dame, US
Posts: 6
Rep Power: 4 ![]() |
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. |
|
|
|
|
|
|
|
|
#4 |
|
New Member
Gabriele
Join Date: Feb 2012
Posts: 6
Rep Power: 3 ![]() |
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 |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Forces in V1.6 | terrybarnaby | OpenFOAM | 68 | October 17, 2012 12:54 |
| Error Message Determining Forces in OpenFOAM 1.7 | Greg Givogue | OpenFOAM | 3 | August 23, 2010 18:03 |
| Forces calulated through pressure | LVDH | OpenFOAM Post-Processing | 2 | February 26, 2010 03:15 |
| Moving mesh forces on patches and turbulence solver | jackdaniels83 | OpenFOAM Running, Solving & CFD | 3 | May 31, 2007 10:29 |
| Valve Forces in CFdesign | Mike Clapp | Main CFD Forum | 3 | March 8, 2001 14:09 |