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

BUG: LESdelta: avoid double object registrations (Fixes #1171)

parent af4f72e1
Branches
Tags
No related merge requests found
......@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
Copyright (C) 2020-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -68,7 +68,7 @@ Foam::LESModels::PrandtlDelta::PrandtlDelta
(
LESdelta::New
(
name,
IOobject::groupName("geometricDelta", turbulence.U().group()),
turbulence,
dict.optionalSubDict(type() + "Coeffs")
)
......
......@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2016 OpenCFD Ltd.
Copyright (C) 2016-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -74,8 +74,18 @@ Foam::LESModels::maxDeltaxyzCubeRootLESDelta::maxDeltaxyzCubeRootLESDelta
)
:
LESdelta(name, turbulence),
maxDeltaxyz_(name, turbulence, dict.subDict(typeName + "Coeffs")),
cubeRootVolDelta_(name, turbulence, dict.subDict(typeName + "Coeffs"))
maxDeltaxyz_
(
name + "maxDeltaxyz",
turbulence,
dict.subDict(typeName + "Coeffs")
),
cubeRootVolDelta_
(
name + "cubeRootVolDelta",
turbulence,
dict.subDict(typeName + "Coeffs")
)
{
calcDelta();
}
......
......@@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2017 OpenFOAM Foundation
Copyright (C) 2016 OpenCFD Ltd.
Copyright (C) 2016-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -157,7 +157,7 @@ Foam::LESModels::smoothDelta::smoothDelta
(
LESdelta::New
(
"geometricDelta",
IOobject::groupName("geometricDelta", turbulence.U().group()),
turbulence,
dict.optionalSubDict(type() + "Coeffs")
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment