mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Changing singleStepCombustion to explicit in order to conserve
species
This commit is contained in:
@ -80,17 +80,12 @@ singleStepCombustion<CombThermoType, ThermoType>::R
|
|||||||
{
|
{
|
||||||
const label specieI = this->thermo_->composition().species()[Y.name()];
|
const label specieI = this->thermo_->composition().species()[Y.name()];
|
||||||
|
|
||||||
const label fNorm = singleMixture_.specieProd()[specieI];
|
|
||||||
|
|
||||||
const volScalarField fres(singleMixture_.fres(specieI));
|
|
||||||
|
|
||||||
const volScalarField wSpecie
|
const volScalarField wSpecie
|
||||||
(
|
(
|
||||||
wFuel_*singleMixture_.specieStoichCoeffs()[specieI]
|
wFuel_*singleMixture_.specieStoichCoeffs()[specieI]
|
||||||
/ max(fNorm*(Y - fres), scalar(0.001))
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return -fNorm*wSpecie*fres + fNorm*fvm::Sp(wSpecie, Y);
|
return wSpecie + fvm::Sp(0.0*wSpecie, Y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -15,8 +15,8 @@ FoamFile
|
|||||||
}
|
}
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
//combustionModel infinitelyFastChemistry<psiCombustionModel,gasThermoPhysics>;
|
combustionModel infinitelyFastChemistry<psiCombustionModel,gasThermoPhysics>;
|
||||||
combustionModel FSD<psiCombustionModel,gasThermoPhysics>;
|
//combustionModel FSD<psiCombustionModel,gasThermoPhysics>;
|
||||||
|
|
||||||
active true;
|
active true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user