Commit 0cc201e2 authored by Kutalmış Berçin's avatar Kutalmış Berçin Committed by Andrew Heather
Browse files

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

parent 348ae6f4
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment