30 template<
class ChemistryModel>
33 const typename ChemistryModel::reactionThermo& thermo
37 coeffsDict_(this->subDict(
"odeCoeffs")),
45 template<
class ChemistryModel>
52 template<
class ChemistryModel>
65 if (odeSolver_->resize())
67 odeSolver_->resizeField(cTp_);
80 odeSolver_->solve(0, deltaT, cTp_, li, subDeltaT);
84 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 > &)
virtual void solve(scalar &p, scalar &T, scalarField &c, const label li, scalar &deltaT, scalar &subDeltaT) const
Update the concentrations and return the chemical time.
rhoReactionThermo & thermo
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
ode(const typename ChemistryModel::reactionThermo &thermo)
Construct from thermo.
virtual ~ode()
Destructor.