Cantera  3.0.0
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);
18 CANTERA_CAPI int reactor_del(int i);
19 CANTERA_CAPI int reactor_setInitialVolume(int i, double v);
20 CANTERA_CAPI int reactor_setChemistry(int i, int cflag);
21 CANTERA_CAPI int reactor_setEnergy(int i, int eflag);
22 CANTERA_CAPI int reactor_setThermoMgr(int i, int n);
23 CANTERA_CAPI int reactor_setKineticsMgr(int i, int n);
24 CANTERA_CAPI int reactor_insert(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_new(const char* type);
52 CANTERA_CAPI int flowdev_del(int i);
53 CANTERA_CAPI int flowdev_install(int i, int n, int m);
54 //! @deprecated To be removed after %Cantera 3.0; replaced by flowdev_setPrimary
55 CANTERA_CAPI int flowdev_setMaster(int i, int n);
56 CANTERA_CAPI int flowdev_setPrimary(int i, int n);
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_new(const char* type);
65 CANTERA_CAPI int wall_del(int i);
66 CANTERA_CAPI int wall_install(int i, int n, int m);
67 //! @deprecated Only used by traditional MATLAB toolbox
68 CANTERA_CAPI double wall_vdot(int i, double t);
69 CANTERA_CAPI double wall_expansionRate(int i);
70 //! @deprecated Only used by traditional MATLAB toolbox
71 CANTERA_CAPI double wall_Q(int i, double t);
72 CANTERA_CAPI double wall_heatRate(int i);
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 double wall_Q(int i, double t)
CANTERA_CAPI double wall_vdot(int i, double t)
CANTERA_CAPI int flowdev_setMaster(int i, int n)