deuteron_constants.hpp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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_DEUTERON_CONSTANTS_HPP
  11. #define BOOST_UNITS_CODATA_DEUTERON_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. /// deuteron mass
  35. BOOST_UNITS_PHYSICAL_CONSTANT(m_d,quantity<mass>,3.34358320e-27*kilograms,1.7e-34*kilograms);
  36. /// deuteron-electron mass ratio
  37. BOOST_UNITS_PHYSICAL_CONSTANT(m_d_over_m_e,quantity<dimensionless>,3670.4829654*dimensionless(),1.6e-6*dimensionless());
  38. /// deuteron-proton mass ratio
  39. BOOST_UNITS_PHYSICAL_CONSTANT(m_d_over_m_p,quantity<dimensionless>,1.99900750108*dimensionless(),2.2e-10*dimensionless());
  40. /// deuteron molar mass
  41. BOOST_UNITS_PHYSICAL_CONSTANT(M_d,quantity<mass_over_amount>,2.013553212724e-3*kilograms/mole,7.8e-14*kilograms/mole);
  42. /// deuteron rms charge radius
  43. BOOST_UNITS_PHYSICAL_CONSTANT(R_d,quantity<length>,2.1402e-15*meters,2.8e-18*meters);
  44. /// deuteron magnetic moment
  45. BOOST_UNITS_PHYSICAL_CONSTANT(mu_d,quantity<energy_over_magnetic_flux_density>,0.433073465e-26*joules/tesla,1.1e-34*joules/tesla);
  46. /// deuteron-Bohr magneton ratio
  47. BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_B,quantity<dimensionless>,0.4669754556e-3*dimensionless(),3.9e-12*dimensionless());
  48. /// deuteron-nuclear magneton ratio
  49. BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_N,quantity<dimensionless>,0.8574382308*dimensionless(),7.2e-9*dimensionless());
  50. /// deuteron g-factor
  51. BOOST_UNITS_PHYSICAL_CONSTANT(g_d,quantity<dimensionless>,0.8574382308*dimensionless(),7.2e-9*dimensionless());
  52. /// deuteron-electron magnetic moment ratio
  53. BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_e,quantity<dimensionless>,-4.664345537e-4*dimensionless(),3.9e-12*dimensionless());
  54. /// deuteron-proton magnetic moment ratio
  55. BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_p,quantity<dimensionless>,0.3070122070*dimensionless(),2.4e-9*dimensionless());
  56. /// deuteron-neutron magnetic moment ratio
  57. BOOST_UNITS_PHYSICAL_CONSTANT(mu_d_over_mu_n,quantity<dimensionless>,-0.44820652*dimensionless(),1.1e-7*dimensionless());
  58. } // namespace codata
  59. } // namespace constants
  60. } // namespace si
  61. } // namespace units
  62. } // namespace boost
  63. #endif // BOOST_UNITS_CODATA_DEUTERON_CONSTANTS_HPP