CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Forces in V 2.0 (https://www.cfd-online.com/Forums/openfoam/90080-forces-v-2-0-a.html)

s_braendli June 30, 2011 05:37

Forces in V 2.0
 
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 August 4, 2011 10:35

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.


All times are GMT -4. The time now is 01:36.