Cantera  2.1.2
mix_defs.h
Go to the documentation of this file.
1 //! @file mix_defs.h
2 #ifndef CT_MIX_DEFS_H
3 #define CT_MIX_DEFS_H
4 
5 namespace Cantera
6 {
7 
8 /**
9  * This generic id is used as the default in virtual base
10  * classes that employ id's. It is used to indicate the lack
11  * of an inherited class that would define the id.
12  */
13 const int cNone = 0;
14 
15 // species thermo types
16 const int cNASA = 1;
17 const int cShomate = 2;
18 const int cNASA96 = 3;
19 const int cHarmonicOsc = 4;
20 
21 /**
22  * Equation of state types:
23  *
24  * These types are used in the member function eosType() of
25  * the virtual base class ThermoPhase. They are used to
26  * distinguish different types of equation of states. Also, they
27  * may be used for upcasting from the ThermoPhase class. Their
28  * id's should be distinct.
29  *
30  * Users who wish to define their own equation of states which
31  * derive from ThermoPhase should define a unique id which
32  * doesn't conflict with those listed below. The Cantera Kernel
33  * however, will not be know about the class and will therefore
34  * not be able to initialize the class within its "factory"
35  * routines.
36  */
37 const int cIdealGas = 1; // IdealGasPhase in IdealGasPhase.h
38 const int cIncompressible = 2; // ConstDensityThermo in ConstDensityThermo.h
39 /// A surface phase. Used by class SurfPhase.
40 const int cSurf = 3;
41 
42 /// A metal phase.
43 const int cMetal = 4; // MetalPhase in MetalPhase.h
44 // const int cSolidCompound = 5; // SolidCompound in SolidCompound.h
45 const int cStoichSubstance = 5; // StoichSubstance.h
46 const int cSemiconductor = 7;
47 
48 const int cMineralEQ3 = 8; // MineralEQ3 in MineralEQ3.h
49 const int cMetalSHEelectrons = 9; // SHE electrode electrons
50 
51 const int cLatticeSolid = 20; // LatticeSolidPhase.h
52 const int cLattice = 21; //LatticePhase.h
53 
54 // pure fluids with liquid/vapor eqs of state
55 const int cPureFluid = 10;
56 
57 /// An edge between two 2D surfaces
58 const int cEdge = 6;
59 
60 //! Stoichiometric compound with a constant chemical potential
61 const int cFixedChemPot = 70;
62 
63 /// Constant partial molar volume solution IdealSolidSolnPhase.h
64 const int cIdealSolidSolnPhase = 5009;
65 
66 //! HMW - Strong electrolyte using the Pitzer formulation
67 const int cHMW = 40;
68 
69 //! DebyeHuckel - Weak electrolyte using various Debye-Huckel formulations
70 const int cDebyeHuckel = 50;
71 
72 //! IdealMolalSoln - molality based solution with molality-based act coeffs of 1
73 const int cIdealMolalSoln = 60;
74 
75 const int cIdealSolnGasVPSS = 500;
76 const int cIdealSolnGasVPSS_iscv = 501;
77 
78 //! Fugacity Models
79 const int cMixtureFugacityTP = 700;
80 const int cRedlichKwongMFTP = 701;
81 
82 const int cMargulesVPSSTP = 301;
83 
84 const int cRedlichKisterVPSSTP = 303;
85 
86 const int cMolarityIonicVPSSTP = 401;
87 const int cMixedSolventElectrolyte = 402;
88 
89 const int cPhaseCombo_Interaction = 305;
90 
91 const int cIonsFromNeutral = 2000;
92 
93 //! Variable Pressure Standard State ThermoPhase objects
94 const int cVPSS_IdealGas = 1001;
95 const int cVPSS_ConstVol = 1002;
96 const int cVPSS_PureFluid = 1010;
97 const int cVPSS_HMW = 1040;
98 const int cVPSS_DebyeHuckel = 1050;
99 const int cVPSS_MolalSoln = 1060;
100 
101 //! Types of general formulations for the specification of the standard state volume
103  //! This approximation is for a constant volume
105  //! This approximation is for a species with a quadratic polynomial in temperature
106  /*!
107  * V^ss_i = ai + bi T + ci T2
108  */
110  //! This approximation is for a species where the density is expressed as a
111  //! quadratic polynomial in temperature
112  /*!
113  * V^ss_i = M_i / (ai + bi T + ci T2)
114  */
116 };
117 
118 //! Types of PDSS's
120  cPDSS_UNDEF = 100,
121  cPDSS_IDEALGAS,
122  cPDSS_CONSTVOL,
123  cPDSS_SSVOL,
124  cPDSS_MOLAL_CONSTVOL,
125  cPDSS_WATER,
126  cPDSS_MOLAL_HKFT,
127  cPDSS_IONSFROMNEUTRAL
128 };
129 
130 
131 //! enum for VPSSMgr types that are responsible for calculating the species
132 //! standard state and reference-state thermodynamic properties.
134  cVPSSMGR_UNDEF = 1000,
135  //! Variable pressures SS calculator for ideal gas phases
137  //! Variable pressure SS calculate for phases consisting all species having
138  //! a constant molar volume property. This fits most solids.
140  cVPSSMGR_PUREFLUID,
141  //! Variable pressure SS calculate for phases consisting of real water
142  //! as the first species and species having a constant molar volume property
144  //! Variable pressure SS calculate for phases consisting of real water
145  //! as the first species and species obeying the HKFT standard state
147  //! Variable pressure SS calculate for phases consisting of completing
148  //! general representations
150 };
151 
152 
153 // kinetic manager types
154 const int cGasKinetics = 2;
155 const int cGRI30 = 3;
156 const int cInterfaceKinetics = 4;
157 const int cLineKinetics = 5;
158 const int cEdgeKinetics = 6;
159 const int cSolidKinetics = 7;
160 const int cAqueousKinetics = 8;
161 }
162 
163 #endif
164 
Variable pressure SS calculate for phases consisting of real water as the first species and species o...
Definition: mix_defs.h:146
Variable pressure SS calculate for phases consisting of completing general representations.
Definition: mix_defs.h:149
Variable pressure SS calculate for phases consisting of real water as the first species and species h...
Definition: mix_defs.h:143
This approximation is for a constant volume.
Definition: mix_defs.h:104
VPSSMgr_enumType
enum for VPSSMgr types that are responsible for calculating the species standard state and reference-...
Definition: mix_defs.h:133
const int cSurf
A surface phase. Used by class SurfPhase.
Definition: mix_defs.h:40
const int cFixedChemPot
Stoichiometric compound with a constant chemical potential.
Definition: mix_defs.h:61
SSVolume_Model_enumType
Types of general formulations for the specification of the standard state volume. ...
Definition: mix_defs.h:102
const int cMixtureFugacityTP
Fugacity Models.
Definition: mix_defs.h:79
PDSS_enumType
Types of PDSS's.
Definition: mix_defs.h:119
Variable pressure SS calculate for phases consisting all species having a constant molar volume prope...
Definition: mix_defs.h:139
This approximation is for a species with a quadratic polynomial in temperature.
Definition: mix_defs.h:109
const int cMetal
A metal phase.
Definition: mix_defs.h:43
const int cVPSS_IdealGas
Variable Pressure Standard State ThermoPhase objects.
Definition: mix_defs.h:94
const int cEdge
An edge between two 2D surfaces.
Definition: mix_defs.h:58
const int cIdealMolalSoln
IdealMolalSoln - molality based solution with molality-based act coeffs of 1.
Definition: mix_defs.h:73
Variable pressures SS calculator for ideal gas phases.
Definition: mix_defs.h:136
const int cHMW
HMW - Strong electrolyte using the Pitzer formulation.
Definition: mix_defs.h:67
const int cDebyeHuckel
DebyeHuckel - Weak electrolyte using various Debye-Huckel formulations.
Definition: mix_defs.h:70
This approximation is for a species where the density is expressed as a quadratic polynomial in tempe...
Definition: mix_defs.h:115
const int cIdealGas
Equation of state types:
Definition: mix_defs.h:37
const int cNone
This generic id is used as the default in virtual base classes that employ id's.
Definition: mix_defs.h:13
const int cIdealSolidSolnPhase
Constant partial molar volume solution IdealSolidSolnPhase.h.
Definition: mix_defs.h:64