mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: chemFoam - density output on start-up was misleading due to presence of
call to thermo.correct() - corresponds to mantis bug report 333
This commit is contained in:
@ -1,13 +1,5 @@
|
|||||||
word constProp(initialConditions.lookup("constantProperty"));
|
word constProp(initialConditions.lookup("constantProperty"));
|
||||||
if (constProp == "pressure" || constProp == "volume")
|
if ((constProp != "pressure") && (constProp != "volume"))
|
||||||
{
|
|
||||||
Info << constProp << " will be held constant." << nl
|
|
||||||
<< " p = " << p[0] << " [Pa]" << nl
|
|
||||||
<< " T = " << thermo.T()[0] << " [K] " << nl
|
|
||||||
<< " rho = " << rho[0] << " [kg/m3]" << nl
|
|
||||||
<< endl;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
FatalError << "in initialConditions, unknown constantProperty type "
|
FatalError << "in initialConditions, unknown constantProperty type "
|
||||||
<< constProp << nl << " Valid types are: pressure volume."
|
<< constProp << nl << " Valid types are: pressure volume."
|
||||||
@ -110,3 +102,10 @@
|
|||||||
|
|
||||||
scalar integratedHeat = 0.0;
|
scalar integratedHeat = 0.0;
|
||||||
|
|
||||||
|
Info << constProp << " will be held constant." << nl
|
||||||
|
<< " p = " << p[0] << " [Pa]" << nl
|
||||||
|
<< " T = " << thermo.T()[0] << " [K] " << nl
|
||||||
|
<< " rho = " << rho[0] << " [kg/m3]" << nl
|
||||||
|
<< endl;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user