Example #1
0
        static Angle()
        {
            BaseDimensions = BaseDimensions.Dimensionless;

            Info = new QuantityInfo <AngleUnit>("Angle",
                                                new UnitInfo <AngleUnit>[] {
                new UnitInfo <AngleUnit>(AngleUnit.Arcminute, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Arcsecond, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Centiradian, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Deciradian, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Degree, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Gradian, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Microdegree, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Microradian, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Millidegree, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Milliradian, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Nanodegree, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Nanoradian, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Radian, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Revolution, BaseUnits.Undefined),
                new UnitInfo <AngleUnit>(AngleUnit.Tilt, BaseUnits.Undefined),
            },
                                                BaseUnit, Zero, BaseDimensions, QuantityType.Angle);
        }
Example #2
0
        static Force()
        {
            BaseDimensions = new BaseDimensions(1, 1, -2, 0, 0, 0, 0);

            Info = new QuantityInfo <ForceUnit>("Force",
                                                new UnitInfo <ForceUnit>[] {
                new UnitInfo <ForceUnit>(ForceUnit.Decanewton, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.Dyn, new BaseUnits(length: LengthUnit.Centimeter, mass: MassUnit.Gram, time: DurationUnit.Second)),
                new UnitInfo <ForceUnit>(ForceUnit.KilogramForce, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.Kilonewton, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.KiloPond, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.KilopoundForce, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.Meganewton, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.Micronewton, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.Millinewton, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.Newton, new BaseUnits(length: LengthUnit.Meter, mass: MassUnit.Kilogram, time: DurationUnit.Second)),
                new UnitInfo <ForceUnit>(ForceUnit.OunceForce, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.Poundal, new BaseUnits(length: LengthUnit.Foot, mass: MassUnit.Pound, time: DurationUnit.Second)),
                new UnitInfo <ForceUnit>(ForceUnit.PoundForce, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.ShortTonForce, BaseUnits.Undefined),
                new UnitInfo <ForceUnit>(ForceUnit.TonneForce, BaseUnits.Undefined),
            },
                                                BaseUnit, Zero, BaseDimensions, QuantityType.Force);
        }
Example #3
0
        static AmountOfSubstance()
        {
            BaseDimensions = new BaseDimensions(0, 0, 0, 0, 0, 1, 0);

            Info = new QuantityInfo <AmountOfSubstanceUnit>(QuantityType.AmountOfSubstance,
                                                            new UnitInfo <AmountOfSubstanceUnit>[] {
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.Centimole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.CentipoundMole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.Decimole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.DecipoundMole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.Kilomole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.KilopoundMole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.Megamole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.Micromole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.MicropoundMole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.Millimole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.MillipoundMole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.Mole, new BaseUnits(amount: AmountOfSubstanceUnit.Mole)),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.Nanomole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.NanopoundMole, BaseUnits.Undefined),
                new UnitInfo <AmountOfSubstanceUnit>(AmountOfSubstanceUnit.PoundMole, new BaseUnits(amount: AmountOfSubstanceUnit.PoundMole)),
            },
                                                            BaseUnit, Zero, BaseDimensions);
        }
Example #4
0
 static MassFraction()
 {
     BaseDimensions = BaseDimensions.Dimensionless;
     Info           = new QuantityInfo(QuantityType.MassFraction, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
 static SpecificVolume()
 {
     BaseDimensions = new BaseDimensions(3, -1, 0, 0, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.SpecificVolume, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #6
0
 static LuminousIntensity()
 {
     BaseDimensions = new BaseDimensions(0, 0, 0, 0, 0, 0, 1);
     Info           = new QuantityInfo(QuantityType.LuminousIntensity, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
 static WarpingMomentOfInertia()
 {
     BaseDimensions = new BaseDimensions(6, 0, 0, 0, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.WarpingMomentOfInertia, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #8
0
 static TemperatureChangeRate()
 {
     BaseDimensions = new BaseDimensions(0, 0, -1, 0, 1, 0, 0);
     Info           = new QuantityInfo(QuantityType.TemperatureChangeRate, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #9
0
 static SpecificEnergy()
 {
     BaseDimensions = new BaseDimensions(2, 0, -2, 0, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.SpecificEnergy, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #10
0
 static KinematicViscosity()
 {
     BaseDimensions = new BaseDimensions(2, 0, -1, 0, 0, 0, 0);
     Info           = new QuantityInfo <KinematicViscosityUnit>(QuantityType.KinematicViscosity, Units, BaseUnit, Zero, BaseDimensions);
 }
 static RotationalStiffnessPerLength()
 {
     BaseDimensions = new BaseDimensions(1, 1, -2, 0, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.RotationalStiffnessPerLength, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #12
0
 static ApparentEnergy()
 {
     BaseDimensions = new BaseDimensions(2, 1, -2, 0, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.ApparentEnergy, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
 static AmountOfSubstance()
 {
     BaseDimensions = new BaseDimensions(0, 0, 0, 0, 0, 1, 0);
     Info           = new QuantityInfo(QuantityType.AmountOfSubstance, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
 static ElectricPotentialAc()
 {
     BaseDimensions = BaseDimensions.Dimensionless;
     Info           = new QuantityInfo(QuantityType.ElectricPotentialAc, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #15
0
 static Energy()
 {
     BaseDimensions = new BaseDimensions(2, 1, -2, 0, 0, 0, 0);
     Info           = new QuantityInfo <EnergyUnit>(QuantityType.Energy, Units, BaseUnit, Zero, BaseDimensions);
 }
Example #16
0
 static ElectricChargeDensity()
 {
     BaseDimensions = new BaseDimensions(-3, 0, 1, 1, 0, 0, 0);
     Info           = new QuantityInfo <ElectricChargeDensityUnit>(QuantityType.ElectricChargeDensity, Units, BaseUnit, Zero, BaseDimensions);
 }
 static TemperatureGradient()
 {
     BaseDimensions = new BaseDimensions(-1, 0, 0, 0, 1, 0, 0);
     Info           = new QuantityInfo(QuantityType.TemperatureGradient, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
 static ElectricConductivity()
 {
     BaseDimensions = new BaseDimensions(-3, -1, 3, 2, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.ElectricConductivity, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #19
0
 static Torque()
 {
     BaseDimensions = new BaseDimensions(2, 1, -2, 0, 0, 0, 0);
     Info           = new QuantityInfo <TorqueUnit>(QuantityType.Torque, Units, BaseUnit, Zero, BaseDimensions);
 }
Example #20
0
 static BrakeSpecificFuelConsumption()
 {
     BaseDimensions = new BaseDimensions(-2, 0, 2, 0, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.BrakeSpecificFuelConsumption, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #21
0
 static Capacitance()
 {
     BaseDimensions = new BaseDimensions(-2, -1, 4, 2, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.Capacitance, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #22
0
 static VitaminA()
 {
     BaseDimensions = BaseDimensions.Dimensionless;
     Info           = new QuantityInfo(QuantityType.VitaminA, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
 static MagneticField()
 {
     BaseDimensions = new BaseDimensions(0, 1, -2, -1, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.MagneticField, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #24
0
 static LuminousIntensity()
 {
     BaseDimensions = new BaseDimensions(0, 0, 0, 0, 0, 0, 1);
     Info           = new QuantityInfo <LuminousIntensityUnit>(QuantityType.LuminousIntensity, Units, BaseUnit, Zero, BaseDimensions);
 }
Example #25
0
 static Force()
 {
     BaseDimensions = new BaseDimensions(1, 1, -2, 0, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.Force, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #26
0
 static ElectricPotentialDc()
 {
     BaseDimensions = BaseDimensions.Dimensionless;
     Info           = new QuantityInfo <ElectricPotentialDcUnit>(QuantityType.ElectricPotentialDc, Units, BaseUnit, Zero, BaseDimensions);
 }
 static ElectricField()
 {
     BaseDimensions = new BaseDimensions(1, 1, -3, -1, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.ElectricField, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #28
0
 static TemperatureDelta()
 {
     BaseDimensions = BaseDimensions.Dimensionless;
     Info           = new QuantityInfo(QuantityType.TemperatureDelta, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #29
0
 static ElectricPotentialChangeRate()
 {
     BaseDimensions = new BaseDimensions(2, 1, -4, -1, 0, 0, 0);
     Info           = new QuantityInfo(QuantityType.ElectricPotentialChangeRate, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }
Example #30
0
 static Permeance()
 {
     BaseDimensions = BaseDimensions.Dimensionless;
     Info           = new QuantityInfo(QuantityType.Permeance, Units.Cast <Enum>().ToArray(), BaseUnit, Zero, BaseDimensions);
 }