30 template<
class ChemistryModel>
34 coeffsDict_(this->subDict(
"odeCoeffs")),
42 template<
class ChemistryModel>
49 template<
class ChemistryModel>
61 if (odeSolver_->resize())
63 odeSolver_->resizeField(cTp_);
76 odeSolver_->solve(0, deltaT, cTp_, subDeltaT);
80 c[i] =
max(0.0, cTp_[i]);
An abstract base class for solving chemistry.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
rhoReactionThermo & thermo
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
virtual void solve(scalarField &c, scalar &T, scalar &p, scalar &deltaT, scalar &subDeltaT) const
Update the concentrations and return the chemical time.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
ode(typename ChemistryModel::reactionThermo &thermo)
Construct from thermo.
Abstract base-class for ODE system solvers.
virtual ~ode()
Destructor.