Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
923f4023
Commit
923f4023
authored
Feb 04, 2015
by
Henry
Browse files
kLowReWallFunction: Limit k to avoid failure of the turbulence model due to division by k
parent
c257bd7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.C
View file @
923f4023
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment