Skip to content

Commit eb2ca80

Browse files
authored
Merge pull request #107 from tp2750/constants_2025-07-13
Add section on physical constants.
2 parents 42177fd + a0be8b6 commit eb2ca80

File tree

2 files changed

+136
-1
lines changed

2 files changed

+136
-1
lines changed
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
+++
2+
title = "Physical Constants"
3+
+++
4+
5+
# Physical Constants
6+
7+
\toc
8+
9+
## Overview
10+
11+
Several packages collect physical constants.
12+
13+
14+
## Packages
15+
16+
### PhysicalConstants.jl
17+
{{badge PhysicalConstants}}
18+
19+
>Collection of fundamental physical constants with uncertainties. It supports arbitrary-precision constants.
20+
21+
This is part of the [JuliaPhysics](https://github.com/JuliaPhysics) organization.
22+
It contains data from 3 datasets[^1] each as it's own submodule: `PhysicalConstants.CODATA2014`, `PhysicalConstants.CODATA2018`, `PhysicalConstants.CODATA2022`.
23+
24+
List of constants 24: [CODATA2022](https://juliaphysics.github.io/PhysicalConstants.jl/dev/constants/).
25+
26+
27+
| Long name | Short | Value | Unit |
28+
|---------------------------------------|-------|------------------------|----------------|
29+
| AtomicMassConstant | m_u | 1.66053906892e-27 | kg |
30+
| AvogadroConstant | N_A | 6.02214076e23 | mol^-1 |
31+
| BohrMagneton | μ_B | 9.2740100657e-24 | J T^-1 |
32+
| BohrRadius | a_0 | 5.29177210544e-11 | |
33+
| BoltzmannConstant | k_B | 1.380649e-23 | J K^-1 |
34+
| CharacteristicImpedanceOfVacuum | Z_0 | 376.730313412 | |
35+
| ElectronMass | m_e | 9.1093837139e-31 | kg |
36+
| ElementaryCharge | e | 1.602176634e-19 | |
37+
| FineStructureConstant | α | 0.0072973525643 | |
38+
| MolarGasConstant | R | 8.31446261815324 | J K^-1 mol^-1 |
39+
| NeutronMass | m_n | 1.67492750056e-27 | kg |
40+
| NewtonianConstantOfGravitation | G | 6.6743e-11 | m^3 kg^-1 s^-2 |
41+
| PlanckConstant | h | 6.62607015e-34 | J s |
42+
| ProtonMass | m_p | 1.67262192595e-27 | kg |
43+
| ReducedPlanckConstant | ħ | 1.0545718176461565e-34 | J s |
44+
| RydbergConstant | R_| 1.0973731568157e7 | m^-1 |
45+
| SpeedOfLightInVacuum | c_0 | 2.99792458e8 | m s^-1 |
46+
| StandardAccelerationOfGravitation | g_n | 9.80665 | m s^-2 |
47+
| StandardAtmosphere | atm | 101325.0 | Pa |
48+
| StefanBoltzmannConstant | σ | 5.6703744191844294e-8 | W K^-4 m^-2 |
49+
| ThomsonCrossSection | σ_e | 6.6524587051e-29 | m^2 |
50+
| VacuumElectricPermittivity | ε_0 | 8.8541878188e-12 | F m^-1 |
51+
| VacuumMagneticPermeability | μ_0 | 1.25663706127e-6 | N A^-2 |
52+
| WienFrequencyDisplacementLawConstant | b′ | 5.878925757646825e10 | Hz K^-1 |
53+
| WienWavelengthDisplacementLawConstant | b | 0.0028977719551851727 | K m |
54+
55+
[PhysicalConstants.jl](https://juliaphysics.github.io/PhysicalConstants.jl) was started in 2018 by [giordano](https://github.com/giordano). He is still the main contributor with a few commits by 6 other developers[^1].
56+
57+
### PeriodicTable.jl
58+
{{badge PeriodicTable}}
59+
60+
>Periodic Table for Julians! 🔥
61+
62+
This is part of the [JuliaPhysics](https://github.com/JuliaPhysics) organization.
63+
Use this i fyou just need standard data on elements: name, appearance, atomic_mass, boil, category, color, density, discovered_by, melt, molar_heat, named_by, number, period, phase, source, spectral_img, summary, symbol, xpos, ypos, shells.
64+
65+
66+
[PeriodicTable.jl](https://github.com/JuliaPhysics/PeriodicTable.jl) was started in 2018 by [rahulkp220](https://github.com/rahulkp220). Since then, it has mainly been maintained by [carstenbauer](https://github.com/carstenbauer) with contributions from 9 others[^1].
67+
68+
### Mendeleev.jl
69+
{{badge Mendeleev}}
70+
71+
>A Julia package for accessing chemical elements data.
72+
73+
This contains (almost) all the same data as [PeriodicTable.jl](https://github.com/JuliaPhysics/PeriodicTable.jl) plus some more: <https://eben60.github.io/Mendeleev.jl/elements_data_fields/>.
74+
Use this if you need more data on the elements.
75+
76+
[Mendeleev.jl](https://github.com/Eben60/Mendeleev.jl) was started in 2022 by [Eben60](https://github.com/Eben60) who is also the top 3 contributor to [PeriodicTable.jl](https://github.com/JuliaPhysics/PeriodicTable.jl). It has only had few updates since 2022 and not by others[^1].
77+
78+
79+
### IsotopeTable.jl
80+
{{badge IsotopeTable}}
81+
82+
>Table of Isotopes for Julians. Interoperable with `PeriodicTable.jl`
83+
84+
[IsotopeTable.jl](https://github.com/Gregstrq/IsotopeTable.jl) was done in 2022 by [Gregstrq](https://github.com/Gregstrq)[^1]. Use this if you need more precise isotope data.
85+
86+
### Unitful.jl
87+
{{badge Unitful}}
88+
89+
The [Unitful.jl](https://github.com/PainterQubits/Unitful.jl) package also contains 19 physical constants in [this section](https://painterqubits.github.io/Unitful.jl/dev/defaultunits/#Physical-constants):
90+
91+
| Const | Value | Description |
92+
|-------|------------------------------------|---------------------------------------|
93+
| G | 6.674,30 × 10^-11 m^3 / (kg × s^2) | universal gravitational constant |
94+
| Na | 6.022,140,76 × 10^23 / mol. | Avogadro's constant |
95+
| R | Na × k | the molar gas constant, |
96+
| R∞ | 1.097,373,156,8160 × 10^-7 / m | Rydberg constant, |
97+
| Z0 | μ0 × c | impedance of free space |
98+
| c0 | 2.997,924,58 × 10^8 m/s | speed of light in a vacuum |
99+
| gn | 9.806,65 m / s^2 | nominal acceleration due to gravity |
100+
| h | 6.626,070,15 × 10^-34 J × s | Planck's constant |
101+
| k | 1.380,649 × 10^-23 J / K | Boltzmann constant |
102+
| me | 9.109,383,7015 × 10^-31 kg | rest mass of an electron |
103+
| mn | 1.674,927,498,04 × 10^-27 kg | rest mass of a neutron |
104+
| mp | 1.672,621,923,69 × 10^-27 kg | rest mass of a proton |
105+
| q | 1.602,176,634 × 10^-19 C | charge of a single electron |
106+
| ħ | h / 2π. | reduced Planck constant |
107+
| Φ0 | h / (2 × q) | superconducting magnetic flux quantum |
108+
| ε0 ϵ0 | 1 / (μ0 × c^2) | vacuum permittivity constant |
109+
| μ0 | 4π × 10^-7 H / m | vacuum permeability constant |
110+
| μB | q × ħ / (2 × me) | Bohr magneton |
111+
| σ | π^2 × k^4 / (60 × ħ^3 × c^2) | Stefan-Boltzmann constant |
112+
113+
Those from [PhysicalConstants.jl](https://juliaphysics.github.io/PhysicalConstants.jl) that are missing here are:
114+
115+
* Bohr Radius
116+
* Standard atmospheric pressure
117+
* Fine Structure Constant
118+
* Thomson Cross Section
119+
* Wien Frequency Displacement Law Constant
120+
* Wien Wavelength Displacement Law Constant
121+
122+
The unique one here is:
123+
* Superconducting magnetic flux quantum
124+
125+
[Unitful.jl](https://github.com/PainterQubits/Unitful.jl) was started in 2016 by [ajkeller34](https://github.com/ajkeller34).
126+
It is currently mainly maintained by [sostock](https://github.com/sostock) and has contributions from 76 developers[^1].
127+
128+
## Star History
129+
{{star_history PhysicalConstants PeriodicTable Mendeleev IsotopeTable Unitful}}
130+
131+
[^1]: By 2025-07-15.

docs/utils.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ const PKGINFOS = [
148148
PkgInfo(pkgname="JDF", username="xiaodaigh", docslink=nothing),
149149
PkgInfo(pkgname="Serde", username="bhftbootcamp", branch="master"),
150150
# PkgInfo(pkgname="LopShelve", username="machkouroke", docslink="https://lopuniverse.me/LopShelve.jl/"),
151+
PkgInfo(pkgname="PeriodicTable", username="JuliaPhysics", branch="master", docslink=nothing),
152+
PkgInfo(pkgname="PhysicalConstants", username="JuliaPhysics", branch="master"),
153+
PkgInfo(pkgname="Mendeleev", username="Eben60", branch="main", docslink="https://eben60.github.io/Mendeleev.jl/"),
154+
PkgInfo(pkgname="IsotopeTable", username="Gregstrq", branch="main", docslink=nothing),
151155
]
152156

153157
function get_pkginfo(pkgname)
@@ -269,4 +273,4 @@ function lx_baz(com, _)
269273
brace_content = Franklin.content(com.braces[1]) # input string
270274
# do whatever you want here
271275
return uppercase(brace_content)
272-
end
276+
end

0 commit comments

Comments
 (0)