CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   forces in interFoam (

Svensson October 21, 2011 07:55

forces in interFoam
Hello all!

I have some problems to get forces with standard library for interFoam solver. I found one article from workshop, in which author made own library ( to calculate forces in two-phase liquid. I took his case with BC, controlDict, fvSchemes and fvSolution and changed only geometry. But result that i got is not correct. Forces are greater that in experimet about 5-8 times. I saw my controlDict and found that in below entry


type forces;

functionObjectLibs ("");

patches (hull_wall);

rhoName rhoInf;

rhoInf 1000;

CofR (0 0 0);

outputControl timeStep;

outputInterval 1;


there is only one density - rhoInf equals to 1000. Can calculate forces only for monophase liquids? I use openFoam 2.0.0. Is my guess true? How is it possible to get forces components manually?

bojiezhang April 14, 2012 07:02

Hello Svensson:

I face the same problem as you. Have you found a satisfied way to calculate the force in the two-phase flow? Could you give me some advice?

Thank you!


daveatstyacht May 9, 2012 13:31

Currently you are setting the rho equal to rhoInf for all force calcs. Use "rhoName rho;" since this is the scalar field that varies in space with alpha.

Hope this helps,

All times are GMT -4. The time now is 09:23.