CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   What does ghf mean in interFoam? (

shchao December 16, 2012 01:51

What does ghf mean in interFoam?
I'm using interFoam,now i have a problem about momentum equation in Ueqn.H.There is a "- ghf*fvc::snGrad(rho)" ,but i can't find the definition of the variable ghf.
by the way,is anybody know which file defines the continuity equation?
Thank you sincerely!

Lieven December 16, 2012 16:51

Variable ghf is defined in createFields.H (of the interfoam solver). It is equal to the inner product of the gravitational acceleration with the location of the face centres.

Continuity is enforced by solving the pressure equation (pEqn.H).

Kind regards,


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