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