physico-chemical_constants.hpp 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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_PHYSICO_CHEMICAL_CONSTANTS_HPP
  11. #define BOOST_UNITS_CODATA_PHYSICO_CHEMICAL_CONSTANTS_HPP
  12. #include <boost/units/pow.hpp>
  13. #include <boost/units/quantity.hpp>
  14. #include <boost/units/static_constant.hpp>
  15. #include <boost/units/systems/detail/constants.hpp>
  16. #include <boost/units/systems/si/amount.hpp>
  17. #include <boost/units/systems/si/area.hpp>
  18. #include <boost/units/systems/si/electric_charge.hpp>
  19. #include <boost/units/systems/si/energy.hpp>
  20. #include <boost/units/systems/si/frequency.hpp>
  21. #include <boost/units/systems/si/mass.hpp>
  22. #include <boost/units/systems/si/power.hpp>
  23. #include <boost/units/systems/si/solid_angle.hpp>
  24. #include <boost/units/systems/si/temperature.hpp>
  25. #include <boost/units/systems/si/codata/typedefs.hpp>
  26. /// \file
  27. /// CODATA recommended values of fundamental physico-chemical constants
  28. /// CODATA 2014 values as of 2016/04/26
  29. namespace boost {
  30. namespace units {
  31. namespace si {
  32. namespace constants {
  33. namespace codata {
  34. // PHYSICO-CHEMICAL
  35. /// Avogadro constant
  36. BOOST_UNITS_PHYSICAL_CONSTANT(N_A,quantity<inverse_amount>,6.022140857e23/mole,7.4e15/mole);
  37. /// atomic mass constant
  38. BOOST_UNITS_PHYSICAL_CONSTANT(m_u,quantity<mass>,1.660539040e-27*kilograms,2.0e-35*kilograms);
  39. /// Faraday constant
  40. BOOST_UNITS_PHYSICAL_CONSTANT(F,quantity<electric_charge_over_amount>,96485.33289*coulombs/mole,5.9e-4*coulombs/mole);
  41. /// molar gas constant
  42. BOOST_UNITS_PHYSICAL_CONSTANT(R,quantity<energy_over_temperature_amount>,8.3144598*joules/kelvin/mole,4.8e-06*joules/kelvin/mole);
  43. /// Boltzmann constant
  44. BOOST_UNITS_PHYSICAL_CONSTANT(k_B,quantity<energy_over_temperature>,1.38064852e-23*joules/kelvin,7.9e-30*joules/kelvin);
  45. /// Stefan-Boltzmann constant
  46. BOOST_UNITS_PHYSICAL_CONSTANT(sigma_SB,quantity<power_over_area_temperature_4>,5.670367e-8*watts/square_meter/pow<4>(kelvin),1.3e-13*watts/square_meter/pow<4>(kelvin));
  47. /// first radiation constant
  48. BOOST_UNITS_PHYSICAL_CONSTANT(c_1,quantity<power_area>,3.741771790e-16*watt*square_meters,4.6e-24*watt*square_meters);
  49. /// first radiation constant for spectral radiance
  50. BOOST_UNITS_PHYSICAL_CONSTANT(c_1L,quantity<power_area_over_solid_angle>,1.191042953e-16*watt*square_meters/steradian,1.5e-24*watt*square_meters/steradian);
  51. /// second radiation constant
  52. BOOST_UNITS_PHYSICAL_CONSTANT(c_2,quantity<length_temperature>,1.43877736e-2*meter*kelvin,8.3e-9*meter*kelvin);
  53. /// Wien displacement law constant : lambda_max T
  54. BOOST_UNITS_PHYSICAL_CONSTANT(b,quantity<length_temperature>,2.8977729e-3*meter*kelvin,1.7e-9*meter*kelvin);
  55. /// Wien displacement law constant : nu_max/T
  56. BOOST_UNITS_PHYSICAL_CONSTANT(b_prime,quantity<frequency_over_temperature>,5.8789238e10*hertz/kelvin,3.4e4*hertz/kelvin);
  57. } // namespace codata
  58. } // namespace constants
  59. } // namespace si
  60. } // namespace units
  61. } // namespace boost
  62. #endif // BOOST_UNITS_CODATA_PHYSICO_CHEMICAL_CONSTANTS_HPP