Units
Caution
This is draft documentation.
Note
INQ is under active development.
here are several units systems that are used at the atomic level, and many times they are mixed. For users this can be cumbersome, confusing, and many times leads to errors. To avoid this problem, in inq all the quantities must explicitly include the unit they are in. With C++ this can be done in a simple and elegant way.
For example, to define an energy magnitude we could do::
auto hydrogen_energy = 13.6_electronvolt;
Units supported by inq
Length
Bohr:
_b, _bohrAngstrom:
_A, _angstromMetric:
_nm, _nanometer, _pm, _picometer
Energy
Hartree:
_ha, _Ha, _hartreeRydberg:
_ry, _Ry, _rydbergElectronvolt:
_ev, _eV, _electronvoltKelvin:
_K, _kelvin
Time
Atomic:
_atomictimeMetric:
_as, _attosecond, _fs, _femtosecond, _ps, _picosecond, _ns, _nanosecondFrom energy: a scalar divided by an energy magnitude results in a magnitude of time.