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

Forces in V 2.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2011, 04:37
Default Forces in V 2.0
  #1
New Member
 
Silvan Brändli
Join Date: Aug 2009
Posts: 27
Rep Power: 16
s_braendli is on a distinguished road
Hi to all

I wonder if something regarding the forces functions has changed since version 1.6

I was trying (according to 1.6)

Code:
functions
{
    force_all
    {
        type forces;
        functionObjectLibs ("libforces.so"); //Lib to load
        patches (box_region0 cylinder_region0); // change to your patch name
        rhoName rhoInf;
        rhoInf 1000; //Reference density for fluid
        nuInf 1e-03;
        CofR (1 0 0.7); //Origin for moment calculations
        outputControl   timeStep;
        outputInterval  1;
    }
}
While in 1.6 I got the forces in a new folder named "force_all", in 2.0 i don't see any results so far. I would be happy about any hint.

Best Regards
Silvan
s_braendli is offline   Reply With Quote

Old   August 4, 2011, 09:35
Default
  #2
New Member
 
Silvan Brändli
Join Date: Aug 2009
Posts: 27
Rep Power: 16
s_braendli is on a distinguished road
As usual, after some time it turned out to be my fault...

For those interested in the reasons:

I am using a modified version of pimpleDyMFoam. The modifications include changes to the loop control (which in my case is controlled via MPI by an other process), resulting in not calling runTime.run() any more. As the function objects are called within this function...
The good news is, that runTime.run() can just be called at the beginning of the loop, which solves the problem.
s_braendli 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 11:51
how to get forces on Iso-Clip Surfaces and How to get forces in cylindrical coordinat CFD XUE FLUENT 3 March 18, 2015 03:28
controlDict 'forces' function: multiple output files? lordvon OpenFOAM 0 January 10, 2011 16:22
Calculate forces without hydrostatic pressure geir_oye FLUENT 4 November 12, 2009 09:12
Valve Forces in CFdesign Mike Clapp Main CFD Forum 3 March 8, 2001 14:09


All times are GMT -4. The time now is 18:35.