Integrated Foundation code to commit 104aac5
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -44,7 +44,7 @@ Foam::reactionRateFlameArea::reactionRateFlameArea
|
||||
const combustionModel& combModel
|
||||
)
|
||||
:
|
||||
coeffDict_(dict.subDict(modelType + "Coeffs")),
|
||||
coeffDict_(dict.optionalSubDict(modelType + "Coeffs")),
|
||||
mesh_(mesh),
|
||||
combModel_(combModel),
|
||||
fuel_(dict.lookup("fuel")),
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -56,9 +56,12 @@ Foam::reactionRateFlameAreaModels::relaxation::relaxation
|
||||
)
|
||||
:
|
||||
reactionRateFlameArea(modelType, dict, mesh, combModel),
|
||||
correlation_(dict.subDict(typeName + "Coeffs").subDict(fuel_)),
|
||||
C_(readScalar(dict.subDict(typeName + "Coeffs").lookup("C"))),
|
||||
alpha_(readScalar(dict.subDict(typeName + "Coeffs").lookup("alpha")))
|
||||
correlation_(dict.optionalSubDict(typeName + "Coeffs").subDict(fuel_)),
|
||||
C_(readScalar(dict.optionalSubDict(typeName + "Coeffs").lookup("C"))),
|
||||
alpha_
|
||||
(
|
||||
readScalar(dict.optionalSubDict(typeName + "Coeffs").lookup("alpha"))
|
||||
)
|
||||
{}
|
||||
|
||||
|
||||
@ -148,7 +151,7 @@ bool Foam::reactionRateFlameAreaModels::relaxation::read
|
||||
{
|
||||
if (reactionRateFlameArea::read(dict))
|
||||
{
|
||||
coeffDict_ = dict.subDict(typeName + "Coeffs");
|
||||
coeffDict_ = dict.optionalSubDict(typeName + "Coeffs");
|
||||
coeffDict_.lookup("C") >> C_;
|
||||
coeffDict_.lookup("alpha") >> alpha_;
|
||||
correlation_.read
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -62,7 +62,7 @@ Foam::combustionModel::combustionModel
|
||||
turbulencePtr_(),
|
||||
mesh_(mesh),
|
||||
active_(lookupOrDefault<Switch>("active", true)),
|
||||
coeffs_(subDict(modelType + "Coeffs")),
|
||||
coeffs_(optionalSubDict(modelType + "Coeffs")),
|
||||
modelType_(modelType),
|
||||
phaseName_(phaseName)
|
||||
{}
|
||||
@ -86,7 +86,7 @@ bool Foam::combustionModel::read()
|
||||
if (regIOobject::read())
|
||||
{
|
||||
this->lookup("active") >> active_;
|
||||
coeffs_ = subDict(modelType_ + "Coeffs");
|
||||
coeffs_ = optionalSubDict(modelType_ + "Coeffs");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user