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()
|
||||
{
|
||||
if (printCoeffs_)
|
||||
{
|
||||
Info<< turbulenceModelCoeffs_;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -81,16 +84,11 @@ turbulenceModel::turbulenceModel
|
||||
thermophysicalModel_(thermophysicalModel),
|
||||
|
||||
turbulence_(lookup("turbulence")),
|
||||
printCoeffs_(lookupOrDefault<Switch>("printCoeffs", false)),
|
||||
turbulenceModelCoeffs_(subDict(type + "Coeffs")),
|
||||
|
||||
kappa_
|
||||
(
|
||||
dimensionedScalar(subDict("wallFunctionCoeffs").lookup("kappa")).value()
|
||||
),
|
||||
E_
|
||||
(
|
||||
dimensionedScalar(subDict("wallFunctionCoeffs").lookup("E")).value()
|
||||
),
|
||||
kappa_(readScalar(subDict("wallFunctionCoeffs").lookup("kappa"))),
|
||||
E_(readScalar(subDict("wallFunctionCoeffs").lookup("E"))),
|
||||
yPlusLam_(yPlusLam(kappa_, E_)),
|
||||
|
||||
k0_("k0", dimVelocity*dimVelocity, SMALL),
|
||||
|
||||
@ -88,6 +88,7 @@ protected:
|
||||
basicThermo& thermophysicalModel_;
|
||||
|
||||
Switch turbulence_;
|
||||
Switch printCoeffs_;
|
||||
dictionary turbulenceModelCoeffs_;
|
||||
|
||||
scalar kappa_;
|
||||
|
||||
@ -41,7 +41,10 @@ defineRunTimeSelectionTable(turbulenceModel, dictionary);
|
||||
|
||||
void turbulenceModel::printCoeffs()
|
||||
{
|
||||
if (printCoeffs_)
|
||||
{
|
||||
Info<< turbulenceModelCoeffs_;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -75,16 +78,11 @@ turbulenceModel::turbulenceModel
|
||||
transportModel_(lamTransportModel),
|
||||
|
||||
turbulence_(lookup("turbulence")),
|
||||
printCoeffs_(lookupOrDefault<Switch>("printCoeffs", false)),
|
||||
turbulenceModelCoeffs_(subDict(type + "Coeffs")),
|
||||
|
||||
kappa_
|
||||
(
|
||||
dimensionedScalar(subDict("wallFunctionCoeffs").lookup("kappa")).value()
|
||||
),
|
||||
E_
|
||||
(
|
||||
dimensionedScalar(subDict("wallFunctionCoeffs").lookup("E")).value()
|
||||
),
|
||||
kappa_(readScalar(subDict("wallFunctionCoeffs").lookup("kappa"))),
|
||||
E_(readScalar(subDict("wallFunctionCoeffs").lookup("E"))),
|
||||
yPlusLam_(yPlusLam(kappa_, E_)),
|
||||
|
||||
k0_("k0", dimVelocity*dimVelocity, SMALL),
|
||||
|
||||
@ -84,6 +84,7 @@ protected:
|
||||
transportModel& transportModel_;
|
||||
|
||||
Switch turbulence_;
|
||||
Switch printCoeffs_;
|
||||
dictionary turbulenceModelCoeffs_;
|
||||
|
||||
scalar kappa_;
|
||||
|
||||
Reference in New Issue
Block a user