-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.py
More file actions
executable file
·68 lines (53 loc) · 1.08 KB
/
constants.py
File metadata and controls
executable file
·68 lines (53 loc) · 1.08 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#! /usr/bin/env python3
# H+
# Title : constants.py
# Author : Matt Muszynski
# Date : 09/11/17
# Synopsis: Master file for physical constants
#
#
# $Date$
# $Source$
# @(#) $Revision$
# $Locker$
#
# Revisions:
#
# H-
# U+
# Usage
# Example :
# Output :
# U-
# D+
#
# D-
###############################################################################
###############################################################################
#
# PHYSICS CONSTANTS
#
###############################################################################
#Planck Constant, J*s
h = 6.626070040e-34
#Boltzmann Constant, J/K
k_B = 1.38064852e-23
#Speed of light, m/s
c = 299792458
###############################################################################
#
# ASTROPHYSICS CONSTANTS
#
###############################################################################
#Astronomical Unit, m
au = 149597870700
#light year, m
ly = 9.4605284e15
#Solar Radius, m
r_sun = 6.95700e8
#Earth Radius, m
r_earth = 6.371e6
#Solar Temperature, K
T_sun = 5778
#Stefan-Boltzmann Constant, w/m^2/K^4
sigma = 5.6704e-8