Skip to content
Snippets Groups Projects
Commit 1b168470 authored by Andrew Heather's avatar Andrew Heather
Browse files

STYLE: Updated to use const...

parent ee6fe2b9
No related branches found
No related tags found
No related merge requests found
......@@ -489,13 +489,13 @@ void Foam::ReactingParcel<ParcelType>::calcPhaseChange
// Limit phase change mass by availability of each specie
dMassPC = min(mass*YPhase*YComponents, dMassPC);
scalar dMassTot = sum(dMassPC);
const scalar dMassTot = sum(dMassPC);
// Add to cumulative phase change mass
td.cloud().addToMassPhaseChange(this->nParticle_*dMassTot);
// Average molecular weight of carrier mix - assumes perfect gas
scalar Wc = this->rhoc_*specie::RR*this->Tc_/this->pc_;
const scalar Wc = this->rhoc_*specie::RR*this->Tc_/this->pc_;
forAll(YComponents, i)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment