From b8fcd10cf71b220178efbbe29ee8acff0ddc83ec Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 1 Aug 2019 14:24:13 +0100 Subject: [PATCH] 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. --- src/combustionModels/FSD/FSD.C | 16 +- src/combustionModels/diffusion/diffusion.C | 6 +- .../infinitelyFastChemistry.C | 8 +- .../singleStepCombustion.C | 239 ++++++++++++++-- .../singleStepCombustion.H | 86 +++++- .../singleStepCombustionI.H | 117 ++++++++ .../mixtureFraction/mixtureFraction.C | 39 +-- .../mixtureFraction/mixtureFraction.H | 8 +- .../singleStepReactingMixture.C | 261 ------------------ .../singleStepReactingMixture.H | 198 ------------- .../singleStepReactingMixtureI.H | 105 ------- .../psiReactionThermo/psiReactionThermos.C | 27 +- .../rhoReactionThermo/rhoReactionThermos.C | 27 +- .../constant/thermophysicalProperties | 2 +- .../constant/thermophysicalProperties | 2 +- .../constant/thermophysicalProperties | 2 +- .../constant/thermophysicalProperties | 2 +- 17 files changed, 459 insertions(+), 686 deletions(-) create mode 100644 src/combustionModels/singleStepCombustion/singleStepCombustionI.H delete mode 100644 src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixture.C delete mode 100644 src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixture.H delete mode 100644 src/thermophysicalModels/reactionThermo/mixtures/singleStepReactingMixture/singleStepReactingMixtureI.H diff --git a/src/combustionModels/FSD/FSD.C b/src/combustionModels/FSD/FSD.C index 36d27a64c4..0c096c0a47 100644 --- a/src/combustionModels/FSD/FSD.C +++ b/src/combustionModels/FSD/FSD.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -97,15 +97,15 @@ FSD::~FSD() template void FSD::calculateSourceNorm() { - this->singleMixturePtr_->fresCorrect(); + this->fresCorrect(); - const label fuelI = this->singleMixturePtr_->fuelIndex(); + const label fuelI = this->fuelIndex(); const volScalarField& YFuel = this->thermo().composition().Y()[fuelI]; const volScalarField& YO2 = this->thermo().composition().Y("O2"); - const dimensionedScalar s = this->singleMixturePtr_->s(); + const dimensionedScalar s = this->s(); ft_ = (s*YFuel - (YO2 - YO2OxiStream_))/(s*YFuelFuelStream_ + YO2OxiStream_); @@ -247,9 +247,9 @@ void FSD::calculateSourceNorm() List