ignore increase in oxygen/fuel mass fraction
This commit is contained in:
parent
3ba9ddfd73
commit
d1fcf79dee
1 changed files with 13 additions and 3 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
{
|
{
|
||||||
scalarField Ytemp(Ysize, 0.0);
|
scalarField Ytemp(Ysize, 0.0);
|
||||||
|
|
||||||
for(label i=0 ; i<Ysize ; i++) //mass fraction integration over an eta-space for species i
|
for(label i = 0 ; i < Ysize ; i++) //mass fraction integration over an eta-space for species i
|
||||||
{
|
{
|
||||||
for(label k=0 ; k<=group ; k++)
|
for(label k=0 ; k<=group ; k++)
|
||||||
{
|
{
|
||||||
|
|
@ -18,9 +18,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(label i=0 ; i<Ysize ; i++)
|
Switch ignoreOFIncrease = true;
|
||||||
|
Switch oxygenIncrease = Ytemp[o2index] > Y[o2index][celli];
|
||||||
|
Switch fuelIncrease = Ytemp[fuelindex] > Y[fuelindex][celli];
|
||||||
|
if( ignoreOFIncrease && (oxygenIncrease || fuelIncrease))
|
||||||
{
|
{
|
||||||
Y[i][celli] = Ytemp[i];
|
// Do not update Yi
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for(label i = 0 ; i < Ysize ; i++)
|
||||||
|
{
|
||||||
|
Y[i][celli] = Ytemp[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue