CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   == or = (https://www.cfd-online.com/Forums/openfoam/77695-a.html)

ata June 30, 2010 23:18

== or =
 
Hi Fomers
At interFoam at some where there is:
rho==alpha1*rho1+(1-alpha1)*rho2
is == true or it must be
rho=alpha1*rho1+(1-alpha1)*rho2
?
Thanks
Best regards

Ata

johannesk July 1, 2010 02:35

Hi ata,

I had a similar finding in rhoSimpleFoam and got the answer that operator overloading is in place for comparisons...
Here is the thread: http://www.cfd-online.com/Forums/ope...oam-1-6-x.html

fabianpk July 1, 2010 03:22

The == in this case means that not only the cell values of the rhs is given to rho, but also the boundary conditions.

ata July 2, 2010 07:30

Thanks
 
Hi fabianpk and johannesk
Thank you very much
Best regards

Ata


All times are GMT -4. The time now is 03:59.