34 template<
class CompType,
class Sol
idThermo>
37 typename CompType::reactionThermo&
thermo 58 nReaction_(reactions_.size()),
60 reactingCells_(this->
mesh().nCells(), true)
88 template<
class CompType,
class Sol
idThermo>
96 template<
class CompType,
class Sol
idThermo>
107 template<
class CompType,
class Sol
idThermo>
116 template<
class CompType,
class Sol
idThermo>
129 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;
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
Ignore writing from objectRegistry::writeObject()
Extends base solid chemistry model by adding a thermo package, and ODE functions. ...
virtual ~solidChemistryModel()
Destructor.
PtrList< volScalarField::Internal > RRs_
List of reaction rate per solid [kg/m3/s].
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< volScalarField > tc() const
Return the chemical time scale.
const dimensionSet dimVolume(pow3(dimLength))
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
virtual scalar solve(const scalar deltaT)=0
Solve the reaction system for the given time step.
static const GeometricField< scalar, fvPatchField, volMesh > & null() noexcept
Return a null GeometricField (reference to a nullObject).
virtual tmp< volScalarField > Qdot() const
Return the heat release rate [kg/m/s3].
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
Fundamental solid thermodynamic properties.
const dimensionSet dimEnergy
PtrList< volScalarField > & Ys_
Reference to solid mass fractions.
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.
Defines the attributes of an object for which implicit objectRegistry management is supported...
Do not request registration (bool: false)
static constexpr const zero Zero
Global zero (0)