/home66/gary/public_html/cloudy/c08_branch/source/physconst.h

Go to the documentation of this file.
00001 /* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and
00002  * others.  For conditions of distribution and use see copyright notice in license.txt */
00003 
00004 #ifndef _PHYSCONST_H_
00005 #define _PHYSCONST_H_
00006 
00016 /*#include "physconst.h"*/
00017 
00018 /*********************************************************************
00019  * first come math constants                                         *
00020  *********************************************************************/
00021 
00023 const double EE = 2.718281828459045235360287;
00024 
00026 const double EULER = 0.577215664901532860606512090082;
00027 
00029 const double PI = 3.141592653589793238462643;
00030 
00032 const double PI2 = 6.283185307179586476925287;
00033 
00035 const double PI4 = 12.56637061435917295385057;
00036 
00038 const double PI8 = 25.13274122871834590770115;
00039 
00041 const double SQRT2 = 1.414213562373095048801689;
00042 
00044 const double SQRTPI = 1.772453850905516027298167;
00045 
00047 const double SQRTPIBY2 = 1.253314137315500251207883;
00048 
00050 const double LN_TWO = 0.6931471805599453094172321;
00051 
00053 const double LN_TEN = 2.302585092994045684017991;
00054 
00056 const double LOG10_E = 0.4342944819032518276511289;
00057 
00060 const double OPTDEP2EXTIN = 1.085736204758129569127822;
00061 
00063 const double RADIAN = 57.29577951308232087679815;
00064 
00065 /*********************************************************************
00066  * astronomical constants go here                                    *
00067  *********************************************************************/
00068 
00071 const double SOLAR_MASS = 1.9889e33;
00072 
00075 const double SOLAR_LUMINOSITY = 3.846e33;
00076 
00079 /* >>refer      phys    const   McCarthy, D.D., Petit, G., eds., IERS Technical Note 32,
00080  * >>refercon   Frankfurt am Main: Verlag des Bundesamts fuer Kartographie und Geodaesie, 2004, 12 */
00081 const double AU = 1.49597870691e13;
00082 
00083 /*********************************************************************
00084  * fundamental constants go next, eventually rest should be defined  *
00085  * in terms of these, these are Codata 2006 values.                  *
00086  *********************************************************************/
00087 
00089 const double ATOMIC_MASS_UNIT = 1.660538782e-24;
00090 
00092 const double ELECTRON_MASS = 9.10938215e-28;
00093 
00095 const double PROTON_MASS = 1.672621637e-24;
00096 
00098 const double BOLTZMANN = 1.3806504e-16;
00099 
00101 const double SPEEDLIGHT = 2.99792458e10;
00102 
00104 const double HPLANCK = 6.62606896e-27;
00105 
00107 const double GRAV_CONST = 6.67428e-8;
00108 
00110 const double ELEM_CHARGE = 1.602176487e-19;
00111 
00113 const double RYD_INF = 1.0973731568527e5;
00114 
00117 const double HIONPOT = 0.999466508219;
00118 
00119 /*********************************************************************
00120  * below here should be derived constants                            *
00121  *                                                                   *
00122  * NB - explicit values in comments are approximate                  *
00123  *      and are not maintained !                                     *
00124  *********************************************************************/
00125 
00127 const double PARSEC = AU*RADIAN*3600.;
00128 
00130 const double H_BAR = HPLANCK/(2.*PI);
00131 
00133 const double ELEM_CHARGE_ESU = ELEM_CHARGE*SPEEDLIGHT/10.;
00134 
00136 const double ELECTRIC_CONST = 1.e11/(PI4*pow2(SPEEDLIGHT));
00137 
00143 const double HION_LTE_POP = pow2(HPLANCK)/(PI2*BOLTZMANN*ELECTRON_MASS);
00144 
00147 const double SAHA = sqrt(pow3(HION_LTE_POP));
00148 
00150 const double ERG1CM = HPLANCK*SPEEDLIGHT;
00151 
00153 const double T1CM = HPLANCK*SPEEDLIGHT/BOLTZMANN;
00154 
00156 const double WAVNRYD = 1./RYD_INF;
00157 
00159 const double RYDLAM = 1.e8/RYD_INF;
00160 
00162 const double EN1RYD = HPLANCK*SPEEDLIGHT*RYD_INF;
00163 
00166 const double TE1RYD = HPLANCK*SPEEDLIGHT*RYD_INF/BOLTZMANN;
00167 
00169 const double EVDEGK = ELEM_CHARGE*1.e7/BOLTZMANN;
00170 
00172 const double EVRYD = HPLANCK*SPEEDLIGHT*RYD_INF/ELEM_CHARGE*1.e-7;
00173 
00175 const double EN1EV = EN1RYD/EVRYD;
00176 
00178 const double FR1RYD = SPEEDLIGHT*RYD_INF;
00179 
00181 const double HNU3C2 = 2.*HPLANCK*SPEEDLIGHT*pow3(RYD_INF);
00182 
00184 const double FR1RYDHYD = SPEEDLIGHT*RYD_INF*HIONPOT;
00185 
00187 const double HBAReV = H_BAR/EN1EV;  
00188 
00190 const double RYDLAMHYD = RYDLAM/HIONPOT;
00191 
00193 const double STEFAN_BOLTZ = pow2(PI*pow2(BOLTZMANN))/(60.*pow3(H_BAR)*pow2(SPEEDLIGHT));
00194 
00196 const double FREQ_1EV = SPEEDLIGHT*RYD_INF/EVRYD;
00197 
00199 const double FINE_STRUCTURE = pow2(ELEM_CHARGE_ESU)/SPEEDLIGHT/H_BAR;
00200 
00202 const double FINE_STRUCTURE2 = pow2(FINE_STRUCTURE);
00203 
00205 const double BOHR_RADIUS_CM = FINE_STRUCTURE/(PI4*RYD_INF);
00206 
00208 const double TWO_PHOT_CONST = 9.*pow3(FINE_STRUCTURE2)*FR1RYD/2048.;
00209 
00212 const double COLL_CONST = SAHA*BOLTZMANN/HPLANCK;
00213 
00216 const double MILNE_CONST = SPEEDLIGHT*sqrt(pow3(FINE_STRUCTURE2)*pow3(TE1RYD)/PI);
00217 
00220 const double TRANS_PROB_CONST = PI4*HPLANCK*FINE_STRUCTURE/ELECTRON_MASS;
00221 
00222 #endif /* _PHYSCONST_H_ */

Generated on Mon Feb 16 12:01:26 2009 for cloudy by  doxygen 1.4.7