mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Removed Debug statements
This commit is contained in:
@ -157,10 +157,8 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::calcPressure
|
|||||||
}
|
}
|
||||||
case ISENTROPIC:
|
case ISENTROPIC:
|
||||||
{
|
{
|
||||||
DebugVar("getting thermo");
|
|
||||||
const basicThermo* thermoPtr =
|
const basicThermo* thermoPtr =
|
||||||
p.mesh().lookupObjectPtr<basicThermo>(basicThermo::dictName);
|
p.mesh().lookupObjectPtr<basicThermo>(basicThermo::dictName);
|
||||||
DebugVar("got thermo");
|
|
||||||
|
|
||||||
if (!thermoPtr)
|
if (!thermoPtr)
|
||||||
{
|
{
|
||||||
@ -169,16 +167,13 @@ DebugVar("got thermo");
|
|||||||
<< "thermodynamics package"
|
<< "thermodynamics package"
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
DebugVar("calc gamma");
|
|
||||||
|
|
||||||
const volScalarField gamma(thermoPtr->gamma());
|
const volScalarField gamma(thermoPtr->gamma());
|
||||||
DebugVar(gamma);
|
|
||||||
const volScalarField Mb
|
const volScalarField Mb
|
||||||
(
|
(
|
||||||
mag(lookupObject<volVectorField>(UName_))
|
mag(lookupObject<volVectorField>(UName_))
|
||||||
/sqrt(gamma*tp.ref()/thermoPtr->rho())
|
/sqrt(gamma*tp.ref()/thermoPtr->rho())
|
||||||
);
|
);
|
||||||
DebugVar(Mb);
|
|
||||||
|
|
||||||
return tp()*(pow(1 + (gamma - 1)/2*sqr(Mb), gamma/(gamma - 1)));
|
return tp()*(pow(1 + (gamma - 1)/2*sqr(Mb), gamma/(gamma - 1)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user