cloudy  trunk
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
physconst.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef _PHYSCONST_H_
5 #define _PHYSCONST_H_
6 
16 /*#include "physconst.h"*/
17 
18 /*********************************************************************
19  * first come math constants *
20  *********************************************************************/
21 
23 const double EE = 2.718281828459045235360287;
24 
26 const double EULER = 0.577215664901532860606512090082;
27 
29 const double PI = 3.141592653589793238462643;
30 
32 const double PI2 = 6.283185307179586476925287;
33 
35 const double PI4 = 12.56637061435917295385057;
36 
38 const double PI8 = 25.13274122871834590770115;
39 
41 const double SQRT2 = 1.414213562373095048801689;
42 
44 const double SQRTPI = 1.772453850905516027298167;
45 
47 const double SQRTPIBY2 = 1.253314137315500251207883;
48 
50 const double LN_TWO = 0.6931471805599453094172321;
51 
53 const double LN_TEN = 2.302585092994045684017991;
54 
56 const double LOG10_E = 0.4342944819032518276511289;
57 
60 const double OPTDEP2EXTIN = 1.085736204758129569127822;
61 
63 const double RADIAN = 57.29577951308232087679815;
64 
65 /*********************************************************************
66  * astronomical constants go here *
67  *********************************************************************/
68 
71 const double SOLAR_MASS = 1.9889e33;
72 
75 const double SOLAR_LUMINOSITY = 3.846e33;
76 
79 /* >>refer phys const McCarthy, D.D., Petit, G., eds., IERS Technical Note 32,
80  * >>refercon Frankfurt am Main: Verlag des Bundesamts fuer Kartographie und Geodaesie, 2004, 12 */
81 const double AU = 1.49597870691e13;
82 
83 /*********************************************************************
84  * fundamental constants go next, eventually rest should be defined *
85  * in terms of these, these are Codata 2006 values. *
86  *********************************************************************/
87 
89 const double ATOMIC_MASS_UNIT = 1.660538782e-24;
90 
92 const double ELECTRON_MASS = 9.10938215e-28;
93 
95 const double PROTON_MASS = 1.672621637e-24;
96 
98 const double BOLTZMANN = 1.3806504e-16;
99 
101 const double SPEEDLIGHT = 2.99792458e10;
102 
104 const double HPLANCK = 6.62606896e-27;
105 
107 const double GRAV_CONST = 6.67428e-8;
108 
110 const double ELEM_CHARGE = 1.602176487e-19;
111 
113 const double RYD_INF = 1.0973731568527e5;
114 
117 const double HIONPOT = 0.999466508219;
118 
119 /*********************************************************************
120  * below here should be derived constants *
121  * *
122  * NB - explicit values in comments are approximate *
123  * and are not maintained ! *
124  *********************************************************************/
125 
127 const double PARSEC = AU*RADIAN*3600.;
128 
130 const double H_BAR = HPLANCK/(2.*PI);
131 
134 
136 const double ELECTRIC_CONST = 1.e11/(PI4*pow2(SPEEDLIGHT));
137 
144 
147 const double SAHA = sqrt(pow3(HION_LTE_POP));
148 
150 const double ERG1CM = HPLANCK*SPEEDLIGHT;
151 
153 const double T1CM = HPLANCK*SPEEDLIGHT/BOLTZMANN;
154 
156 const double WAVNRYD = 1./RYD_INF;
157 
159 const double RYDLAM = 1.e8/RYD_INF;
160 
162 const double EN1RYD = HPLANCK*SPEEDLIGHT*RYD_INF;
163 
166 const double TE1RYD = HPLANCK*SPEEDLIGHT*RYD_INF/BOLTZMANN;
167 
169 const double EVDEGK = ELEM_CHARGE*1.e7/BOLTZMANN;
170 
172 const double EVRYD = HPLANCK*SPEEDLIGHT*RYD_INF/ELEM_CHARGE*1.e-7;
173 
175 const double EN1EV = EN1RYD/EVRYD;
176 
178 const double FR1RYD = SPEEDLIGHT*RYD_INF;
179 
181 const double HNU3C2 = 2.*HPLANCK*SPEEDLIGHT*pow3(RYD_INF);
182 
184 const double FR1RYDHYD = SPEEDLIGHT*RYD_INF*HIONPOT;
185 
187 const double HBAReV = H_BAR/EN1EV;
188 
190 const double RYDLAMHYD = RYDLAM/HIONPOT;
191 
193 const double STEFAN_BOLTZ = pow2(PI*pow2(BOLTZMANN))/(60.*pow3(H_BAR)*pow2(SPEEDLIGHT));
194 
196 const double FREQ_1EV = SPEEDLIGHT*RYD_INF/EVRYD;
197 
199 const double FINE_STRUCTURE = pow2(ELEM_CHARGE_ESU)/SPEEDLIGHT/H_BAR;
200 
202 const double FINE_STRUCTURE2 = pow2(FINE_STRUCTURE);
203 
205 const double BOHR_RADIUS_CM = FINE_STRUCTURE/(PI4*RYD_INF);
206 
208 const double TWO_PHOT_CONST = 9.*pow3(FINE_STRUCTURE2)*FR1RYD/2048.;
209 
213 
216 const double MILNE_CONST = SPEEDLIGHT*sqrt(pow3(FINE_STRUCTURE2)*pow3(TE1RYD)/PI);
217 
220 const double TRANS_PROB_CONST = PI4*HPLANCK*FINE_STRUCTURE/ELECTRON_MASS;
221 
222 #endif /* _PHYSCONST_H_ */

Generated for cloudy by doxygen 1.8.1.1