CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   p == p_rgh + rho*gh vs. p = p_rgh + rho*gh (https://www.cfd-online.com/Forums/openfoam-programming-development/255147-p-p_rgh-rho-gh-vs-p-p_rgh-rho-gh.html)

qingqingliu March 21, 2024 13:52

p == p_rgh + rho*gh vs. p = p_rgh + rho*gh
 
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;?

Tobermory March 22, 2024 09:55

Marupio gives a really good explanation in: https://www.cfd-online.com/Forums/op...e-between.html

(PS. you would have found this from a quick google on "difference between = and ==")

qingqingliu March 22, 2024 10:08

Quote:

Originally Posted by Tobermory (Post 866662)
Marupio gives a really good explanation in: https://www.cfd-online.com/Forums/op...e-between.html

(PS. you would have found this from a quick google on "difference between = and ==")

Thanks, Tobermory.
This is very helpful!


All times are GMT -4. The time now is 21:38.