Unit System¶
Introduction¶
A unit system groups related units together, giving the group a name and an abbreviation, allowing for internationalization. The SI unit system subdivides into SI-base, SI-accepted and SI-derived. Similarly, the CGS (Centimeter-Gram-Second) unit system contains the CGS-EMU system and the CGS-ESU system. Every unit belongs to a unit system.
The SI-base units are the seven units from which all other SI units can be derived https://en.wikipedia.org/wiki/SI_base_unit. The exact definitions of these units are occasionally updated when more precise and consistent ways to measure them are agreed upon. Generally, each newer definition results in a new value that matches the older one as precisely as was technically achievable at the date of the change.
All SI-derived units are defined in terms of one or more SI base units. E.g. the unit for electrical charge (coulomb) is defined in terms of the SI-base unit for electrical current (ampere) and the SI-base unit for time (second). An electrical current of 1 ampere transfers one coulomb of electrical charge every second. Mathematically: 1 C = 1 A * 1 s. Any change in the definition of one of the underlying base units (i.c. ampere or second) affects the value of such a derived unit to ensure that the equation is true in every version of the SI system.
The SI-accepted units are conveniance units that are commonly used. E.g. minute, hour and day for time, liter for volume, electronvolt for energy, and degree, minute and second for angles.
The CGS-EMU system extends the CGS system with units for electromagnetic quantities. The CGS-ESU system extends the CGS system with units for electrostatic quantities. See Centimetre–gram–second system of units.
The unit system serves no other purpose than being able to see whether two units belong to the 'same' unit system or not. It is not used in any calculations. It is fully localized with the resource bundles, though.
Available unit systems¶
The following unit systems are defined in DJUNITS:
- CGS: centimeter-gram-second system.
- CGS-ESU: centimeter-gram-second system, electrostatic units.
- CGS_EMU: centimeter-gram-second system, electromagnetic units.
- IMPERIAL: Imperial system.
- MTS: meter-tonne-second system.
- OTHER: Other (or no) system.
- SI_ACCEPED: SI units, accepted for use in addition to SI.
- SI_BASE: SI base units: temperature, time, length, mass, luminous intensity, amount of substance and electric current.
- SI_DERIVED: SI derived units, by combining SI-base elements (and quantifiers such as milli or kilo).
- US_CUSTOMARY: US additions to the Imperial system.
- AU: Atomic Unit system.
It is possible to add a unit system in user code, which can subsequently be used to define a unit using that unit system.