UnitSystems.jl
Physical unit systems (Metric, English, Natural, etc...)
In aggregate, the UnitSystem
data generated
here constitutes a new universal standardization for
dimensional analysis, which generalizes upon previous
historical systems up to the 2019 redefinition and unifies
them in a common Universe
. This enables a more
precise and generalized standardization than the 2019
redefinition, which was comparatively limited in scope.
Specified default UnitSystem
values are to be
taken as a newly defined mutually-compatible recommended
standard, verified to be consistent and coherent. A
UnitSystem
can only be useful as a measuring
standard if it can be scientifically reproduced, so the
data here has been implemented in several important
scientific programming languages (initially in the Julia
language but also Wolfram language and Rust langauge) as
well as presented abstractly in terms of dimensional
formulas.
In fact there is nothing transcendental about dimensions; the ultimate principle is precisely expressible (in Newton's terminology) as one of similitude, exact or approximate, to be tested by the rule that mere change in the magnitudes of the ordered scheme of units of measurement that is employed must not affect sensibly the forms of the equations that are the adequate expression of the underlying relations of the problem. (J.L., 1914)
Specifications for dimensional units are in the UnitSystems.jl
and Similitude.jl
and MeasureSystems.jl
repositories. The three packages are designed so that they
can be interchanged with compatibility. On its own
UnitSystems
is the fastest package, while
Similitude
(provides Quantity
type) and MeasureSystems
(introduces Measurements.jl
uncertainty) build additional features on top of
UnitSystems
base defintions. Additionally, in
the UnitSystems
repository there is an
equivalent Wolfram
language paclet Kernel
and also an
unmaintained Rust src
implementation. Defaults
are shared: Metric
, SI2019
,
CODATA
, Conventional
,
International
, InternationalMean
,
MetricTurn
, MetricGradian
,
MetricDegree
, MetricArcminute
,
MetricArcsecond
, Engineering
,
Gravitational
, FPS
,
IPS
, British
,
English
, Survey
,
Gauss
, LorentzHeaviside
,
EMU
, ESU
, IAU
,
IAUE
, IAUJ
, Hubble
,
Cosmological
,
CosmologicalQuantum
, Meridian
,
Nautical
, MPH
, KKH
,
MTS
, FFF
, Planck
,
PlanckGauss
, Stoney
,
Hartree
, Rydberg
,
Schrodinger
, Electronic
,
Natural
, NaturalGauss
,
QCD
, QCDGauss
,
QCDoriginal
.
julia> using UnitSystems # or Similitude or MeasureSystems
An optional environment variable
ENV["SIMILITUDE"]
induces
UnitSystems.similitude()
to return
true
, giving flexibility for building
dependencies whenever it is desirable to toggle usage
between UnitSystems
(default) and
Similitude
(requires environment variable
specification). For example, in MeasureSystems
and Geophysics
this option is used to increase
flexibility with variety in local compilation workflow.
A UnitSystem
is a consistent set of
dimensional values selected to accomodate a particular use
case or standardization. It is possible to convert derived
physical quantities from any UnitSystem
specification into any other using accurate values. Eleven
fundamental constants kB
, ħ
,
𝘤
, μ₀
, mₑ
,
Mᵤ
, Kcd
, θ
,
λ
, αL
, g₀
are used
to govern a specific unit system consistent scaling. These
are the constants boltzmann
,
planckreduced
, lightspeed
,
vacuumpermeability
, electronmass
,
molarmass
, luminousefficacy
,
angle
, rationalization
,
lorentz
, and gravity
. Different
choices of natural units or physical measurements result in
a variety of unit systems for many purposes.
Main documentation is at https://units.crucialflow.com/unitsystems
Historically, older electromagnetic unit systems also
relied on a rationalization
constant
λ
and a lorentz
force
proportionality constant αL
. In most unit
systems these extra constants have a value of
1
unless specified.
UnitSystem{kB, ħ, 𝘤, μ₀, mₑ, Mᵤ, (Kcd, θ, λ, αL, g₀, ...)}
Fundamental constants of physics are: kB
Boltzmann's constant, ħ
reduced Planck's
constant, 𝘤
speed of light, μ₀
vacuum permeability, mₑ
electron rest mass,
Mᵤ
molar mass, Kcd
luminous
efficacy, θ
angle measure, λ
Gauss rationalization, αL
Lorentz's constant,
and g₀
gravitational force reference.
Primarily the Metric
SI unit system is used in
addition to the historic English
engineering
unit system. These constants induce derived values for
avogadro
, boltzmann
,
molargas
, planck
,
planckreduced
, lightspeed
,
planckmass
, dalton
,
protonmass
, electronmass
,
newton
, einstein
,
vacuumpermeability
,
vacuumpermittivity
,
electrostatic
, and additional constants
molarmass
, luminousefficacy
,
gravity
, angle
,
turn
, spat
, stefan
,
radiationdensity
, magnetostatic
,
lorentz
, biotsavart
,
rationalization
, vacuumimpedance
,
elementarycharge
, magneton
,
conductancequantum
, faraday
,
magneticfluxquantum
, josephson
,
klitzing
, hartree
,
rydberg
, bohr
.
Physics constant documentation is at https://units.crucialflow.com/constants
Standardized unit/derived quantities are
hyperfine
, loschmidt
,
wienwavelength
, wienfrequency
,
mechanicalheat
, eddington
,
solarmass
, jupitermass
,
earthmass
, lunarmass
,
earthradius
, greatcircle
,
radarmile
, hubble
,
cosmological
, radian
,
steradian
, degree
,
squaredegree
, gradian
,
arcminute
, arcsecond
,
second
, minute
,
hour
, day
,
gaussianmonth
, siderealmonth
,
synodicmonth
, year
,
gaussianyear
, siderealyear
,
jovianyear
, angstrom
,
inch
, foot
,
surveyfoot
, yard
,
meter
, earthmeter
,
mile
, statutemile
,
meridianmile
, admiraltymile
,
nauticalmile
, lunardistance
,
astronomicalunit
,
jupiterdistance
, lightyear
,
parsec
, bubnoff
,
ips
, fps
, fpm
,
ms
, kmh
, mph
,
knot
, mps
, barn
,
hectare
, acre
,
surveyacre
, liter
,
gallon
, quart
, pint
,
cup
, fluidounce
,
teaspoon
, tablespoon
,
grain
, gram
,
earthgram
, kilogram
,
tonne
, ton
, pound
,
ounce
, slug
, slinch
,
hyl
, dyne
, newton
,
poundal
, poundforce
,
kilopond
, psi
,
pascal
, bar
, barye
,
technicalatmosphere
, atmosphere
,
inchmercury
, torr
,
electronvolt
, erg
,
joule
, footpound
,
calorie
, kilocalorie
,
meancalorie
, earthcalorie
,
thermalunit
, gasgallon
,
tontnt
, watt
,
horsepower
, horsepowerwatt
,
horsepowermetric
,
electricalhorsepower
,
tonsrefrigeration
,
boilerhorsepower
, coulomb
,
earthcoulomb
, ampere
,
volt
, henry
, ohm
,
siemens
, farad
,
weber
, tesla
,
abcoulomb
, abampere
,
abvolt
, abhenry
,
abohm
, abmho
,
abfarad
, maxwell
,
gauss
, oersted
,
gilbert
, statcoulomb
,
statampere
, statvolt
,
stathenry
, statohm
,
statmho
, statfarad
,
statweber
, stattesla
,
kelvin
, rankine
,
celsius
, fahrenheit
,
sealevel
, boiling
,
mole
, earthmole
,
poundmole
, slugmole
,
slinchmole
, katal
,
amagat
, lumen
,
candela
, lux
, phot
,
footcandle
, nit
,
apostilb
, stilb
,
lambert
, footlambert
,
bril
, neper
, bel
,
decibel
, hertz
, apm
,
rpm
, kayser
,
diopter
, gforce
,
galileo
, eotvos
,
darcy
, poise
, reyn
,
stokes
, rayl
, mpge
,
langley
, jansky
,
solarflux
, curie
,
gray
, roentgen
,
rem
.
Standard physics units are at https://units.crucialflow.com/units
Additional reference UnitSystem
variants:
EMU
, ESU
, Gauss
,
LorentzHeaviside
, SI2019
,
SI1976
, CODATA
,
Conventional
, International
,
InternationalMean
, Engineering
,
Gravitational
, IAU
,
IAUE
, IAUJ
, FPS
,
IPS
, British
,
Survey
, Hubble
,
Cosmological
,
CosmologicalQuantum
, Meridian
,
Nautical
, MPH
, KKH
,
MTS
, FFF
; and natural atomic
units based on gravitational coupling
and
finestructure
constant (Planck
,
PlanckGauss
, Stoney
,
Hartree
, Rydberg
,
Schrodinger
, Electronic
,
Natural
, NaturalGauss
,
QCD
, QCDGauss
, and
QCDoriginal
).
Unit conversion documentation is at https://units.crucialflow.com/convert
Derived Unit conversions:
Mechanics: angle
, solidangle
,
time
, angulartime
,
length
, angularlength
,
area
, angulararea
,
volume
, wavenumber
,
angularwavenumber
,
fuelefficiency
, numberdensity
,
frequency
, angularfrequency
,
frequencydrift
, stagnance
,
speed
, acceleration
,
jerk
, snap
, crackle
,
pop
, volumeflow
,
etendue
, photonintensity
,
photonirradiance
, photonradiance
,
inertia
, mass
,
massflow
, lineardensity
,
areadensity
, density
,
specificweight
, specificvolume
,
force
, specificforce
,
gravityforce
, pressure
,
compressibility
, viscosity
,
diffusivity
, rotationalinertia
,
impulse
, momentum
,
angularmomentum
, yank
,
energy
, specificenergy
,
action
, fluence
,
power
, powerdensity
,
irradiance
, radiance
,
radiantintensity
, spectralflux
,
spectralexposure
, soundexposure
,
impedance
, specificimpedance
,
admittance
, compliance
,
inertance
; Electromagnetics:
charge
, chargedensity
,
linearchargedensity
, exposure
,
mobility
, current
,
currentdensity
, resistance
,
conductance
, resistivity
,
conductivity
, capacitance
,
inductance
, reluctance
,
permeance
, permittivity
,
permeability
, susceptibility
,
specificsusceptibility
,
demagnetizingfactor
,
vectorpotential
,
electricpotential
,
magneticpotential
, electricfield
,
magneticfield
, electricflux
,
magneticflux
,
electricdisplacement
,
magneticfluxdensity
,
electricdipolemoment
,
magneticdipolemoment
,
electricpolarizability
,
magneticpolarizability
,
magneticmoment
,
specificmagnetization
,
polestrength
; Thermodynamics:
temperature
, entropy
,
specificentropy
,
volumeheatcapacity
,
thermalconductivity
,
thermalconductance
,
thermalresistivity
,
thermalresistance
,
thermalexpansion
, lapserate
,
molarmass
, molality
,
mole
, molarity
,
molarvolume
, molarentropy
,
molarenergy
, molarconductivity
,
molarsusceptibility
, catalysis
,
specificity
, diffusionflux
,
luminousflux
, luminousintensity
,
luminance
, illuminance
,
luminousenergy
, luminousexposure
,
luminousefficacy
.
Generalized dimensionless
Coupling
:
Coupling{αG,α,μₑᵤ,μₚᵤ,ΩΛ}
Specification of Universe
with the
dimensionless Coupling
constants
coupling
, finestructure
,
electronunit
, protonunit
,
protonelectron
, and
darkenergydensity
. Alterations to these values
can be facilitated and quantified using parametric
polymorphism. Due to the Coupling
interoperability, the MeasureSystems
package
is made possible to support calculations with
Measurements
having error standard
deviations.
Appendix
- Definition
- Unified
- Metric
- SI2019
- SI1976
- CODATA
- Conventional
- International
- InternationalMean
- MetricTurn
- MetricSpatian
- MetricGradian
- MetricDegree
- MetricArcminute
- MetricArcsecond
- Engineering
- Gravitational
- MTS
- EMU
- ESU
- Gauss
- LorentzHeaviside
- FPS
- IPS
- British
- English
- Survey
- MPH
- KKH
- Nautical
- Meridian
- IAU☉
- IAUE
- IAUJ
- Hubble
- Cosmological
- CosmologicalQuantum
- Planck
- PlanckGauss
- Stoney
- Hartree
- Rydberg
- Schrodinger
- Electronic
- Natural
- NaturalGauss
- QCD
- QCDGauss
- QCDoriginal
Conversion Ratio
- Metric -> SI2019
- SI2019 -> Metric
- Metric -> CODATA
- CODATA -> Metric
- SI2019 -> CODATA
- CODATA -> SI2019
- Metric -> Conventional
- Conventional -> Metric
- SI2019 -> Conventional
- Conventional -> SI2019
- Metric -> International
- International -> Metric
- SI2019 -> International
- International -> SI2019
- Metric -> InternationalMean
- InternationalMean -> Metric
- SI2019 -> InternationalMean
- InternationalMean -> SI2019
- Metric -> Engineering
- Engineering -> Metric
- Metric -> Gravitational
- Gravitational -> Metric
- Metric -> EMU
- EMU -> Metric
- SI2019 -> EMU
- EMU -> SI2019
- Metric -> ESU
- ESU -> Metric
- SI2019 -> ESU
- ESU -> SI2019
- Metric -> Gauss
- Gauss -> Metric
- SI2019 -> Gauss
- Gauss -> SI2019
- Metric -> LorentzHeaviside
- LorentzHeaviside -> Metric
- SI2019 -> LorentzHeaviside
- LorentzHeaviside -> SI2019
- Metric -> English
- English -> Metric
- SI2019 -> English
- English -> SI2019
- Metric -> British
- British -> Metric
- SI2019 -> British
- British -> SI2019
- British -> English
- English -> British
- Metric -> IPS
- IPS -> Metric
- SI2019 -> IPS
- IPS -> SI2019
- IPS -> British
- British -> IPS
- Metric -> FPS
- FPS -> Metric
- SI2019 -> FPS
- FPS -> SI2019
- FPS -> English
- English -> FPS
- FPS -> British
- British -> FPS
- FPS -> MPH
- MPH -> FPS
- Nautical -> FPS
- FPS -> Nautical
- Nautical -> MPH
- MPH -> Nautical
- Nautical -> KKH
- KKH -> Nautical
- Nautical -> Metric
- Metric -> Nautical
- Meridian -> Metric
- Metric -> Meridian
- IAU☉ -> Metric
- Metric -> IAU☉
- Metric -> Planck
- Planck -> Metric
- SI2019 -> Planck
- Planck -> SI2019
- Metric -> PlanckGauss
- PlanckGauss -> Metric
- SI2019 -> PlanckGauss
- PlanckGauss -> SI2019
- Metric -> Stoney
- Stoney -> Metric
- SI2019 -> Stoney
- Stoney -> SI2019
- Metric -> Hartree
- Hartree -> Metric
- SI2019 -> Hartree
- Hartree -> SI2019
- Metric -> Rydberg
- Rydberg -> Metric
- SI2019 -> Rydberg
- Rydberg -> SI2019
- Metric -> Schrodinger
- Schrodinger -> Metric
- SI2019 -> Schrodinger
- Schrodinger -> SI2019
- Metric -> Electronic
- Electronic -> Metric
- SI2019 -> Electronic
- Electronic -> SI2019
- Metric -> Natural
- Natural -> Metric
- SI2019 -> Natural
- Natural -> SI2019
- Metric -> NaturalGauss
- NaturalGauss -> Metric
- SI2019 -> NaturalGauss
- NaturalGauss -> SI2019
- Metric -> QCD
- QCD -> Metric
- SI2019 -> QCD
- QCD -> SI2019
- Metric -> QCDGauss
- QCDGauss -> Metric
- SI2019 -> QCDGauss
- QCDGauss -> SI2019
- Metric -> QCDoriginal
- QCDoriginal -> Metric
- SI2019 -> QCDoriginal
- QCDoriginal -> SI2019
Other similar packages include Similitude.jl, MeasureSystems.jl, PhysicalConstants.jl, MathPhysicalConstants.jl, Unitful.jl, UnitfulUS.jl, UnitfulAstro.jl, UnitfulAtomic.jl, NaturallyUnitful.jl, and UnitfulMoles.jl.