Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions core/src/units/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,48 @@ const CONSTANTS: &[UnitTuple] = &[
),
("gravity", "", "=9.80665 m/s^2", ""),
("force", "", "gravity", ""), // used to convert some units
(
"stefan_boltzmann",
"",
"=2*pi^5*boltzmann^4/15/c^2/planck^3",
"Stefan-Boltzmann constant (exact)",
),
(
"gas_constant",
"",
"=avogadro*boltzmann",
"molar gas constant (exact)",
),
(
"vacuum_permittivity",
"",
"=8.8541878188e-12 farad/m",
"Vacuum dielectric permittivity",
),
(
"reduced_planck",
"",
"=planck/2/pi",
"reduced Planck constant (exact)",
),
(
"elementary_charge",
"",
"=1.602176634e-19 coulomb",
"magnitude of the charge of an electron (exact)",
),
(
"faraday",
"",
"=elementary_charge*avogadro",
"Faraday constant (exact)",
),
(
"vacuum_permeability",
"",
"=1.25663706127e-6 N/A^2",
"Vacuum magnetic permeability",
),
];

const ANGLES: &[UnitTuple] = &[
Expand Down
Loading