Cantera  2.5.1
ctreactor.h
Go to the documentation of this file.
1 /**
2  * @file ctreactor.h
3  */
4 
5 // This file is part of Cantera. See License.txt in the top-level directory or
6 // at https://cantera.org/license.txt for license and copyright information.
7 
8 #ifndef CTC_REACTOR_H
9 #define CTC_REACTOR_H
10 
11 #include "clib_defs.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17  CANTERA_CAPI int reactor_new2(const char* type);
18  CANTERA_CAPI int reactor_new(int type); //!< @deprecated To be changed after Cantera 2.5.
19  CANTERA_CAPI int reactor_del(int i);
20  CANTERA_CAPI int reactor_setInitialVolume(int i, double v);
21  CANTERA_CAPI int reactor_setChemistry(int i, int cflag);
22  CANTERA_CAPI int reactor_setEnergy(int i, int eflag);
23  CANTERA_CAPI int reactor_setThermoMgr(int i, int n);
24  CANTERA_CAPI int reactor_setKineticsMgr(int i, int n);
25  CANTERA_CAPI double reactor_mass(int i);
26  CANTERA_CAPI double reactor_volume(int i);
27  CANTERA_CAPI double reactor_density(int i);
28  CANTERA_CAPI double reactor_temperature(int i);
29  CANTERA_CAPI double reactor_enthalpy_mass(int i);
30  CANTERA_CAPI double reactor_intEnergy_mass(int i);
31  CANTERA_CAPI double reactor_pressure(int i);
32  CANTERA_CAPI double reactor_massFraction(int i, int k);
33  CANTERA_CAPI size_t reactor_nSensParams(int i);
34  CANTERA_CAPI int reactor_addSensitivityReaction(int i, int rxn);
35  CANTERA_CAPI int flowReactor_setMassFlowRate(int i, double mdot);
36 
37  CANTERA_CAPI int reactornet_new();
38  CANTERA_CAPI int reactornet_del(int i);
39  CANTERA_CAPI int reactornet_setInitialTime(int i, double t);
40  CANTERA_CAPI int reactornet_setMaxTimeStep(int i, double maxstep);
41  CANTERA_CAPI int reactornet_setTolerances(int i, double rtol, double atol);
42  CANTERA_CAPI int reactornet_setSensitivityTolerances(int i, double rtol, double atol);
43  CANTERA_CAPI int reactornet_addreactor(int i, int n);
44  CANTERA_CAPI int reactornet_advance(int i, double t);
45  CANTERA_CAPI double reactornet_step(int i);
46  CANTERA_CAPI double reactornet_time(int i);
47  CANTERA_CAPI double reactornet_rtol(int i);
48  CANTERA_CAPI double reactornet_atol(int i);
49  CANTERA_CAPI double reactornet_sensitivity(int i, const char* v, int p, int r);
50 
51  CANTERA_CAPI int flowdev_new2(const char* type);
52  CANTERA_CAPI int flowdev_new(int type); //!< @deprecated To be changed after Cantera 2.5.
53  CANTERA_CAPI int flowdev_del(int i);
54  CANTERA_CAPI int flowdev_install(int i, int n, int m);
55  CANTERA_CAPI int flowdev_setMaster(int i, int n);
56  CANTERA_CAPI double flowdev_massFlowRate2(int i);
57  CANTERA_CAPI double flowdev_massFlowRate(int i, double time); //!< @deprecated To be changed after Cantera 2.5.
58  CANTERA_CAPI int flowdev_setMassFlowRate(int i, double mdot);
59  CANTERA_CAPI int flowdev_setParameters(int i, int n, const double* v); //!< @deprecated To be removed after Cantera 2.5.
60  CANTERA_CAPI int flowdev_setMassFlowCoeff(int i, double v);
61  CANTERA_CAPI int flowdev_setValveCoeff(int i, double v);
62  CANTERA_CAPI int flowdev_setPressureCoeff(int i, double v);
63  CANTERA_CAPI int flowdev_setFunction(int i, int n); //!< @deprecated To be removed after Cantera 2.5.
64  CANTERA_CAPI int flowdev_setPressureFunction(int i, int n);
65  CANTERA_CAPI int flowdev_setTimeFunction(int i, int n);
66 
67  CANTERA_CAPI int wall_new2(const char* type);
68  CANTERA_CAPI int wall_new(int type); //!< @deprecated To be changed after Cantera 2.5.
69  CANTERA_CAPI int wall_del(int i);
70  CANTERA_CAPI int wall_install(int i, int n, int m);
71  CANTERA_CAPI double wall_vdot(int i, double t);
72  CANTERA_CAPI double wall_Q(int i, double t);
73  CANTERA_CAPI double wall_area(int i);
74  CANTERA_CAPI int wall_setArea(int i, double v);
75  CANTERA_CAPI int wall_setThermalResistance(int i, double rth);
76  CANTERA_CAPI int wall_setHeatTransferCoeff(int i, double u);
77  CANTERA_CAPI int wall_setHeatFlux(int i, int n);
78  CANTERA_CAPI int wall_setExpansionRateCoeff(int i, double k);
79  CANTERA_CAPI int wall_setVelocity(int i, int n);
80  CANTERA_CAPI int wall_setEmissivity(int i, double epsilon);
81  CANTERA_CAPI int wall_ready(int i);
82 
83  CANTERA_CAPI int reactorsurface_new(int type);
84  CANTERA_CAPI int reactorsurface_del(int i);
85  CANTERA_CAPI int reactorsurface_install(int i, int n);
86  CANTERA_CAPI int reactorsurface_setkinetics(int i, int n);
87  CANTERA_CAPI double reactorsurface_area(int i);
88  CANTERA_CAPI int reactorsurface_setArea(int i, double v);
89  CANTERA_CAPI int reactorsurface_addSensitivityReaction(int i, int rxn);
90 
91  CANTERA_CAPI int ct_clearReactors();
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif
CANTERA_CAPI int flowdev_setFunction(int i, int n)
CANTERA_CAPI int wall_new(int type)
CANTERA_CAPI int reactor_new(int type)
CANTERA_CAPI double flowdev_massFlowRate(int i, double time)
CANTERA_CAPI int flowdev_new(int type)
CANTERA_CAPI int flowdev_setParameters(int i, int n, const double *v)