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 11 #ifndef BOOST_UNITS_CODATA_NEUTRON_CONSTANTS_HPP 12 #define BOOST_UNITS_CODATA_NEUTRON_CONSTANTS_HPP 13 14 #include <boost/units/quantity.hpp> 15 #include <boost/units/static_constant.hpp> 16 17 #include <boost/units/systems/detail/constants.hpp> 18 #include <boost/units/systems/si/amount.hpp> 19 #include <boost/units/systems/si/area.hpp> 20 #include <boost/units/systems/si/electric_charge.hpp> 21 #include <boost/units/systems/si/energy.hpp> 22 #include <boost/units/systems/si/frequency.hpp> 23 #include <boost/units/systems/si/length.hpp> 24 #include <boost/units/systems/si/mass.hpp> 25 #include <boost/units/systems/si/magnetic_flux_density.hpp> 26 #include <boost/units/systems/si/time.hpp> 27 #include <boost/units/systems/si/wavenumber.hpp> 28 29 #include <boost/units/systems/si/codata/typedefs.hpp> 30 31 /// \file 32 /// CODATA recommended values of fundamental atomic and nuclear constants 33 /// CODATA 2006 values as of 2007/03/30 34 35 namespace boost { 36 37 namespace units { 38 39 namespace si { 40 41 namespace constants { 42 43 namespace codata { 44 45 /// CODATA recommended values of the fundamental physical constants: NIST SP 961 46 47 /// neutron mass 48 BOOST_UNITS_PHYSICAL_CONSTANT(m_n,quantity<mass>,1.674927211e-27*kilograms,8.4e-35*kilograms); 49 /// neutron-electron mass ratio 50 BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_e,quantity<dimensionless>,1838.6836605*dimensionless(),1.1e-6*dimensionless()); 51 /// neutron-muon mass ratio 52 BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_mu,quantity<dimensionless>,8.89248409*dimensionless(),2.3e-7*dimensionless()); 53 /// neutron-tau mass ratio 54 BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_tau,quantity<dimensionless>,0.528740*dimensionless(),8.6e-5*dimensionless()); 55 /// neutron-proton mass ratio 56 BOOST_UNITS_PHYSICAL_CONSTANT(m_n_over_m_p,quantity<dimensionless>,1.00137841918*dimensionless(),4.6e-10*dimensionless()); 57 /// neutron molar mass 58 BOOST_UNITS_PHYSICAL_CONSTANT(M_n,quantity<mass_over_amount>,1.00866491597e-3*kilograms/mole,4.3e-13*kilograms/mole); 59 /// neutron Compton wavelength 60 BOOST_UNITS_PHYSICAL_CONSTANT(lambda_C_n,quantity<length>,1.3195908951e-15*meters,2.0e-24*meters); 61 /// neutron magnetic moment 62 BOOST_UNITS_PHYSICAL_CONSTANT(mu_n,quantity<energy_over_magnetic_flux_density>,-0.96623641e-26*joules/tesla,2.3e-33*joules/tesla); 63 /// neutron g-factor 64 BOOST_UNITS_PHYSICAL_CONSTANT(g_n,quantity<dimensionless>,-3.82608545*dimensionless(),9.0e-7*dimensionless()); 65 /// neutron-electron magnetic moment ratio 66 BOOST_UNITS_PHYSICAL_CONSTANT(mu_n_over_mu_e,quantity<dimensionless>,1.04066882e-3*dimensionless(),2.5e-10*dimensionless()); 67 /// neutron-proton magnetic moment ratio 68 BOOST_UNITS_PHYSICAL_CONSTANT(mu_n_over_mu_p,quantity<dimensionless>,-0.68497934*dimensionless(),1.6e-7*dimensionless()); 69 /// neutron-shielded proton magnetic moment ratio 70 BOOST_UNITS_PHYSICAL_CONSTANT(mu_n_over_mu_p_prime,quantity<dimensionless>,-0.68499694*dimensionless(),1.6e-7*dimensionless()); 71 /// neutron gyromagnetic ratio 72 BOOST_UNITS_PHYSICAL_CONSTANT(gamma_n,quantity<frequency_over_magnetic_flux_density>,1.83247185e8/second/tesla,4.3e1/second/tesla); 73 74 } // namespace codata 75 76 } // namespace constants 77 78 } // namespace si 79 80 } // namespace units 81 82 } // namespace boost 83 84 #endif // BOOST_UNITS_CODATA_NEUTRON_CONSTANTS_HPP 85