Commit 2b06a002 authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: Corrected indices used in YVolatile list

parent 98f97e78
......@@ -114,7 +114,7 @@ void Foam::ConstantRateDevolatilisation<CloudType>::calculate
forAll(volatileData_, i)
{
const label id = volatileToGasMap_[i];
const scalar massVolatile0 = mass0*YVolatile0_[id];
const scalar massVolatile0 = mass0*YVolatile0_[i];
const scalar massVolatile = mass*YGasEff[id];
// Combustion allowed once all volatile components evolved
......
......@@ -117,7 +117,7 @@ void Foam::SingleKineticRateDevolatilisation<CloudType>::calculate
forAll(volatileData_, i)
{
const label id = volatileToGasMap_[i];
const scalar massVolatile0 = mass0*YVolatile0_[id];
const scalar massVolatile0 = mass0*YVolatile0_[i];
const scalar massVolatile = mass*YGasEff[id];
// Combustion allowed once all volatile components evolved
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment