1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
use crate::Dim;
use typenum:: { Z0, P1, N1, Square, Cube, Quot, Prod };

pub type Dimensionless = Dim<Z0, Z0, Z0, Z0, Z0, Z0, Z0>;

pub type Length = Dim<P1, Z0, Z0, Z0, Z0, Z0, Z0>;
pub type Mass = Dim<Z0, P1, Z0, Z0, Z0, Z0, Z0>;
pub type Time = Dim<Z0, Z0, P1, Z0, Z0, Z0, Z0>;
pub type Temperature = Dim<Z0, Z0, Z0, P1, Z0, Z0, Z0>;
pub type Amount = Dim<Z0, Z0, Z0, Z0, P1, Z0, Z0>;
pub type Current = Dim<Z0, Z0, Z0, Z0, Z0, P1, Z0>;
pub type Luminous = Dim<Z0, Z0, Z0, Z0, Z0, Z0, P1>;

pub type Frequency = Dim<Z0, Z0, N1, Z0, Z0, Z0, Z0>;
pub type FrequencyAcceleration = Quot<Frequency, Time>;
pub type Area = Square<Length>;
pub type Volume = Cube<Length>;
pub type Velocity = Quot<Length, Time>;
pub type Acceleration = Quot<Velocity, Time>;
pub type Force = Prod<Mass, Acceleration>;
pub type Pressure = Quot<Force, Area>;
pub type Head = Quot<Pressure, Length>;
pub type Energy = Prod<Force, Length>;
pub type Power = Quot<Energy, Time>;
pub type Enthalpy = Quot<Energy, Mass>;
pub type Entropy = Quot<Enthalpy, Temperature>;
pub type Voltage = Quot<Power, Current>;
pub type ElectricFieldStrength = Quot<Voltage, Length>;
pub type ElectricResistance = Quot<Voltage, Current>;
pub type ElectricConductance = Quot<Current, Voltage>;
pub type ElectricalInductance = Quot<MagneticFlux, Current>;
pub type ElectricCharge = Prod<Current, Time>;
pub type Capacitance = Quot<ElectricCharge, Voltage>;
pub type RadiationExposure = Quot<ElectricCharge, Mass>;
pub type MagneticFlux = Prod<Voltage, Time>;
pub type MagneticFluxDensity = Quot<MagneticFlux, Area>;
pub type MagneticFieldStrength = Quot<Current, Length>;
pub type Illuminance = Quot<Luminous, Area>;

pub const DIMENSIONLESS: Dimensionless = Dimensionless::new();

pub const LENGTH: Length = Length::new();
pub const MASS: Mass = Mass::new();
pub const TIME: Time = Time::new();
pub const TEMPERATURE: Temperature = Temperature::new();
pub const AMOUNT: Amount = Amount::new();
pub const CURRENT: Current = Current::new();
pub const LUMINOUS: Luminous = Luminous::new();

pub const FREQUENCY: Frequency = Frequency::new();
pub const FREQUENCY_ACCELERATION: FrequencyAcceleration = FrequencyAcceleration::new();
pub const AREA: Area = Area::new();
pub const VOLUME: Volume = Volume::new();
pub const VELOCITY: Velocity = Velocity::new();
pub const ACCELERATION: Acceleration = Acceleration::new();
pub const FORCE: Force = Force::new();
pub const PRESSURE: Pressure = Pressure::new();
pub const HEAD: Head = Head::new();
pub const ENERGY: Energy = Energy::new();
pub const POWER: Power = Power::new();
pub const ENTHALPY: Enthalpy = Enthalpy::new();
pub const ENTROPY: Entropy = Entropy::new();
pub const VOLTAGE: Voltage = Voltage::new();
pub const ELECTRIC_FIELD_STRENGTH: ElectricFieldStrength = ElectricFieldStrength::new();
pub const ELECTRIC_RESISTANCE: ElectricResistance = ElectricResistance::new();
pub const ELECTRIC_CHARGE: ElectricCharge = ElectricCharge::new();
pub const CAPACITANCE: Capacitance = Capacitance::new();
pub const RADIATION_EXPOSURE: RadiationExposure = RadiationExposure::new();
pub const MAGNETIC_FLUX: MagneticFlux = MagneticFlux::new();
pub const MAGNETIC_FLUX_DENSITY: MagneticFluxDensity = MagneticFluxDensity::new();
pub const MAGNETIC_FIELD_STRENGTH: MagneticFieldStrength = MagneticFieldStrength::new();
pub const ILLUMINANCE: Illuminance = Illuminance::new();
pub const ELECTRIC_CONDUCTANCE: ElectricConductance = ElectricConductance::new();
pub const ELECTRICAL_INDUCTANCE: ElectricalInductance = ElectricalInductance::new();