00001
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef TBCI_CONSTANTS_H
00013 #define TBCI_CONSTANTS_H
00014
00015 #ifndef ALIGN
00016 # if defined(__GNUC__) && !defined(_DOXYGEN)
00017 # define ALIGN(x) __attribute__ ((aligned(x)))
00018 # else
00019 # define ALIGN(x)
00020 # endif
00021 #endif
00022
00023 #define HUGEVAL 1E38
00024 #define MINVAL 1E-38
00025
00026
00027
00028
00029
00030
00031
00032 #if defined(__cplusplus) && defined(NAMESPACE_TBCI)
00033 NAMESPACE_TBCI
00034 #endif
00035
00036 const long double Pi ALIGN(8) = 3.1415926535897932384626433832795028841968;
00038 const double pi ALIGN(8) = Pi;
00039 #ifndef PI
00040 const double PI ALIGN(8) = Pi;
00041 #endif
00042
00044 const double pi2 = pi * 2.0;
00045
00047 const double c_0 ALIGN(8) = 299792458;
00048
00050 const double e_0 ALIGN(8) = 1.602189e-19;
00051
00053 const double m_e ALIGN(8) = 9.10953e-31;
00054
00056 const double epsilon_0 ALIGN(8) = 8.85418781762039e-12;
00057
00059 const double mu_0 ALIGN(8) = 4*pi*1.0e-7;
00060
00062 const double Z_0 ALIGN(8) = 376.73031346177;
00063
00065 const double k_B ALIGN(8) = 1.38066e-23;
00066
00068 const long double LN_2 ALIGN(8) = .6931471805599453094172321214581765680755;
00069
00071 const double E1 ALIGN(8) = 2.718281828459045235360287471352662498;
00072
00074 const double amu ALIGN(8) = 1.66055e-27;
00075
00077 const double Ar_mass ALIGN(8) = 39.948*amu;
00078
00080 const double Planck = 6.626176e-34;
00081
00083 const double Planck_bar = Planck/(2*pi);
00084
00086 const double Avogadro = 6.02205e+23;
00087
00089 const double Grav = 6.673e-11;
00090
00092 const long double SQRT2 ALIGN(8) = 1.41421356237309504880168872420969807857;
00093
00094 #if defined(__cplusplus) && defined(NAMESPACE_TBCI)
00095 NAMESPACE_END
00096 #endif
00097
00098 #endif