BUG: adding limiter for KK to dynamicKEqn. Fixing access to tmp of nuEff.

This commit is contained in:
sergio
2015-12-14 15:05:44 -08:00
parent 63ecd073db
commit 1b94025a64
2 changed files with 9 additions and 3 deletions

View File

@ -48,7 +48,13 @@ volScalarField dynamicKEqn<BasicTurbulenceModel>::Ck
const volSymmTensorField MM const volSymmTensorField MM
( (
simpleFilter_(-2.0*this->delta()*sqrt(KK)*filter_(D)) simpleFilter_
(
-2.0*this->delta()*sqrt
(
max(KK, dimensionedScalar("zero", KK.dimensions(), 0.0))
)*filter_(D)
)
); );
const volScalarField Ck const volScalarField Ck

View File

@ -109,7 +109,7 @@ void Foam::fixedShearStressFvPatchVectorField::updateCoeffs()
) )
); );
scalarField nuEff(turbModel.nuEff()()[patch().index()]); tmp<scalarField> nuEff(turbModel.nuEff(patch().index()));
const vectorField Uc(patchInternalField()); const vectorField Uc(patchInternalField());
@ -117,7 +117,7 @@ void Foam::fixedShearStressFvPatchVectorField::updateCoeffs()
const scalarField& ry = patch().deltaCoeffs(); const scalarField& ry = patch().deltaCoeffs();
operator==(tauHat*(tauHat & (tau0_*(1.0/(ry*nuEff)) + Uc))); operator==(tauHat*(tauHat & (tau0_*(1.0/(ry*nuEff())) + Uc)));
fixedValueFvPatchVectorField::updateCoeffs(); fixedValueFvPatchVectorField::updateCoeffs();
} }