Skip to content
Snippets Groups Projects
Commit 3c9eb5a7 authored by Kutalmış Berçin's avatar Kutalmış Berçin
Browse files

ENH: turbulenceProperties: make turbulence switch optional (#2112)

parent d6a3f040
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment