Cantera 2.6.0
ctmultiphase.h
Go to the documentation of this file.
1/**
2 * @file ctmultiphase.h
3 */
4
5// This file is part of Cantera. See License.txt in the top-level directory or
6// at https://cantera.org/license.txt for license and copyright information.
7
8#ifndef CTC_MULTIPHASE_H
9#define CTC_MULTIPHASE_H
10
11#include "clib_defs.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17 CANTERA_CAPI int mix_new();
18 CANTERA_CAPI int mix_del(int i);
19 CANTERA_CAPI int ct_clearMix();
20 CANTERA_CAPI int mix_addPhase(int i, int j, double moles);
21 CANTERA_CAPI int mix_init(int i);
22 CANTERA_CAPI int mix_updatePhases(int i);
23 CANTERA_CAPI size_t mix_nElements(int i);
24 CANTERA_CAPI size_t mix_elementIndex(int i, const char* name);
25 CANTERA_CAPI size_t mix_speciesIndex(int i, int k, int p);
26 CANTERA_CAPI size_t mix_nSpecies(int i);
27 CANTERA_CAPI int mix_setTemperature(int i, double t);
28 CANTERA_CAPI double mix_temperature(int i);
29 CANTERA_CAPI double mix_minTemp(int i);
30 CANTERA_CAPI double mix_maxTemp(int i);
31 CANTERA_CAPI double mix_charge(int i);
32 CANTERA_CAPI double mix_phaseCharge(int i, int p);
33 CANTERA_CAPI int mix_setPressure(int i, double p);
34 CANTERA_CAPI double mix_pressure(int i);
35 CANTERA_CAPI double mix_nAtoms(int i, int k, int m);
36 CANTERA_CAPI size_t mix_nPhases(int i);
37 CANTERA_CAPI double mix_phaseMoles(int i, int n);
38 CANTERA_CAPI int mix_setPhaseMoles(int i, int n, double v);
39 CANTERA_CAPI int mix_setMoles(int i, size_t nlen, const double* n);
40 CANTERA_CAPI int mix_setMolesByName(int i, const char* n);
41 CANTERA_CAPI double mix_speciesMoles(int i, int k);
42 CANTERA_CAPI double mix_elementMoles(int i, int m);
43 CANTERA_CAPI double mix_equilibrate(int i, const char* XY, double err,
44 int maxsteps, int maxiter, int loglevel);
45 CANTERA_CAPI int mix_getChemPotentials(int i, size_t lenmu, double* mu);
46 CANTERA_CAPI double mix_enthalpy(int i);
47 CANTERA_CAPI double mix_entropy(int i);
48 CANTERA_CAPI double mix_gibbs(int i);
49 CANTERA_CAPI double mix_cp(int i);
50 CANTERA_CAPI double mix_volume(int i);
51
52 CANTERA_CAPI size_t mix_speciesPhaseIndex(int i, int k);
53 CANTERA_CAPI double mix_moleFraction(int i, int k);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif