30 template<
class ChemistryModel>
34 coeffsDict_(this->subDict(
"odeCoeffs")),
42 template<
class ChemistryModel>
49 template<
class ChemistryModel>
62 if (odeSolver_->resize())
64 odeSolver_->resizeField(cTp_);
81 dcTp[nSpecie+1] = 1e5*rootSmall;
82 this->check(0, cTp_, dcTp, li);
85 odeSolver_->solve(0, deltaT, cTp_, li, subDeltaT);
89 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.
fluidReactionThermo & thermo
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.
Base-class for multi-component fluid thermodynamic properties.
ode(const fluidReactionThermo &thermo)
Construct from thermo.
autoPtr< BasicCompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleMomentumTransportModel::transportModel &transport)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Abstract base-class for ODE system solvers.
virtual ~ode()
Destructor.