Skip to content
Snippets Groups Projects
Commit 923f4023 authored by Henry's avatar Henry
Browse files

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

parent c257bd7d
Branches
Tags
No related merge requests found
...@@ -215,6 +215,9 @@ void kLowReWallFunctionFvPatchScalarField::updateCoeffs() ...@@ -215,6 +215,9 @@ void kLowReWallFunctionFvPatchScalarField::updateCoeffs()
kw[faceI] *= sqr(uTau); 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(); fixedValueFvPatchField<scalar>::updateCoeffs();
// TODO: perform averaging for cells sharing more than one boundary face // TODO: perform averaging for cells sharing more than one boundary face
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment