50 const std::string
type()
const override {
return "custom-rate-function"; }
52 void getParameters(
AnyMap& rateNode,
const Units& rate_units=
Units(0.))
const;
55 virtual void validate(
const std::string& equation,
const Kinetics& kin)
override;
71 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.
const std::string type() const override
String identifying reaction rate specialization.
virtual void validate(const std::string &equation, const Kinetics &kin) override
Validate the reaction rate expression.
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.
A class template handling ReactionRate specializations.
Abstract base class for reaction rate definitions; this base class is used by user-facing APIs to acc...
virtual void setParameters(const AnyMap &node, const UnitStack &units)
Set parameters.
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.