kLowReWallFunction: Limit k to avoid /0
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1724
This commit is contained in:
parent
25d7706560
commit
9b0d7415bb
3 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -213,6 +213,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
|
||||
|
|
|
|||
|
|
@ -211,6 +211,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue