Skip to content
Snippets Groups Projects
Commit 7c111f60 authored by Sergio Ferraris's avatar Sergio Ferraris
Browse files

ENH: Changing singleStepCombustion to explicit in order to conserve

species
parent 7ae2d39f
Branches
Tags
No related merge requests found
......@@ -80,17 +80,12 @@ singleStepCombustion<CombThermoType, ThermoType>::R
{
const label specieI = this->thermo_->composition().species()[Y.name()];
const label fNorm = singleMixture_.specieProd()[specieI];
const volScalarField fres(singleMixture_.fres(specieI));
const volScalarField wSpecie
(
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 FSD<psiCombustionModel,gasThermoPhysics>;
combustionModel infinitelyFastChemistry<psiCombustionModel,gasThermoPhysics>;
//combustionModel FSD<psiCombustionModel,gasThermoPhysics>;
active true;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment