35 const word& modelType,
37 const word& combustionProperties,
41 Type(modelType, mesh, combustionProperties, phaseName),
42 integrateReactionRate_
44 this->coeffs().lookupOrDefault(
"integrateReactionRate",
true)
47 if (integrateReactionRate_)
49 Info<<
" using integrated reaction rate" <<
endl;
53 Info<<
" using instantaneous reaction rate" <<
endl;
71 return this->chemistryPtr_->tc();
80 if (integrateReactionRate_)
82 if (fv::localEulerDdt::enabled(this->
mesh()))
85 fv::localEulerDdt::localRDeltaT(this->
mesh());
87 if (this->coeffs().
found(
"maxIntegrationTime"))
89 scalar maxIntegrationTime
94 this->chemistryPtr_->solve
96 min(1.0/rDeltaT, maxIntegrationTime)()
101 this->chemistryPtr_->solve((1.0/rDeltaT)());
106 this->chemistryPtr_->solve(this->
mesh().time().deltaTValue());
111 this->chemistryPtr_->calculate();
127 const label specieI =
130 Su += this->chemistryPtr_->RR(specieI);
147 IOobject::groupName(typeName +
":Qdot", this->phaseName_),
161 tQdot.
ref() = this->chemistryPtr_->Qdot();
173 integrateReactionRate_ =
174 this->coeffs().lookupOrDefault(
"integrateReactionRate",
true);
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.
T & ref() const
Return non-const reference or generate a fatal error.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word member() const
Return member (name without the extension)
tmp< volScalarField > tc() const
Return the chemical time scale.
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
psiReactionThermo & thermo
const dimensionSet dimVolume(pow3(dimLength))
Laminar combustion model.
stressControl lookup("compactNormalStress") >> compactNormalStress
A class for handling words, derived from string.
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.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const dimensionSet dimEnergy
virtual ~laminar()
Destructor.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< volScalarField > & Y
Mesh data needed to do the Finite Volume discretisation.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
A class for managing temporary objects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Calculate the matrix for implicit and explicit sources.
virtual bool read()
Update properties from given dictionary.