Expand description
Unit conventions.
All physical quantities are SI internally (metres, kilograms, seconds,
joules, kelvin). Two places deliberately use customary atomic-physics units
at the API boundary, and say so in their names: energies carry an _ev
suffix (electronvolts) and table densities are quoted in g/cm³ in the
source tables. The factors below convert between them; they are exact
because the SI 2019 redefinition fixes the elementary charge and the gram is
a defined fraction of the kilogram.
Constants§
- J_
PER_ EV - Joules per electronvolt. One eV is the elementary charge times one volt
(CODATA 2022 value of
e, exact; seeELEMENTARY_CHARGE). - KG_
M3_ PER_ G_ CM3 - Kilograms per cubic metre for a density of 1 g/cm³ (exact: 1e-3 kg / 1e-6 m³).
- M_
PER_ ANGSTROM - Metres per ångström (exact by definition of the prefix).
Functions§
- ev_to_j
- Convert electronvolts to joules.
- g_
cm3_ to_ kg_ m3 - Convert g/cm³ to kg/m³.
- j_to_ev
- Convert joules to electronvolts.
- kg_
m3_ to_ g_ cm3 - Convert kg/m³ to g/cm³.