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] = p*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.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
fluidReactionThermo & thermo
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
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.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Abstract base-class for ODE system solvers.
virtual ~ode()
Destructor.