mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: Corrected Clang-reported errors
This commit is contained in:
@ -27,7 +27,6 @@ License
|
|||||||
|
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "dictionary.H"
|
#include "dictionary.H"
|
||||||
#include "FieldFunctions.H"
|
|
||||||
#include "steadyStateDdtScheme.H"
|
#include "steadyStateDdtScheme.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
|
|
||||||
|
|||||||
@ -32,19 +32,30 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
// Psi-based chemistry
|
||||||
|
typedef functionObjects::reactionsSensitivityAnalysis<psiChemistryModel>
|
||||||
|
psiReactionsSensitivityAnalysisFunctionObject;
|
||||||
|
|
||||||
|
defineTemplateTypeNameAndDebugWithName
|
||||||
|
(
|
||||||
|
psiReactionsSensitivityAnalysisFunctionObject,
|
||||||
|
"psiReactionsSensitivityAnalysis",
|
||||||
|
0
|
||||||
|
);
|
||||||
|
|
||||||
|
// Rho-based chemistry
|
||||||
|
typedef functionObjects::reactionsSensitivityAnalysis<rhoChemistryModel>
|
||||||
|
rhoReactionsSensitivityAnalysisFunctionObject;
|
||||||
|
|
||||||
|
defineTemplateTypeNameAndDebugWithName
|
||||||
|
(
|
||||||
|
rhoReactionsSensitivityAnalysisFunctionObject,
|
||||||
|
"rhoReactionsSensitivityAnalysis",
|
||||||
|
0
|
||||||
|
);
|
||||||
|
|
||||||
namespace functionObjects
|
namespace functionObjects
|
||||||
{
|
{
|
||||||
// Psi-based chemistry
|
|
||||||
typedef reactionsSensitivityAnalysis<psiChemistryModel>
|
|
||||||
psiReactionsSensitivityAnalysisFunctionObject;
|
|
||||||
|
|
||||||
defineTemplateTypeNameAndDebugWithName
|
|
||||||
(
|
|
||||||
psiReactionsSensitivityAnalysisFunctionObject,
|
|
||||||
"psiReactionsSensitivityAnalysis",
|
|
||||||
0
|
|
||||||
);
|
|
||||||
|
|
||||||
addToRunTimeSelectionTable
|
addToRunTimeSelectionTable
|
||||||
(
|
(
|
||||||
functionObject,
|
functionObject,
|
||||||
@ -52,18 +63,6 @@ namespace functionObjects
|
|||||||
dictionary
|
dictionary
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Rho-based chemistry
|
|
||||||
typedef reactionsSensitivityAnalysis<rhoChemistryModel>
|
|
||||||
rhoReactionsSensitivityAnalysisFunctionObject;
|
|
||||||
|
|
||||||
defineTemplateTypeNameAndDebugWithName
|
|
||||||
(
|
|
||||||
rhoReactionsSensitivityAnalysisFunctionObject,
|
|
||||||
"rhoReactionsSensitivityAnalysis",
|
|
||||||
0
|
|
||||||
);
|
|
||||||
|
|
||||||
addToRunTimeSelectionTable
|
addToRunTimeSelectionTable
|
||||||
(
|
(
|
||||||
functionObject,
|
functionObject,
|
||||||
|
|||||||
@ -103,9 +103,6 @@ class scalarTransport
|
|||||||
//- Name of field to process
|
//- Name of field to process
|
||||||
word fieldName_;
|
word fieldName_;
|
||||||
|
|
||||||
//- On/off switch
|
|
||||||
bool active_;
|
|
||||||
|
|
||||||
//- Name of flux field (optional)
|
//- Name of flux field (optional)
|
||||||
word phiName_;
|
word phiName_;
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
\\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -53,16 +53,21 @@ namespace runTimeControls
|
|||||||
defineTypeNameAndDebug(minMaxCondition, 0);
|
defineTypeNameAndDebug(minMaxCondition, 0);
|
||||||
addToRunTimeSelectionTable(runTimeCondition, minMaxCondition, dictionary);
|
addToRunTimeSelectionTable(runTimeCondition, minMaxCondition, dictionary);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* NamedEnum<minMaxCondition::modeType, 2>::names[] =
|
|
||||||
{
|
|
||||||
"minimum",
|
|
||||||
"maximum"
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum
|
||||||
|
<
|
||||||
|
Foam::functionObjects::runTimeControls::minMaxCondition::modeType,
|
||||||
|
2
|
||||||
|
>::names[] =
|
||||||
|
{
|
||||||
|
"minimum",
|
||||||
|
"maximum"
|
||||||
|
};
|
||||||
|
|
||||||
const Foam::NamedEnum
|
const Foam::NamedEnum
|
||||||
<
|
<
|
||||||
Foam
|
Foam
|
||||||
@ -86,7 +91,7 @@ Foam::functionObjects::runTimeControls::minMaxCondition::minMaxCondition
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
runTimeCondition(name, obr, dict, state),
|
runTimeCondition(name, obr, dict, state),
|
||||||
functionObjectName_(dict.lookup("functionObjectName")),
|
functionObjectName_(dict.lookup("functionObject")),
|
||||||
mode_(modeTypeNames_.read(dict.lookup("mode"))),
|
mode_(modeTypeNames_.read(dict.lookup("mode"))),
|
||||||
fieldNames_(dict.lookup("fields")),
|
fieldNames_(dict.lookup("fields")),
|
||||||
value_(readScalar(dict.lookup("value")))
|
value_(readScalar(dict.lookup("value")))
|
||||||
|
|||||||
@ -72,8 +72,6 @@ void Foam::ThermoParcel<ParcelType>::cellValueSourceCorrection
|
|||||||
{
|
{
|
||||||
this->Uc_ += td.cloud().UTrans()[celli]/this->massCell(celli);
|
this->Uc_ += td.cloud().UTrans()[celli]/this->massCell(celli);
|
||||||
|
|
||||||
const scalar CpMean = td.CpInterp().psi()[celli];
|
|
||||||
|
|
||||||
tetIndices tetIs = this->currentTetIndices();
|
tetIndices tetIs = this->currentTetIndices();
|
||||||
Tc_ = td.TInterp().interpolate(this->position(), tetIs);
|
Tc_ = td.TInterp().interpolate(this->position(), tetIs);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user