35 namespace combustionModels
47 const word& modelType,
50 const word& combustionProperties
62 this->coeffs().lookupOrDefault(
"outerCorrect",
false)
64 integrateReactionRate_
66 this->coeffs().lookupOrDefault(
"integrateReactionRate",
true)
70 this->coeffs().lookupOrDefault(
"maxIntegrationTime", vGreat)
75 if (integrateReactionRate_)
77 Info<<
" using integrated reaction rate" <<
endl;
81 Info<<
" using instantaneous reaction rate" <<
endl;
96 if (!outerCorrect_ && timeIndex_ == this->
mesh().time().
timeIndex())
101 if (integrateReactionRate_)
108 chemistryPtr_->solve(
min(1/rDeltaT, maxIntegrationTime_)());
112 const scalar deltaT = this->
mesh().time().deltaTValue();
114 chemistryPtr_->solve(
min(deltaT, maxIntegrationTime_));
119 chemistryPtr_->calculate();
122 timeIndex_ = this->
mesh().time().timeIndex();
133 Su += chemistryPtr_->RR(specieI);
141 return chemistryPtr_->Qdot();
150 this->coeffs().lookupOrDefault(
"outerCorrect",
false);
151 integrateReactionRate_ =
152 this->coeffs().lookupOrDefault(
"integrateReactionRate",
true);
153 maxIntegrationTime_ =
154 this->coeffs().lookupOrDefault(
"maxIntegrationTime", vGreat);
virtual void correct()
Correct combustion rate.
fvMatrix< scalar > fvScalarMatrix
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fluidReactionThermo & thermo
T & ref() const
Return non-const reference or generate a fatal error.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Base-class for multi-component fluid thermodynamic properties.
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s^3].
Macros for easy insertion into run-time selection tables.
static word member(const word &name)
Return member (name without the extension)
static autoPtr< basicChemistryModel > New(const fluidReactionThermo &thermo)
Select based on fluid reaction thermo.
const dimensionSet dimTime
static bool enabled(const fvMesh &mesh)
Return true if LTS is enabled.
A class for handling words, derived from string.
laminar(const word &modelType, const fluidReactionThermo &thermo, const compressibleMomentumTransportModel &turb, const word &combustionProperties)
Construct from components.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
static const volScalarField & localRDeltaT(const fvMesh &mesh)
Return the reciprocal of the local time-step.
virtual bool read()
Update properties from given dictionary.
Base class for combustion models.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const dimensionSet dimMass
virtual ~laminar()
Destructor.
PtrList< volScalarField > & Y
const tmp< volScalarField::Internal > & Su
A class for managing temporary objects.
defineTypeNameAndDebug(diffusion, 0)
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Abstract base class for turbulence models (RAS, LES and laminar).
Calculate the matrix for implicit and explicit sources.
addToRunTimeSelectionTable(combustionModel, diffusion, dictionary)
virtual bool read()
Update properties from given dictionary.