mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: turbulenceProperties: make turbulence switch optional (#2112)
This commit is contained in:
committed by
Andrew Heather
parent
348ae6f4be
commit
0cc201e2b8
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2013-2017 OpenFOAM Foundation
|
Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2019-2020 OpenCFD Ltd.
|
Copyright (C) 2019-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -66,12 +66,10 @@ Foam::LESModel<BasicTurbulenceModel>::LESModel
|
|||||||
transport,
|
transport,
|
||||||
propertiesName
|
propertiesName
|
||||||
),
|
),
|
||||||
|
|
||||||
LESDict_(this->subOrEmptyDict("LES")),
|
LESDict_(this->subOrEmptyDict("LES")),
|
||||||
turbulence_(LESDict_.get<Switch>("turbulence")),
|
turbulence_(LESDict_.getOrDefault<Switch>("turbulence", true)),
|
||||||
printCoeffs_(LESDict_.getOrDefault<Switch>("printCoeffs", false)),
|
printCoeffs_(LESDict_.getOrDefault<Switch>("printCoeffs", false)),
|
||||||
coeffDict_(LESDict_.optionalSubDict(type + "Coeffs")),
|
coeffDict_(LESDict_.optionalSubDict(type + "Coeffs")),
|
||||||
|
|
||||||
kMin_
|
kMin_
|
||||||
(
|
(
|
||||||
dimensioned<scalar>::getOrAddToDict
|
dimensioned<scalar>::getOrAddToDict
|
||||||
@ -82,7 +80,6 @@ Foam::LESModel<BasicTurbulenceModel>::LESModel
|
|||||||
SMALL
|
SMALL
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
epsilonMin_
|
epsilonMin_
|
||||||
(
|
(
|
||||||
dimensioned<scalar>::getOrAddToDict
|
dimensioned<scalar>::getOrAddToDict
|
||||||
@ -93,7 +90,6 @@ Foam::LESModel<BasicTurbulenceModel>::LESModel
|
|||||||
SMALL
|
SMALL
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
omegaMin_
|
omegaMin_
|
||||||
(
|
(
|
||||||
dimensioned<scalar>::getOrAddToDict
|
dimensioned<scalar>::getOrAddToDict
|
||||||
@ -104,7 +100,6 @@ Foam::LESModel<BasicTurbulenceModel>::LESModel
|
|||||||
SMALL
|
SMALL
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
delta_
|
delta_
|
||||||
(
|
(
|
||||||
LESdelta::New
|
LESdelta::New
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2013-2017 OpenFOAM Foundation
|
Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2019-2020 OpenCFD Ltd.
|
Copyright (C) 2019-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -66,12 +66,10 @@ Foam::RASModel<BasicTurbulenceModel>::RASModel
|
|||||||
transport,
|
transport,
|
||||||
propertiesName
|
propertiesName
|
||||||
),
|
),
|
||||||
|
|
||||||
RASDict_(this->subOrEmptyDict("RAS")),
|
RASDict_(this->subOrEmptyDict("RAS")),
|
||||||
turbulence_(RASDict_.get<Switch>("turbulence")),
|
turbulence_(RASDict_.getOrDefault<Switch>("turbulence", true)),
|
||||||
printCoeffs_(RASDict_.getOrDefault<Switch>("printCoeffs", false)),
|
printCoeffs_(RASDict_.getOrDefault<Switch>("printCoeffs", false)),
|
||||||
coeffDict_(RASDict_.optionalSubDict(type + "Coeffs")),
|
coeffDict_(RASDict_.optionalSubDict(type + "Coeffs")),
|
||||||
|
|
||||||
kMin_
|
kMin_
|
||||||
(
|
(
|
||||||
dimensioned<scalar>::getOrAddToDict
|
dimensioned<scalar>::getOrAddToDict
|
||||||
@ -82,7 +80,6 @@ Foam::RASModel<BasicTurbulenceModel>::RASModel
|
|||||||
SMALL
|
SMALL
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
epsilonMin_
|
epsilonMin_
|
||||||
(
|
(
|
||||||
dimensioned<scalar>::getOrAddToDict
|
dimensioned<scalar>::getOrAddToDict
|
||||||
@ -93,7 +90,6 @@ Foam::RASModel<BasicTurbulenceModel>::RASModel
|
|||||||
SMALL
|
SMALL
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
omegaMin_
|
omegaMin_
|
||||||
(
|
(
|
||||||
dimensioned<scalar>::getOrAddToDict
|
dimensioned<scalar>::getOrAddToDict
|
||||||
|
|||||||
Reference in New Issue
Block a user