dynOneEqEddy: Bound KK during construction
Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1850
This commit is contained in:
parent
51457432ee
commit
e040f431ba
1 changed files with 3 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -133,7 +133,8 @@ dynOneEqEddy::dynOneEqEddy
|
|||
{
|
||||
bound(k_, kMin_);
|
||||
|
||||
const volScalarField KK(0.5*(filter_(magSqr(U)) - magSqr(filter_(U))));
|
||||
volScalarField KK(0.5*(filter_(magSqr(U)) - magSqr(filter_(U))));
|
||||
KK.max(dimensionedScalar("small", KK.dimensions(), SMALL));
|
||||
updateSubGridScaleFields(symm(fvc::grad(U)), KK);
|
||||
|
||||
printCoeffs();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue