Skip to content

Library defined units and format


Format IO

std::ostream adaptor operator << is defined in header <dimensional/io.hpp>.

example

// begin example
#include <dimensional/quantity.hpp>
#include <dimensional/systems/si/all.hpp>
#include <dimensional/io.hpp>

int main() {
    using mitama::quantity_t;
    namespace si = mitama::systems::si;

    quantity_t a = 1 | si::meters;

    std::cout << a << '\n'; // 1 [m]
}
// end example

SI basic units

type name
quantifier name
Unit symbol Quantity measured
metre_t/meter_t
metre/meter
m length
kilogram_t
kilogram
kg mass
second_t
second
s time
ampere_t
ampere
A electric current
kelvin_t
kelvin
K temperature
mole_t
mole
mol amount of substance
candela_t
candela
cd luminous intensity

Non SI units

type name
quantifier name
Unit symbol Equivalents in terms of SI units
hectare_t
hectare
ha
litre_t/liter_t
litre/liter
L
tonne_t
tonne
t
au_t
au
au
minute_t
minutes
min
hour_t
hours
h
day_t
days
d

Named units derived from SI base units

type name
quantifier Name
Symbol Quantity Equivalents SI base unit Equivalents
hertz_t
hertz
Hz frequency
radian_t
radian
rad angle
steradian_t
steradian
sr solid angle
newton_t
newton
N force
weight
pascal_t
pascal
Pa pressure
stress
joule_t
joule
J energy
work
heat
watt_t
watt
W power
radiant flux
coulomb_t
coulomb
C electric charge
quantity of electricity
volt_t
volt
V voltage
electrical potential difference
farad_t
farad
F electrical capacitance
ohm_t
ohm
electrical resistance
impedance, reactance
siemens_t
siemens
S electrical conductance
weber_t
weber
Wb magnetic flux
tesla_t
tesla
T magnetic induction
magnetic flux density
henry_t
henry
H electrical inductance
degree_celsius_t
degree_celsius
°C temperature relative to 273.15 K
lumen_t
lumen
lm luminous flux
lux_t
lux
lx illuminance
becquerel_t
becquerel
Bq radioactivity
(decays per unit time)
gray_t
gray
Gy absorbed dose
(of ionizing radiation)
sievert_t
sievert
Sv equivalent dose
(of ionizing radiation)
katal_t
katal
kat catalytic activity

Kinematic SI derived units

type name
quantifier Name
Symbol Expression in termsof SI base units
velocity_t
velocity
acceleration_t
acceleration
jerk_t
jerk
snap_t
snap
crackle_t
crackle
pop_t
pop
angular_velocity_t
angular_velocity
angular_acceleration_t
angular_acceleration
frequency_drift_t
frequency_drift
volumetric_flow_t
volumetric_flow

Molar SI derived units

type name
quantifier Name
Symbol Expression in terms of SI base units
molarity_t
molarity
molar_volume_t
molar_volume_t
molar_entropy_t
molar_entropy
molar_heat_capacity_t
molar_heat_capacity
molar_energy_t
molar_energy
molar_conductivity_t
molar_conductivity
molality_t
molality
molar_mass_t
molar_mass
catalytic_efficiency_t
catalytic_efficiency

Electromagnetic SI derived units

type name
quantifier Name
Symbol Expression in terms of SI base units
electric_displacement_field_t
electric_displacement_field
polarization_density_t
polarization_density
---
electric_charge_density_t
electric_charge_density
electric_current_density_t
electric_current_density
electrical_conductivity_t
electrical_conductivity
permittivity_t
permittivity
permeability_t
permeability
electric_field_strength_t
electric_field_strength
magnetization_t
magnetization
exposure_t
exposure
resistivity_t
resistivity
linear_charge_density_t
linear_charge_density
magnetic_dipole_moment_t
magnetic_dipole_moment
---
electron_mobility_t
electron_mobility
magnetic_reluctance_t
magnetic_reluctance
magnetic_vector_potential_t
magnetic_vector_potential
magnetic_moment_t
magnetic_moment
magnetic_rigidity_t
magnetic_rigidity
magnetomotive_force_t
magnetomotive_force
---
magnetic_susceptibility_t
magnetic_susceptibility

Photometric SI derived units

type name
quantifier Name
Symbol Expression in terms of SI base units
luminous_energy_t
luminous_energy
luminous_exposure_t
luminous_energy
luminance_t
luminous_energy
luminous_efficacy_t
luminous_energy

Thermodynamic SI derived units

type name
quantifier Name
Symbol Expression in terms of SI base units
heat_capacity_t
specific_entropy
entropy_t
entropy
specific_heat_capacity_t
specific_heat_capacity
specific_entropy_t
specific_entropy
thermal_conductivity_t
thermal_conductivity
thermal_resistance_t
thermal_resistance
thermal_expansion_coefficient_t
thermal_expansion_coefficient
temperature_gradient_t
temperature_gradient