mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: adding limiter for KK to dynamicKEqn. Fixing access to tmp of nuEff.
This commit is contained in:
@ -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
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user