Skip to content

Commit

Permalink
Update dfChemistryModel.C
Browse files Browse the repository at this point in the history
  • Loading branch information
minzhang0929 authored Jun 1, 2023
1 parent 9fadf6b commit aa0d895
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/dfChemistryModel/dfChemistryModel.C
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,6 @@ Foam::dfChemistryModel<ThermoType>::calculateRR

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

// mole fraction
mutable scalarList c[mixture_.nSpecies()];

doublereal netRate[mixture_.nReactions()];
doublereal X[mixture_.nSpecies()];

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

c[i] = rhoi*Yi/CanteraGas_->molecularWeight(i);
X[i] = rhoi*Yi/CanteraGas_->molecularWeight(i);
}

for(label i=0; i<mixture_.nSpecies(); i++)
{
X[i] = c[i];
}

CanteraGas_->setState_TPX(Ti, pi, X);

CanteraKinetics_->getNetRatesOfProgress(netRate);
Expand Down

0 comments on commit aa0d895

Please sign in to comment.