added printCoeffs variable

This commit is contained in:
andy
2008-06-16 17:58:16 +01:00
parent 454374affe
commit 98735abbf0
4 changed files with 16 additions and 18 deletions

View File

@ -44,9 +44,12 @@ defineRunTimeSelectionTable(turbulenceModel, dictionary);
// * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * // // * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
void turbulenceModel::printCoeffs() void turbulenceModel::printCoeffs()
{
if (printCoeffs_)
{ {
Info<< turbulenceModelCoeffs_; Info<< turbulenceModelCoeffs_;
} }
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -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),

View File

@ -88,6 +88,7 @@ protected:
basicThermo& thermophysicalModel_; basicThermo& thermophysicalModel_;
Switch turbulence_; Switch turbulence_;
Switch printCoeffs_;
dictionary turbulenceModelCoeffs_; dictionary turbulenceModelCoeffs_;
scalar kappa_; scalar kappa_;

View File

@ -40,9 +40,12 @@ defineRunTimeSelectionTable(turbulenceModel, dictionary);
// * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * // // * * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * //
void turbulenceModel::printCoeffs() void turbulenceModel::printCoeffs()
{
if (printCoeffs_)
{ {
Info<< turbulenceModelCoeffs_; Info<< turbulenceModelCoeffs_;
} }
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -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),

View File

@ -84,6 +84,7 @@ protected:
transportModel& transportModel_; transportModel& transportModel_;
Switch turbulence_; Switch turbulence_;
Switch printCoeffs_;
dictionary turbulenceModelCoeffs_; dictionary turbulenceModelCoeffs_;
scalar kappa_; scalar kappa_;