Skip to content

Commit

Permalink
Merge pull request #361 from crystal-growth/add_speed_of_light_unit
Browse files Browse the repository at this point in the history
Add speed of light and Hartree atomic unit of velocity as velocity units
  • Loading branch information
iliekturtles authored Nov 7, 2022
2 parents 974449f + ed2dcea commit 97877a9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/si/velocity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ quantity! {
@mile_per_second: 1.609_344_E3; "mi/s", "mile per second", "miles per second";
@millimeter_per_minute: 1.666_666_666_666_666_667_E-5; "mm/min", "millimeter per minute",
"millimeters per minute";

/// Hartree atomic unit of velocity a₀ · Eₕ/ħ, where a₀ is Bohr radius, Eₕ is Hartree energy,
/// and ħ is reduced Planck constant
@atomic_unit_of_velocity: 2.187_691_263_64_E6; "a₀ · Eₕ/ħ", "atomic unit of velocity",
"atomic units of velocity";
/// Speed of light in vacuum, CODATA 2018
@natural_unit_of_velocity: 299_792_458.0; "c", "natural unit of velocity",
"natural units of velocity";
/// Speed of light in vacuum, CODATA 2018
@speed_of_light_in_vacuum: 299_792_458.0; "c", "speed of light in vacuum",
"speeds of light in vacuum";
}
}

Expand Down

0 comments on commit 97877a9

Please sign in to comment.