From bf8d5ed3ad23337158be28a1667cbfa87f401a33 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 23 Aug 2018 09:48:27 +0100 Subject: [PATCH] Minor clean-up --- .../nutSpalartAllmarasWallFunctionFvPatchScalarField.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutSpalartAllmarasWallFunction/nutSpalartAllmarasWallFunctionFvPatchScalarField.C b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutSpalartAllmarasWallFunction/nutSpalartAllmarasWallFunctionFvPatchScalarField.C index 9fcdbc8a5..b53cb284b 100644 --- a/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutSpalartAllmarasWallFunction/nutSpalartAllmarasWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutSpalartAllmarasWallFunction/nutSpalartAllmarasWallFunctionFvPatchScalarField.C @@ -52,9 +52,9 @@ nutSpalartAllmarasWallFunctionFvPatchScalarField::calcNut() const const scalarField magGradU = mag(Uw.snGrad()); const scalarField& nuw = turbModel.nu().boundaryField()[patchI]; - return max + return Foam::max ( - 0.0, + scalar(0), sqr(calcUTau(magGradU))/(magGradU + ROOTVSMALL) - nuw ); }