Cantera  3.1.0a1
Loading...
Searching...
No Matches
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
14extern "C" {
15#endif
16
17 CANTERA_CAPI int reactor_new(const char* type); //! @deprecated: remove after 3.1
18 CANTERA_CAPI int reactor_new3(const char* type, int n, const char* name);
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 int reactor_insert(int i, int n);
26 CANTERA_CAPI double reactor_mass(int i);
27 CANTERA_CAPI double reactor_volume(int i);
28 CANTERA_CAPI double reactor_density(int i);
29 CANTERA_CAPI double reactor_temperature(int i);
30 CANTERA_CAPI double reactor_enthalpy_mass(int i);
31 CANTERA_CAPI double reactor_intEnergy_mass(int i);
32 CANTERA_CAPI double reactor_pressure(int i);
33 CANTERA_CAPI double reactor_massFraction(int i, int k);
34 CANTERA_CAPI size_t reactor_nSensParams(int i);
35 CANTERA_CAPI int reactor_addSensitivityReaction(int i, int rxn);
36 CANTERA_CAPI int flowReactor_setMassFlowRate(int i, double mdot);
37
38 CANTERA_CAPI int reactornet_new();
39 CANTERA_CAPI int reactornet_del(int i);
40 CANTERA_CAPI int reactornet_setInitialTime(int i, double t);
41 CANTERA_CAPI int reactornet_setMaxTimeStep(int i, double maxstep);
42 CANTERA_CAPI int reactornet_setTolerances(int i, double rtol, double atol);
43 CANTERA_CAPI int reactornet_setSensitivityTolerances(int i, double rtol, double atol);
44 CANTERA_CAPI int reactornet_addreactor(int i, int n);
45 CANTERA_CAPI int reactornet_advance(int i, double t);
46 CANTERA_CAPI double reactornet_step(int i);
47 CANTERA_CAPI double reactornet_time(int i);
48 CANTERA_CAPI double reactornet_rtol(int i);
49 CANTERA_CAPI double reactornet_atol(int i);
50 CANTERA_CAPI double reactornet_sensitivity(int i, const char* v, int p, int r);
51
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_setPrimary(int i, int n);
56 CANTERA_CAPI double flowdev_massFlowRate(int i);
57 CANTERA_CAPI int flowdev_setMassFlowCoeff(int i, double v);
58 CANTERA_CAPI int flowdev_setValveCoeff(int i, double v);
59 CANTERA_CAPI int flowdev_setPressureCoeff(int i, double v);
60 CANTERA_CAPI int flowdev_setPressureFunction(int i, int n);
61 CANTERA_CAPI int flowdev_setTimeFunction(int i, int n);
62
63 CANTERA_CAPI int wall_new(const char* type);
64 CANTERA_CAPI int wall_del(int i);
65 CANTERA_CAPI int wall_install(int i, int n, int m);
66 //! @deprecated Only used by traditional MATLAB toolbox
67 CANTERA_CAPI double wall_vdot(int i, double t);
68 CANTERA_CAPI double wall_expansionRate(int i);
69 //! @deprecated Only used by traditional MATLAB toolbox
70 CANTERA_CAPI double wall_Q(int i, double t);
71 CANTERA_CAPI double wall_heatRate(int i);
72 CANTERA_CAPI double wall_area(int i);
73 CANTERA_CAPI int wall_setArea(int i, double v);
74 CANTERA_CAPI int wall_setThermalResistance(int i, double rth);
75 CANTERA_CAPI int wall_setHeatTransferCoeff(int i, double u);
76 CANTERA_CAPI int wall_setHeatFlux(int i, int n);
77 CANTERA_CAPI int wall_setExpansionRateCoeff(int i, double k);
78 CANTERA_CAPI int wall_setVelocity(int i, int n);
79 CANTERA_CAPI int wall_setEmissivity(int i, double epsilon);
80 CANTERA_CAPI int wall_ready(int i);
81
82 CANTERA_CAPI int reactorsurface_new(int type);
83 CANTERA_CAPI int reactorsurface_del(int i);
84 CANTERA_CAPI int reactorsurface_install(int i, int n);
85 CANTERA_CAPI int reactorsurface_setkinetics(int i, int n);
86 CANTERA_CAPI double reactorsurface_area(int i);
87 CANTERA_CAPI int reactorsurface_setArea(int i, double v);
88 CANTERA_CAPI int reactorsurface_addSensitivityReaction(int i, int rxn);
89
90 CANTERA_CAPI int ct_clearReactors();
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif
CANTERA_CAPI double wall_Q(int i, double t)
CANTERA_CAPI int reactor_new3(const char *type, int n, const char *name)
CANTERA_CAPI double wall_vdot(int i, double t)