mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
kLowReWallFunction: Limit k to avoid failure of the turbulence model due to division by k
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user