electron_constants.hpp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // Boost.Units - A C++ library for zero-overhead dimensional analysis and
  2. // unit/quantity manipulation and conversion
  3. //
  4. // Copyright (C) 2003-2008 Matthias Christian Schabel
  5. // Copyright (C) 2008 Steven Watanabe
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See
  8. // accompanying file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #ifndef BOOST_UNITS_CODATA_ELECTRON_CONSTANTS_HPP
  11. #define BOOST_UNITS_CODATA_ELECTRON_CONSTANTS_HPP
  12. #include <boost/units/static_constant.hpp>
  13. #include <boost/units/systems/detail/constants.hpp>
  14. #include <boost/units/systems/si/amount.hpp>
  15. #include <boost/units/systems/si/area.hpp>
  16. #include <boost/units/systems/si/electric_charge.hpp>
  17. #include <boost/units/systems/si/energy.hpp>
  18. #include <boost/units/systems/si/frequency.hpp>
  19. #include <boost/units/systems/si/length.hpp>
  20. #include <boost/units/systems/si/mass.hpp>
  21. #include <boost/units/systems/si/magnetic_flux_density.hpp>
  22. #include <boost/units/systems/si/time.hpp>
  23. #include <boost/units/systems/si/wavenumber.hpp>
  24. #include <boost/units/systems/si/codata/typedefs.hpp>
  25. /// \file
  26. /// CODATA recommended values of fundamental atomic and nuclear constants
  27. /// CODATA 2006 values as of 2007/03/30
  28. namespace boost {
  29. namespace units {
  30. namespace si {
  31. namespace constants {
  32. namespace codata {
  33. /// CODATA recommended values of the fundamental physical constants: NIST SP 961
  34. /// electron mass
  35. BOOST_UNITS_PHYSICAL_CONSTANT(m_e,quantity<mass>,9.10938215e-31*kilograms,4.5e-38*kilograms);
  36. /// electron-muon mass ratio
  37. BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_mu,quantity<dimensionless>,4.83633171e-3*dimensionless(),1.2e-10*dimensionless());
  38. /// electron-tau mass ratio
  39. BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_tau,quantity<dimensionless>,2.87564e-4*dimensionless(),4.7e-8*dimensionless());
  40. /// electron-proton mass ratio
  41. BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_p,quantity<dimensionless>,5.4461702177e-4*dimensionless(),2.4e-13*dimensionless());
  42. /// electron-neutron mass ratio
  43. BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_n,quantity<dimensionless>,5.4386734459e-4*dimensionless(),3.3e-13*dimensionless());
  44. /// electron-deuteron mass ratio
  45. BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_d,quantity<dimensionless>,2.7244371093e-4*dimensionless(),1.2e-13*dimensionless());
  46. /// electron-alpha particle mass ratio
  47. BOOST_UNITS_PHYSICAL_CONSTANT(m_e_over_m_alpha,quantity<dimensionless>,1.37093355570e-4*dimensionless(),5.8e-14*dimensionless());
  48. /// electron charge to mass ratio
  49. BOOST_UNITS_PHYSICAL_CONSTANT(e_over_m_e,quantity<electric_charge_over_mass>,1.758820150e11*coulombs/kilogram,4.4e3*coulombs/kilogram);
  50. /// electron molar mass
  51. BOOST_UNITS_PHYSICAL_CONSTANT(M_e,quantity<mass_over_amount>,5.4857990943e-7*kilograms/mole,2.3e-16*kilograms/mole);
  52. /// Compton wavelength
  53. BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C,quantity<length>,2.4263102175e-12*meters,3.3e-21*meters);
  54. /// classical electron radius
  55. BOOST_UNITS_PHYSICAL_CONSTANT(r_e,quantity<length>,2.8179402894e-15*meters,5.8e-24*meters);
  56. /// Thompson cross section
  57. BOOST_UNITS_PHYSICAL_CONSTANT(sigma_e,quantity<area>,0.6652458558e-28*square_meters,2.7e-37*square_meters);
  58. /// electron magnetic moment
  59. BOOST_UNITS_PHYSICAL_CONSTANT(mu_e,quantity<energy_over_magnetic_flux_density>,-928.476377e-26*joules/tesla,2.3e-31*joules/tesla);
  60. /// electron-Bohr magenton moment ratio
  61. BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_B,quantity<dimensionless>,-1.00115965218111*dimensionless(),7.4e-13*dimensionless());
  62. /// electron-nuclear magneton moment ratio
  63. BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_N,quantity<dimensionless>,-183.28197092*dimensionless(),8.0e-7*dimensionless());
  64. /// electron magnetic moment anomaly
  65. BOOST_UNITS_PHYSICAL_CONSTANT(a_e,quantity<dimensionless>,1.15965218111e-3*dimensionless(),7.4e-13*dimensionless());
  66. /// electron g-factor
  67. BOOST_UNITS_PHYSICAL_CONSTANT(g_e,quantity<dimensionless>,-2.0023193043622*dimensionless(),1.5e-12*dimensionless());
  68. /// electron-muon magnetic moment ratio
  69. BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_mu,quantity<dimensionless>,206.7669877*dimensionless(),5.2e-6*dimensionless());
  70. /// electron-proton magnetic moment ratio
  71. BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_p,quantity<dimensionless>,-658.2106848*dimensionless(),5.4e-6*dimensionless());
  72. /// electron-shielded proton magnetic moment ratio
  73. BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_p_prime,quantity<dimensionless>,-658.2275971*dimensionless(),7.2e-6*dimensionless());
  74. /// electron-neutron magnetic moment ratio
  75. BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_n,quantity<dimensionless>,960.92050*dimensionless(),2.3e-4*dimensionless());
  76. /// electron-deuteron magnetic moment ratio
  77. BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_d,quantity<dimensionless>,-2143.923498*dimensionless(),1.8e-5*dimensionless());
  78. /// electron-shielded helion magnetic moment ratio
  79. BOOST_UNITS_PHYSICAL_CONSTANT(mu_e_over_mu_h_prime,quantity<dimensionless>,864.058257*dimensionless(),1.0e-5*dimensionless());
  80. /// electron gyromagnetic ratio
  81. BOOST_UNITS_PHYSICAL_CONSTANT(gamma_e,quantity<frequency_over_magnetic_flux_density>,1.760859770e11/second/tesla,4.4e3/second/tesla);
  82. } // namespace codata
  83. } // namespace constants
  84. } // namespace si
  85. } // namespace units
  86. } // namespace boost
  87. #endif // BOOST_UNITS_CODATA_ELECTRON_CONSTANTS_HPP