Constants#

Colab Open in Kaggle

brainunit contains a number of physical constants.

You can import a Constant from the brainunit package:

from brainunit import constants

Avogadro Number#

Avogadro’s number, number of units in one mole of any substance (defined as its molecular weight in grams), equal to \(6.02214076 × 10^{23}\). The units may be electrons, atoms, ions, or molecules, depending on the nature of the substance and the character of the reaction (if any).See also Avogadro’s law.

constants.avogadro
Quantity(6.0221406e+23, "1 / mol")

Boltzmann constant#

Boltzmann constant, (symbol \(k\)), a fundamental constant of physics occurring in nearly every statistical formulation of both classical and quantum physics. The constant is named after Ludwig Boltzmann, a 19th-century Austrian physicist, who substantially contributed to the foundation and development of statistical mechanics, a branch of theoretical physics. Having dimensions of energy per degree of temperature, the Boltzmann constant has a defined value of \(1.380649 × 10^{−23}\) joule per kelvin (K), or \(1.380649 × 10^{−16}\) erg per kelvin. The molar gas constant \(R\) is defined as Avogadro’s number times the Boltzmann constant.

constants.boltzmann
Quantity(1.380649e-23, "J / K")

Electric constant#

The electric constant, also known as the vacuum permittivity, permittivity of free space, or the Dielectric constant of free space, is an ideal, (baseline) physical constant, which is the value of the absolute dielectric permittivity of classical vacuum. Its value is: \(ε_0 = 8.8541878188(14)×10^{−12}\) farads per metre.

constants.electric
Quantity(8.854188e-12, "F / m")

Electron mass#

The electron mass is the mass of a subatomic particle with a negative elementary electric charge. The value is \(9.1093837015 × 10^{−31}\) kg

constants.electron_mass
Quantity(9.109383e-31, "kg")

Elementary charge#

The elementary charge, usually denoted as \(e\) or sometimes \(q_e\), is the electric charge carried by a single proton or, equivalently, the absolute value of the electric charge carried by a single electron, equal to \(1.602176634 × 10^{−19}\) coulomb.

constants.elementary_charge
Quantity(1.6021766e-19, "C")

Faraday constant#

Faraday, unit of electricity, used in the study of electrochemical reactions and equal to the amount of electric charge that liberates one gram equivalent of any ion from an electrolytic solution. It was named in honour of the 19th-century English scientist Michael Faraday and equals \(9.648533289 × 10^4\) coulombs, or \(6.022140857 × 10^{23}\) electrons (see also Avogadro’s law).

constants.faraday
Quantity(96485.336, "C / mol")

Gas constant#

Universal gas constant, (symbol \(R\)), fundamental physical constant arising in the formulation of the ideal gas law. For an ideal gas (approximated by most real gases that are not highly compressed or not near the point of liquefaction), the pressure \(P\) times the volume \(V\) of the gas divided by its absolute temperature \(T\) is a constant. When one of these three is altered for a given mass of gas, at least one of the other two undergoes a change so that the expression \(PV/T\) remains constant. The constant, further, is the same for all gases, provided that the mass of gas being compared is one mole, or one molecular weight in grams. For one mole, therefore, \(PV/T = R\).

The dimensions of the universal gas constant \(R\) are energy per degree per mole. In the metre-kilogram-second system, the value of \(R\) is \(8.31446261815324\) joules per kelvin (\(K\)) per mole. The universal gas constant is defined as Avogadro’s number \(N_A\) times the Boltzmann constant \(k\).

constants.gas
Quantity(8.314463, "J / (K * mol)")

Magnetic constant#

The magnetic constant \(μ_0\) (also known as vacuum permeability or permeability of free space) is a universal physical constant, an electromagnetic property of classical vacuum, relating mechanical and electromagnetic units of measurement. In the International System of Units (SI), its value is exactly expressed by:

\(μ0 = 4π × 10^{−7}\) N/A² = \(4π×10^{−7}\) henry/metre (H/m) , or approximately \(1.2566×10^{−6}\) H/m.

constants.magnetic
Quantity(1.256637e-06, "N / A^2")

Molar mass constant#

The molar mass constant, usually denoted by Mu, is a physical constant defined as one twelfth of the molar mass of carbon-12: \(M_u = M(^{12}C)/12\). The molar mass of any element or compound is its relative atomic mass (atomic weight) or relative molecular mass (molecular weight) multiplied by the molar mass constant.

constants.molar_mass
Quantity(0.001, "kg / mol")

Zero Celsius#

Zero Celsius is the temperature at which the Celsius scale sets the freezing point of water at 0 degrees, equal to 273.15 kelvins.

constants.zero_celsius
Quantity(273.15, "K")