TDACChemistryModel: Removed unnecessary warning messages

Patch contributed by Francesco Contino
This commit is contained in:
Henry Weller
2017-12-04 12:28:59 +00:00
parent 026804c0e0
commit 745b20acb6
3 changed files with 8 additions and 20 deletions

View File

@ -642,17 +642,15 @@ void Foam::chemistryReductionMethods::DAC<CompType, ThermoType>::reduceMechanism
{
label u = Q.pop();
scalar Den = max(PA[u],CA[u]);
if (Den!=0.0)
if (Den != 0)
{
for (label v=0; v<NbrABInit[u]; v++)
{
label otherSpec = rABOtherSpec(u, v);
scalar rAB = mag(rABNum(u, v))/Den;
if (rAB>1)
if (rAB > 1)
{
Info<< "Badly Conditioned rAB : " << rAB
<< "species involved : "<<u << "," << otherSpec << endl;
rAB=1.0;
rAB = 1;
}
// The direct link is weaker than the user-defined tolerance
if (rAB >= this->tolerance())

View File

@ -253,11 +253,8 @@ void Foam::chemistryReductionMethods::DRG<CompType, ThermoType>::reduceMechanism
label otherSpec = rABOtherSpec(u, v);
scalar rAB = rABNum(u, v)/Den;
if (rAB>1)
if (rAB > 1)
{
Info<< "Badly Conditioned rAB : " << rAB
<< "species involved : " << u << "," << otherSpec
<< endl;
rAB = 1;
}

View File

@ -442,11 +442,9 @@ reduceMechanism
{
label otherSpec = rABOtherSpec(u, v);
scalar rAB = mag(rABNum(u, v))/Den;
if (rAB>1)
if (rAB > 1)
{
Info<< "Badly Conditioned rAB : " << rAB
<< "species involved : "<<u << "," << otherSpec << endl;
rAB=1.0;
rAB = 1;
}
scalar Rtemp = Rvalue[u]*rAB;
@ -647,14 +645,9 @@ reduceMechanism
if (!disabledSpecies[otherSpec])
{
scalar rAB = mag(rABNum(u, v))/Den;
if (rAB>1.0)
if (rAB > 1)
{
Info<< "Badly Conditioned rAB : " << rAB
<< "species involved : "
<<this->chemistry_.Y()[u].member() << ","
<< this->chemistry_.Y()[otherSpec].member()
<< endl;
rAB=1.0;
rAB = 1;
}
scalar Rtemp = Rvalue[u]*rAB;