CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   A fundamental question about interpolate (https://www.cfd-online.com/Forums/openfoam/91779-fundamental-question-about-interpolate.html)

kaifu August 22, 2011 16:12

A fundamental question about interpolate
 
Is there any difference between
Code:

fvc::interpolate(alpha*rhoa)
and
Code:

fvc::interpolate(alpha)*fvc::interpolate(rhoa)
Is that difference negligible?

m2montazari August 22, 2011 16:34

hi,
just an example:
interpolate between point1 and point 2 with linear scheme and find the middle value:
(x1*y1+x2*y2)/2 not equal to((x1+x2)/2)*((y1+y2)/2)
I think it is clear!


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