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