Package ivs :: Package units :: Module constants
[hide private]
[frames] | no frames]

Module constants

source code

List of physical constants (SI, CGS and solar)

Many constants are taken from NIST (http://physics.nist.gov/cuu/Constants/index.html)

Others have their explicit reference listed.

See also ivs.units.conversions for advanced options, such as change the base units are changing the values of the fundamental constants to conventions used by other programs.

Their are two ways one can use the modules in this module:

  1. Just use the raw SI values in your script (e.g. constants.Msol. For convenience, also the cgs values of most constants are given, and accessbile via adding the postfix '_cgs', e.g. constants.Msol_cgs.
  2. If you always want to use cgs values and thus want the default values to be cgs without bothering with the postfixes, you can change the values of the constants to meet a particular convention via conversions.set_convention. After calling conversions.set_convention('cgs'), the value of constants.Msol will be given in grams instead of kilograms.

The safest way of getting the units of the constants exactly as you want them to be in a script, is via explicitly converting them to the right convention, e.g.

>>> Msol = conversions.convert(constants.Msol_units,'g',constants.Msol)

This is independent of the way the conventions are set.

Variables [hide private]
  _current_convention = 'SI'
  _current_values = 'standard'
  _current_frequency = 'rad'
  cc = 299792458.
  cc_air = cc/ 1.0002773
  Msol = 1.988547e30
  Rsol = 6.95508e8
  Lsol = 3.846e26
  Tsol = 5779.5747
  agesol = 1.44221e+17
  Mearth = 5.9742e24
  Rearth = 6371.e3
  Mjup = 1.8986e27
  Rjup = 6.9911e7
  Mlun = 7.346e22
  au = 149597870700.
  pc = 3.085677581503e+16
  ly = 9.460730472580800e+15
  hh = 6.6260689633e-34
  hhbar = 1.05457162853e-34
  kB = 1.380650424e-23
  NA = 6.0221417930e23
  sigma = 5.67040040e-8
  GG = 6.67384e-11
  GGMsol = 1.32712442099e20
  RR = 8.31447215
  aa = 7.5657e-16
  a0 = 52.9177e-12
  ke = 8.9875517873681764e9
  eps0 = 8.854187817620e-12
  mu0 = 1.2566370614e-6
  alpha = 137.036
  me = 9.1093829140e-31
  qe = -1.60217656535e-19
  mp = 1.67262177774e-27
  qp = 1.60217656535e-19
  cc_units = 'm s-1'
  cc_air_units = 'm s-1'
  Msol_units = 'kg'
  Rsol_units = 'm'
  Lsol_units = 'kg m2 s-3'
  Tsol_units = 'K'
  agesol_units = 's'
  Mearth_units = 'kg'
  Rearth_units = 'm'
  Mjup_units = 'kg'
  Rjup_units = 'm'
  Mlun_units = 'kg'
  au_units = 'm'
  pc_units = 'm'
  ly_units = 'm'
  hh_units = 'kg m2 s-1'
  hhbar_units = 'kg m2 s-1'
  kB_units = 'kg m2 s-2 K-1'
  NA_units = 'mol-1'
  sigma_units = 'kg s-3 K-4'
  GG_units = 'm3 kg-1 s-2'
  GGMsol_units = 'm3 s-2'
  RR_units = 'kg m2 s-2 K-1 mol-1'
  aa_units = 'kg m-1 s-2 K-4'
  a0_units = 'm'
  ke_units = 'N m2 C-2'
  eps0_units = 'F m-1'
  mu0_units = 'T m A-1'
  alpha_units = ''
  me_units = 'kg'
  qe_units = 'C'
  mp_units = 'kg'
  qp_units = 'C'
  cc_cgs = 29979245800.
  Msol_cgs = 1.988547e33
  Rsol_cgs = 6.95508e10
  Lsol_cgs = 3.846e33
  Mearth_cgs = 5.9742e27
  Rearth_cgs = 6371e5
  Mjup_cgs = 1.8986e30
  Rjup_cgs = 6.9911e9
  Mlun_cgs = 7.346e25
  au_cgs = 149597.870700e8
  pc_cgs = 3.085677581503e+18
  ly_cgs = 9.4605284e+17
  hh_cgs = 6.6260689633e-27
  hhbar_cgs = 1.05457162853e-27
  kB_cgs = 1.380650424e-16
  sigma_cgs = 5.67040040e-5
  GG_cgs = 6.67384e-8
  GGMsol_cgs = 1.32712442099e26
  RR_cgs = 8.31447215e7
  aa_cgs = 7.5657e-15
  a0_cgs = 52.9177e-10
  Msol_sol = 1.
  GG_sol = 3.944620808727e-07
  GGMsol_sol = 3.944620719386e-27
  Mabs_sol = 4.75
  Mapp_sol = -26.74
  numax_sol = 3120., 5., 'muHz'
  Deltanu0_sol = 134.88, 0.04, 'muHz'
  dnu01_sol = 6.14, 0.10, 'muHz'
  dnu02_sol = 9.00, 0.06, 'muHz'
  GG_cles = 6.6742e-11
  Msol_cles = 1.9884e30
  GG_eggleton = 6.6672e-11
  Msol_eggleton = 1.9891e30
  Rsol_eggleton = 6.9598e8
  GG_mesa = 6.67428e-11
  Msol_mesa = 1.9892e30
  Rsol_mesa = 6.9598e8
  Lsol_mesa = 3.8418e26
  Mearth_mesa = 5.9764e24
  Rearth_mesa = 6.37e6
  au_mesa = 1.495978921e11
  Rsol_esta = 6.9599e8
  Lsol_esta = 3.846e26
  GGMsol_esta = 1.32712438e20
  GG_esta = 6.6716823e-11
  Msol_esta = 1.98919e8
  Tsol_esta = 5777.54
  n = 1.0086649242
  H1 = 1.0078250321
  H2 = 2.0141017781
  H3 = 3.0160492681
  He3 = 3.0160293091
  He4 = 4.0026032501
  Li6 = 6.015122306509
  Li7 = 7.016004073506
  Be7 = 7.016929269506
  Be8 = 8.00530509538
  B8 = 8.0246067271188
  Be9 = 9.012182248405
  B9 = 9.01332889191047
  B10 = 10.012937097349
  B11 = 11.009305514405
  C12 = 12.000000000
  C13 = 13.0033548385
  N13 = 13.005738584289
  C14 = 14.0032419914
  N14 = 14.0030740072
  O14 = 14.00859528780
  N15 = 15.00010897312
  O15 = 15.003065460540
  O16 = 15.9949146223
  O17 = 16.999131501223
  F17 = 17.002095238266
  O18 = 17.999160413851
  F18 = 18.000937665636
  F19 = 18.99840320575
  Ne19 = 19.001879726612
  Ne20 = 19.9924401763
  Ne21 = 20.99384674443
  Na21 = 20.997655100751
  Ne22 = 21.991385500252
  Na22 = 21.994436633482
  Na23 = 22.989769657262
  Mg23 = 22.9941248281353
  Mg24 = 23.985041874258
  Mg25 = 24.985837000261
  Al25 = 24.990428531760
  Mg26 = 25.982592999264
  Al26 = 25.986891675268
  Al27 = 26.981538407238
  Si27 = 26.986704124264
  Si28 = 27.976926494216
  Si29 = 28.976494680219
  P29 = 28.981801337807
  Si30 = 29.973770179221
  P30 = 29.978313768482
  P31 = 30.973761487269