Debian Codegraph @

include/BALL/PYTHON/EXTENSIONS/pyConstant.h

raw symbols SCIP
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 // $Id: pyConstant.h,v 1.12 2005/12/23 17:01:57 amoll Exp $
5 //
6
7 #ifndef BALL_PYTHON_PYCONSTANT_H
8 #define BALL_PYTHON_PYCONSTANT_H
9
10 #ifndef BALL_COMMON_GLOBAL_H
11 # include <BALL/COMMON/global.h>
12 #endif
13
14 namespace BALL
15 {
16
17 /** Python constants namespace wrapper.
18 This class is a wrapper for the constants namespace.
19 \ingroup PythonExtensions
20 */
21 class Constant
22 {
23 public:
24
25 // PI
26 static double PI;
27
28 /// Euler's number - base of the natural logarithm
29 static double E;
30
31 /** Internal theshold for equality comparisons.
32 Default value is 1e-6.
33 */
34 static double EPSILON;
35 /** Elementary charge.
36 In units of C (\f$1.60217738 \cdot 10^{-19} C\f$).
37 */
38 static double ELEMENTARY_CHARGE; // C
39
40 /// Elementary charge (alias)
41 static double e0;
42
43 /** Electron mass.
44 In units of kg (\f$9.1093897 \cdot 10^{-31}\f$ kg).
45 */
46 static double ELECTRON_MASS ; // kg
47
48 /** Proton mass.
49 In units of kg (\f$1.6726230 \cdot 10^{-27}\f$ kg).
50 */
51 static double PROTON_MASS ; // kg
52
53 /** Neutron mass.
54 In units of kg (\f$1.6749286 \cdot 10^{-27}\f$ kg).
55 */
56 static double NEUTRON_MASS ; // kg
57
58 /** Avogadro constant.
59 In units of \f$mol^{-1}\f$ (\f$6.0221367 \cdot 10^{23} mol^{-1}\f$).
60 */
61 static double AVOGADRO;
62
63 /** Avogadro constant (alias)
64 */
65 static double NA;
66
67 /** Avogadro constant (alias)
68 */
69 static double MOL;
70
71 /** Boltzmann constant.
72 In units of J/K (\f$1.380657 \cdot 10^{-23}\f$ J/K).
73 */
74 static double BOLTZMANN;
75
76 /** Boltzmann constant (alias)
77 */
78 static double k;
79
80 /** Planck constant.
81 In units of Js (\f$6.6260754 \cdot 10^{-34}\f$ Js).
82 */
83 static double PLANCK;
84
85 /** Planck constant (alias)
86 */
87 static double h;
88
89 /** Gas constant (= NA * k)
90 */
91 static double GAS_CONSTANT;
92
93 /** Gas constant (alias)
94 */
95 static double R;
96
97 /** Faraday constant (= NA * e0)
98 */
99 static double FARADAY;
100
101 /** Faraday constant (alias)
102 */
103 static double F;
104
105 /** Bohr radius.
106 In units m (\f$5.29177249 \cdot 10^{-11}\f$ m).
107 */
108 static double BOHR_RADIUS;
109
110 /** Bohr radius (alias)
111 */
112 static double a0;
113
114 // the following values from:
115 // P.W.Atkins: Physical Chemistry, 5th ed., Oxford University Press, 1995
116
117 /** Vacuum permittivity.
118 In units of $C^2J^{-1}m^{-1}$ ($8.85419 \cdot 10^{-12} C^2J^{-1}m^{-1}$).
119 */
120 static double VACUUM_PERMITTIVITY;
121
122 /** Vacuum permeability.
123 In units of \f$Js^2C^{-2}m^{-1}\f$ (\f$4\pi \cdot 10^{-7} Js^2C^{-2}m^{-1}\f$).
124 */
125 static double VACUUM_PERMEABILITY;
126
127 /** Speed of light.
128 In units of m/s (\f$2.99792458 \cdot 10^8 ms^{-1}\f$).
129 */
130 static double SPEED_OF_LIGHT;
131
132 /** Speed of Light (alias)
133 */
134 static double c;
135
136 /** Gravitational constant.
137 In units of \f$Nm^2kg^{-2}\f$ (\f$6.67259 \cdot 10^{-11} Nm^2kg^{-2}\f$).
138 */
139 static double GRAVITATIONAL_CONSTANT;
140
141 /** Fine structure constant.
142 Without unit (\f$7.29735 \cdot 10^{-3}\f$).
143 */
144 static double FINE_STRUCTURE_CONSTANT;
145
146 /** Degree per rad.
147 57.2957795130823209
148 */
149 static double DEG_PER_RAD;
150
151 /** Rad per degree.
152 0.0174532925199432957
153 */
154 static double RAD_PER_DEG;
155
156 /** mm per inch.
157 25.4
158 */
159 static double MM_PER_INCH ;
160
161 /** m per foot.
162 3.048
163 */
164 static double M_PER_FOOT ;
165
166 /** Joules per calorie.
167 4.184
168 */
169 static double JOULE_PER_CAL;
170
171 /** Calories per Joule.
172 1/JOULE_PER_CAL
173 */
174 static double CAL_PER_JOULE;
175 };
176
177 } // namespace BALL
178
179 #endif // BALL_PYTHON_PYCONSTANT_H