Cantera 2.6.0

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); //!< @deprecated To be changed after Cantera 2.6.
18 CANTERA_CAPI int reactor_new(const char* type);
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); //!< @deprecated To be removed after Cantera 2.6.
52 CANTERA_CAPI int flowdev_new(const char* type);
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); //!< @deprecated To be removed after Cantera 2.6.
57 CANTERA_CAPI double flowdev_massFlowRate(int i);
58 CANTERA_CAPI int flowdev_setMassFlowCoeff(int i, double v);
59 CANTERA_CAPI int flowdev_setValveCoeff(int i, double v);
60 CANTERA_CAPI int flowdev_setPressureCoeff(int i, double v);
61 CANTERA_CAPI int flowdev_setPressureFunction(int i, int n);
62 CANTERA_CAPI int flowdev_setTimeFunction(int i, int n);
63
64 CANTERA_CAPI int wall_new2(const char* type); //!< @deprecated To be removed after Cantera 2.6.
65 CANTERA_CAPI int wall_new(const char* type);
66 CANTERA_CAPI int wall_del(int i);
67 CANTERA_CAPI int wall_install(int i, int n, int m);
68 CANTERA_CAPI double wall_vdot(int i, double t);
69 CANTERA_CAPI double wall_Q(int i, double t);
70 CANTERA_CAPI double wall_area(int i);
71 CANTERA_CAPI int wall_setArea(int i, double v);
72 CANTERA_CAPI int wall_setThermalResistance(int i, double rth);
73 CANTERA_CAPI int wall_setHeatTransferCoeff(int i, double u);
74 CANTERA_CAPI int wall_setHeatFlux(int i, int n);
75 CANTERA_CAPI int wall_setExpansionRateCoeff(int i, double k);
76 CANTERA_CAPI int wall_setVelocity(int i, int n);
77 CANTERA_CAPI int wall_setEmissivity(int i, double epsilon);
78 CANTERA_CAPI int wall_ready(int i);
79
80 CANTERA_CAPI int reactorsurface_new(int type);
81 CANTERA_CAPI int reactorsurface_del(int i);
82 CANTERA_CAPI int reactorsurface_install(int i, int n);
83 CANTERA_CAPI int reactorsurface_setkinetics(int i, int n);
84 CANTERA_CAPI double reactorsurface_area(int i);
85 CANTERA_CAPI int reactorsurface_setArea(int i, double v);
86 CANTERA_CAPI int reactorsurface_addSensitivityReaction(int i, int rxn);
87
88 CANTERA_CAPI int ct_clearReactors();
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif
clib_defs.h
flowdev_massFlowRate2
CANTERA_CAPI double flowdev_massFlowRate2(int i)
reactor_new2
CANTERA_CAPI int reactor_new2(const char *type)
flowdev_new2
CANTERA_CAPI int flowdev_new2(const char *type)
wall_new2
CANTERA_CAPI int wall_new2(const char *type)