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 "dictionary.H"
|
||||
#include "FieldFunctions.H"
|
||||
#include "steadyStateDdtScheme.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
|
||||
|
||||
@ -31,11 +31,9 @@ License
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
namespace functionObjects
|
||||
{
|
||||
// Psi-based chemistry
|
||||
typedef reactionsSensitivityAnalysis<psiChemistryModel>
|
||||
typedef functionObjects::reactionsSensitivityAnalysis<psiChemistryModel>
|
||||
psiReactionsSensitivityAnalysisFunctionObject;
|
||||
|
||||
defineTemplateTypeNameAndDebugWithName
|
||||
@ -45,16 +43,8 @@ namespace functionObjects
|
||||
0
|
||||
);
|
||||
|
||||
addToRunTimeSelectionTable
|
||||
(
|
||||
functionObject,
|
||||
psiReactionsSensitivityAnalysisFunctionObject,
|
||||
dictionary
|
||||
);
|
||||
|
||||
|
||||
// Rho-based chemistry
|
||||
typedef reactionsSensitivityAnalysis<rhoChemistryModel>
|
||||
typedef functionObjects::reactionsSensitivityAnalysis<rhoChemistryModel>
|
||||
rhoReactionsSensitivityAnalysisFunctionObject;
|
||||
|
||||
defineTemplateTypeNameAndDebugWithName
|
||||
@ -64,6 +54,15 @@ namespace functionObjects
|
||||
0
|
||||
);
|
||||
|
||||
namespace functionObjects
|
||||
{
|
||||
addToRunTimeSelectionTable
|
||||
(
|
||||
functionObject,
|
||||
psiReactionsSensitivityAnalysisFunctionObject,
|
||||
dictionary
|
||||
);
|
||||
|
||||
addToRunTimeSelectionTable
|
||||
(
|
||||
functionObject,
|
||||
|
||||
@ -103,9 +103,6 @@ class scalarTransport
|
||||
//- Name of field to process
|
||||
word fieldName_;
|
||||
|
||||
//- On/off switch
|
||||
bool active_;
|
||||
|
||||
//- Name of flux field (optional)
|
||||
word phiName_;
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||
\\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -53,15 +53,20 @@ namespace runTimeControls
|
||||
defineTypeNameAndDebug(minMaxCondition, 0);
|
||||
addToRunTimeSelectionTable(runTimeCondition, minMaxCondition, dictionary);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
const char* NamedEnum<minMaxCondition::modeType, 2>::names[] =
|
||||
const char* Foam::NamedEnum
|
||||
<
|
||||
Foam::functionObjects::runTimeControls::minMaxCondition::modeType,
|
||||
2
|
||||
>::names[] =
|
||||
{
|
||||
"minimum",
|
||||
"maximum"
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const Foam::NamedEnum
|
||||
<
|
||||
@ -86,7 +91,7 @@ Foam::functionObjects::runTimeControls::minMaxCondition::minMaxCondition
|
||||
)
|
||||
:
|
||||
runTimeCondition(name, obr, dict, state),
|
||||
functionObjectName_(dict.lookup("functionObjectName")),
|
||||
functionObjectName_(dict.lookup("functionObject")),
|
||||
mode_(modeTypeNames_.read(dict.lookup("mode"))),
|
||||
fieldNames_(dict.lookup("fields")),
|
||||
value_(readScalar(dict.lookup("value")))
|
||||
|
||||
@ -72,8 +72,6 @@ void Foam::ThermoParcel<ParcelType>::cellValueSourceCorrection
|
||||
{
|
||||
this->Uc_ += td.cloud().UTrans()[celli]/this->massCell(celli);
|
||||
|
||||
const scalar CpMean = td.CpInterp().psi()[celli];
|
||||
|
||||
tetIndices tetIs = this->currentTetIndices();
|
||||
Tc_ = td.TInterp().interpolate(this->position(), tetIs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user