|
[Sponsors] |
July 1, 2010, 00:18 |
== or =
|
#1 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18 |
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 |
|
July 1, 2010, 03:35 |
|
#2 |
New Member
Johannes Kneer
Join Date: Mar 2009
Location: Germany, Karlsruhe
Posts: 13
Rep Power: 17 |
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
__________________
-- Johannes Kneer Institute for Thermal Turbomachinery Karlsruhe Institute of Technology |
|
July 1, 2010, 04:22 |
|
#3 |
Member
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 17 |
The == in this case means that not only the cell values of the rhs is given to rho, but also the boundary conditions.
|
|
July 2, 2010, 08:30 |
Thanks
|
#4 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18 |
Hi fabianpk and johannesk
Thank you very much Best regards Ata |
|
|
|