-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.h
22 lines (17 loc) · 1012 Bytes
/
constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* == Definition of constants in CGS units == */
/* stripped to include only constants that are used. */
#define EE (4.80320680e-10 ) /* electron charge */
#define CL (2.99792458e10 ) /* speed of light */
#define ME (9.1093826e-28 ) /* electron mass */
#define MP (1.67262171e-24 ) /* proton mass */
#define HPL (6.6260693e-27 ) /* Planck constant */
#define KBOL (1.3806505e-16 ) /* Boltzmann constant */
#define GNEWT (6.6742e-8 ) /* Gravitational constant */
#define HBAR (HPL/(2.*M_PI) ) /* Planck's consant / 2pi */
#define SIG (5.670400e-5 ) /* Stefan-Boltzmann constant */
#define SIGMA_THOMSON (0.665245873e-24 ) /* Thomson cross section in cm^2 */
#define JY (1.e-23 ) /* Jansky (flux/freq. unit) in cgs */
#define PC (3.085678e18 ) /* parsec */
#define MSUN (1.989e33 ) /* solar mass */
#define LSUN (3.827e33 ) /* Luminousity of Sun */
#define YEAR (31536000. ) /* No. of seconds in year */