ast2000tools.constants

Module defining common physical and mathematical constants.

Module Attributes

pi

Equal to numpy.pi.

day

Duration of a day [s].

yr

Duration of a year [s].

AU

Astronomical unit [m].

c

Speed of light [m/s].

c_km_pr_s

Speed of light [km/s].

c_AU_pr_s

Speed of light [AU/s].

c_AU_pr_yr

Speed of light [AU/yr].

m_sun

Solar mass [kg].

L_sun

Solar luminosity [W].

R_sun

Solar radius [m].

G

Gravitational constant [m^3/kg/s^2].

G_sol

Gravitational constant in solar system units [AU^3/yr^2/m_sun].

k_B

Boltzmann constant [m^2*kg/s^2/K].

sigma

Stefan-Boltzmann constant [W/m^2/K^4].

N_A

Avogadro constant.

m_p

Proton mass [kg].

m_H2

Mass of a H2 molecule [kg].

ast2000tools.constants.pi = 3.141592653589793

Equal to numpy.pi.

Type

float

ast2000tools.constants.day = 86400

Duration of a day [s].

Type

float

ast2000tools.constants.yr = 31556952.0

Duration of a year [s].

Type

float

ast2000tools.constants.AU = 149597870700.0

Astronomical unit [m].

Type

float

ast2000tools.constants.c = 299792458.0

Speed of light [m/s].

Type

float

ast2000tools.constants.c_km_pr_s = 299792.458

Speed of light [km/s].

Type

float

ast2000tools.constants.c_AU_pr_s = 0.002003988804100004

Speed of light [AU/s].

Type

float

ast2000tools.constants.c_AU_pr_yr = 63239.77849952122

Speed of light [AU/yr].

Type

float

ast2000tools.constants.m_sun = 1.9884754153381438e+30

Solar mass [kg].

Type

float

ast2000tools.constants.L_sun = 3.828e+26

Solar luminosity [W].

Type

float

ast2000tools.constants.R_sun = 695700000.0

Solar radius [m].

Type

float

ast2000tools.constants.G = 6.6743e-11

Gravitational constant [m^3/kg/s^2].

Type

float

ast2000tools.constants.G_sol = 39.47841760435743

Gravitational constant in solar system units [AU^3/yr^2/m_sun].

Type

float

ast2000tools.constants.k_B = 1.380649e-23

Boltzmann constant [m^2*kg/s^2/K].

Type

float

ast2000tools.constants.sigma = 5.670374419e-08

Stefan-Boltzmann constant [W/m^2/K^4].

Type

float

ast2000tools.constants.N_A = 6.02214076e+23

Avogadro constant.

Type

float

ast2000tools.constants.m_p = 1.67262192369e-27

Proton mass [kg].

Type

float

ast2000tools.constants.m_H2 = 3.347447494734414e-27

Mass of a H2 molecule [kg].

Type

float