CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   What does ghf mean in interFoam? (https://www.cfd-online.com/Forums/openfoam-solving/110609-what-does-ghf-mean-interfoam.html)

shchao December 16, 2012 00: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 15: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,


L


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