Adding warning msgs to RAS S-A models if requesting k or eps - not defined
This commit is contained in:
parent
96f23c2796
commit
ab4c4840b4
@ -249,6 +249,54 @@ SpalartAllmaras::SpalartAllmaras
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
tmp<volScalarField> SpalartAllmaras::k() const
|
||||
{
|
||||
WarningIn("tmp<volScalarField> SpalartAllmaras::k() const")
|
||||
<< "Turbulence kinetic energy not defined for Spalart-Allmaras model. "
|
||||
<< "Returning zero field"
|
||||
<< endl;
|
||||
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"k",
|
||||
runTime_.timeName(),
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("0", dimensionSet(0, 2, -2, 0, 0), 0)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
tmp<volScalarField> SpalartAllmaras::epsilon() const
|
||||
{
|
||||
WarningIn("tmp<volScalarField> SpalartAllmaras::epsilon() const")
|
||||
<< "Turbulence kinetic energy dissipation rate not defined for "
|
||||
<< "Spalart-Allmaras model. Returning zero field"
|
||||
<< endl;
|
||||
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"epslion",
|
||||
runTime_.timeName(),
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("0", dimensionSet(0, 2, -3, 0, 0), 0)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
tmp<volSymmTensorField> SpalartAllmaras::R() const
|
||||
{
|
||||
return tmp<volSymmTensorField>
|
||||
|
@ -188,42 +188,10 @@ public:
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
virtual tmp<volScalarField> k() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"k",
|
||||
runTime_.timeName(),
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("0", dimensionSet(0, 2, -2, 0, 0), 0)
|
||||
)
|
||||
);
|
||||
}
|
||||
virtual tmp<volScalarField> k() const;
|
||||
|
||||
//- Return the turbulence kinetic energy dissipation rate
|
||||
virtual tmp<volScalarField> epsilon() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"epslion",
|
||||
runTime_.timeName(),
|
||||
mesh_
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("0", dimensionSet(0, 2, -3, 0, 0), 0)
|
||||
)
|
||||
);
|
||||
}
|
||||
virtual tmp<volScalarField> epsilon() const;
|
||||
|
||||
//- Return the Reynolds stress tensor
|
||||
virtual tmp<volSymmTensorField> R() const;
|
||||
|
@ -233,6 +233,10 @@ tmp<volScalarField> SpalartAllmaras::DnuTildaEff() const
|
||||
|
||||
tmp<volScalarField> SpalartAllmaras::k() const
|
||||
{
|
||||
WarningIn("tmp<volScalarField> SpalartAllmaras::k() const")
|
||||
<< "Turbulence kinetic energy not defined for Spalart-Allmaras model. "
|
||||
<< "Returning zero field" << endl;
|
||||
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
@ -252,6 +256,11 @@ tmp<volScalarField> SpalartAllmaras::k() const
|
||||
|
||||
tmp<volScalarField> SpalartAllmaras::epsilon() const
|
||||
{
|
||||
WarningIn("tmp<volScalarField> SpalartAllmaras::epsilon() const")
|
||||
<< "Turbulence kinetic energy dissipation rate not defined for "
|
||||
<< "Spalart-Allmaras model. Returning zero field"
|
||||
<< endl;
|
||||
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
|
Loading…
Reference in New Issue
Block a user