Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
1b94025a
Commit
1b94025a
authored
Dec 14, 2015
by
sergio
Browse files
BUG: adding limiter for KK to dynamicKEqn. Fixing access to tmp of nuEff.
parent
63ecd073
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/TurbulenceModels/turbulenceModels/LES/dynamicKEqn/dynamicKEqn.C
View file @
1b94025a
...
...
@@ -48,7 +48,13 @@ volScalarField dynamicKEqn<BasicTurbulenceModel>::Ck
const
volSymmTensorField
MM
(
simpleFilter_
(
-
2
.
0
*
this
->
delta
()
*
sqrt
(
KK
)
*
filter_
(
D
))
simpleFilter_
(
-
2
.
0
*
this
->
delta
()
*
sqrt
(
max
(
KK
,
dimensionedScalar
(
"zero"
,
KK
.
dimensions
(),
0
.
0
))
)
*
filter_
(
D
)
)
);
const
volScalarField
Ck
...
...
src/TurbulenceModels/turbulenceModels/derivedFvPatchFields/fixedShearStress/fixedShearStressFvPatchVectorField.C
View file @
1b94025a
...
...
@@ -109,7 +109,7 @@ void Foam::fixedShearStressFvPatchVectorField::updateCoeffs()
)
);
scalarField
nuEff
(
turbModel
.
nuEff
(
)()[
patch
().
index
()
]
);
tmp
<
scalarField
>
nuEff
(
turbModel
.
nuEff
(
patch
().
index
()
)
);
const
vectorField
Uc
(
patchInternalField
());
...
...
@@ -117,7 +117,7 @@ void Foam::fixedShearStressFvPatchVectorField::updateCoeffs()
const
scalarField
&
ry
=
patch
().
deltaCoeffs
();
operator
==
(
tauHat
*
(
tauHat
&
(
tau0_
*
(
1
.
0
/
(
ry
*
nuEff
))
+
Uc
)));
operator
==
(
tauHat
*
(
tauHat
&
(
tau0_
*
(
1
.
0
/
(
ry
*
nuEff
()
))
+
Uc
)));
fixedValueFvPatchVectorField
::
updateCoeffs
();
}
...
...
Write
Preview
Supports
Markdown
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