Handling exception of reactant with zero stoichiometric coefficient
This commit is contained in:
parent
cf0d9f904f
commit
2c655680a6
1 changed files with 1 additions and 1 deletions
|
|
@ -808,7 +808,7 @@ void Foam::chemistryModel<CompType, ThermoType>::edm
|
|||
forAll(R.lhs(), s)
|
||||
{
|
||||
const label k = R.lhs()[s].index;
|
||||
const scalar vk = R.lhs()[s].stoichCoeff;
|
||||
const scalar vk = R.lhs()[s].stoichCoeff + SMALL;
|
||||
const scalar Wk = specieThermo_[k].W();
|
||||
|
||||
minYR = min(minYR, Yi[k]/Wk/vk);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue