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

== or =

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 30, 2010, 23:18
Default == or =
  #1
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 9
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, 02:35
Default
  #2
New Member
 
Johannes Kneer
Join Date: Mar 2009
Location: Germany, Karlsruhe
Posts: 13
Rep Power: 9
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: Bug in rhoSimpleFOAM (OF-1.6.x)
__________________
--
Johannes Kneer
Institute for Thermal Turbomachinery
Karlsruhe Institute of Technology
johannesk is offline   Reply With Quote

Old   July 1, 2010, 03:22
Default
  #3
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 9
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, 07:30
Default Thanks
  #4
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 9
ata is on a distinguished road
Hi fabianpk and johannesk
Thank you very much
Best regards

Ata
ata is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 19:18.