Cantera 2.6.0

ctonedim.h
Go to the documentation of this file.
1/**
2 * @file ctonedim.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_ONEDIM_H
9#define CTC_ONEDIM_H
10
11#include "clib_defs.h"
12
13#ifdef __cplusplus
14 extern "C" {
15#endif
16
17 CANTERA_CAPI int ct_clearOneDim();
18 CANTERA_CAPI int domain_del(int i);
19 CANTERA_CAPI int domain_type(int i);
20 CANTERA_CAPI size_t domain_index(int i);
21 CANTERA_CAPI size_t domain_nComponents(int i);
22 CANTERA_CAPI size_t domain_nPoints(int i);
23 CANTERA_CAPI int domain_componentName(int i, int n, int sz, char* nameout);
24 CANTERA_CAPI size_t domain_componentIndex(int i, const char* name);
25 CANTERA_CAPI int domain_setBounds(int i, int n, double lower,
26 double upper);
27 CANTERA_CAPI double domain_lowerBound(int i, int n);
28 CANTERA_CAPI double domain_upperBound(int i, int n);
29 CANTERA_CAPI int domain_setSteadyTolerances(int i, int n, double rtol,
30 double atol);
31 CANTERA_CAPI int domain_setTransientTolerances(int i, int n, double rtol,
32 double atol);
33 CANTERA_CAPI double domain_rtol(int i, int n);
34 CANTERA_CAPI double domain_atol(int i, int n);
35 CANTERA_CAPI int domain_setupGrid(int i, size_t npts, const double* grid);
36 CANTERA_CAPI int domain_setID(int i, const char* id);
37 CANTERA_CAPI double domain_grid(int i, int n);
38
39 CANTERA_CAPI int bdry_setMdot(int i, double mdot);
40 CANTERA_CAPI int bdry_setTemperature(int i, double t);
41 CANTERA_CAPI int bdry_setMoleFractions(int i, const char* x);
42 CANTERA_CAPI double bdry_temperature(int i);
43 CANTERA_CAPI double bdry_massFraction(int i, int k);
44 CANTERA_CAPI double bdry_mdot(int i);
45
46 CANTERA_CAPI int reactingsurf_setkineticsmgr(int i, int j);
47 CANTERA_CAPI int reactingsurf_enableCoverageEqs(int i, int onoff);
48
49 CANTERA_CAPI int inlet_new();
50 CANTERA_CAPI int outlet_new();
51 CANTERA_CAPI int outletres_new();
52 CANTERA_CAPI int symm_new();
53 CANTERA_CAPI int surf_new();
54 CANTERA_CAPI int reactingsurf_new();
55
56 CANTERA_CAPI int inlet_setSpreadRate(int i, double v);
57
58 CANTERA_CAPI int stflow_new(int iph, int ikin, int itr, int itype);
59 CANTERA_CAPI int stflow_setTransport(int i, int itr);
60 CANTERA_CAPI int stflow_enableSoret(int i, int iSoret);
61 CANTERA_CAPI int stflow_setPressure(int i, double p);
62 CANTERA_CAPI double stflow_pressure(int i);
63 CANTERA_CAPI int stflow_setFixedTempProfile(int i, size_t n, const double* pos,
64 size_t m, const double* temp);
65 CANTERA_CAPI int stflow_solveEnergyEqn(int i, int flag);
66
67 CANTERA_CAPI int sim1D_new(size_t nd, const int* domains);
68 CANTERA_CAPI int sim1D_del(int i);
69 CANTERA_CAPI int sim1D_setValue(int i, int dom, int comp, int localPoint, double value);
70 CANTERA_CAPI int sim1D_setProfile(int i, int dom, int comp,
71 size_t np, const double* pos, size_t nv, const double* v);
72 CANTERA_CAPI int sim1D_setFlatProfile(int i, int dom, int comp, double v);
73 CANTERA_CAPI int sim1D_showSolution(int i, const char* fname);
74 CANTERA_CAPI int sim1D_setTimeStep(int i, double stepsize, size_t ns, const int* nsteps);
75 CANTERA_CAPI int sim1D_getInitialSoln(int i);
76 CANTERA_CAPI int sim1D_solve(int i, int loglevel, int refine_grid);
77 CANTERA_CAPI int sim1D_refine(int i, int loglevel);
78 CANTERA_CAPI int sim1D_setRefineCriteria(int i, int dom, double ratio,
79 double slope, double curve, double prune);
80 CANTERA_CAPI int sim1D_setGridMin(int i, int dom, double gridmin);
81 CANTERA_CAPI int sim1D_save(int i, const char* fname, const char* id,
82 const char* desc);
83 CANTERA_CAPI int sim1D_restore(int i, const char* fname, const char* id);
84 CANTERA_CAPI int sim1D_writeStats(int i, int printTime);
85 CANTERA_CAPI int sim1D_domainIndex(int i, const char* name);
86 CANTERA_CAPI double sim1D_value(int i, int idom, int icomp, int localPoint);
87 CANTERA_CAPI double sim1D_workValue(int i, int idom,
88 int icomp, int localPoint);
89 CANTERA_CAPI int sim1D_eval(int i, double rdt, int count);
90 CANTERA_CAPI int sim1D_setMaxJacAge(int i, int ss_age, int ts_age);
91 CANTERA_CAPI int sim1D_setFixedTemperature(int i, double temp);
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif
clib_defs.h