CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Forces on two body-wing in compressible flow. (https://www.cfd-online.com/Forums/openfoam-post-processing/181320-forces-two-body-wing-compressible-flow.html)

Rovs December 12, 2016 10:09

Forces on two body-wing in compressible flow.
 
Hello!

i'm having some problems with my forces function in controlDict.
I need to calculate forces on two different patches, for a 2D compressible flow over an airfoil
is correct my add in controlDict?

Code:

functions
{
    forces
    {
        type                forces;
        functionObjectLibs  ( "libforces.so" );
        outputControl      timeStep;
        outputInterval      10;
        patches            (airfoil, spoiler);
        pName              p;
        UName              U;
        rhoName            rhoInf;
        log                true;
        rhoInf              1;
        CofR                (0.4974612746 -0.01671895744 0.125);
    }
}

i'm worried for rhoName rhoInf. is it correct for compressible flow?
i'm using rhocentralfoam as solver.

my output is something like this:
Code:

1.000000e+00    ((5.429676e-03 -6.062612e-02 -1.929098e-21) (0.000000e+00 0.000000e+00 0.000000e+00) (0.000000e+00 0.000000e+00 0.000000e+00)) ((2.273480e-02 2.036128e-03 -2.466588e-02) (0.000000e+00 0.000000e+00 0.000000e+00) (0.000000e+00 0.000000e+00 0.000000e+00))
with two bodies, i was expecting 8 sets. (for each body: 1 set of pressure forces, 1 set of viscous forces,1 set of pressure moment, 1 set of viscous moment)
there are just 6 sets...why?


All times are GMT -4. The time now is 15:11.