constants.h
Documentation for the macros that define physical and numerical constants.
Macros
Defines
-
EE (4.80320680e-10)
Electron charge
-
CL (2.99792458e10)
Speed of light
-
ME (9.1093826e-28)
Electron mass
-
MP (1.67262171e-24)
Proton mass
-
MN (1.67492728e-24)
Neutron mass
-
AMU (1.66053886e-24)
Atomic mass unit
-
HPL (6.6260693e-27)
Planck constant
-
KBOL (1.3806505e-16)
Boltzmann constant
-
GNEWT (6.6742e-8)
Gravitational constant
-
SIG (5.670400e-5)
Stefan-Boltzmann constant
-
RGAS (8.3143e7)
Ideal gas constant ( \( \rm{erg}\, \rm{K}^{-1}\, \rm{mole}^{-1} \))
-
EV (1.60217653e-12)
Electron volt in ergs
-
SIGMA_THOMSON (0.665245873e-24)
Thomson cross section in \( cm^2 \)
-
JY (1.e-23)
Jansky (flux/frequency unit) in CGS
-
PC (3.085678e18)
Parsec
-
AU (1.49597870691e13)
Astronomical Unit
-
YEAR (31536000.)
Number of seconds in a year
-
DAY (86400.)
Number of seconds in a day
-
HOUR (3600.)
Number of seconds in an hour
-
MSUN (1.989e33)
Solar mass
-
RSUN (6.96e10)
Radius of the Sun
-
LSUN (3.827e33)
Luminosity of the Sun
-
TSUN (5.78e3)
Temperature of the Sun’s photosphere
-
MEARTH (5.976e27)
Earth’s mass
-
REARTH (6.378e8)
Earth’s radius
-
TCBR (2.726)
Cosmic Background Radiation (CBR) temperature (from COBE)
-
SOLX (0.70)
Hydrogen (H) abundance
-
SOLY (0.28)
Helium (He) abundance
-
SOLZ (0.02)
Metals abundance
-
FOUR_PI (1.2732395447351626862)
Ratio of \( 4/π \)
-
FOUR_PISQ (0.40528473456935108578)
Ratio of \( 4/\pi^2 \)
-
THREEPI_TWO (4.7123889803846898577)
Ratio of \( 3\pi/2 \)
-
CST 1.88774862536
Constant defined as \( 2^{11/12} \)