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_setRelativeTolerance (int32_t handle, double rtol) |
| Set the relative tolerance for the integrator. | |
| int32_t | reactornet_setAbsoluteTolerance (int32_t handle, double atol) |
| Set the scalar absolute tolerance for the integrator. | |
| int32_t | reactornet_clearAbsoluteTolerance (int32_t handle) |
| Clear the user-specified scalar absolute tolerance. | |
| int32_t | reactornet_setTolerances (int32_t handle, double rtol, double atol) |
| Set the relative and scalar 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) |
| Scalar 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_neq (int32_t handle) |
| Number of equations. | |
| int32_t | reactornet_getState (int32_t handle, int32_t yLen, double *y) |
| Fill in the vector y with the current state of the system. | |
| int32_t | reactornet_componentName (int32_t handle, int32_t i, int32_t bufLen, char *buf) |
| Return the name of the i-th component of the global state vector. | |
| 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(span<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 42 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 56 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 67 of file ctreactornet.cpp.
| int32_t reactornet_setRelativeTolerance | ( | int32_t | handle, |
| double | rtol ) |
Set the relative tolerance for the integrator.
Wraps C++ setter: void ReactorNet::setRelativeTolerance(double)
| handle | Handle to queried ReactorNet object. |
| rtol | Relative tolerance for all state variables; must be positive. |
Definition at line 78 of file ctreactornet.cpp.
| int32_t reactornet_setAbsoluteTolerance | ( | int32_t | handle, |
| double | atol ) |
Set the scalar absolute tolerance for the integrator.
Wraps C++ setter: void ReactorNet::setAbsoluteTolerance(double)
| handle | Handle to queried ReactorNet object. |
| atol | Scalar absolute tolerance for state variables without reactor-specific absolute tolerances; must be positive. Superseded by absolute tolerances set for individual reactors. |
Definition at line 89 of file ctreactornet.cpp.
| int32_t reactornet_clearAbsoluteTolerance | ( | int32_t | handle | ) |
Clear the user-specified scalar absolute tolerance.
Wraps C++ method: void ReactorNet::clearAbsoluteTolerance()
| handle | Handle to queried ReactorNet object. |
Definition at line 100 of file ctreactornet.cpp.
| int32_t reactornet_setTolerances | ( | int32_t | handle, |
| double | rtol, | ||
| double | atol ) |
Set the relative and scalar absolute tolerances for the integrator.
Wraps C++ method: void ReactorNet::setTolerances(double, double)
| handle | Handle to queried ReactorNet object. |
| rtol | If positive, set the relative tolerance for all state variables; ignored if negative. |
| atol | If positive, set the scalar absolute tolerance for all state variables; ignored if negative. Superseded by absolute tolerances set for individual reactors. |
Definition at line 111 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 122 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 133 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 144 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 154 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 164 of file ctreactornet.cpp.
| double reactornet_atol | ( | int32_t | handle | ) |
Scalar absolute integration tolerance.
Wraps C++ getter: double ReactorNet::atol()
| handle | Handle to queried ReactorNet object. |
Definition at line 174 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 184 of file ctreactornet.cpp.
| int32_t reactornet_neq | ( | int32_t | handle | ) |
Number of equations.
Wraps C++ getter: size_t ReactorNet::neq()
| handle | Handle to queried ReactorNet object. |
Definition at line 194 of file ctreactornet.cpp.
| int32_t reactornet_getState | ( | int32_t | handle, |
| int32_t | yLen, | ||
| double * | y ) |
Fill in the vector y with the current state of the system.
Wraps C++ getter: void ReactorNet::getState(span<double>)
| handle | Handle to queried ReactorNet object. | |
| [in] | yLen | Length of vector reserved for y. |
| y | Undocumented. |
Definition at line 204 of file ctreactornet.cpp.
| int32_t reactornet_componentName | ( | int32_t | handle, |
| int32_t | i, | ||
| int32_t | bufLen, | ||
| char * | buf ) |
Return the name of the i-th component of the global state vector.
Wraps C++ method: string ReactorNet::componentName(size_t)
Uses:
| handle | Handle to queried ReactorNet object. | |
| i | Undocumented. | |
| [in] | bufLen | Length of reserved array. |
| [out] | buf | Returned string value. |
Definition at line 218 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 230 of file ctreactornet.cpp.
| int32_t reactornet_cabinetSize | ( | ) |
Return size of ReactorNet storage.
Wraps C++ reserved CLib function: custom code
Definition at line 241 of file ctreactornet.cpp.