44 return make_unique<MultiRate<CustomFunc1Rate, ArrheniusData>>();
47 const string type()
const override {
return "custom-rate-function"; }
68 shared_ptr<Func1> m_ratefunc;
Header for reaction rates that involve Arrhenius-type kinetics.
Header for unit conversion utilities, which are used to translate user input from input files (See In...
A map of string keys to values whose type can vary at runtime.
Custom reaction rate depending only on temperature.
void validate(const string &equation, const Kinetics &kin) override
Validate the reaction rate expression.
const string type() const override
String identifying reaction rate specialization.
unique_ptr< MultiRateBase > newMultiRate() const override
Create a rate evaluator for reactions of a particular derived type.
double evalFromStruct(const ArrheniusData &shared_data) const
Update information specific to reaction.
virtual void getParameters(AnyMap &node) const
Get parameters.
void setRateFunction(shared_ptr< Func1 > f)
Set custom rate.
Public interface for kinetics managers.
Abstract base class for reaction rate definitions; this base class is used by user-facing APIs to acc...
virtual void getParameters(AnyMap &node) const
Get parameters.
A representation of the units associated with a dimensional quantity.
This file contains definitions of constants, types and terms that are used in internal routines and a...
Namespace for the Cantera kernel.
Data container holding shared data specific to ArrheniusRate.
Unit aggregation utility.