0cde3ac4dff34775fdde22c0972ece02e7642ab1
[platform/upstream/boost.git] / boost / units / systems / si / codata / physico-chemical_constants.hpp
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_PHYSICO_CHEMICAL_CONSTANTS_HPP
12 #define BOOST_UNITS_CODATA_PHYSICO_CHEMICAL_CONSTANTS_HPP
13
14 #include <boost/units/pow.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/mass.hpp>
24 #include <boost/units/systems/si/power.hpp>
25 #include <boost/units/systems/si/solid_angle.hpp>
26 #include <boost/units/systems/si/temperature.hpp>
27
28 #include <boost/units/systems/si/codata/typedefs.hpp>
29
30 /// \file
31 /// CODATA recommended values of fundamental physico-chemical constants
32 /// CODATA 2006 values as of 2007/03/30
33
34 namespace boost {
35
36 namespace units { 
37
38 namespace si {
39                             
40 namespace constants {
41
42 namespace codata {
43
44 // PHYSICO-CHEMICAL
45 /// Avogadro constant
46 BOOST_UNITS_PHYSICAL_CONSTANT(N_A,quantity<inverse_amount>,6.02214179e23/mole,3.0e16/mole);
47 /// atomic mass constant
48 BOOST_UNITS_PHYSICAL_CONSTANT(m_u,quantity<mass>,1.660538782e-27*kilograms,8.3e-35*kilograms);
49 /// Faraday constant
50 BOOST_UNITS_PHYSICAL_CONSTANT(F,quantity<electric_charge_over_amount>,96485.3399*coulombs/mole,2.4e-3*coulombs/mole);
51 /// molar gas constant
52 BOOST_UNITS_PHYSICAL_CONSTANT(R,quantity<energy_over_temperature_amount>,8.314472*joules/kelvin/mole,1.5e-5*joules/kelvin/mole);
53 /// Boltzmann constant
54 BOOST_UNITS_PHYSICAL_CONSTANT(k_B,quantity<energy_over_temperature>,1.3806504e-23*joules/kelvin,2.4e-29*joules/kelvin);
55 /// Stefan-Boltzmann constant
56 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));
57 /// first radiation constant
58 BOOST_UNITS_PHYSICAL_CONSTANT(c_1,quantity<power_area>,3.74177118e-16*watt*square_meters,1.9e-23*watt*square_meters);
59 /// first radiation constant for spectral radiance
60 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);
61 /// second radiation constant
62 BOOST_UNITS_PHYSICAL_CONSTANT(c_2,quantity<length_temperature>,1.4387752e-2*meter*kelvin,2.5e-8*meter*kelvin);
63 /// Wien displacement law constant : lambda_max T
64 BOOST_UNITS_PHYSICAL_CONSTANT(b,quantity<length_temperature>,2.8977685e-3*meter*kelvin,5.1e-9*meter*kelvin);
65 /// Wien displacement law constant : nu_max/T
66 BOOST_UNITS_PHYSICAL_CONSTANT(b_prime,quantity<frequency_over_temperature>,5.878933e10*hertz/kelvin,1.0e15*hertz/kelvin);
67
68 } // namespace codata
69
70 } // namespace constants    
71
72 } // namespace si
73
74 } // namespace units
75
76 } // namespace boost
77
78 #endif // BOOST_UNITS_CODATA_PHYSICO_CHEMICAL_CONSTANTS_HPP