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 |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||
Copyright (C) 2019-2020 OpenCFD Ltd.
|
||||
Copyright (C) 2019-2021 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -66,12 +66,10 @@ Foam::LESModel<BasicTurbulenceModel>::LESModel
|
||||
transport,
|
||||
propertiesName
|
||||
),
|
||||
|
||||
LESDict_(this->subOrEmptyDict("LES")),
|
||||
turbulence_(LESDict_.get<Switch>("turbulence")),
|
||||
turbulence_(LESDict_.getOrDefault<Switch>("turbulence", true)),
|
||||
printCoeffs_(LESDict_.getOrDefault<Switch>("printCoeffs", false)),
|
||||
coeffDict_(LESDict_.optionalSubDict(type + "Coeffs")),
|
||||
|
||||
kMin_
|
||||
(
|
||||
dimensioned<scalar>::getOrAddToDict
|
||||
@ -82,7 +80,6 @@ Foam::LESModel<BasicTurbulenceModel>::LESModel
|
||||
SMALL
|
||||
)
|
||||
),
|
||||
|
||||
epsilonMin_
|
||||
(
|
||||
dimensioned<scalar>::getOrAddToDict
|
||||
@ -93,7 +90,6 @@ Foam::LESModel<BasicTurbulenceModel>::LESModel
|
||||
SMALL
|
||||
)
|
||||
),
|
||||
|
||||
omegaMin_
|
||||
(
|
||||
dimensioned<scalar>::getOrAddToDict
|
||||
@ -104,7 +100,6 @@ Foam::LESModel<BasicTurbulenceModel>::LESModel
|
||||
SMALL
|
||||
)
|
||||
),
|
||||
|
||||
delta_
|
||||
(
|
||||
LESdelta::New
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||
Copyright (C) 2019-2020 OpenCFD Ltd.
|
||||
Copyright (C) 2019-2021 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -66,12 +66,10 @@ Foam::RASModel<BasicTurbulenceModel>::RASModel
|
||||
transport,
|
||||
propertiesName
|
||||
),
|
||||
|
||||
RASDict_(this->subOrEmptyDict("RAS")),
|
||||
turbulence_(RASDict_.get<Switch>("turbulence")),
|
||||
turbulence_(RASDict_.getOrDefault<Switch>("turbulence", true)),
|
||||
printCoeffs_(RASDict_.getOrDefault<Switch>("printCoeffs", false)),
|
||||
coeffDict_(RASDict_.optionalSubDict(type + "Coeffs")),
|
||||
|
||||
kMin_
|
||||
(
|
||||
dimensioned<scalar>::getOrAddToDict
|
||||
@ -82,7 +80,6 @@ Foam::RASModel<BasicTurbulenceModel>::RASModel
|
||||
SMALL
|
||||
)
|
||||
),
|
||||
|
||||
epsilonMin_
|
||||
(
|
||||
dimensioned<scalar>::getOrAddToDict
|
||||
@ -93,7 +90,6 @@ Foam::RASModel<BasicTurbulenceModel>::RASModel
|
||||
SMALL
|
||||
)
|
||||
),
|
||||
|
||||
omegaMin_
|
||||
(
|
||||
dimensioned<scalar>::getOrAddToDict
|
||||
|
||||
Reference in New Issue
Block a user