Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-19 09:48:52

0001 // Boost.Units - A C++ library for zero-overhead dimensional analysis and 
0002 // unit/quantity manipulation and conversion
0003 //
0004 // Copyright (C) 2003-2008 Matthias Christian Schabel
0005 // Copyright (C) 2008 Steven Watanabe
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See
0008 // accompanying file LICENSE_1_0.txt or copy at
0009 // http://www.boost.org/LICENSE_1_0.txt)
0010 
0011 #ifndef BOOST_UNITS_CODATA_ELECTROMAGNETIC_CONSTANTS_HPP
0012 #define BOOST_UNITS_CODATA_ELECTROMAGNETIC_CONSTANTS_HPP
0013 
0014 ///
0015 /// \file
0016 /// \brief CODATA recommended values of fundamental electromagnetic constants.
0017 /// \details CODATA recommended values of the fundamental physical constants: NIST SP 961
0018 ///   CODATA 2006 values as of 2007/03/30
0019 ///
0020 
0021 #include <boost/units/quantity.hpp>
0022 #include <boost/units/static_constant.hpp>
0023 
0024 #include <boost/units/systems/detail/constants.hpp>
0025 #include <boost/units/systems/si/conductance.hpp>
0026 #include <boost/units/systems/si/current.hpp>
0027 #include <boost/units/systems/si/electric_charge.hpp>
0028 #include <boost/units/systems/si/electric_potential.hpp>
0029 #include <boost/units/systems/si/energy.hpp>
0030 #include <boost/units/systems/si/frequency.hpp>
0031 #include <boost/units/systems/si/magnetic_flux.hpp>
0032 #include <boost/units/systems/si/magnetic_flux_density.hpp>
0033 #include <boost/units/systems/si/resistance.hpp>
0034 
0035 #include <boost/units/systems/si/codata/typedefs.hpp>
0036 
0037 namespace boost {
0038 
0039 namespace units { 
0040 
0041 namespace si {
0042                             
0043 namespace constants {
0044 
0045 namespace codata {
0046 
0047 // ELECTROMAGNETIC
0048 /// elementary charge
0049 BOOST_UNITS_PHYSICAL_CONSTANT(e,quantity<electric_charge>,1.602176487e-19*coulombs,4.0e-27*coulombs);
0050 /// elementary charge to Planck constant ratio
0051 BOOST_UNITS_PHYSICAL_CONSTANT(e_over_h,quantity<current_over_energy>,2.417989454e14*amperes/joule,6.0e6*amperes/joule);
0052 /// magnetic flux quantum
0053 BOOST_UNITS_PHYSICAL_CONSTANT(Phi_0,quantity<magnetic_flux>,2.067833667e-15*webers,5.2e-23*webers);
0054 /// conductance quantum
0055 BOOST_UNITS_PHYSICAL_CONSTANT(G_0,quantity<conductance>,7.7480917004e-5*siemens,5.3e-14*siemens);
0056 /// Josephson constant
0057 BOOST_UNITS_PHYSICAL_CONSTANT(K_J,quantity<frequency_over_electric_potential>,483597.891e9*hertz/volt,1.2e7*hertz/volt);
0058 /// von Klitzing constant
0059 BOOST_UNITS_PHYSICAL_CONSTANT(R_K,quantity<resistance>,25812.807557*ohms,1.77e-5*ohms);
0060 /// Bohr magneton
0061 BOOST_UNITS_PHYSICAL_CONSTANT(mu_B,quantity<energy_over_magnetic_flux_density>,927.400915e-26*joules/tesla,2.3e-31*joules/tesla);
0062 /// nuclear magneton
0063 BOOST_UNITS_PHYSICAL_CONSTANT(mu_N,quantity<energy_over_magnetic_flux_density>,5.05078324e-27*joules/tesla,1.3e-34*joules/tesla);
0064 
0065 } // namespace codata
0066 
0067 } // namespace constants    
0068 
0069 } // namespace si
0070 
0071 } // namespace units
0072 
0073 } // namespace boost
0074 
0075 #endif // BOOST_UNITS_CODATA_ELECTROMAGNETIC_CONSTANTS_HPP