Cantera  3.1.0b1
Loading...
Searching...
No Matches
ctreactor.h
Go to the documentation of this file.
1/**
2 * @file ctreactor.h
3 *
4 * @warning This module is an experimental part of the %Cantera API and
5 * may be changed or removed without notice.
6 */
7
8// This file is part of Cantera. See License.txt in the top-level directory or
9// at https://cantera.org/license.txt for license and copyright information.
10
11#ifndef CTC_REACTOR_H
12#define CTC_REACTOR_H
13
14#include "clib_defs.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20 CANTERA_CAPI int reactor_new(const char* type, int n, const char* name);
21 CANTERA_CAPI int reactor_del(int i);
22 CANTERA_CAPI int reactor_name(int i, int len, char* nbuf);
23 CANTERA_CAPI int reactor_setName(int i, const char* name);
24 CANTERA_CAPI int reactor_setInitialVolume(int i, double v);
25 CANTERA_CAPI int reactor_setChemistry(int i, int cflag);
26 CANTERA_CAPI int reactor_setEnergy(int i, int eflag);
27 CANTERA_CAPI int reactor_insert(int i, int n);
28 CANTERA_CAPI double reactor_mass(int i);
29 CANTERA_CAPI double reactor_volume(int i);
30 CANTERA_CAPI double reactor_density(int i);
31 CANTERA_CAPI double reactor_temperature(int i);
32 CANTERA_CAPI double reactor_enthalpy_mass(int i);
33 CANTERA_CAPI double reactor_intEnergy_mass(int i);
34 CANTERA_CAPI double reactor_pressure(int i);
35 CANTERA_CAPI double reactor_massFraction(int i, int k);
36 CANTERA_CAPI size_t reactor_nSensParams(int i);
37 CANTERA_CAPI int reactor_addSensitivityReaction(int i, int rxn);
38 CANTERA_CAPI int reactor_setMassFlowRate(int i, double mdot);
39
40 CANTERA_CAPI int reactornet_new();
41 CANTERA_CAPI int reactornet_del(int i);
42 CANTERA_CAPI int reactornet_setInitialTime(int i, double t);
43 CANTERA_CAPI int reactornet_setMaxTimeStep(int i, double maxstep);
44 CANTERA_CAPI int reactornet_setTolerances(int i, double rtol, double atol);
45 CANTERA_CAPI int reactornet_setSensitivityTolerances(int i, double rtol, double atol);
46 CANTERA_CAPI int reactornet_addreactor(int i, int n);
47 CANTERA_CAPI int reactornet_advance(int i, double t);
48 CANTERA_CAPI double reactornet_step(int i);
49 CANTERA_CAPI double reactornet_time(int i);
50 CANTERA_CAPI double reactornet_rtol(int i);
51 CANTERA_CAPI double reactornet_atol(int i);
52 CANTERA_CAPI double reactornet_sensitivity(int i, const char* v, int p, int r);
53
54 CANTERA_CAPI int flowdev_new(const char* type, const char* name);
55 CANTERA_CAPI int flowdev_del(int i);
56 CANTERA_CAPI int flowdev_name(int i, int len, char* nbuf);
57 CANTERA_CAPI int flowdev_setName(int i, const char* name);
58 CANTERA_CAPI int flowdev_install(int i, int n, int m);
59 CANTERA_CAPI int flowdev_setPrimary(int i, int n);
60 CANTERA_CAPI double flowdev_massFlowRate(int i);
61 CANTERA_CAPI int flowdev_setMassFlowCoeff(int i, double v);
62 CANTERA_CAPI int flowdev_setValveCoeff(int i, double v);
63 CANTERA_CAPI int flowdev_setPressureCoeff(int i, double v);
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_new(const char* type, const char* name);
68 CANTERA_CAPI int wall_del(int i);
69 CANTERA_CAPI int wall_name(int i, int len, char* nbuf);
70 CANTERA_CAPI int wall_setName(int i, const char* name);
71 CANTERA_CAPI int wall_install(int i, int n, int m);
72 CANTERA_CAPI double wall_expansionRate(int i);
73 CANTERA_CAPI double wall_heatRate(int i);
74 CANTERA_CAPI double wall_area(int i);
75 CANTERA_CAPI int wall_setArea(int i, double v);
76 CANTERA_CAPI int wall_setThermalResistance(int i, double rth);
77 CANTERA_CAPI int wall_setHeatTransferCoeff(int i, double u);
78 CANTERA_CAPI int wall_setHeatFlux(int i, int n);
79 CANTERA_CAPI int wall_setExpansionRateCoeff(int i, double k);
80 CANTERA_CAPI int wall_setVelocity(int i, int n);
81 CANTERA_CAPI int wall_setEmissivity(int i, double epsilon);
82 CANTERA_CAPI int wall_ready(int i);
83
84 CANTERA_CAPI int reactorsurface_new(const char* name);
85 CANTERA_CAPI int reactorsurface_del(int i);
86 CANTERA_CAPI int reactorsurface_name(int i, int len, char* nbuf);
87 CANTERA_CAPI int reactorsurface_setName(int i, const char* name);
88 CANTERA_CAPI int reactorsurface_install(int i, int n);
89 CANTERA_CAPI int reactorsurface_setkinetics(int i, int n);
90 CANTERA_CAPI double reactorsurface_area(int i);
91 CANTERA_CAPI int reactorsurface_setArea(int i, double v);
92 CANTERA_CAPI int reactorsurface_addSensitivityReaction(int i, int rxn);
93
94 CANTERA_CAPI int ct_clearReactors();
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif