mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
dimensioned<Type>: Added constructor from name, dimensions and dictionary
to simplify construction of dimensionedScalar properties and avoid the duplication of the name string in the constructor call.
This commit is contained in:
@ -49,7 +49,7 @@ Foam::dragModels::GidaspowSchillerNaumann::GidaspowSchillerNaumann
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe"))
|
||||
residualRe_("residualRe", dimless, dict)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -49,7 +49,7 @@ Foam::dragModels::SchillerNaumann::SchillerNaumann
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe"))
|
||||
residualRe_("residualRe", dimless, dict)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -49,9 +49,9 @@ Foam::dragModels::TomiyamaAnalytic::TomiyamaAnalytic
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe")),
|
||||
residualEo_("residualEo", dimless, dict.lookup("residualEo")),
|
||||
residualE_("residualE", dimless, dict.lookup("residualE"))
|
||||
residualRe_("residualRe", dimless, dict),
|
||||
residualEo_("residualEo", dimless, dict),
|
||||
residualE_("residualE", dimless, dict)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -49,7 +49,7 @@ Foam::dragModels::TomiyamaCorrelated::TomiyamaCorrelated
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair, registerObject),
|
||||
A_("A", dimless, dict.lookup("A"))
|
||||
A_("A", dimless, dict)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@ Foam::dragModels::WenYu::WenYu
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair, registerObject),
|
||||
residualRe_("residualRe", dimless, dict.lookup("residualRe"))
|
||||
residualRe_("residualRe", dimless, dict)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
@ -51,8 +51,8 @@ Foam::dragModels::segregated::segregated
|
||||
)
|
||||
:
|
||||
dragModel(dict, pair, registerObject),
|
||||
m_("m", dimless, dict.lookup("m")),
|
||||
n_("n", dimless, dict.lookup("n"))
|
||||
m_("m", dimless, dict),
|
||||
n_("n", dimless, dict)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user