Cantera  3.1.0b1
Loading...
Searching...
No Matches
ctmultiphase.h
Go to the documentation of this file.
1/**
2 * @file ctmultiphase.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_MULTIPHASE_H
12#define CTC_MULTIPHASE_H
13
14#include "clib_defs.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20 CANTERA_CAPI int mix_new();
21 CANTERA_CAPI int mix_del(int i);
22 CANTERA_CAPI int ct_clearMix();
23 CANTERA_CAPI int mix_addPhase(int i, int j, double moles);
24 CANTERA_CAPI int mix_init(int i);
25 CANTERA_CAPI int mix_updatePhases(int i);
26 CANTERA_CAPI size_t mix_nElements(int i);
27 CANTERA_CAPI size_t mix_elementIndex(int i, const char* name);
28 CANTERA_CAPI size_t mix_speciesIndex(int i, int k, int p);
29 CANTERA_CAPI size_t mix_nSpecies(int i);
30 CANTERA_CAPI int mix_setTemperature(int i, double t);
31 CANTERA_CAPI double mix_temperature(int i);
32 CANTERA_CAPI double mix_minTemp(int i);
33 CANTERA_CAPI double mix_maxTemp(int i);
34 CANTERA_CAPI double mix_charge(int i);
35 CANTERA_CAPI double mix_phaseCharge(int i, int p);
36 CANTERA_CAPI int mix_setPressure(int i, double p);
37 CANTERA_CAPI double mix_pressure(int i);
38 CANTERA_CAPI double mix_nAtoms(int i, int k, int m);
39 CANTERA_CAPI size_t mix_nPhases(int i);
40 CANTERA_CAPI double mix_phaseMoles(int i, int n);
41 CANTERA_CAPI int mix_setPhaseMoles(int i, int n, double v);
42 CANTERA_CAPI int mix_setMoles(int i, size_t nlen, const double* n);
43 CANTERA_CAPI int mix_setMolesByName(int i, const char* n);
44 CANTERA_CAPI double mix_speciesMoles(int i, int k);
45 CANTERA_CAPI double mix_elementMoles(int i, int m);
46 CANTERA_CAPI double mix_equilibrate(int i, const char* XY, double err,
47 int maxsteps, int maxiter, int loglevel);
48 CANTERA_CAPI int mix_getChemPotentials(int i, size_t lenmu, double* mu);
49 CANTERA_CAPI double mix_enthalpy(int i);
50 CANTERA_CAPI double mix_entropy(int i);
51 CANTERA_CAPI double mix_gibbs(int i);
52 CANTERA_CAPI double mix_cp(int i);
53 CANTERA_CAPI double mix_volume(int i);
54
55 CANTERA_CAPI size_t mix_speciesPhaseIndex(int i, int k);
56 CANTERA_CAPI double mix_moleFraction(int i, int k);
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif