ReFRACtor
old_constant.h
Go to the documentation of this file.
1 #ifndef OLD_CONSTANT_H
2 #define OLD_CONSTANT_H
3 #include "double_with_unit.h"
4 namespace FullPhysics {
5 /****************************************************************/
9 
13  namespace OldConstant {
14 //-----------------------------------------------------------------------
16 //-----------------------------------------------------------------------
17 
18 const double avogadro_constant = 6.02214179e23;
19 
20 //-----------------------------------------------------------------------
22 //-----------------------------------------------------------------------
23 
24 const double molar_weight_dry_air = 28.9644;
25 
26 //-----------------------------------------------------------------------
28 //-----------------------------------------------------------------------
29 
30 const double molar_weight_water = 18.01528;
31 
32 
33 //-----------------------------------------------------------------------
35 //-----------------------------------------------------------------------
36 
37 const double molar_weight_ozone = 47.9982;
38 
39 //-----------------------------------------------------------------------
41 //-----------------------------------------------------------------------
42 
43 const double gas_constant = 8.3144621;
44 
45 // Bring pi into this namespace, but make sure it matches the value
46 // already defined in units namespace.
47 const double pi = units::pi;
48 
49 //-----------------------------------------------------------------------
52 //-----------------------------------------------------------------------
53 
54 const DoubleWithUnit speed_of_light(299792458,
55  units::m / units::s);
56 
57 //-----------------------------------------------------------------------
59 //-----------------------------------------------------------------------
60 
61 const DoubleWithUnit earth_rot_speed(360 / 86164.09054,
63  // 360 degrees / sidereal day in
64  // seconds.
65 
66 //-----------------------------------------------------------------------
69 //-----------------------------------------------------------------------
70 
71 const Unit AU("AU", 1.49597870691e11 * units::m);
72 
73 //-----------------------------------------------------------------------
75 //-----------------------------------------------------------------------
76 
77 const DoubleWithUnit planck(6.6260693e-34,
78  units::J * units::s);
79 
80  }
81 }
82 #endif
83 
const DoubleWithUnit earth_rot_speed(360/86164.09054, units::deg/units::s)
Earth angular rotation frequency (1/sec)
const DoubleWithUnit planck(6.6260693e-34, units::J *units::s)
Planck's constant, in J s.
const Unit s("s", 1.0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0)
const double avogadro_constant
Avogadro constant.
Definition: old_constant.h:18
const double pi
Pi.
Definition: unit.h:133
const Unit J("J", N *m)
const double molar_weight_ozone
Molar weight of O3, in g mol^-1.
Definition: old_constant.h:37
const Unit m("m", 1.0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
const double molar_weight_dry_air
Molar weight of dry air, in g mol^-1.
Definition: old_constant.h:24
We frequently have a double with units associated with it.
const double molar_weight_water
Molar weight of water, in g mol^-1.
Definition: old_constant.h:30
Libraries such as boost::units allow unit handling where we know the units at compile time...
Definition: unit.h:25
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
const Unit AU("AU", 1.49597870691e11 *units::m)
1 AU in meters.
const DoubleWithUnit speed_of_light(299792458, units::m/units::s)
Speed of light, in m/s.
const Unit deg("deg", pi/180.0 *rad)
const double gas_constant
Gas constant from the ideal gas law, in J mol-1 K-1.
Definition: old_constant.h:43

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:11