8#ifndef CT_REACTIONRATE_H
9#define CT_REACTIONRATE_H
79 "Not implemented by '{}' object.",
type());
83 virtual const std::string
type()
const = 0;
102 virtual void check(
const std::string& equation,
const AnyMap& node) {}
109 virtual void validate(
const std::string& equation) {}
147 double eval(
double T,
double extra) {
162 double eval(
double T,
const std::vector<double>& extra) {
174 "Not implemented by '{}' object.",
type());
194 unique_ptr<MultiRateBase> m_evaluator;
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.
Public interface for kinetics managers.
An abstract base class for evaluating all reactions of a particular type.
virtual double evalSingle(ReactionRate &rate)=0
Get the rate for a single reaction.
virtual void update(double T)=0
Update common reaction rate data based on temperature.
An error indicating that an unimplemented function has been called.
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 check(const std::string &equation, const AnyMap &node)
Check basic syntax and settings of reaction rate expression.
virtual const std::string type() const =0
String identifying reaction rate specialization.
double eval(double T)
Evaluate reaction rate based on temperature.
virtual void setContext(const Reaction &rxn, const Kinetics &kin)
Set context of reaction rate evaluation.
virtual void validate(const std::string &equation, const Kinetics &kin)
Validate the reaction rate expression.
double eval(double T, double extra)
Evaluate reaction rate based on temperature and an extra parameter.
size_t rateIndex() const
Reaction rate index within kinetics evaluator.
AnyMap parameters() const
Return the parameters such that an identical Reaction could be reconstructed using the newReaction() ...
void setRateIndex(size_t idx)
Set reaction rate index within kinetics evaluator.
virtual unique_ptr< MultiRateBase > newMultiRate() const
Create a rate evaluator for reactions of a particular derived type.
virtual void validate(const std::string &equation)
Validate the reaction rate expression (legacy call)
AnyMap m_input
Input data used for specific models.
virtual void getParameters(AnyMap &node) const
Get parameters.
MultiRateBase & _evaluator()
Return an object that be used to evaluate the rate by converting general input such as temperature an...
size_t m_rate_index
Index of reaction rate within kinetics evaluator.
double eval(double T, const std::vector< double > &extra)
Evaluate reaction rate based on temperature and an extra vector parameter.
Abstract base class which stores data about a reaction and its rate parameterization so that it can b...
Definitions for the classes that are thrown when Cantera experiences an error condition (also contain...
Namespace for the Cantera kernel.
const size_t npos
index returned by functions to indicate "no position"
Unit aggregation utility.