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