37template<
class ReactionThermo,
class ThermoType>
38eddyDissipationModelBase<ReactionThermo, ThermoType>::eddyDissipationModelBase
40 const word& modelType,
43 const word& combustionProperties
46 singleStepCombustion<ReactionThermo, ThermoType>
59template<
class ReactionThermo,
class ThermoType>
67template<
class ReactionThermo,
class ThermoType>
81template<
class ReactionThermo,
class ThermoType>
88 this->singleMixturePtr_->fresCorrect();
90 const label fuelI = this->singleMixturePtr_->fuelIndex();
92 const volScalarField& YFuel = this->thermo_.composition().Y()[fuelI];
96 if (this->thermo_.composition().contains(
"O2"))
102 *
min(YFuel, YO2/
s.value())
108 <<
"You selected a combustion model that requires O2 mass"
109 <<
" to be present in the mixture"
116template<
class ReactionThermo,
class ThermoType>
121 this->coeffs().readEntry(
"CEDC", CEDC_);
compressible::turbulenceModel & turb
ReactionThermo & thermo_
Thermo.
virtual ReactionThermo & thermo()
Return access to the thermo package.
const dictionary & coeffs() const
Return const dictionary of the model.
Switch active() const noexcept
Is combustion active?
tmp< volScalarField > rtTurb() const
Return the reciprocal of the turbulent mixing time scale.
virtual tmp< volScalarField > timeScale()=0
Calculate time scale.
void correct()
Correct combustion rate.
virtual ~eddyDissipationModelBase()
Destructor.
virtual bool read()
Update properties.
singleStepReactingMixture< ThermoType > * singleMixturePtr_
Pointer to singleStepReactingMixture mixture.
volScalarField wFuel_
Fuel consumption rate.
virtual bool read()
Update properties from given dictionary.
Abstract base class for turbulence models (RAS, LES and laminar).
scalar getScalar(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Same as get<scalar>(const word&, keyType::option).
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimVelocity
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
errorManipArg< error, int > exit(error &err, const int errNo=1)