Go to the documentation of this file.
34 namespace combustionModels
39 template<
class CombThermoType,
class ThermoType>
42 const word& modelType,
53 reactionRateFlameArea_
88 template<
class CombThermoType,
class ThermoType>
95 template<
class CombThermoType,
class ThermoType>
98 this->singleMixturePtr_->fresCorrect();
100 const label fuelI = this->singleMixturePtr_->fuelIndex();
102 const volScalarField& YFuel = this->thermoPtr_->composition().Y()[fuelI];
104 const volScalarField& YO2 = this->thermoPtr_->composition().Y(
"O2");
109 (
s*YFuel - (YO2 - YO2OxiStream_))/(
s*YFuelFuelStream_ + YO2OxiStream_);
121 (ft_*cAux*mgft)().weightedAverage(this->
mesh().V())
122 /((ft_*cAux)().weightedAverage(this->
mesh().V()) + SMALL)
136 reactionRateFlameArea_->correct(
sigma);
138 const volScalarField& omegaFuel = reactionRateFlameArea_->omega();
141 const scalar ftStoich =
142 YO2OxiStream_.value()
144 s.value()*YFuelFuelStream_.value() + YO2OxiStream_.value()
182 omegaFuel.dimensions(),
193 refCast<const compressible::LESModel>(this->
turbulence()).delta();
207 scalar deltaFt = 1.0/ftDim_;
211 if (ft_[cellI] > ftMin_ && ft_[cellI] < ftMax_)
213 scalar ftCell = ft_[cellI];
215 if (ftVar[cellI] > ftVarMin_)
217 scalar ftVarc = ftVar[cellI];
219 max(ftCell*(ftCell*(1.0 - ftCell)/ftVarc - 1.0), 0.0);
220 scalar
b =
max(a/ftCell - a, 0.0);
222 for (
int i=1; i<ftDim_; i++)
224 scalar ft = i*deltaFt;
225 pc[cellI] +=
pow(ft, a-1.0)*
pow(1.0 - ft,
b - 1.0)*deltaFt;
228 for (
int i=1; i<ftDim_; i++)
230 scalar ft = i*deltaFt;
231 omegaFuelBar[cellI] +=
232 omegaFuel[cellI]/omegaF[cellI]
236 /(2.0*
sqr(0.01*omegaF[cellI]))
239 *
pow(1.0 - ft,
b - 1.0)
242 omegaFuelBar[cellI] /=
max(pc[cellI], 1
e-4);
246 omegaFuelBar[cellI] =
247 omegaFuel[cellI]/omegaF[cellI]
248 *
exp(-
sqr(ftCell - ftStoich)/(2.0*
sqr(0.01*omegaF[cellI])));
253 omegaFuelBar[cellI] = 0.0;
263 forAll(this->singleMixturePtr_->specieProd(), specieI)
265 if (this->singleMixturePtr_->specieProd()[specieI] < 0)
267 productsIndex[i] = specieI;
275 scalar YprodTotal = 0;
278 YprodTotal += this->singleMixturePtr_->Yprod0()[productsIndex[j]];
283 if (ft_[cellI] < ftStoich)
285 pc[cellI] = ft_[cellI]*(YprodTotal/ftStoich);
289 pc[cellI] = (1.0 - ft_[cellI])*(YprodTotal/(1.0 - ftStoich));
314 label specieI = productsIndex[j];
315 const volScalarField& Yp = this->thermoPtr_->composition().Y()[specieI];
321 max(scalar(1) - products/
max(pc, scalar(1
e-5)), scalar(0))
324 pc =
min(C_*
c, scalar(1));
328 this->wFuel_ == mgft*pc*omegaFuelBar;
332 template<
class CombThermoType,
class ThermoType>
340 calculateSourceNorm();
345 template<
class CombThermoType,
class ThermoType>
350 this->coeffs().lookup(
"Cv") >> Cv_ ;
351 this->coeffs().lookup(
"ftVarMin") >> ftVarMin_;
352 reactionRateFlameArea_->read(this->coeffs());
virtual bool read()
Update properties.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static word groupName(Name name, const word &group)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
A class for handling words, derived from string.
virtual void correct()
Correct combustion rate.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
Calculate the divergence of the given field.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensionedScalar exp(const dimensionedScalar &ds)
dimensioned< scalar > mag(const dimensioned< Type > &)
Base class for combustion models using singleStepReactingMixture.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
void calculateSourceNorm()
Calculate the normalised fuel source term.
autoPtr< compressible::turbulenceModel > turbulence
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
Macros for easy insertion into run-time selection tables.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
const double e
Elementary charge.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
FSD(const FSD &)
Disallow copy construct.
static autoPtr< reactionRateFlameArea > New(const dictionary &dict, const fvMesh &mesh, const combustionModel &combModel)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
Calculate the gradient of the given field.
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
const dimensionedScalar c
Speed of light in a vacuum.
Generic GeometricField class.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
stressControl lookup("compactNormalStress") >> compactNormalStress