30typedef Cabinet<Reaction> ReactionCabinet;
31template<> ReactionCabinet* ReactionCabinet::s_storage = 0;
41 return ReactionCabinet::add(make_shared<Reaction>());
51 string out = ReactionCabinet::at(handle)->equation();
53 return int(out.size()) + 1;
59 int32_t
rxn_type(int32_t handle, int32_t bufLen,
char* buf)
63 string out = ReactionCabinet::at(handle)->type();
65 return int(out.size()) + 1;
75 bool out = ReactionCabinet::at(handle)->usesThirdBody();
86 bool out = ReactionCabinet::at(handle)->valid();
93 int32_t
rxn_id(
int handle, int32_t bufLen,
char* buf)
97 string out = ReactionCabinet::at(handle)->id;
99 return int(out.size()) + 1;
109 ReactionCabinet::at(handle)->id = id;
120 bool out = ReactionCabinet::at(handle)->allow_nonreactant_orders;
131 bool allow_nonreactant_orders_ = (allow_nonreactant_orders != 0);
132 ReactionCabinet::at(handle)->allow_nonreactant_orders = allow_nonreactant_orders_;
143 ReactionCabinet::del(handle);
155 return ReactionCabinet::size();
167 return ReactionCabinet::parent(handle);
CTRXN - Generated CLib Cantera interface library.
int32_t rxn_allowNonreactantOrders(int handle)
True if reaction orders can be specified for non-reactant species.
int32_t rxn_id(int handle, int32_t bufLen, char *buf)
An identification string for the reaction, used in some filtering operations.
int32_t rxn_del(int32_t handle)
Delete Reaction object.
int32_t rxn_new()
Instantiate Reaction object using default constructor.
int32_t rxn_parentHandle(int32_t handle)
Return handle to parent of Reaction object.
int32_t rxn_setId(int32_t handle, const char *id)
An identification string for the reaction, used in some filtering operations.
int32_t rxn_valid(int32_t handle)
Get validity flag of reaction.
int32_t rxn_cabinetSize()
Return size of Reaction storage.
int32_t rxn_type(int32_t handle, int32_t bufLen, char *buf)
The type of reaction, including reaction rate information.
int32_t rxn_equation(int32_t handle, int32_t bufLen, char *buf)
The chemical equation for this reaction.
int32_t rxn_usesThirdBody(int32_t handle)
Check whether reaction involves third body collider.
int32_t rxn_setAllowNonreactantOrders(int32_t handle, int32_t allow_nonreactant_orders)
True if reaction orders can be specified for non-reactant species.
size_t copyString(const string &source, char *dest, size_t length)
Copy the contents of a string into a char array of a given length.
Namespace for the Cantera kernel.
T handleAllExceptions(T ctErrorCode, T otherErrorCode)
Exception handler used at language interface boundaries.
Contains declarations for string manipulation functions within Cantera.