Cantera  2.0
ckr_defs.h
Go to the documentation of this file.
1 /**
2  * @file ckr_defs.h
3  *
4  */
5 
6 // Copyright 2001 California Institute of Technology
7 
8 
9 
10 #ifndef CKR_DEFS_H
11 #define CKR_DEFS_H
12 
13 //#include "cantera/base/config.h"
14 #include <string>
15 #include <iostream>
16 #include <vector>
17 
18 /// the namespace for the CKReader packaage
19 namespace ckr
20 {
21 
22 typedef std::vector<double> vector_fp;
23 typedef std::vector<double> vector_int;
24 
25 // exceptions
26 class CK_Exception
27 {
28 public:
29  CK_Exception() {
30  m_msg = "";
31  }
32  virtual ~CK_Exception() {}
33  std::string errorMessage() {
34  return m_msg;
35  }
36 protected:
37  std::string m_msg;
38 };
39 
40 const double UNDEF = -9999.1234;
41 
42 /**
43  * @name Falloff Parameterizations
44  * These constants are used to specify which falloff parameterization
45  * to use for a pressure-dependent reaction.
46  * @see Reaction.h
47  */
48 
49 //@{
50 const int Lindemann = 0;
51 const int Troe = 1;
52 const int SRI = 2;
53 //@}
54 
55 
56 
57 /** @name Reaction Rate Types
58  * These constant are used to specify the type of rate coefficient
59  */
60 //@{
61 const int Arrhenius = 0, LandauTeller = 1, Jan = 2, Fit1 = 3;
62 //@}
63 
64 
65 /** @name Activation Energy Units
66  * These constants specify the supported units for the activation energy of
67  * a reaction
68  * The default is to assume Cal_per_Mole for unspecified units in the activation energy
69  * as this was the original default
70  */
71 //@{
72 const int Cal_per_Mole = 1,
73  Kcal_per_Mole = 2,
74  Joules_per_Mole = 3,
75  Kelvin= 4,
76  Electron_Volts = 5,
77  Kjoules_per_Mole = 6;
78 //@}
79 
80 /**
81  * @name Quantity Units
82  * These constants define the supported units for number of molecules.
83  */
84 //@{
85 const int Moles = 100; ///< specify number of moles (6.023e23 molecules / mole)
86 const int Molecules = 101; ///< specify number of molecules
87 //@}
88 
89 } // namespace
90 
91 
92 #endif
93 
94 
95 
96