physico-chemical_constants.hpp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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/static_constant.hpp>
  14. #include <boost/units/systems/detail/constants.hpp>
  15. #include <boost/units/systems/si/amount.hpp>
  16. #include <boost/units/systems/si/area.hpp>
  17. #include <boost/units/systems/si/electric_charge.hpp>
  18. #include <boost/units/systems/si/energy.hpp>
  19. #include <boost/units/systems/si/frequency.hpp>
  20. #include <boost/units/systems/si/mass.hpp>
  21. #include <boost/units/systems/si/power.hpp>
  22. #include <boost/units/systems/si/solid_angle.hpp>
  23. #include <boost/units/systems/si/temperature.hpp>
  24. #include <boost/units/systems/si/codata/typedefs.hpp>
  25. /// \file
  26. /// CODATA recommended values of fundamental physico-chemical 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. // PHYSICO-CHEMICAL
  34. /// Avogadro constant
  35. BOOST_UNITS_PHYSICAL_CONSTANT(N_A,quantity<inverse_amount>,6.02214179e23/mole,3.0e16/mole);
  36. /// atomic mass constant
  37. BOOST_UNITS_PHYSICAL_CONSTANT(m_u,quantity<mass>,1.660538782e-27*kilograms,8.3e-35*kilograms);
  38. /// Faraday constant
  39. BOOST_UNITS_PHYSICAL_CONSTANT(F,quantity<electric_charge_over_amount>,96485.3399*coulombs/mole,2.4e-3*coulombs/mole);
  40. /// molar gas constant
  41. BOOST_UNITS_PHYSICAL_CONSTANT(R,quantity<energy_over_temperature_amount>,8.314472*joules/kelvin/mole,1.5e-5*joules/kelvin/mole);
  42. /// Boltzmann constant
  43. BOOST_UNITS_PHYSICAL_CONSTANT(k_B,quantity<energy_over_temperature>,1.3806504e-23*joules/kelvin,2.4e-29*joules/kelvin);
  44. /// Stefan-Boltzmann constant
  45. BOOST_UNITS_PHYSICAL_CONSTANT(sigma_SB,quantity<power_over_area_temperature_4>,5.670400e-8*watts/square_meter/pow<4>(kelvin),4.0e-13*watts/square_meter/pow<4>(kelvin));
  46. /// first radiation constant
  47. BOOST_UNITS_PHYSICAL_CONSTANT(c_1,quantity<power_area>,3.74177118e-16*watt*square_meters,1.9e-23*watt*square_meters);
  48. /// first radiation constant for spectral radiance
  49. BOOST_UNITS_PHYSICAL_CONSTANT(c_1L,quantity<power_area_over_solid_angle>,1.191042759e-16*watt*square_meters/steradian,5.9e-24*watt*square_meters/steradian);
  50. /// second radiation constant
  51. BOOST_UNITS_PHYSICAL_CONSTANT(c_2,quantity<length_temperature>,1.4387752e-2*meter*kelvin,2.5e-8*meter*kelvin);
  52. /// Wien displacement law constant : lambda_max T
  53. BOOST_UNITS_PHYSICAL_CONSTANT(b,quantity<length_temperature>,2.8977685e-3*meter*kelvin,5.1e-9*meter*kelvin);
  54. /// Wien displacement law constant : nu_max/T
  55. BOOST_UNITS_PHYSICAL_CONSTANT(b_prime,quantity<frequency_over_temperature>,5.878933e10*hertz/kelvin,1.0e15*hertz/kelvin);
  56. } // namespace codata
  57. } // namespace constants
  58. } // namespace si
  59. } // namespace units
  60. } // namespace boost
  61. #endif // BOOST_UNITS_CODATA_PHYSICO_CHEMICAL_CONSTANTS_HPP