CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

== or =

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2010, 00:18
Default == or =
  #1
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18
ata is on a distinguished road
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
ata is offline   Reply With Quote

Old   July 1, 2010, 03:35
Default
  #2
New Member
 
Johannes Kneer
Join Date: Mar 2009
Location: Germany, Karlsruhe
Posts: 13
Rep Power: 17
johannesk is on a distinguished road
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
johannesk is offline   Reply With Quote

Old   July 1, 2010, 04:22
Default
  #3
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 17
fabianpk is on a distinguished road
The == in this case means that not only the cell values of the rhs is given to rho, but also the boundary conditions.
fabianpk is offline   Reply With Quote

Old   July 2, 2010, 08:30
Default Thanks
  #4
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 18
ata is on a distinguished road
Hi fabianpk and johannesk
Thank you very much
Best regards

Ata
ata is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



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