Skip to content

Commit aa0d895

Browse files
authored
Update dfChemistryModel.C
1 parent 9fadf6b commit aa0d895

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/dfChemistryModel/dfChemistryModel.C

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -740,9 +740,6 @@ Foam::dfChemistryModel<ThermoType>::calculateRR
740740

741741
volScalarField::Internal& RR = tRR.ref();
742742

743-
// mole fraction
744-
mutable scalarList c[mixture_.nSpecies()];
745-
746743
doublereal netRate[mixture_.nReactions()];
747744
doublereal X[mixture_.nSpecies()];
748745

@@ -756,14 +753,9 @@ Foam::dfChemistryModel<ThermoType>::calculateRR
756753
{
757754
const scalar Yi = Y_[i][celli];
758755

759-
c[i] = rhoi*Yi/CanteraGas_->molecularWeight(i);
756+
X[i] = rhoi*Yi/CanteraGas_->molecularWeight(i);
760757
}
761758

762-
for(label i=0; i<mixture_.nSpecies(); i++)
763-
{
764-
X[i] = c[i];
765-
}
766-
767759
CanteraGas_->setState_TPX(Ti, pi, X);
768760

769761
CanteraKinetics_->getNetRatesOfProgress(netRate);

0 commit comments

Comments
 (0)