diff --git a/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.C b/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.C index 8749bc02a41f55d535b510ef0c6251e99012fc83..29a6f0e2b415ecee753270ac72962f6b7aed842d 100644 --- a/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.C +++ b/src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.C @@ -215,6 +215,9 @@ void kLowReWallFunctionFvPatchScalarField::updateCoeffs() kw[faceI] *= sqr(uTau); } + // Limit kw to avoid failure of the turbulence model due to division by kw + kw = max(kw, SMALL); + fixedValueFvPatchField<scalar>::updateCoeffs(); // TODO: perform averaging for cells sharing more than one boundary face