unyt.physical_constants module

Predefined useful physical constants

Note that all of these names can be imported from the top-level unyt namespace. For example:

>>> from unyt import c, G, kb
unyt.physical_constants.mass_electron_mks = unyt_quantity(9.10938291e-31, 'kg')

mass of the electron

unyt.physical_constants.mass_electron = unyt_quantity(9.10938291e-31, 'kg')

mass of the electron

unyt.physical_constants.me = unyt_quantity(9.10938291e-31, 'kg')

mass of the electron

unyt.physical_constants.amu_mks = unyt_quantity(1.66053892e-27, 'kg')

atomic mass unit

unyt.physical_constants.amu = unyt_quantity(1.66053892e-27, 'kg')

atomic mass unit

unyt.physical_constants.Na = unyt_quantity(6.02214086e+23, '1/mol')

Avogadro’s number

unyt.physical_constants.avogadros_number = unyt_quantity(6.02214086e+23, '1/mol')

Avogadro’s number

unyt.physical_constants.mp = unyt_quantity(1.67373522e-27, 'kg')

Mass of hydrogen

unyt.physical_constants.mh = unyt_quantity(1.67373522e-27, 'kg')

Mass of hydrogen

unyt.physical_constants.mass_hydrogen = unyt_quantity(1.67373522e-27, 'kg')

Mass of hydrogen

unyt.physical_constants.mass_hydrogen_mks = unyt_quantity(1.67373522e-27, 'kg')

Mass of hydrogen

unyt.physical_constants.c = unyt_quantity(2.99792458e+08, 'm/s')

speed of light

unyt.physical_constants.clight = unyt_quantity(2.99792458e+08, 'm/s')

speed of light

unyt.physical_constants.speed_of_light = unyt_quantity(2.99792458e+08, 'm/s')

speed of light

unyt.physical_constants.speed_of_light_mks = unyt_quantity(2.99792458e+08, 'm/s')

speed of light

unyt.physical_constants.sigma_thompson = unyt_quantity(6.65245855e-29, 'm**2')

Thompson cross section (8*pi/3 (alpha*hbar*c/(2*pi))**2)

unyt.physical_constants.thompson_cross_section = unyt_quantity(6.65245855e-29, 'm**2')

Thompson cross section (8*pi/3 (alpha*hbar*c/(2*pi))**2)

unyt.physical_constants.cross_section_thompson = unyt_quantity(6.65245855e-29, 'm**2')

Thompson cross section (8*pi/3 (alpha*hbar*c/(2*pi))**2)

unyt.physical_constants.cross_section_thompson_mks = unyt_quantity(6.65245855e-29, 'm**2')

Thompson cross section (8*pi/3 (alpha*hbar*c/(2*pi))**2)

unyt.physical_constants.qp = unyt_quantity(1.60217662e-19, 'C')

Charge of the proton

unyt.physical_constants.elementary_charge = unyt_quantity(1.60217662e-19, 'C')

Charge of the proton

unyt.physical_constants.proton_charge = unyt_quantity(1.60217662e-19, 'C')

Charge of the proton

unyt.physical_constants.charge_proton = unyt_quantity(1.60217662e-19, 'C')

Charge of the proton

unyt.physical_constants.charge_proton_mks = unyt_quantity(1.60217662e-19, 'C')

Charge of the proton

unyt.physical_constants.electron_charge = unyt_quantity(-1.60217662e-19, 'C')

Charge of the electron

unyt.physical_constants.charge_electron = unyt_quantity(-1.60217662e-19, 'C')

Charge of the electron

unyt.physical_constants.charge_electron_mks = unyt_quantity(-1.60217662e-19, 'C')

Charge of the electron

unyt.physical_constants.kb = unyt_quantity(1.3806488e-23, 'J/K')

Boltzmann constant

unyt.physical_constants.kboltz = unyt_quantity(1.3806488e-23, 'J/K')

Boltzmann constant

unyt.physical_constants.boltzmann_constant = unyt_quantity(1.3806488e-23, 'J/K')

Boltzmann constant

unyt.physical_constants.boltzmann_constant_mks = unyt_quantity(1.3806488e-23, 'J/K')

Boltzmann constant

unyt.physical_constants.G = unyt_quantity(6.67384e-11, 'm**3/(kg*s**2)')

Gravitational constant

unyt.physical_constants.newtons_constant = unyt_quantity(6.67384e-11, 'm**3/(kg*s**2)')

Gravitational constant

unyt.physical_constants.gravitational_constant = unyt_quantity(6.67384e-11, 'm**3/(kg*s**2)')

Gravitational constant

unyt.physical_constants.gravitational_constant_mks = unyt_quantity(6.67384e-11, 'm**3/(kg*s**2)')

Gravitational constant

unyt.physical_constants.hmks = unyt_quantity(6.62606957e-34, 'J*s')

Planck constant

unyt.physical_constants.planck_constant = unyt_quantity(6.62606957e-34, 'J*s')

Planck constant

unyt.physical_constants.planck_constant_mks = unyt_quantity(6.62606957e-34, 'J*s')

Planck constant

unyt.physical_constants.hbar = unyt_quantity(1.05457173e-34, 'J*s')

Reduced Planck constant

unyt.physical_constants.reduced_planck_constant = unyt_quantity(1.05457173e-34, 'J*s')

Reduced Planck constant

unyt.physical_constants.stefan_boltzmann_constant = unyt_quantity(5.670373e-08, 'W/(K**4*m**2)')

Stefan-Boltzmann constant

unyt.physical_constants.stefan_boltzmann_constant_mks = unyt_quantity(5.670373e-08, 'W/(K**4*m**2)')

Stefan-Boltzmann constant

unyt.physical_constants.CMD_temperature = unyt_quantity(2.726, 'K')

Current CMB temperature

unyt.physical_constants.Tcmb = unyt_quantity(2.726, 'K')

Current CMB temperature

unyt.physical_constants.msun = unyt_quantity(1.98841586e+30, 'kg')

Mass of the sun

unyt.physical_constants.solar_mass = unyt_quantity(1.98841586e+30, 'kg')

Mass of the sun

unyt.physical_constants.mass_sun = unyt_quantity(1.98841586e+30, 'kg')

Mass of the sun

unyt.physical_constants.mass_sun_mks = unyt_quantity(1.98841586e+30, 'kg')

Mass of the sun

unyt.physical_constants.Mjup = unyt_quantity(1.89852343e+27, 'kg')

Mass of Jupiter

unyt.physical_constants.mjup = unyt_quantity(1.89852343e+27, 'kg')

Mass of Jupiter

unyt.physical_constants.jupiter_mass = unyt_quantity(1.89852343e+27, 'kg')

Mass of Jupiter

unyt.physical_constants.mass_jupiter = unyt_quantity(1.89852343e+27, 'kg')

Mass of Jupiter

unyt.physical_constants.mass_jupiter_mks = unyt_quantity(1.89852343e+27, 'kg')

Mass of Jupiter

unyt.physical_constants.mercury_mass = unyt_quantity(3.30104233e+23, 'kg')

Mass of Mercury

unyt.physical_constants.mass_mercury = unyt_quantity(3.30104233e+23, 'kg')

Mass of Mercury

unyt.physical_constants.mass_mercury_mks = unyt_quantity(3.30104233e+23, 'kg')

Mass of Mercury

unyt.physical_constants.venus_mass = unyt_quantity(4.86732058e+24, 'kg')

Mass of Venus

unyt.physical_constants.mass_venus = unyt_quantity(4.86732058e+24, 'kg')

Mass of Venus

unyt.physical_constants.mass_venus_mks = unyt_quantity(4.86732058e+24, 'kg')

Mass of Venus

unyt.physical_constants.Mearth = unyt_quantity(6.0456445e+24, 'kg')

Mass of Earth

unyt.physical_constants.mearth = unyt_quantity(6.0456445e+24, 'kg')

Mass of Earth

unyt.physical_constants.earth_mass = unyt_quantity(6.0456445e+24, 'kg')

Mass of Earth

unyt.physical_constants.mass_earth = unyt_quantity(6.0456445e+24, 'kg')

Mass of Earth

unyt.physical_constants.mass_earth_mks = unyt_quantity(6.0456445e+24, 'kg')

Mass of Earth

unyt.physical_constants.mars_mass = unyt_quantity(6.41691912e+23, 'kg')

Mass of Mars

unyt.physical_constants.mass_mars = unyt_quantity(6.41691912e+23, 'kg')

Mass of Mars

unyt.physical_constants.mass_mars_mks = unyt_quantity(6.41691912e+23, 'kg')

Mass of Mars

unyt.physical_constants.saturn_mass = unyt_quantity(5.68460218e+26, 'kg')

Mass of Saturn

unyt.physical_constants.mass_saturn = unyt_quantity(5.68460218e+26, 'kg')

Mass of Saturn

unyt.physical_constants.mass_saturn_mks = unyt_quantity(5.68460218e+26, 'kg')

Mass of Saturn

unyt.physical_constants.uranus_mass = unyt_quantity(8.6819089e+25, 'kg')

Mass of Uranus

unyt.physical_constants.mass_uranus = unyt_quantity(8.6819089e+25, 'kg')

Mass of Uranus

unyt.physical_constants.mass_uranus_mks = unyt_quantity(8.6819089e+25, 'kg')

Mass of Uranus

unyt.physical_constants.neptune_mass = unyt_quantity(1.02431036e+26, 'kg')

Mass of Neptune

unyt.physical_constants.mass_neptune = unyt_quantity(1.02431036e+26, 'kg')

Mass of Neptune

unyt.physical_constants.mass_neptune_mks = unyt_quantity(1.02431036e+26, 'kg')

Mass of Neptune

unyt.physical_constants.m_pl = unyt_quantity(2.17650925e-08, 'g')

Planck mass

unyt.physical_constants.planck_mass = unyt_quantity(2.17650925e-08, 'g')

Planck mass

unyt.physical_constants.l_pl = unyt_quantity(1.61619926e-35, 'cm')

Planck length

unyt.physical_constants.planck_length = unyt_quantity(1.61619926e-35, 'cm')

Planck length

unyt.physical_constants.t_pl = unyt_quantity(5.39106042e-44, 's')

Planck time

unyt.physical_constants.planck_time = unyt_quantity(5.39106042e-44, 's')

Planck time

unyt.physical_constants.E_pl = unyt_quantity(1.95614896e+09, 'erg')

Planck energy

unyt.physical_constants.planck_energy = unyt_quantity(1.95614896e+09, 'erg')

Planck energy

unyt.physical_constants.q_pl = unyt_quantity(1.87554596e-18, 'C')

Planck charge

unyt.physical_constants.planck_charge = unyt_quantity(1.87554596e-18, 'C')

Planck charge

unyt.physical_constants.T_pl = unyt_quantity(1.41683313e+32, 'K')

Planck tempearture

unyt.physical_constants.planck_temperature = unyt_quantity(1.41683313e+32, 'K')

Planck tempearture

unyt.physical_constants.mu_0 = unyt_quantity(1.25663706e-06, 'N/A**2')

Permeability of Free Space

unyt.physical_constants.eps_0 = unyt_quantity(8.85418782e-12, 'C**2/(N*m**2)')

Permittivity of Free Space

unyt.physical_constants.standard_gravity = unyt_quantity(9.80665, 'm/s**2')

Standard gravitational acceleration

unyt.physical_constants.standard_gravity_mks = unyt_quantity(9.80665, 'm/s**2')

Standard gravitational acceleration