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