Minor clean-up

This commit is contained in:
Hrvoje Jasak 2018-08-23 09:48:27 +01:00
parent c78f57ec2a
commit bf8d5ed3ad

View file

@ -52,9 +52,9 @@ nutSpalartAllmarasWallFunctionFvPatchScalarField::calcNut() const
const scalarField magGradU = mag(Uw.snGrad()); const scalarField magGradU = mag(Uw.snGrad());
const scalarField& nuw = turbModel.nu().boundaryField()[patchI]; const scalarField& nuw = turbModel.nu().boundaryField()[patchI];
return max return Foam::max
( (
0.0, scalar(0),
sqr(calcUTau(magGradU))/(magGradU + ROOTVSMALL) - nuw sqr(calcUTau(magGradU))/(magGradU + ROOTVSMALL) - nuw
); );
} }