CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Doubt in term representation (http://www.cfd-online.com/Forums/openfoam-solving/64340-doubt-term-representation.html)

titio May 7, 2009 14:26

Doubt in term representation
 
Hi everybody,

I have a doubt in the representation of a term in OpenFoam. I have to represent in openFoam a term in the form (1/rho)*div(tension), where rho is a scalar representing the density, and tension is volume tensorial field. I am using the following operator representation in Foam, in the form

(1/rho)*fvc::div(tension)

However, I am getting the results expected. Is there any difference in representing the term in the form

fvc::div(tension/rho)

in terms of calculations.

António Martins

henrik May 7, 2009 15:38

Antonio,

The two expressions are equivalent. But there would be a difference is if rho was a field.

Henrik


All times are GMT -4. The time now is 16:13.