Cantera  3.2.0a5
Loading...
Searching...
No Matches
ctdomain.h
Go to the documentation of this file.
1/**
2 * CTDOMAIN - Generated CLib %Cantera interface library.
3 *
4 * @file ctdomain.h
5 *
6 * Generated CLib API for %Cantera's Domain1D class.
7 *
8 * This library of functions is designed to encapsulate %Cantera functionality
9 * and make it available for use in languages and applications other than C++.
10 * A set of library functions is provided that are declared "extern C". All
11 * %Cantera objects are stored and referenced by integers - no pointers are
12 * passed to or from the calling application.
13 *
14 * This file was generated by sourcegen. It will be re-generated by the
15 * %Cantera build process. Do not manually edit.
16 *
17 * @warning This library is an experimental part of the %Cantera API and
18 * may be changed without notice.
19 */
20
21// This file is part of Cantera. See License.txt in the top-level directory or
22// at https://cantera.org/license.txt for license and copyright information.
23
24#ifndef CTDOMAIN_H
25#define CTDOMAIN_H
26
27#include <stdint.h> // for 32-bit int32_t / 64-bit int64_t
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33 /**
34 * @defgroup CAPIctdomain ctdomain Library
35 * Generated CLib API for %Cantera's Domain1D class.
36 *
37 * @warning This library is an experimental part of the %Cantera API and
38 * may be changed or removed without notice.
39 *
40 * @ingroup CAPIindex
41 */
42
43 /**
44 * @addtogroup CAPIctdomain
45 * @{
46 */
47
48 /**
49 * Create a Flow1D object of the specified type.
50 *
51 * Wraps C++ constructor: `shared_ptr<Flow1D> newFlow1D(const string&, shared_ptr<Solution>, const string&)`
52 *
53 * @param domainType string identifying domain type.
54 * @param solution Integer handle to Solution object. Solution holding ThermoPhase, Kinetics and Transport objects.
55 * @param id string identifier describing domain. If omitted, id defaults to the domain type identifier.
56 * @returns Handle to stored Flow1D object or -1 for exception handling.
57 */
58 int32_t domain_newFlow1D(const char* domainType, int32_t solution, const char* id);
59
60 /**
61 * Create a Boundary1D object of the specified type.
62 *
63 * Wraps C++ constructor: `shared_ptr<Boundary1D> newBoundary1D(const string&, shared_ptr<Solution>, const string&)`
64 *
65 * @param domainType string identifying domain type.
66 * @param solution Integer handle to Solution object. Solution holding ThermoPhase, Kinetics and Transport objects.
67 * @param id string identifier describing domain. If omitted, id defaults to the domain type identifier.
68 * @returns Handle to stored Boundary1D object or -1 for exception handling.
69 */
70 int32_t domain_newBoundary1D(const char* domainType, int32_t solution, const char* id);
71
72 /**
73 * String indicating the domain implemented.
74 *
75 * Wraps C++ getter: `string Domain1D::type()`
76 *
77 * @param handle Handle to queried Domain1D object.
78 * @param[in] bufLen Length of reserved array.
79 * @param[out] buf Returned string value.
80 * @returns Actual length of string including string-terminating null byte, \0, or -1 for exception handling.
81 *
82 * @deprecated Per C++ annotation: Transitional method. Use domainType() instead.
83 */
84 int32_t domain_type(int32_t handle, int32_t bufLen, char* buf);
85
86 /**
87 * The left-to-right location of this domain.
88 *
89 * Wraps C++ getter: `size_t Domain1D::domainIndex()`
90 *
91 * @param handle Handle to queried Domain1D object.
92 */
93 int32_t domain_domainIndex(int32_t handle);
94
95 /**
96 * Returns the index of the solution vector, which corresponds to component n at grid point j.
97 *
98 * Wraps C++ method: `size_t Domain1D::index(size_t, size_t)`
99 *
100 * @param handle Handle to queried Domain1D object.
101 * @param n component index
102 * @param j grid point index
103 */
104 int32_t domain_index(int32_t handle, int32_t n, int32_t j);
105
106 /**
107 * Number of components at each grid point.
108 *
109 * Wraps C++ getter: `size_t Domain1D::nComponents()`
110 *
111 * @param handle Handle to queried Domain1D object.
112 */
113 int32_t domain_nComponents(int32_t handle);
114
115 /**
116 * Number of grid points in this domain.
117 *
118 * Wraps C++ getter: `size_t Domain1D::nPoints()`
119 *
120 * @param handle Handle to queried Domain1D object.
121 */
122 int32_t domain_nPoints(int32_t handle);
123
124 /**
125 * Name of component `n`. May be overloaded.
126 *
127 * Wraps C++ method: `virtual string Domain1D::componentName(size_t)`
128 *
129 * @param handle Handle to queried Domain1D object.
130 * @param n Undocumented.
131 * @param[in] bufLen Length of reserved array.
132 * @param[out] buf Returned string value.
133 * @returns Actual length of string including string-terminating null byte, \0, or -1 for exception handling.
134 */
135 int32_t domain_componentName(int32_t handle, int32_t n, int32_t bufLen, char* buf);
136
137 /**
138 * Index of component with name `name`.
139 *
140 * Wraps C++ method: `virtual size_t Domain1D::componentIndex(const string&)`
141 *
142 * @param handle Handle to queried Domain1D object.
143 * @param name name of component
144 */
145 int32_t domain_componentIndex(int32_t handle, const char* name);
146
147 /**
148 * Set a single component value at a boundary.
149 *
150 * Wraps C++ method: `virtual double Domain1D::value(const string&)`
151 *
152 * @param handle Handle to queried Domain1D object.
153 * @param component Name of the component.
154 */
155 double domain_value(int32_t handle, const char* component);
156
157 /**
158 * Set a single component value in a flow domain or at a boundary.
159 *
160 * Wraps C++ method: `virtual void Domain1D::setValue(const string&, double)`
161 *
162 * @param handle Handle to queried Domain1D object.
163 * @param component Name of the component.
164 * @param value Value of the component.
165 */
166 int32_t domain_setValue(int32_t handle, const char* component, double value);
167
168 /**
169 * Retrieve component values.
170 *
171 * Wraps C++ method: `vector<double> Domain1D::values(const string&)`
172 *
173 * @param handle Handle to queried Domain1D object.
174 * @param component Name of the component.
175 * @param[in] bufLen Length of reserved array.
176 * @param[out] buf Returned array value.
177 * @returns Actual length of value array or -1 for exception handling.
178 */
179 int32_t domain_values(int32_t handle, const char* component, int32_t bufLen, double* buf);
180
181 /**
182 * Retrieve component values.
183 *
184 * Wraps C++ method: `virtual void Domain1D::getValues(const string&, vector<double>&)`
185 *
186 * @param handle Handle to queried Domain1D object.
187 * @param component Name of the component.
188 * @param[in] valuesLen Length of vector reserved for values.
189 * @param[out] values Vector of length nPoints() containing values at grid points.
190 */
191 int32_t domain_getValues(int32_t handle, const char* component, int32_t valuesLen, double* values);
192
193 /**
194 * Specify component values.
195 *
196 * Wraps C++ method: `virtual void Domain1D::setValues(const string&, const vector<double>&)`
197 *
198 * @param handle Handle to queried Domain1D object.
199 * @param component Name of the component.
200 * @param[in] valuesLen Length of vector reserved for values.
201 * @param[in] values Vector of length nPoints() containing values at grid points.
202 */
203 int32_t domain_setValues(int32_t handle, const char* component, int32_t valuesLen, const double* values);
204
205 /**
206 * Retrieve internal work array values for a component.
207 *
208 * Wraps C++ method: `vector<double> Domain1D::residuals(const string&)`
209 *
210 * @param handle Handle to queried Domain1D object.
211 * @param component Name of the component.
212 * @param[in] bufLen Length of reserved array.
213 * @param[out] buf Returned array value.
214 * @returns Actual length of value array or -1 for exception handling.
215 */
216 int32_t domain_residuals(int32_t handle, const char* component, int32_t bufLen, double* buf);
217
218 /**
219 * Specify a profile for a component.
220 *
221 * Wraps C++ method: `virtual void Domain1D::setProfile(const string&, const vector<double>&, const vector<double>&)`
222 *
223 * @param handle Handle to queried Domain1D object.
224 * @param component Undocumented.
225 * @param[in] posLen Length of vector reserved for pos.
226 * @param pos Undocumented.
227 * @param[in] valuesLen Length of vector reserved for values.
228 * @param values Undocumented.
229 */
230 int32_t domain_setProfile(int32_t handle, const char* component, int32_t posLen, const double* pos, int32_t valuesLen, const double* values);
231
232 /**
233 * Specify a flat profile for a component.
234 *
235 * Wraps C++ method: `virtual void Domain1D::setFlatProfile(const string&, double)`
236 *
237 * @param handle Handle to queried Domain1D object.
238 * @param component Name of the component.
239 * @param value Constant value.
240 */
241 int32_t domain_setFlatProfile(int32_t handle, const char* component, double value);
242
243 /**
244 * Set the upper and lower bounds for a solution component, n.
245 *
246 * Wraps C++ method: `void Domain1D::setBounds(size_t, double, double)`
247 *
248 * @param handle Handle to queried Domain1D object.
249 * @param n solution component index
250 * @param lower lower bound on component n
251 * @param upper upper bound on component n
252 */
253 int32_t domain_setBounds(int32_t handle, int32_t n, double lower, double upper);
254
255 /**
256 * Lower bound on the nth component.
257 *
258 * Wraps C++ method: `double Domain1D::lowerBound(size_t)`
259 *
260 * @param handle Handle to queried Domain1D object.
261 * @param n Undocumented.
262 */
263 double domain_lowerBound(int32_t handle, int32_t n);
264
265 /**
266 * Upper bound on the nth component.
267 *
268 * Wraps C++ method: `double Domain1D::upperBound(size_t)`
269 *
270 * @param handle Handle to queried Domain1D object.
271 * @param n Undocumented.
272 */
273 double domain_upperBound(int32_t handle, int32_t n);
274
275 /**
276 * Set tolerances for steady-state mode.
277 *
278 * Wraps C++ method: `void Domain1D::setSteadyTolerances(double, double, size_t)`
279 *
280 * @param handle Handle to queried Domain1D object.
281 * @param rtol Relative tolerance
282 * @param atol Absolute tolerance
283 * @param n component index these tolerances apply to. If set to -1 (the default), these tolerances will be applied to all solution components.
284 */
285 int32_t domain_setSteadyTolerances(int32_t handle, double rtol, double atol, int32_t n);
286
287 /**
288 * Set tolerances for time-stepping mode.
289 *
290 * Wraps C++ method: `void Domain1D::setTransientTolerances(double, double, size_t)`
291 *
292 * @param handle Handle to queried Domain1D object.
293 * @param rtol Relative tolerance
294 * @param atol Absolute tolerance
295 * @param n component index these tolerances apply to. If set to -1 (the default), these tolerances will be applied to all solution components.
296 */
297 int32_t domain_setTransientTolerances(int32_t handle, double rtol, double atol, int32_t n);
298
299 /**
300 * Relative tolerance of the nth component.
301 *
302 * Wraps C++ method: `double Domain1D::rtol(size_t)`
303 *
304 * @param handle Handle to queried Domain1D object.
305 * @param n Undocumented.
306 */
307 double domain_rtol(int32_t handle, int32_t n);
308
309 /**
310 * Absolute tolerance of the nth component.
311 *
312 * Wraps C++ method: `double Domain1D::atol(size_t)`
313 *
314 * @param handle Handle to queried Domain1D object.
315 * @param n Undocumented.
316 */
317 double domain_atol(int32_t handle, int32_t n);
318
319 /**
320 * Set up initial grid.
321 *
322 * Wraps C++ setter: `void Domain1D::setupGrid(const vector<double>&)`
323 *
324 * @param handle Handle to queried Domain1D object.
325 * @param[in] gridLen Length of vector reserved for grid.
326 * @param grid Undocumented.
327 */
328 int32_t domain_setupGrid(int32_t handle, int32_t gridLen, const double* grid);
329
330 /**
331 * Set up uniform grid.
332 *
333 * Wraps C++ method: `void Domain1D::setupUniformGrid(size_t, double, double)`
334 *
335 * @param handle Handle to queried Domain1D object.
336 * @param points Number of grid points
337 * @param length Length of domain
338 * @param start Start position of domain (default=0.)
339 */
340 int32_t domain_setupUniformGrid(int32_t handle, int32_t points, double length, double start);
341
342 /**
343 * Specify an identifying tag for this domain.
344 *
345 * Wraps C++ setter: `void Domain1D::setID(const string&)`
346 *
347 * @param handle Handle to queried Domain1D object.
348 * @param s Undocumented.
349 */
350 int32_t domain_setID(int32_t handle, const char* s);
351
352 /**
353 * Access the array of grid coordinates [m].
354 *
355 * Wraps C++ getter: `vector<double>& Domain1D::grid()`
356 *
357 * @param handle Handle to queried Domain1D object.
358 * @param[in] bufLen Length of reserved array.
359 * @param[out] buf Returned array value.
360 * @returns Actual length of value array or -1 for exception handling.
361 */
362 int32_t domain_grid(int32_t handle, int32_t bufLen, double* buf);
363
364 /**
365 * Set the total mass flow rate [kg/m²/s].
366 *
367 * Wraps C++ setter: `virtual void Boundary1D::setMdot(double)`
368 *
369 * @param handle Handle to queried Boundary1D object.
370 * @param mdot Undocumented.
371 */
372 int32_t bdry_setMdot(int32_t handle, double mdot);
373
374 /**
375 * Set the temperature.
376 *
377 * Wraps C++ setter: `virtual void Boundary1D::setTemperature(double)`
378 *
379 * @param handle Handle to queried Boundary1D object.
380 * @param t Undocumented.
381 */
382 int32_t bdry_setTemperature(int32_t handle, double t);
383
384 /**
385 * Set tangential velocity gradient [1/s] at this boundary.
386 *
387 * Wraps C++ setter: `virtual void Boundary1D::setSpreadRate(double)`
388 *
389 * @param handle Handle to queried Boundary1D object.
390 * @param V0 Undocumented.
391 */
392 int32_t bdry_setSpreadRate(int32_t handle, double V0);
393
394 /**
395 * Set the mole fractions by specifying a string.
396 *
397 * Wraps C++ setter: `virtual void Boundary1D::setMoleFractions(const string&)`
398 *
399 * @param handle Handle to queried Boundary1D object.
400 * @param xin Undocumented.
401 */
402 int32_t bdry_setMoleFractionsByName(int32_t handle, const char* xin);
403
404 /**
405 * Set the mole fractions by specifying an array.
406 *
407 * Wraps C++ setter: `virtual void Boundary1D::setMoleFractions(const double*)`
408 *
409 * @param handle Handle to queried Boundary1D object.
410 * @param[in] xinLen Length of array reserved for xin.
411 * @param xin Undocumented.
412 */
413 int32_t bdry_setMoleFractions(int32_t handle, int32_t xinLen, const double* xin);
414
415 /**
416 * The total mass flow rate [kg/m2/s].
417 *
418 * Wraps C++ getter: `virtual double Boundary1D::mdot()`
419 *
420 * @param handle Handle to queried Boundary1D object.
421 */
422 double bdry_mdot(int32_t handle);
423
424 /**
425 * Temperature [K].
426 *
427 * Wraps C++ getter: `virtual double Boundary1D::temperature()`
428 *
429 * @param handle Handle to queried Boundary1D object.
430 */
431 double bdry_temperature(int32_t handle);
432
433 /**
434 * Tangential velocity gradient [1/s] at this boundary.
435 *
436 * Wraps C++ getter: `virtual double Boundary1D::spreadRate()`
437 *
438 * @param handle Handle to queried Boundary1D object.
439 */
440 double bdry_spreadRate(int32_t handle);
441
442 /**
443 * Mass fraction of species k.
444 *
445 * Wraps C++ method: `virtual double Boundary1D::massFraction(size_t)`
446 *
447 * @param handle Handle to queried Boundary1D object.
448 * @param k Undocumented.
449 */
450 double bdry_massFraction(int32_t handle, int32_t k);
451
452 /**
453 * Set transport model to existing instance.
454 *
455 * Wraps C++ setter: `virtual void Domain1D::setTransport(shared_ptr<Transport>)`
456 *
457 * @param handle Handle to queried Domain1D object.
458 * @param trans Integer handle to Transport object. Undocumented.
459 */
460 int32_t domain_setTransport(int32_t handle, int32_t trans);
461
462 /**
463 * Retrieve transport model.
464 *
465 * Wraps C++ getter: `string Flow1D::transportModel()`
466 *
467 * @param handle Handle to queried Flow1D object.
468 * @param[in] bufLen Length of reserved array.
469 * @param[out] buf Returned string value.
470 * @returns Actual length of string including string-terminating null byte, \0, or -1 for exception handling.
471 */
472 int32_t flow_transportModel(int32_t handle, int32_t bufLen, char* buf);
473
474 /**
475 * Set transport model by name.
476 *
477 * Wraps C++ setter: `virtual void Domain1D::setTransportModel(const string&)`
478 *
479 * @param handle Handle to queried Domain1D object.
480 * @param model String specifying model name.
481 */
482 int32_t domain_setTransportModel(int32_t handle, const char* model);
483
484 /**
485 * Enable thermal diffusion, also known as Soret diffusion.
486 *
487 * Wraps C++ setter: `void Flow1D::enableSoret(bool)`
488 *
489 * @param handle Handle to queried Flow1D object.
490 * @param withSoret Undocumented.
491 */
492 int32_t flow_enableSoret(int32_t handle, int32_t withSoret);
493
494 /**
495 * Set the pressure.
496 *
497 * Wraps C++ setter: `void Flow1D::setPressure(double)`
498 *
499 * @param handle Handle to queried Flow1D object.
500 * @param p Undocumented.
501 */
502 int32_t flow_setPressure(int32_t handle, double p);
503
504 /**
505 * The current pressure [Pa].
506 *
507 * Wraps C++ getter: `double Flow1D::pressure()`
508 *
509 * @param handle Handle to queried Flow1D object.
510 */
511 double flow_pressure(int32_t handle);
512
513 /**
514 * Set fixed temperature profile.
515 *
516 * Wraps C++ method: `void Flow1D::setFixedTempProfile(const vector<double>&, const vector<double>&)`
517 *
518 * @param handle Handle to queried Flow1D object.
519 * @param[in] zfixedLen Length of vector reserved for zfixed.
520 * @param zfixed Vector containing locations where profile is specified.
521 * @param[in] tfixedLen Length of vector reserved for tfixed.
522 * @param tfixed Vector containing specified temperatures.
523 */
524 int32_t flow_setFixedTempProfile(int32_t handle, int32_t zfixedLen, const double* zfixed, int32_t tfixedLen, const double* tfixed);
525
526 /**
527 * Specify that the energy equation should be solved at point `j`.
528 *
529 * Wraps C++ setter: `void Flow1D::solveEnergyEqn(size_t)`
530 *
531 * @param handle Handle to queried Flow1D object.
532 * @param j Point at which to enable the energy equation. `npos` means all points.
533 */
534 int32_t flow_solveEnergyEqn(int32_t handle, int32_t j);
535
536 /**
537 * Check if energy is enabled for entire domain.
538 *
539 * Wraps C++ getter: `bool Flow1D::allOfEnergyEnabled()`
540 *
541 * @param handle Handle to queried Flow1D object.
542 */
543 int32_t flow_allOfEnergyEnabled(int32_t handle);
544
545 /**
546 * Check if energy is disabled for entire domain.
547 *
548 * Wraps C++ getter: `bool Flow1D::noneOfEnergyEnabled()`
549 *
550 * @param handle Handle to queried Flow1D object.
551 */
552 int32_t flow_noneOfEnergyEnabled(int32_t handle);
553
554 /**
555 * Set energy enabled flag for entire domain.
556 *
557 * Wraps C++ setter: `void Flow1D::setEnergyEnabled(bool)`
558 *
559 * @param handle Handle to queried Flow1D object.
560 * @param flag Undocumented.
561 */
562 int32_t flow_setEnergyEnabled(int32_t handle, int32_t flag);
563
564 /**
565 * Set whether to solve the equations for the surface species coverages.
566 *
567 * Wraps C++ setter: `void ReactingSurf1D::enableCoverageEquations(bool)`
568 *
569 * @param handle Handle to queried ReactingSurf1D object.
570 * @param docov Undocumented.
571 */
572 int32_t reactingsurf_enableCoverageEquations(int32_t handle, int32_t docov);
573
574 /**
575 * Get the grid refinement criteria.
576 *
577 * Wraps C++ getter: `vector<double> Domain1D::getRefineCriteria()`
578 *
579 * @param handle Handle to queried Domain1D object.
580 * @param[in] bufLen Length of reserved array.
581 * @param[out] buf Returned array value.
582 * @returns Actual length of value array or -1 for exception handling.
583 */
584 int32_t domain_getRefineCriteria(int32_t handle, int32_t bufLen, double* buf);
585
586 /**
587 * Set grid refinement criteria.
588 *
589 * Wraps C++ method: `void Domain1D::setRefineCriteria(double, double, double, double)`
590 *
591 * @param handle Handle to queried Domain1D object.
592 * @param ratio Undocumented.
593 * @param slope Undocumented.
594 * @param curve Undocumented.
595 * @param prune Undocumented.
596 */
597 int32_t domain_setRefineCriteria(int32_t handle, double ratio, double slope, double curve, double prune);
598
599 /**
600 * Return a concise summary of a Domain.
601 *
602 * Wraps C++ method: `string Domain1D::_info(int, int)`
603 *
604 * @param handle Handle to queried Domain1D object.
605 * @param rows Maximum number of rendered rows.
606 * @param width Maximum width of rendered output.
607 * @param[in] bufLen Length of reserved array.
608 * @param[out] buf Returned string value.
609 * @returns Actual length of string including string-terminating null byte, \0, or -1 for exception handling.
610 */
611 int32_t domain_info(int32_t handle, int32_t rows, int32_t width, int32_t bufLen, char* buf);
612
613 /**
614 * Delete Domain1D object.
615 *
616 * Wraps C++ destructor: `undefined`
617 *
618 * @param handle Handle to Domain1D object.
619 * @returns Zero for success and -1 for exception handling.
620 */
621 int32_t domain_del(int32_t handle);
622
623 /**
624 * Return size of Domain1D storage.
625 *
626 * Wraps C++ reserved CLib function: `custom code`
627 *
628 * @returns Size or -1 for exception handling.
629 */
630 int32_t domain_cabinetSize();
631
632 /**
633 * @}
634 */
635
636#ifdef __cplusplus
637}
638#endif
639
640#endif // CTDOMAIN_H
int32_t domain_cabinetSize()
Return size of Domain1D storage.
Definition ctdomain.cpp:644
double bdry_spreadRate(int32_t handle)
Tangential velocity gradient [1/s] at this boundary.
Definition ctdomain.cpp:439
double domain_rtol(int32_t handle, int32_t n)
Relative tolerance of the nth component.
Definition ctdomain.cpp:294
int32_t domain_setTransportModel(int32_t handle, const char *model)
Set transport model by name.
Definition ctdomain.cpp:482
double domain_atol(int32_t handle, int32_t n)
Absolute tolerance of the nth component.
Definition ctdomain.cpp:304
int32_t domain_setupUniformGrid(int32_t handle, int32_t points, double length, double start)
Set up uniform grid.
Definition ctdomain.cpp:326
double bdry_temperature(int32_t handle)
Temperature [K].
Definition ctdomain.cpp:429
int32_t domain_grid(int32_t handle, int32_t bufLen, double *buf)
Access the array of grid coordinates [m].
Definition ctdomain.cpp:348
int32_t domain_componentName(int32_t handle, int32_t n, int32_t bufLen, char *buf)
Name of component n.
Definition ctdomain.cpp:125
int32_t domain_setProfile(int32_t handle, const char *component, int32_t posLen, const double *pos, int32_t valuesLen, const double *values)
Specify a profile for a component.
Definition ctdomain.cpp:217
int32_t flow_enableSoret(int32_t handle, int32_t withSoret)
Enable thermal diffusion, also known as Soret diffusion.
Definition ctdomain.cpp:493
double domain_value(int32_t handle, const char *component)
Set a single component value at a boundary.
Definition ctdomain.cpp:147
int32_t flow_solveEnergyEqn(int32_t handle, int32_t j)
Specify that the energy equation should be solved at point j.
Definition ctdomain.cpp:539
int32_t flow_setEnergyEnabled(int32_t handle, int32_t flag)
Set energy enabled flag for entire domain.
Definition ctdomain.cpp:572
int32_t domain_getValues(int32_t handle, const char *component, int32_t valuesLen, double *values)
Retrieve component values.
Definition ctdomain.cpp:180
int32_t domain_setID(int32_t handle, const char *s)
Specify an identifying tag for this domain.
Definition ctdomain.cpp:337
int32_t domain_nPoints(int32_t handle)
Number of grid points in this domain.
Definition ctdomain.cpp:115
double domain_upperBound(int32_t handle, int32_t n)
Upper bound on the nth component.
Definition ctdomain.cpp:262
int32_t domain_setTransientTolerances(int32_t handle, double rtol, double atol, int32_t n)
Set tolerances for time-stepping mode.
Definition ctdomain.cpp:283
int32_t domain_setValues(int32_t handle, const char *component, int32_t valuesLen, const double *values)
Specify component values.
Definition ctdomain.cpp:193
int32_t bdry_setSpreadRate(int32_t handle, double V0)
Set tangential velocity gradient [1/s] at this boundary.
Definition ctdomain.cpp:384
int32_t domain_setRefineCriteria(int32_t handle, double ratio, double slope, double curve, double prune)
Set grid refinement criteria.
Definition ctdomain.cpp:610
int32_t domain_getRefineCriteria(int32_t handle, int32_t bufLen, double *buf)
Get the grid refinement criteria.
Definition ctdomain.cpp:596
int32_t domain_residuals(int32_t handle, const char *component, int32_t bufLen, double *buf)
Retrieve internal work array values for a component.
Definition ctdomain.cpp:205
int32_t flow_noneOfEnergyEnabled(int32_t handle)
Check if energy is disabled for entire domain.
Definition ctdomain.cpp:561
int32_t flow_setFixedTempProfile(int32_t handle, int32_t zfixedLen, const double *zfixed, int32_t tfixedLen, const double *tfixed)
Set fixed temperature profile.
Definition ctdomain.cpp:526
double bdry_mdot(int32_t handle)
The total mass flow rate [kg/m2/s].
Definition ctdomain.cpp:419
int32_t flow_allOfEnergyEnabled(int32_t handle)
Check if energy is enabled for entire domain.
Definition ctdomain.cpp:550
int32_t domain_setupGrid(int32_t handle, int32_t gridLen, const double *grid)
Set up initial grid.
Definition ctdomain.cpp:314
int32_t domain_del(int32_t handle)
Delete Domain1D object.
Definition ctdomain.cpp:633
int32_t domain_setValue(int32_t handle, const char *component, double value)
Set a single component value in a flow domain or at a boundary.
Definition ctdomain.cpp:157
int32_t domain_newBoundary1D(const char *domainType, int32_t solution, const char *id)
Create a Boundary1D object of the specified type.
Definition ctdomain.cpp:63
int32_t domain_nComponents(int32_t handle)
Number of components at each grid point.
Definition ctdomain.cpp:105
double bdry_massFraction(int32_t handle, int32_t k)
Mass fraction of species k.
Definition ctdomain.cpp:449
int32_t reactingsurf_enableCoverageEquations(int32_t handle, int32_t docov)
Set whether to solve the equations for the surface species coverages.
Definition ctdomain.cpp:584
int32_t domain_index(int32_t handle, int32_t n, int32_t j)
Returns the index of the solution vector, which corresponds to component n at grid point j.
Definition ctdomain.cpp:95
int32_t flow_transportModel(int32_t handle, int32_t bufLen, char *buf)
Retrieve transport model.
Definition ctdomain.cpp:470
int32_t bdry_setTemperature(int32_t handle, double t)
Set the temperature.
Definition ctdomain.cpp:373
int32_t bdry_setMoleFractions(int32_t handle, int32_t xinLen, const double *xin)
Set the mole fractions by specifying an array.
Definition ctdomain.cpp:406
int32_t bdry_setMoleFractionsByName(int32_t handle, const char *xin)
Set the mole fractions by specifying a string.
Definition ctdomain.cpp:395
double domain_lowerBound(int32_t handle, int32_t n)
Lower bound on the nth component.
Definition ctdomain.cpp:252
int32_t domain_setTransport(int32_t handle, int32_t trans)
Set transport model to existing instance.
Definition ctdomain.cpp:459
int32_t domain_type(int32_t handle, int32_t bufLen, char *buf)
String indicating the domain implemented.
Definition ctdomain.cpp:73
int32_t domain_values(int32_t handle, const char *component, int32_t bufLen, double *buf)
Retrieve component values.
Definition ctdomain.cpp:168
int32_t flow_setPressure(int32_t handle, double p)
Set the pressure.
Definition ctdomain.cpp:505
int32_t domain_newFlow1D(const char *domainType, int32_t solution, const char *id)
Create a Flow1D object of the specified type.
Definition ctdomain.cpp:53
int32_t domain_setSteadyTolerances(int32_t handle, double rtol, double atol, int32_t n)
Set tolerances for steady-state mode.
Definition ctdomain.cpp:272
double flow_pressure(int32_t handle)
The current pressure [Pa].
Definition ctdomain.cpp:516
int32_t domain_info(int32_t handle, int32_t rows, int32_t width, int32_t bufLen, char *buf)
Return a concise summary of a Domain.
Definition ctdomain.cpp:621
int32_t bdry_setMdot(int32_t handle, double mdot)
Set the total mass flow rate [kg/m²/s].
Definition ctdomain.cpp:362
int32_t domain_domainIndex(int32_t handle)
The left-to-right location of this domain.
Definition ctdomain.cpp:85
int32_t domain_componentIndex(int32_t handle, const char *name)
Index of component with name name.
Definition ctdomain.cpp:137
int32_t domain_setFlatProfile(int32_t handle, const char *component, double value)
Specify a flat profile for a component.
Definition ctdomain.cpp:230
int32_t domain_setBounds(int32_t handle, int32_t n, double lower, double upper)
Set the upper and lower bounds for a solution component, n.
Definition ctdomain.cpp:241