31 template<
class ChemistryModel>
39 coeffsDict_(this->subDict(
"odeCoeffs")),
47 template<
class ChemistryModel>
54 template<
class ChemistryModel>
66 if (odeSolver_->resize())
68 odeSolver_->resizeField(cTp_);
81 odeSolver_->solve(0, deltaT, cTp_, subDeltaT);
85 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 > &)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
ode(const fvMesh &mesh, const word &phaseName)
Construct from mesh and phase name.
A class for handling words, derived from string.
virtual void solve(scalarField &c, scalar &T, scalar &p, scalar &deltaT, scalar &subDeltaT) const
Update the concentrations and return the chemical time.
Mesh data needed to do the Finite Volume discretisation.
virtual ~ode()
Destructor.