mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: LESdelta: avoid double object registrations (Fixes #1171)
This commit is contained in:
committed by
Sergio Ferraris
parent
0c20256be5
commit
b053e2214c
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2017 OpenFOAM Foundation
|
Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2020 OpenCFD Ltd.
|
Copyright (C) 2020-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -68,7 +68,7 @@ Foam::LESModels::PrandtlDelta::PrandtlDelta
|
|||||||
(
|
(
|
||||||
LESdelta::New
|
LESdelta::New
|
||||||
(
|
(
|
||||||
name,
|
IOobject::groupName("geometricDelta", turbulence.U().group()),
|
||||||
turbulence,
|
turbulence,
|
||||||
dict.optionalSubDict(type() + "Coeffs")
|
dict.optionalSubDict(type() + "Coeffs")
|
||||||
)
|
)
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2016 OpenCFD Ltd.
|
Copyright (C) 2016-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -74,8 +74,18 @@ Foam::LESModels::maxDeltaxyzCubeRootLESDelta::maxDeltaxyzCubeRootLESDelta
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
LESdelta(name, turbulence),
|
LESdelta(name, turbulence),
|
||||||
maxDeltaxyz_(name, turbulence, dict.subDict(typeName + "Coeffs")),
|
maxDeltaxyz_
|
||||||
cubeRootVolDelta_(name, turbulence, dict.subDict(typeName + "Coeffs"))
|
(
|
||||||
|
name + "maxDeltaxyz",
|
||||||
|
turbulence,
|
||||||
|
dict.subDict(typeName + "Coeffs")
|
||||||
|
),
|
||||||
|
cubeRootVolDelta_
|
||||||
|
(
|
||||||
|
name + "cubeRootVolDelta",
|
||||||
|
turbulence,
|
||||||
|
dict.subDict(typeName + "Coeffs")
|
||||||
|
)
|
||||||
{
|
{
|
||||||
calcDelta();
|
calcDelta();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2017 OpenFOAM Foundation
|
Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2016 OpenCFD Ltd.
|
Copyright (C) 2016-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -157,7 +157,7 @@ Foam::LESModels::smoothDelta::smoothDelta
|
|||||||
(
|
(
|
||||||
LESdelta::New
|
LESdelta::New
|
||||||
(
|
(
|
||||||
"geometricDelta",
|
IOobject::groupName("geometricDelta", turbulence.U().group()),
|
||||||
turbulence,
|
turbulence,
|
||||||
dict.optionalSubDict(type() + "Coeffs")
|
dict.optionalSubDict(type() + "Coeffs")
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user