kLowReWallFunction: Limit k to avoid failure of the turbulence model due to division by k

This commit is contained in:
Henry
2015-02-04 22:11:15 +00:00
parent c257bd7df2
commit 923f4023bb

View File

@ -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