CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Bug in enterDymFoam (http://www.cfd-online.com/Forums/openfoam/98199-bug-enterdymfoam.html)

som March 5, 2012 15:33

Bug in enterDymFoam
 
Hi

While working on custom solver based on enterDymFoam and erfConvectiveMeltingPimpleFoam found some strange thing in pEqn.H file in the enterDymFoam directory :
------------
p == p_rgh + rho*gh;

if (p_rgh.needReference())
{
p += dimensionedScalar
(
"p",
p.dimensions(),
pRefValue - getRefCellValue(p, pRefCell)
);
p_rgh = p - rho*gh;
}
--------------------

Does p == p_rgh + rho*gh do anything or just return Bool ? Sorry for stupid question

som March 5, 2012 15:35

ps:
openfoam v 2.1


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