-
Notifications
You must be signed in to change notification settings - Fork 0
/
disky_const.py
44 lines (41 loc) · 1.42 KB
/
disky_const.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
'''
J Matthews, 21/02
This is a file containing useful constants for python coding
Units in CGS unless stated
'''
import numpy
C=29979245800.0
VERY_BIG = 1e50
H = 6.6262e-27
HC = 1.98587e-16
HEV = 4.13620e-15 # Planck's constant in eV
HRYD = 3.04005e-16 # NSH 1204 Planck's constant in Rydberg
G = 6.670e-8
BOLTZMANN = 1.38062e-16
WIEN = 5.879e10 # NSH 1208 Wien Disp Const in frequency units
H_OVER_K = 4.799437e-11
STEFAN_BOLTZMANN = 5.6696e-5
THOMPSON = 0.66524e-24
PI = 3.1415927
MELEC = 9.10956e-28
E= 4.8035e-10 # Electric charge in esu
MPROT = 1.672661e-24
MSOL = 1.989e33
RSOL = 6.995e10
LSOL = 3.839e33 # erg/s
P = 3.08e18
YR = 3.1556925e7
PI_E2_OVER_MC = 0.02655103 # Classical cross-section
PI_E2_OVER_M = 7.96e8
ALPHA = 7.297351e-3 # Fine structure constant
BOHR = 0.529175e-8 # Bohr radius
CR = 3.288051e15 #Rydberg frequency for H != Ryd freq for infinite mass
ANGSTROM = 1.e-8 #Definition of an Angstrom in units of this code, e.g. cm
EV2ERGS = 1.602192e-12
RADIAN = 57.29578
RYD2ERGS = 2.1798741e-11
RYDBERGTOEV = 13.60569253
ECS_CONSTANT = 4.773691e16
PARSEC = 3.086E18
A21_CONSTANT = 7.429297e-22
YEAR = 3.15569e7 # number of seconds in a year