Commit 98735abb authored by Andrew Heather's avatar Andrew Heather
Browse files

added printCoeffs variable

parent 454374af
......@@ -45,7 +45,10 @@ defineRunTimeSelectionTable(turbulenceModel, dictionary);
void turbulenceModel::printCoeffs()
{
Info<< turbulenceModelCoeffs_;
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()
{
Info<< turbulenceModelCoeffs_;
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_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment