Skip to content

Commit 97877a9

Browse files
authored
Merge pull request #361 from crystal-growth/add_speed_of_light_unit
Add speed of light and Hartree atomic unit of velocity as velocity units
2 parents 974449f + ed2dcea commit 97877a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/si/velocity.rs

+11
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ quantity! {
6767
@mile_per_second: 1.609_344_E3; "mi/s", "mile per second", "miles per second";
6868
@millimeter_per_minute: 1.666_666_666_666_666_667_E-5; "mm/min", "millimeter per minute",
6969
"millimeters per minute";
70+
71+
/// Hartree atomic unit of velocity a₀ · Eₕ/ħ, where a₀ is Bohr radius, Eₕ is Hartree energy,
72+
/// and ħ is reduced Planck constant
73+
@atomic_unit_of_velocity: 2.187_691_263_64_E6; "a₀ · Eₕ/ħ", "atomic unit of velocity",
74+
"atomic units of velocity";
75+
/// Speed of light in vacuum, CODATA 2018
76+
@natural_unit_of_velocity: 299_792_458.0; "c", "natural unit of velocity",
77+
"natural units of velocity";
78+
/// Speed of light in vacuum, CODATA 2018
79+
@speed_of_light_in_vacuum: 299_792_458.0; "c", "speed of light in vacuum",
80+
"speeds of light in vacuum";
7081
}
7182
}
7283

0 commit comments

Comments
 (0)