ReactionRateDelegator.h Source File#
ReactionRateDelegator.h
Go to the documentation of this file.
Header for reaction rates that involve Arrhenius-type kinetics.
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
Delegate member functions of a C++ class to externally-specified functions.
Definition Delegator.h:104
An error indicating that an unimplemented function has been called.
Definition ctexceptions.h:195
Delegate methods of the ReactionData class to external functions.
Definition ReactionRateDelegator.h:20
shared_ptr< ExternalHandle > m_wrappedSolution
An external language's wrapper for the Solution object where this ReactionData object is being used.
Definition ReactionRateDelegator.h:55
shared_ptr< ExternalHandle > m_wrappedData
An external language's wrapper for this ReactionData object.
Definition ReactionRateDelegator.h:58
shared_ptr< ExternalHandle > getWrapper() const
Get the external language wrapper for this ReactionData object.
Definition ReactionRateDelegator.h:40
bool update(const ThermoPhase &phase, const Kinetics &kin) override
Update data container based on thermodynamic phase state.
Definition ReactionRateDelegator.cpp:23
void update(double T) override
Update data container based on temperature T
Definition ReactionRateDelegator.h:26
function< double(void *)> m_update
Delegated update method taking the Solution wrapper as its argument.
Definition ReactionRateDelegator.h:61
void setWrapper(shared_ptr< ExternalHandle > wrapper)
Set the external language wrapper for this ReactionData object.
Definition ReactionRateDelegator.h:45
void setType(const string &name)
Set the type of the ReactionData class.
Definition ReactionRateDelegator.h:35
Delegate methods of the ReactionRate class to external functions.
Definition ReactionRateDelegator.h:69
unique_ptr< MultiRateBase > newMultiRate() const override
Create a rate evaluator for reactions of a particular derived type.
Definition ReactionRateDelegator.cpp:61
double evalFromStruct(const ReactionDataDelegator &shared_data)
Evaluate reaction rate.
Definition ReactionRateDelegator.h:89
void validate(const string &equation, const Kinetics &kin) override
Validate the reaction rate expression.
Definition ReactionRateDelegator.cpp:70
function< double(void *)> m_evalFromStruct
Delegated evalFromStruct method taking a pointer to the corresponding ReactionData wrapper object.
Definition ReactionRateDelegator.h:109
void setType(const string &type)
Set the reaction type based on the user-provided reaction rate parameterization.
Definition ReactionRateDelegator.h:76
const string type() const override
String identifying reaction rate specialization.
Definition ReactionRateDelegator.h:80
void setParameters(const AnyMap &node, const UnitStack &units) override
Set parameters.
Definition ReactionRateDelegator.h:93
Abstract base class for reaction rate definitions; this base class is used by user-facing APIs to acc...
Definition ReactionRate.h:49
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
Data container holding shared data used for ReactionRate calculation.
Definition ReactionData.h:27
virtual void update(double T)
Update data container based on temperature T
Definition ReactionData.h:36
Generated by 1.9.7