mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
added printCoeffs variable
This commit is contained in:
@ -45,7 +45,10 @@ defineRunTimeSelectionTable(turbulenceModel, dictionary);
|
|||||||
|
|
||||||
void turbulenceModel::printCoeffs()
|
void turbulenceModel::printCoeffs()
|
||||||
{
|
{
|
||||||
Info<< turbulenceModelCoeffs_;
|
if (printCoeffs_)
|
||||||
|
{
|
||||||
|
Info<< turbulenceModelCoeffs_;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -81,16 +84,11 @@ turbulenceModel::turbulenceModel
|
|||||||
thermophysicalModel_(thermophysicalModel),
|
thermophysicalModel_(thermophysicalModel),
|
||||||
|
|
||||||
turbulence_(lookup("turbulence")),
|
turbulence_(lookup("turbulence")),
|
||||||
|
printCoeffs_(lookupOrDefault<Switch>("printCoeffs", false)),
|
||||||
turbulenceModelCoeffs_(subDict(type + "Coeffs")),
|
turbulenceModelCoeffs_(subDict(type + "Coeffs")),
|
||||||
|
|
||||||
kappa_
|
kappa_(readScalar(subDict("wallFunctionCoeffs").lookup("kappa"))),
|
||||||
(
|
E_(readScalar(subDict("wallFunctionCoeffs").lookup("E"))),
|
||||||
dimensionedScalar(subDict("wallFunctionCoeffs").lookup("kappa")).value()
|
|
||||||
),
|
|
||||||
E_
|
|
||||||
(
|
|
||||||
dimensionedScalar(subDict("wallFunctionCoeffs").lookup("E")).value()
|
|
||||||
),
|
|
||||||
yPlusLam_(yPlusLam(kappa_, E_)),
|
yPlusLam_(yPlusLam(kappa_, E_)),
|
||||||
|
|
||||||
k0_("k0", dimVelocity*dimVelocity, SMALL),
|
k0_("k0", dimVelocity*dimVelocity, SMALL),
|
||||||
|
|||||||
@ -88,6 +88,7 @@ protected:
|
|||||||
basicThermo& thermophysicalModel_;
|
basicThermo& thermophysicalModel_;
|
||||||
|
|
||||||
Switch turbulence_;
|
Switch turbulence_;
|
||||||
|
Switch printCoeffs_;
|
||||||
dictionary turbulenceModelCoeffs_;
|
dictionary turbulenceModelCoeffs_;
|
||||||
|
|
||||||
scalar kappa_;
|
scalar kappa_;
|
||||||
|
|||||||
@ -41,7 +41,10 @@ defineRunTimeSelectionTable(turbulenceModel, dictionary);
|
|||||||
|
|
||||||
void turbulenceModel::printCoeffs()
|
void turbulenceModel::printCoeffs()
|
||||||
{
|
{
|
||||||
Info<< turbulenceModelCoeffs_;
|
if (printCoeffs_)
|
||||||
|
{
|
||||||
|
Info<< turbulenceModelCoeffs_;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -75,16 +78,11 @@ turbulenceModel::turbulenceModel
|
|||||||
transportModel_(lamTransportModel),
|
transportModel_(lamTransportModel),
|
||||||
|
|
||||||
turbulence_(lookup("turbulence")),
|
turbulence_(lookup("turbulence")),
|
||||||
|
printCoeffs_(lookupOrDefault<Switch>("printCoeffs", false)),
|
||||||
turbulenceModelCoeffs_(subDict(type + "Coeffs")),
|
turbulenceModelCoeffs_(subDict(type + "Coeffs")),
|
||||||
|
|
||||||
kappa_
|
kappa_(readScalar(subDict("wallFunctionCoeffs").lookup("kappa"))),
|
||||||
(
|
E_(readScalar(subDict("wallFunctionCoeffs").lookup("E"))),
|
||||||
dimensionedScalar(subDict("wallFunctionCoeffs").lookup("kappa")).value()
|
|
||||||
),
|
|
||||||
E_
|
|
||||||
(
|
|
||||||
dimensionedScalar(subDict("wallFunctionCoeffs").lookup("E")).value()
|
|
||||||
),
|
|
||||||
yPlusLam_(yPlusLam(kappa_, E_)),
|
yPlusLam_(yPlusLam(kappa_, E_)),
|
||||||
|
|
||||||
k0_("k0", dimVelocity*dimVelocity, SMALL),
|
k0_("k0", dimVelocity*dimVelocity, SMALL),
|
||||||
|
|||||||
@ -84,6 +84,7 @@ protected:
|
|||||||
transportModel& transportModel_;
|
transportModel& transportModel_;
|
||||||
|
|
||||||
Switch turbulence_;
|
Switch turbulence_;
|
||||||
|
Switch printCoeffs_;
|
||||||
dictionary turbulenceModelCoeffs_;
|
dictionary turbulenceModelCoeffs_;
|
||||||
|
|
||||||
scalar kappa_;
|
scalar kappa_;
|
||||||
|
|||||||
Reference in New Issue
Block a user