CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
physical_constants.hpp
Go to the documentation of this file.
1 
22 #ifndef PHYS_UNITS_PHYSICAL_CONSTANTS_HPP_INCLUDED
23 #define PHYS_UNITS_PHYSICAL_CONSTANTS_HPP_INCLUDED
24 
26 
27 namespace phys {
28  namespace units {
29 
30  // acceleration of free-fall, standard
31  constexpr quantity<acceleration_d> g_sub_n{Rep(9.80665L) * meter / square(second)};
32 
33  // Avogadro constant
34  constexpr quantity<dimensions<0, 0, 0, 0, 0, -1> > N_sub_A{Rep(6.02214199e+23L) /
35  mole};
36  // electronvolt
37  // constexpr quantity< energy_d > eV { Rep( 1.60217733e-19L ) * joule };
38 
39  // elementary charge
40  constexpr quantity<electric_charge_d> e{Rep(1.602176462e-19L) * coulomb};
41 
42  // Planck constant
43  constexpr quantity<dimensions<2, 1, -1> > h{Rep(6.62606876e-34L) * joule * second};
44 
45  // speed of light in a vacuum
46  constexpr quantity<speed_d> c{Rep(299792458L) * meter / second};
47 
48  // unified atomic mass unit
49  constexpr quantity<mass_d> u{Rep(1.6605402e-27L) * kilogram};
50 
51  // etc.
52 
53  } // namespace units
54 } // namespace phys
55 
56 #endif // PHYS_UNITS_PHYSICAL_CONSTANTS_HPP_INCLUDED
57 
58 /*
59  * end of file
60  */
namespace phys.
Zero-overhead dimensional analysis and unit/quantity manipulation and conversion. ...
constexpr detail::Power< D, 2, X > square(quantity< D, X > const &x)
square.
Definition: quantity.hpp:650