CTREACTOR - Generated CLib Cantera interface library. More...
#include "clib_utils.h"#include "cantera_clib/ctreactor.h"#include "cantera/base/stringUtils.h"#include "cantera/zeroD/ReactorFactory.h"#include "cantera/zeroD/FlowReactor.h"#include "cantera/base/Solution.h"#include "cantera/zeroD/ReactorSurface.h"CTREACTOR - Generated CLib Cantera interface library.
Generated CLib API for Cantera's ReactorBase class.
This file was generated by sourcegen. It will be re-generated by the Cantera build process. Do not manually edit.
Definition in file ctreactor.cpp.
Go to the source code of this file.
Functions | |
| int32_t | reactor_new (const char *model, int32_t phase, int32_t clone, const char *name) |
| Create a ReactorBase object of the specified type and contents. | |
| int32_t | reactor_newSurface (int32_t phase, int32_t reactorsLen, const int32_t *reactors, int32_t clone, const char *name) |
| Create a ReactorSurface object with the specified contents and adjacent reactors participating in surface reactions. | |
| int32_t | reactor_type (int32_t handle, int32_t bufLen, char *buf) |
| String indicating the reactor model implemented. | |
| int32_t | reactor_name (int32_t handle, int32_t bufLen, char *buf) |
| Return the name of this reactor. | |
| int32_t | reactor_setName (int32_t handle, const char *name) |
| Set the name of this reactor. | |
| int32_t | reactor_phase (int32_t handle) |
| Access the Solution object used to represent the contents of this reactor. | |
| int32_t | reactor_setInitialVolume (int32_t handle, double vol) |
| Set the initial reactor volume. | |
| double | reactor_area (int32_t handle) |
| Returns an area associated with a reactor [m²]. | |
| int32_t | reactor_setArea (int32_t handle, double a) |
| Set an area associated with a reactor [m²]. | |
| int32_t | reactor_chemistryEnabled (int32_t handle) |
Returns true if changes in the reactor composition due to chemical reactions are enabled. | |
| int32_t | reactor_setChemistryEnabled (int32_t handle, int32_t cflag) |
| Enable or disable changes in reactor composition due to chemical reactions. | |
| int32_t | reactor_energyEnabled (int32_t handle) |
Returns true if solution of the energy equation is enabled. | |
| int32_t | reactor_setEnergyEnabled (int32_t handle, int32_t eflag) |
| Set the energy equation on or off. | |
| double | reactor_mass (int32_t handle) |
| Returns the mass (kg) of the reactor's contents. | |
| double | reactor_volume (int32_t handle) |
| Returns the current volume (m^3) of the reactor. | |
| double | reactor_density (int32_t handle) |
| Returns the current density (kg/m^3) of the reactor's contents. | |
| double | reactor_temperature (int32_t handle) |
| Returns the current temperature (K) of the reactor's contents. | |
| double | reactor_enthalpy_mass (int32_t handle) |
| Returns the current enthalpy (J/kg) of the reactor's contents. | |
| double | reactor_intEnergy_mass (int32_t handle) |
| Returns the current internal energy (J/kg) of the reactor's contents. | |
| double | reactor_pressure (int32_t handle) |
| Returns the current pressure (Pa) of the reactor. | |
| double | reactor_massFraction (int32_t handle, int32_t k) |
| Return the mass fraction of the k-th species. | |
| int32_t | reactor_massFractions (int32_t handle, int32_t bufLen, double *buf) |
| Return the vector of species mass fractions. | |
| int32_t | reactor_nSensParams (int32_t handle) |
| Number of sensitivity parameters associated with this reactor. | |
| int32_t | reactor_addSensitivityReaction (int32_t handle, int32_t rxn) |
| Add a sensitivity parameter associated with the reaction number rxn | |
| int32_t | reactor_addSurface (int32_t handle, int32_t surf) |
| Add a ReactorSurface object to a Reactor object. | |
| double | reactor_massFlowRate (int32_t handle) |
| Mass flow rate through the reactor [kg/s]. | |
| int32_t | reactor_setMassFlowRate (int32_t handle, double mdot) |
| Set the mass flow rate through the reactor [kg/s]. | |
| int32_t | reactor_del (int32_t handle) |
| Delete ReactorBase object. | |
| int32_t | reactor_cabinetSize () |
| Return size of ReactorBase storage. | |