-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconstants.py
More file actions
34 lines (23 loc) · 876 Bytes
/
constants.py
File metadata and controls
34 lines (23 loc) · 876 Bytes
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
#========= math
pi = 3.141592653589793
e = 2.718281828459045
#========= physics
lightSpeed = 299792458.0 # m/s
elementaryCharge = 1.60217657e-19 # coulombs
vacumPermeability = 4e-7*pi # Tesla . m/A
StefanBoltzmann = 5.67037321e-8 # W m^-2 K^-4
universalGas = 8.3144621 # J /K /mol
#---------- particles
electronMass = 9.109382910e-31 # kg
atomicMass = 1.660538921e-27 # kg
protonMass = 1.672621780e-27 # kg
neutronMass = 1.674927351e-27 # kg
#---------- units
Celsius0 = 273.15 # K
eV = 1.60217656535e-19 # J
#========= chemistry
Avogadro = 6.02214085774e+23
#============= Space
atmosphericPressure = 101325.0 # Pa
gravitational = 6.67384e-11 # m^3 kg / s^2
AU = 149597871.0e+3 # m