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

p == p_rgh + rho*gh vs. p = p_rgh + rho*gh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By qingqingliu

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2024, 14:52
Default p == p_rgh + rho*gh vs. p = p_rgh + rho*gh
  #1
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9
qingqingliu is on a distinguished road
In interPhaseChangeFoam, in the pEqn.H, there is a script, p == p_rgh + rho*gh

What is the difference between p == p_rgh + rho*gh and p = p_rgh + rho*gh;?
qingqingliu is offline   Reply With Quote

Old   March 22, 2024, 10:55
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14
Tobermory will become famous soon enough
Marupio gives a really good explanation in: Difference between = and ==

(PS. you would have found this from a quick google on "difference between = and ==")
Tobermory is offline   Reply With Quote

Old   March 22, 2024, 11:08
Default
  #3
Member
 
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9
qingqingliu is on a distinguished road
Quote:
Originally Posted by Tobermory View Post
Marupio gives a really good explanation in: Difference between = and ==

(PS. you would have found this from a quick google on "difference between = and ==")
Thanks, Tobermory.
This is very helpful!
Tobermory likes this.
qingqingliu is offline   Reply With Quote

Reply

Tags
openfoam, peqn.h, pressure


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 14:41.