44 return make_unique<MultiRate<CustomFunc1Rate, ArrheniusData>>();
47 const string type()
const override {
return "custom-rate-function"; }
49 void getParameters(
AnyMap& rateNode,
const Units& rate_units=
Units(0.))
const;
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.
unique_ptr< MultiRateBase > newMultiRate() const override
Create a rate evaluator for reactions of a particular derived type.
void validate(const string &equation, const Kinetics &kin) override
Validate the reaction rate expression.
const string type() const override
String identifying reaction rate specialization.
double evalFromStruct(const ArrheniusData &shared_data) const
Update information specific to reaction.
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.