[yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Fri Dec 14 17:37:41 PST 2012
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/61c0d10ed14c/
changeset: 61c0d10ed14c
branch: yt
user: ngoldbaum
date: 2012-12-15 00:54:41
summary: Increasing the precision of physical constants. Closes #479.
affected #: 1 file
diff -r 9cf22c654aa695024341fad30afeb68fa06c6e65 -r 61c0d10ed14c4a5cb8b8ff488cf4a0d9ae3a9f5f yt/utilities/physical_constants.py
--- a/yt/utilities/physical_constants.py
+++ b/yt/utilities/physical_constants.py
@@ -1,26 +1,31 @@
#
# Physical Constants and Units Conversion Factors
#
+# Values for these constants are drawn from IAU and IUPAC data
+# unless otherwise noted:
+# http://maia.usno.navy.mil/NSFA/IAU2009_consts.html
+# http://goldbook.iupac.org/list_goldbook_phys_constants_defs.html
# Masses
-mass_hydrogen_cgs = 1.67e-24 # g
-mass_electron_cgs = 9.11e-28 # g
-amu_cgs = 1.66053886e-24 # g
-mass_sun_cgs = 1.9891e33 # g
+mass_hydrogen_cgs = 1.674534e-24 # g
+mass_electron_cgs = 9.1093898e-28 # g
+amu_cgs = 1.6605402e-24 # g
+mass_sun_cgs = 1.98841586e33 # g
# Velocities
speed_of_light_cgs = 2.99792458e10 # cm/s, exact
# Cross Sections
-cross_section_thompson_cgs = 6.65e-25 # cm^2
+# 8*pi/3 (alpha*hbar*c/(2*pi))**2
+cross_section_thompson_cgs = 6.65245854533e-25 # cm^2
# Charge
-charge_proton_cgs = 4.803e-10 # esu = 1.602e-19 Coulombs
+charge_proton_cgs = 4.8032056e-10 # esu = 1.602176487e-19 Coulombs
# Physical Constants
boltzmann_constant_cgs = 1.3806504e-16 # erg K^-1
gravitational_constant_cgs = 6.67428e-8 # cm^3 g^-1 s^-2
planck_constant_cgs = 6.62606896e-27 # erg s
-stefan_boltzmann_constant_cgs = 5.670373e-5 # erg cm^-2 s^-1 K^-4
+stefan_boltzmann_constant_cgs = 5.67051e-5 # erg cm^-2 s^-1 K^-4
rho_crit_now = 1.8788e-29 # g times h^2 (critical mass for closure, Cosmology)
# Misc. Approximations
@@ -32,14 +37,14 @@
mpc_per_mpc = 1e0
mpc_per_kpc = 1e-3
mpc_per_pc = 1e-6
-mpc_per_au = 4.847e-12
-mpc_per_rsun = 2.253e-14
-mpc_per_miles = 5.216e-20
-mpc_per_cm = 3.24e-25
+mpc_per_au = 4.84813682e-12
+mpc_per_rsun = 2.253962e-14
+mpc_per_miles = 5.21552871e-20
+mpc_per_cm = 3.24077929e-25
km_per_pc = 1.3806504e13
km_per_m = 1e-3
km_per_cm = 1e-5
-pc_per_cm = 3.24e-19
+pc_per_cm = 3.24077929e-19
m_per_fpc = 0.0324077649
https://bitbucket.org/yt_analysis/yt/changeset/0bc5b45d3421/
changeset: 0bc5b45d3421
branch: yt
user: MatthewTurk
date: 2012-12-15 02:37:33
summary: Merged in ngoldbaum/yt (pull request #373: Increasing the precision of physical constants. Closes #479.)
affected #: 1 file
diff -r 2ab3aa1758c34a0aa0c52a8d3fcc4556ef7b8e0f -r 0bc5b45d3421fbe71246dc4de2a1c871fbf989bf yt/utilities/physical_constants.py
--- a/yt/utilities/physical_constants.py
+++ b/yt/utilities/physical_constants.py
@@ -1,26 +1,31 @@
#
# Physical Constants and Units Conversion Factors
#
+# Values for these constants are drawn from IAU and IUPAC data
+# unless otherwise noted:
+# http://maia.usno.navy.mil/NSFA/IAU2009_consts.html
+# http://goldbook.iupac.org/list_goldbook_phys_constants_defs.html
# Masses
-mass_hydrogen_cgs = 1.67e-24 # g
-mass_electron_cgs = 9.11e-28 # g
-amu_cgs = 1.66053886e-24 # g
-mass_sun_cgs = 1.9891e33 # g
+mass_hydrogen_cgs = 1.674534e-24 # g
+mass_electron_cgs = 9.1093898e-28 # g
+amu_cgs = 1.6605402e-24 # g
+mass_sun_cgs = 1.98841586e33 # g
# Velocities
speed_of_light_cgs = 2.99792458e10 # cm/s, exact
# Cross Sections
-cross_section_thompson_cgs = 6.65e-25 # cm^2
+# 8*pi/3 (alpha*hbar*c/(2*pi))**2
+cross_section_thompson_cgs = 6.65245854533e-25 # cm^2
# Charge
-charge_proton_cgs = 4.803e-10 # esu = 1.602e-19 Coulombs
+charge_proton_cgs = 4.8032056e-10 # esu = 1.602176487e-19 Coulombs
# Physical Constants
boltzmann_constant_cgs = 1.3806504e-16 # erg K^-1
gravitational_constant_cgs = 6.67428e-8 # cm^3 g^-1 s^-2
planck_constant_cgs = 6.62606896e-27 # erg s
-stefan_boltzmann_constant_cgs = 5.670373e-5 # erg cm^-2 s^-1 K^-4
+stefan_boltzmann_constant_cgs = 5.67051e-5 # erg cm^-2 s^-1 K^-4
rho_crit_now = 1.8788e-29 # g times h^2 (critical mass for closure, Cosmology)
# Misc. Approximations
@@ -32,9 +37,9 @@
mpc_per_mpc = 1e0
mpc_per_kpc = 1e-3
mpc_per_pc = 1e-6
-mpc_per_au = 4.847e-12
-mpc_per_rsun = 2.253e-14
-mpc_per_miles = 5.216e-20
+mpc_per_au = 4.84813682e-12
+mpc_per_rsun = 2.253962e-14
+mpc_per_miles = 5.21552871e-20
mpc_per_cm = 3.24077929e-25
km_per_pc = 1.3806504e13
km_per_m = 1e-3
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list