Package ComboCode :: Package cc :: 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 cc.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.0
  cc_air = 299709348.598
  Msol = 1.988547e+30
  Rsol = 695508000.0
  Lsol = 3.846e+26
  Tsol = 5779.5747
  agesol = 1.44221e+17
  Mearth = 5.9742e+24
  Rearth = 6371000.0
  Mjup = 1.8986e+27
  Rjup = 69911000.0
  Mlun = 7.346e+22
  au = 1.495978707e+11
  pc = 3.0856775815e+16
  ly = 9.46073047258e+15
  hh = 6.6260689633e-34
  hhbar = 1.05457162853e-34
  kB = 1.380650424e-23
  NA = 6.022141793e+23
  sigma = 5.6704004e-08
  GG = 6.67384e-11
  GGMsol = 1.32712442099e+20
  RR = 8.31447215
  aa = 7.5657e-16
  a0 = 5.29177e-11
  ke = 8987551787.37
  eps0 = 8.85418781762e-12
  mu0 = 1.2566370614e-06
  alpha = 137.036
  me = 9.109382914e-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.0
  Msol_cgs = 1.988547e+33
  Rsol_cgs = 69550800000.0
  Lsol_cgs = 3.846e+33
  Mearth_cgs = 5.9742e+27
  Rearth_cgs = 637100000.0
  Mjup_cgs = 1.8986e+30
  Rjup_cgs = 6991100000.0
  Mlun_cgs = 7.346e+25
  au_cgs = 1.495978707e+13
  pc_cgs = 3.0856775815e+18
  ly_cgs = 9.4605284e+17
  hh_cgs = 6.6260689633e-27
  hhbar_cgs = 1.05457162853e-27
  kB_cgs = 1.380650424e-16
  sigma_cgs = 5.6704004e-05
  GG_cgs = 6.67384e-08
  GGMsol_cgs = 1.32712442099e+26
  RR_cgs = 83144721.5
  aa_cgs = 7.5657e-15
  a0_cgs = 5.29177e-09
  Msol_sol = 1.0
  GG_sol = 3.94462080873e-07
  GGMsol_sol = 3.94462071939e-27
  Mabs_sol = 4.75
  Mapp_sol = -26.74
  numax_sol = (3120.0, 5.0, 'muHz')
  Deltanu0_sol = (134.88, 0.04, 'muHz')
  dnu01_sol = (6.14, 0.1, 'muHz')
  dnu02_sol = (9.0, 0.06, 'muHz')
  GG_cles = 6.6742e-11
  Msol_cles = 1.9884e+30
  GG_eggleton = 6.6672e-11
  Msol_eggleton = 1.9891e+30
  Rsol_eggleton = 695980000.0
  GG_mesa = 6.67428e-11
  Msol_mesa = 1.9892e+30
  Rsol_mesa = 695980000.0
  Lsol_mesa = 3.8418e+26
  Mearth_mesa = 5.9764e+24
  Rearth_mesa = 6370000.0
  au_mesa = 1.495978921e+11
  Rsol_esta = 695990000.0
  Lsol_esta = 3.846e+26
  GGMsol_esta = 1.32712438e+20
  GG_esta = 6.6716823e-11
  Msol_esta = 198919000.0
  Tsol_esta = 5777.54
  n = 1.0086649242
  H1 = 1.0078250321
  H2 = 2.0141017781
  H3 = 3.0160492681
  He3 = 3.0160293091
  He4 = 4.0026032501
  Li6 = 6.01512230651
  Li7 = 7.01600407351
  Be7 = 7.01692926951
  Be8 = 8.00530509538
  B8 = 8.02460672712
  Be9 = 9.01218224841
  B9 = 9.01332889191
  B10 = 10.0129370973
  B11 = 11.0093055144
  C12 = 12.0
  C13 = 13.0033548385
  N13 = 13.0057385843
  C14 = 14.0032419914
  N14 = 14.0030740072
  O14 = 14.0085952878
  N15 = 15.0001089731
  O15 = 15.0030654605
  O16 = 15.9949146223
  O17 = 16.9991315012
  F17 = 17.0020952383
  O18 = 17.9991604139
  F18 = 18.0009376656
  F19 = 18.9984032058
  Ne19 = 19.0018797266
  Ne20 = 19.9924401763
  Ne21 = 20.9938467444
  Na21 = 20.9976551008
  Ne22 = 21.9913855003
  Na22 = 21.9944366335
  Na23 = 22.9897696573
  Mg23 = 22.9941248281
  Mg24 = 23.9850418743
  Mg25 = 24.9858370003
  Al25 = 24.9904285318
  Mg26 = 25.9825929993
  Al26 = 25.9868916753
  Al27 = 26.9815384072
  Si27 = 26.9867041243
  Si28 = 27.9769264942
  Si29 = 28.9764946802
  P29 = 28.9818013378
  Si30 = 29.9737701792
  P30 = 29.9783137685
  P31 = 30.9737614873
  __package__ = None
hash(x)