ReactionRateDelegator.cpp Source File#
ReactionRateDelegator.cpp
Go to the documentation of this file.
Base class for kinetics managers and also contains the kineticsmgr module documentation (see Kinetics...
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
virtual string getMessage() const
Method overridden by derived classes to format the error message.
Definition ctexceptions.cpp:45
void install(const string &name, function< void()> &target, const function< void()> &func)
Install a function with the signature void() as being delegatable.
Definition Delegator.h:301
static void wrapReactionData(const string &rateName, ReactionDataDelegator &data)
Create an object in an external language that wraps the specified ReactionData object.
Definition ExtensionManager.cpp:16
static string getSolutionWrapperType(const string &userType)
Get the Solution wrapper type corresponding to the specified user-defined reaction rate type.
Definition ExtensionManager.cpp:53
static shared_ptr< ExternalHandle > wrapSolution(const string &wrapperType, shared_ptr< Solution > soln)
Create an object in an external language that wraps the specified Solution object.
Definition ExtensionManager.cpp:35
Error thrown for problems processing information contained in an AnyMap or AnyValue.
Definition AnyMap.h:738
shared_ptr< Solution > root() const
Get the Solution object containing this Kinetics object and associated ThermoPhase objects.
Definition Kinetics.h:1397
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
bool update(const ThermoPhase &phase, const Kinetics &kin) override
Update data container based on thermodynamic phase state.
Definition ReactionRateDelegator.cpp:23
function< double(void *)> m_update
Delegated update method taking the Solution wrapper as its argument.
Definition ReactionRateDelegator.h:61
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
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
virtual void setParameters(const AnyMap &node, const UnitStack &units)
Set parameters.
Definition ReactionRate.h:101
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
Generated by 1.9.7