singleStepCombustion: Refactored to include the singleStepReactingMixture functionality

allowing the removal of singleStepReactingMixture which is the first step in
refactoring the instantiation of the reaction scheme.
This commit is contained in:
Henry Weller
2019-08-01 14:24:13 +01:00
parent a8020984f6
commit b8fcd10cf7
17 changed files with 459 additions and 686 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -69,9 +69,9 @@ void diffusion<ReactionThermo, ThermoType>::correct()
this->wFuel_ ==
dimensionedScalar(dimMass/pow3(dimLength)/dimTime, 0);
this->singleMixturePtr_->fresCorrect();
this->fresCorrect();
const label fuelI = this->singleMixturePtr_->fuelIndex();
const label fuelI = this->fuelIndex();
const volScalarField& YFuel = this->thermo().composition().Y()[fuelI];