mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STY: Fixing style
This commit is contained in:
@ -60,7 +60,7 @@ void Foam::reactionsSensitivityAnalysis<chemistryType>::writeFileHeader
|
|||||||
{
|
{
|
||||||
writeCommented(os, "Reaction");
|
writeCommented(os, "Reaction");
|
||||||
|
|
||||||
forAll (speciesNames_, k)
|
forAll(speciesNames_, k)
|
||||||
{
|
{
|
||||||
os << tab << speciesNames_[k] << tab;
|
os << tab << speciesNames_[k] << tab;
|
||||||
}
|
}
|
||||||
@ -99,9 +99,9 @@ void Foam::reactionsSensitivityAnalysis<chemistryType>::calculateSpeciesRR
|
|||||||
|
|
||||||
endTime_ += dt;
|
endTime_ += dt;
|
||||||
|
|
||||||
forAll (production_, specieI)
|
forAll(production_, specieI)
|
||||||
{
|
{
|
||||||
forAll (production_[specieI], reactionI)
|
forAll(production_[specieI], reactionI)
|
||||||
{
|
{
|
||||||
RR = basicChemistry.calculateRR(reactionI, specieI);
|
RR = basicChemistry.calculateRR(reactionI, specieI);
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ void Foam::reactionsSensitivityAnalysis<chemistryType>::writeSpeciesRR()
|
|||||||
prodFilePtr_() << reactionI << tab;
|
prodFilePtr_() << reactionI << tab;
|
||||||
prodIntFilePtr_() << reactionI << tab;
|
prodIntFilePtr_() << reactionI << tab;
|
||||||
|
|
||||||
forAll (speciesNames_, i)
|
forAll(speciesNames_, i)
|
||||||
{
|
{
|
||||||
prodFilePtr_() << production_[i][reactionI] << tab;
|
prodFilePtr_() << production_[i][reactionI] << tab;
|
||||||
consFilePtr_() << consumption_[i][reactionI] << tab;
|
consFilePtr_() << consumption_[i][reactionI] << tab;
|
||||||
@ -202,12 +202,9 @@ Foam::reactionsSensitivityAnalysis<chemistryType>::reactionsSensitivityAnalysis
|
|||||||
read(dict);
|
read(dict);
|
||||||
if (mesh_.nCells() != 1)
|
if (mesh_.nCells() != 1)
|
||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorInFunction
|
||||||
(
|
<< "Function object only applicable to single cell cases "
|
||||||
"Foam::reactionsSensitivityAnalysis::"
|
<< abort(FatalError);
|
||||||
"reactionsSensitivityAnalysis()"
|
|
||||||
) << "Function object only applicable to single cell cases "
|
|
||||||
<< endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mesh_.foundObject<basicChemistryModel>("chemistryProperties"))
|
if (mesh_.foundObject<basicChemistryModel>("chemistryProperties"))
|
||||||
@ -223,7 +220,7 @@ Foam::reactionsSensitivityAnalysis<chemistryType>::reactionsSensitivityAnalysis
|
|||||||
chemistry.thermo().composition().species().size()
|
chemistry.thermo().composition().species().size()
|
||||||
);
|
);
|
||||||
|
|
||||||
forAll (speciesNames_, i)
|
forAll(speciesNames_, i)
|
||||||
{
|
{
|
||||||
speciesNames_[i] = chemistry.thermo().composition().species()[i];
|
speciesNames_[i] = chemistry.thermo().composition().species()[i];
|
||||||
}
|
}
|
||||||
@ -237,7 +234,7 @@ Foam::reactionsSensitivityAnalysis<chemistryType>::reactionsSensitivityAnalysis
|
|||||||
productionInt_.setSize(production_.size());
|
productionInt_.setSize(production_.size());
|
||||||
consumptionInt_.setSize(production_.size());
|
consumptionInt_.setSize(production_.size());
|
||||||
|
|
||||||
forAll (production_, i)
|
forAll(production_, i)
|
||||||
{
|
{
|
||||||
production_[i].setSize(nReactions_, 0.0);
|
production_[i].setSize(nReactions_, 0.0);
|
||||||
consumption_[i].setSize(nReactions_, 0.0);
|
consumption_[i].setSize(nReactions_, 0.0);
|
||||||
@ -248,12 +245,9 @@ Foam::reactionsSensitivityAnalysis<chemistryType>::reactionsSensitivityAnalysis
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorInFunction
|
||||||
(
|
<< " Not chemistry model found. "
|
||||||
"void Foam::reactionsSensitivityAnalysis::"
|
<< " Object available are : " << mesh_.names()
|
||||||
"reactionsSensitivityAnalysis()"
|
|
||||||
) << " Not chemistry model found "
|
|
||||||
<< " The object available are : " << mesh_.names()
|
|
||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -274,8 +268,7 @@ void Foam::reactionsSensitivityAnalysis<chemistryType>::read
|
|||||||
(
|
(
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
)
|
)
|
||||||
{
|
{}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class chemistryType>
|
template<class chemistryType>
|
||||||
@ -288,7 +281,6 @@ void Foam::reactionsSensitivityAnalysis<chemistryType>::execute()
|
|||||||
(
|
(
|
||||||
"chemistryProperties"
|
"chemistryProperties"
|
||||||
);
|
);
|
||||||
|
|
||||||
calculateSpeciesRR(chemistry);
|
calculateSpeciesRR(chemistry);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -322,7 +314,6 @@ void Foam::reactionsSensitivityAnalysis<chemistryType>::write()
|
|||||||
writeSpeciesRR();
|
writeSpeciesRR();
|
||||||
|
|
||||||
startTime_ = endTime_;
|
startTime_ = endTime_;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ Description
|
|||||||
"consumptionInt" : integral between dumps of the consumption rate
|
"consumptionInt" : integral between dumps of the consumption rate
|
||||||
|
|
||||||
The function object indicates reaction rates of creation or destruction
|
The function object indicates reaction rates of creation or destruction
|
||||||
of spcecies in each reaction.
|
of species in each reaction.
|
||||||
|
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
|
|||||||
Reference in New Issue
Block a user