Generated CLib API for Cantera's ReactorNet class. More...
Generated CLib API for Cantera's ReactorNet class.
Functions | |
| int32_t | reactornet_new (int32_t reactorsLen, int32_t *reactors) |
| Create a reactor network containing one or more coupled reactors. | |
| int32_t | reactornet_setInitialTime (int32_t handle, double time) |
| Set the initial value of the independent variable (typically time). | |
| int32_t | reactornet_setMaxTimeStep (int32_t handle, double maxstep) |
| Set the maximum integrator step. | |
| int32_t | reactornet_setTolerances (int32_t handle, double rtol, double atol) |
| Set the relative and absolute tolerances for the integrator. | |
| int32_t | reactornet_setSensitivityTolerances (int32_t handle, double rtol, double atol) |
| Set the relative and absolute tolerances for integrating the sensitivity equations. | |
| int32_t | reactornet_advance (int32_t handle, double t) |
| Advance the state of all reactors in the independent variable (time or space). | |
| double | reactornet_step (int32_t handle) |
| Advance the state of all reactors with respect to the independent variable (time or space). | |
| double | reactornet_time (int32_t handle) |
| Current value of the simulation time [s], for reactor networks that are solved in the time domain. | |
| double | reactornet_rtol (int32_t handle) |
| Relative tolerance. | |
| double | reactornet_atol (int32_t handle) |
| Absolute integration tolerance. | |
| double | reactornet_sensitivity (int32_t handle, const char *component, int32_t p, int32_t reactor) |
| Return the sensitivity of the component named component with respect to the p-th sensitivity parameter. | |
| int32_t | reactornet_del (int32_t handle) |
| Delete ReactorNet object. | |
| int32_t | reactornet_cabinetSize () |
| Return size of ReactorNet storage. | |
| int32_t reactornet_new | ( | int32_t | reactorsLen, |
| int32_t * | reactors | ||
| ) |
Create a reactor network containing one or more coupled reactors.
Wraps C++ constructor: shared_ptr<ReactorNet> newReactorNet(vector<shared_ptr<ReactorBase>>&)
| [in] | reactorsLen | Length of array reserved for reactors. |
| reactors | Memory holding ReactorBase objects. A vector of shared pointers to the reactors to be linked together. |
Definition at line 41 of file ctreactornet.cpp.
| int32_t reactornet_setInitialTime | ( | int32_t | handle, |
| double | time | ||
| ) |
Set the initial value of the independent variable (typically time).
Wraps C++ setter: void ReactorNet::setInitialTime(double)
| handle | Handle to queried ReactorNet object. |
| time | Undocumented. |
Definition at line 55 of file ctreactornet.cpp.
| int32_t reactornet_setMaxTimeStep | ( | int32_t | handle, |
| double | maxstep | ||
| ) |
Set the maximum integrator step.
Wraps C++ setter: void ReactorNet::setMaxTimeStep(double)
| handle | Handle to queried ReactorNet object. |
| maxstep | Undocumented. |
Definition at line 66 of file ctreactornet.cpp.
| int32_t reactornet_setTolerances | ( | int32_t | handle, |
| double | rtol, | ||
| double | atol | ||
| ) |
Set the relative and absolute tolerances for the integrator.
Wraps C++ method: void ReactorNet::setTolerances(double, double)
| handle | Handle to queried ReactorNet object. |
| rtol | Undocumented. |
| atol | Undocumented. |
Definition at line 77 of file ctreactornet.cpp.
| int32_t reactornet_setSensitivityTolerances | ( | int32_t | handle, |
| double | rtol, | ||
| double | atol | ||
| ) |
Set the relative and absolute tolerances for integrating the sensitivity equations.
Wraps C++ method: void ReactorNet::setSensitivityTolerances(double, double)
| handle | Handle to queried ReactorNet object. |
| rtol | Undocumented. |
| atol | Undocumented. |
Definition at line 88 of file ctreactornet.cpp.
| int32_t reactornet_advance | ( | int32_t | handle, |
| double | t | ||
| ) |
Advance the state of all reactors in the independent variable (time or space).
Wraps C++ setter: void ReactorNet::advance(double)
| handle | Handle to queried ReactorNet object. |
| t | Time/distance to advance to (s or m). |
Definition at line 99 of file ctreactornet.cpp.
| double reactornet_step | ( | int32_t | handle | ) |
Advance the state of all reactors with respect to the independent variable (time or space).
Wraps C++ getter: double ReactorNet::step()
| handle | Handle to queried ReactorNet object. |
Definition at line 110 of file ctreactornet.cpp.
| double reactornet_time | ( | int32_t | handle | ) |
Current value of the simulation time [s], for reactor networks that are solved in the time domain.
Wraps C++ getter: double ReactorNet::time()
| handle | Handle to queried ReactorNet object. |
Definition at line 120 of file ctreactornet.cpp.
| double reactornet_rtol | ( | int32_t | handle | ) |
Relative tolerance.
Wraps C++ getter: double ReactorNet::rtol()
| handle | Handle to queried ReactorNet object. |
Definition at line 130 of file ctreactornet.cpp.
| double reactornet_atol | ( | int32_t | handle | ) |
Absolute integration tolerance.
Wraps C++ getter: double ReactorNet::atol()
| handle | Handle to queried ReactorNet object. |
Definition at line 140 of file ctreactornet.cpp.
| double reactornet_sensitivity | ( | int32_t | handle, |
| const char * | component, | ||
| int32_t | p, | ||
| int32_t | reactor | ||
| ) |
Return the sensitivity of the component named component with respect to the p-th sensitivity parameter.
Wraps C++ method: double ReactorNet::sensitivity(const string&, size_t, int)
| handle | Handle to queried ReactorNet object. |
| component | Undocumented. |
| p | Undocumented. |
| reactor | Undocumented. |
Definition at line 150 of file ctreactornet.cpp.
| int32_t reactornet_del | ( | int32_t | handle | ) |
Delete ReactorNet object.
Wraps C++ destructor: undefined
| handle | Handle to ReactorNet object. |
Definition at line 160 of file ctreactornet.cpp.
| int32_t reactornet_cabinetSize | ( | ) |
Return size of ReactorNet storage.
Wraps C++ reserved CLib function: custom code
Definition at line 171 of file ctreactornet.cpp.