31 template<
class CompType,
class Sol
idThermo>
34 typename CompType::reactionThermo& thermo
55 nReaction_(reactions_.size()),
57 reactingCells_(this->
mesh().nCells(),
true)
69 "RRs." + Ys_[fieldi].
name(),
85 template<
class CompType,
class Sol
idThermo>
93 template<
class CompType,
class Sol
idThermo>
104 template<
class CompType,
class Sol
idThermo>
109 return volScalarField::null();
113 template<
class CompType,
class Sol
idThermo>
127 if (this->chemistry_)
135 scalar hf = solidThermo_[i].Hc();
136 Qdot[celli] -= hf*RRs_[i][celli];
145 template<
class CompType,
class Sol
idThermo>
152 reactingCells_[celli] = active;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Abstract base class for the systems of ordinary differential equations.
void setCellReacting(const label celli, const bool active)
Set reacting status of cell, celli.
basicSpecieMixture & composition
T & ref() const
Return non-const reference or generate a fatal error.
solidChemistryModel(typename CompType::reactionThermo &thermo)
Construct from thermo.
virtual ~solidChemistryModel()
Destructor.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
virtual tmp< volScalarField > tc() const
Return the chemical time scale.
const dimensionSet dimVolume(pow3(dimLength))
virtual scalar solve(const scalar deltaT)=0
Solve the reaction system for the given time step.
virtual tmp< volScalarField > Qdot() const
Return the heat release rate [kg/m/s^3].
Fundamental solid thermodynamic properties.
word name(const complex &)
Return a string representation of a complex.
const dimensionSet dimEnergy
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< volScalarField > & Y
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
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.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...