// UnitData.java // this file is part of QuickConvert // by Gregory C. Wilcox // August 22, 1997 // note: // degree symbol is "º" (Unicode 272 octal) in Windows Arial font // (but it is underlined in Helvetica and Courier) // degree symbol is "°" (Unicode 260 octal) in Windows Arial font // degree symbol is "¡" (Unicode 241 octal) on Macintosh // exponent 2 is "²" (Unicode 262 octal) on Macintosh // exponent 2 is "³" (Unicode 263 octal) on Macintosh class CUnit { String name; // unit name String abbrev; // abbreviation for unit name double factor; // conversion factor - must be double for shed int system; // system of units (SI, US, etc.) // constructor CUnit(String n, String a, double f, int s) { name = n; abbrev = a; factor = f; system = s; } }; class CUnits { String category; // what kind of unit is this? String base; // unit expressed in terms of SI base units CUnit[] unit; // the data for all units of this kind int SI; // number of the SI unit // constructor CUnits(String c, String b, CUnit[] u) { category = c; base = b; unit = u; } }; final class UnitData { static final int SI = 0; // system internationale static final int US = 1; // united states static final int CGS = 2; // centimetre-gram-second static final int MKS = 3; // metre-kilogram-second static final int CO = 4; // concentration static final int NA = 5; // not applicable // these must be in alphabetical order static final int DEGC = 0; static final int DEGF = 1; static final int DEGK = 2; static final int DEGR = 3; static final String NO_SYMBOL = ""; // make the SI units stand out static final void HiliteSI() { CUnit[] theUnit; for (int kind = 0; kind < All.length; kind++) { theUnit = All[kind].unit; for (int unitnum = 0; unitnum < theUnit.length; unitnum++) if (theUnit[unitnum].system == SI) { theUnit[unitnum].name = theUnit[unitnum].name.toUpperCase(); theUnit[unitnum].abbrev = theUnit[unitnum].abbrev.toUpperCase(); // set this for the benefit of convertConcentration All[kind].SI = unitnum; } } } static final CUnit AbsorbedDose[] = { new CUnit("Erg/gram", "erg/g", 1.000000e-04, NA), new CUnit("Gray", "Gy", 1.000000e+00, SI), new CUnit("Joule/kilogram", "J/kg", 1.000000e+00, NA), new CUnit("MeV/gram", "MeV/g", 1.602051E-10, NA), new CUnit("Rad", NO_SYMBOL, 1.000000e-02, NA), new CUnit("Watt-second/gram", "Ws/g", 1.000000e+03, NA), }; static final CUnit Acceleration[] = { new CUnit("Foot/second²", "ft/s²", 3.048000e-01, NA), new CUnit("Free fall, standard", "g", 9.806650e+00, NA), new CUnit("Gal", "Gal", 1.000000e-02, CGS), new CUnit("Inch/second²", "in/s²", 2.540000e-02, NA), new CUnit("Metre/second²", "m/s²", 1.000000e+00, SI), }; static final CUnit Activity[] = { new CUnit("Becquerel", "Bq", 1.000000e+00, SI), new CUnit("Curie", "Ci", 3.700000e+10, NA), new CUnit("Disintegration/hour", "dis/hr", 2.777778E-04, NA), new CUnit("Disintegration/minute", "dis/min", 1.666667e-02, NA), new CUnit("Disintegration/second", "dis/s", 1.000000e+00, NA), }; static final CUnit ActivityPerVolume[] = { new CUnit("Becquerel/metre³", "Bq/m³", 1.000000e+00, SI), new CUnit("Curie/metre³", "Ci/m³", 3.700000e+10, NA), new CUnit("Disinitegration/hour-metre³", "dis/s-m³", 2.777778E-04, NA), new CUnit("Disinitegration/minute-metre³", "dis/s-m³", 1.666667e-02, NA), new CUnit("Disinitegration/second-metre³", "dis/s-m³", 1.000000e+00, NA), }; static final CUnit Angle[] = { new CUnit("Degree", "°", 1.745329e-02, NA), new CUnit("Grade", NO_SYMBOL, 1.570796e-02, NA), new CUnit("Minute", "'", 2.908882e-04, NA), new CUnit("Radian", "rad", 1.000000e+00, SI), new CUnit("Second", "\"", 4.848137e-06, NA), }; static final CUnit Area[] = { new CUnit("Acre", "acre", 4.046873e+3, NA), new CUnit("Are", "a", 1.000000e+2, NA), new CUnit("Barn", NO_SYMBOL, 1.000000e-28, NA), new CUnit("Foot²", "ft²", 9.290304e-2, US), new CUnit("Hectare", "ha", 1.000000e+4, NA), new CUnit("Inch²", "in²", 6.451600e-4, US), new CUnit("Metre²", "m²", 1.000000e+0, SI), new CUnit("Mil (circular)", "Mil (circ.)", 5.067075e-10, NA), new CUnit("Mile² (U.S. statute)", "mi²", 2.589998e+6, US), new CUnit("Mile² (international)", "mi² (int'l.)", 2.589988e+6, NA), new CUnit("Section", NO_SYMBOL, 2.589988e+6, NA), new CUnit("Shed", NO_SYMBOL, 1.000000e-52, NA), new CUnit("Township", NO_SYMBOL, 9.323957E+7, NA), new CUnit("Yard²", "yd²", 8.361274e-1, US), }; static final CUnit Capacitance[] = { new CUnit("Abfarad", "AbF", 1.000000e+09, NA), new CUnit("EMU of capacitance", "EMU", 1.000000e+09, NA), new CUnit("ESU of capacitance", "ESU", 1.112650e-12, NA), new CUnit("Farad", "F", 1.000000e+00, SI), new CUnit("Statfarad", "StatF", 1.112650e-12, NA), }; static final CUnit Conductance[] = { new CUnit("Abmho", NO_SYMBOL, 1.000000e+09, NA), new CUnit("Mho", NO_SYMBOL, 1.000000e+00, NA), new CUnit("Siemens", "S", 1.000000e-00, SI), new CUnit("Statmho", NO_SYMBOL, 1.112650e-12, NA), }; static final CUnit Density[] = { new CUnit("Grain/gallon (US liquid)", "grain/gal (US liq)", 1.711806e-02, NA), new CUnit("Gram/centimetre³", "g/cm³", 1.000000e+03, CGS), new CUnit("Kilogram/metre³", "kg/m³", 1.000000e+00, SI), new CUnit("Ounce (avoirdupois)/gallon (UK liquid)", "oz/gal (US liq)", 6.236023e+00, NA), new CUnit("Ounce (avoirdupois)/gallon (US liquid)", "oz/gal (US liq)", 7.489152e+00, NA), new CUnit("Ounce (avoirdupois)/inch³", "oz/in³", 1.729994e+03, NA), new CUnit("Parts/million", "ppm", 1, CO), new CUnit("Pound/foot³", "Ib/ft³", 1.601846e+01, NA), new CUnit("Pound/inch³", "Ib/in³", 2.767990e+04, NA), new CUnit("Pound/gallon (UK liquid)", "Ib/gal (UK liq)", 9.977637e+01, NA), new CUnit("Pound/gallon (US liquid)", "Ib/gal (US liq)", 1.198264e+02, NA), new CUnit("Pound/yard³", "Ib/yd³", 5.932764e-01, NA), new CUnit("Slug/foot³", "slug/ft³", 5.153788e+02, NA), new CUnit("Ton (long)/yard³", "ton/yd³ (short)", 1.328939e+03, NA), new CUnit("Ton (short)/yard³", "ton/yd³ (long)", 1.186553e+03, NA), new CUnit("Volume percent", "vol %", 1, CO), }; static final CUnit DoseEquivalent[] = { new CUnit("Rem", NO_SYMBOL, 1.000000e-02, NA), new CUnit("Sievert", "Sv", 1.000000e+00, SI), }; static final CUnit ElectricCharge[] = { new CUnit("Abcoulomb", "AbC", 1.000000e+01, NA), new CUnit("Ampere hour", "A hr", 3.600000e+03, NA), new CUnit("Coulomb", "C", 1.000000e+00, SI), new CUnit("Faraday (based on carbon-12)", "Faraday (C-12)", 9.648700e+04, NA), new CUnit("Faraday (chemical)", "Faraday (chem.)", 9.649570e+04, NA), new CUnit("Faraday (physical)", "Faraday (phys.)", 9.652190e+04, NA), new CUnit("Statcoulomb", "StatC", 3.335640e-10, NA), }; static final CUnit ElectricCurrent[] = { new CUnit("Abampere", "AbA", 1.000000e+01, NA), new CUnit("Ampere", "A", 1.000000e+00, SI), new CUnit("EMU of current", "EMU", 1.000000e+01, NA), new CUnit("ESU of current", "ESU", 3.335600e-10, NA), new CUnit("Gilbert", NO_SYMBOL, 7.957747e-01, NA), new CUnit("Statampere", "StatA", 3.335640e-10, NA), }; static final CUnit EMF[] = { new CUnit("Abvolt", "AbV", 1.000000e-08, NA), new CUnit("EMU of electric potential", "EMU", 1.000000e-08, NA), new CUnit("ESU of electric potential", "ESU", 2.997900e+02, NA), new CUnit("Statvolt", "StatV", 2.997925e+02, NA), new CUnit("Volt", "V", 1.000000e+00, SI), }; static final CUnit Energy[] = { new CUnit("British thermal unit (International Table)", "BTU (IT)", 1.055056e+03, NA), new CUnit("British thermal unit (mean)", "BTU (mean)", 1.055870e+03, NA), new CUnit("British thermal unit (thermochemical)", "BTU (therm)", 1.054350e+03, NA), new CUnit("British thermal unit (39°F)", "BTU (39°F)", 1.059670e+03, NA), new CUnit("British thermal unit (59°F)", "BTU (59°F)", 1.054800e+03, NA), new CUnit("British thermal unit (60°F)", "BTU (60°F)", 1.054680e+03, NA), new CUnit("Calorie (International Table)", "cal (IT)", 4.186800e+00, NA), new CUnit("Calorie (mean)", "cal (mean)", 4.190020e+00, NA), new CUnit("Calorie (thermochemical)", "cal (therm)", 4.184000e+00, NA), new CUnit("Calorie (15°C)", "cal (15°C)", 4.185800e+00, NA), new CUnit("Calorie (20°C)", "cal (20°C)", 4.181900e+00, NA), new CUnit("Calorie (kilogram, International Table)", "cal (kg, IT)", 4.186800e+03, NA), new CUnit("Calorie (kilogram, mean)", "cal (kg, mean)", 4.190020e+03, NA), new CUnit("Calorie (kilogram, thermochemical)", "cal (kg, therm)", 4.184000e+03, NA), new CUnit("Electronvolt", "eV", 1.602190e-19, NA), new CUnit("Erg", NO_SYMBOL, 1.000000e-07, CGS), new CUnit("Foot pound-force", "ft-lbf", 1.355818e+00, NA), new CUnit("Foot poundal", "ft poundal", 4.214011e-02, NA), new CUnit("Joule", "J", 1.000000e+00, SI), new CUnit("Kilocalorie (International Table)", "Kcal (IT)", 4.186800e+03, NA), new CUnit("Kilocalorie (mean)", "Kcal (mean)", 4.190020e+03, NA), new CUnit("Kilocalorie (thermochemical)", "Kcal", 4.184000e+03, NA), new CUnit("Kilowatt hour", "kWh", 3.600000e+06, NA), new CUnit("Therm (European Community)", "Therm (EC)", 10550600.0, NA), new CUnit("Therm (U.S.)", "Therm (US)", 10548040.0, NA), new CUnit("Ton (nuclear equivalent of TNT)", "Ton of TNT", 4.184000e+09, NA), new CUnit("Watt hour", "Wh", 3.600000e+03, NA), new CUnit("Watt second", "Ws", 1.000000e+00, NA), }; static final CUnit EnergyPerAreaTime[] = { new CUnit("Btu (International Table) / foot²-second", "Btu(IT)/ft²-s", 1.135653e4, NA), new CUnit("Btu (International Table) / foot²-hour", "Btu(IT)/ft²-hr", 3.154591e0, NA), new CUnit("Btu (thermochemical)/foot²-second", "Btu/ft²-s", 1.134893e+4, NA), new CUnit("Btu (thermochemical)/foot²-minute", "Btu/ft²-min", 1.891489e+2, NA), new CUnit("Btu (thermochemical)/foot²-hour", "Btu/ft²-hr", 3.152481e+0, NA), new CUnit("Btu (thermochemical)/inch²-second", "Btu/in²-s", 1.634246e+6, NA), new CUnit("Calorie (thermochemical) /centimetre²-minute", "cal/cm²-min", 6.973333e+2, NA), new CUnit("Calorie (thermochemical) /centimetre²-second", "cal/cm²-s", 4.184e4, NA), new CUnit("Erg/centimetre²-second", "erg/cm²-s", 1.000000e-3, CGS), new CUnit("Watt/centimetre²", "W/cm²", 1e+4, NA), new CUnit("Watt/inch²", "W/in²", 1.550003e+3, NA), new CUnit("Watt/metre²", "W/m²", 1.000000e+0, SI), }; static final CUnit Exposure[] = { new CUnit("Coulomb/kilogram of air (stp)", "C/kg", 1.000000e+00, SI), new CUnit("Ergs/gram of air (stp)", NO_SYMBOL, 2.968930E-06, NA), new CUnit("Ergs/gram of soft tissue", NO_SYMBOL, 2.632653E-06, NA), new CUnit("ESU/cm³ of air (stp)", NO_SYMBOL, 2.580000e-04, NA), new CUnit("Ion pairs/cm³ of air (stp)", NO_SYMBOL, 1.239193e-13, NA), new CUnit("Ion pairs/gram of air (stp)", NO_SYMBOL, 1.602484E-16, NA), new CUnit("MeV/cm³ of air (stp)", NO_SYMBOL, 3.675214E-09, NA), new CUnit("MeV/gram of air (stp)", NO_SYMBOL, 4.751381E-12, NA), new CUnit("Roentgen", "R", 2.580000e-04, NA), }; static final CUnit FlowMass[] = { new CUnit("Kilogram/second", "kg/s", 1.000000e+00, SI), new CUnit("Pound/hour", "lb/hr", 1.259979e-04, NA), new CUnit("Pound/minute", "Ib/min", 7.559873e-03, NA), new CUnit("Pound/second", "Ib/s", 4.535924e-01, NA), new CUnit("Ton (short)/hour", "ton/hr", 2.519958e-01, NA), }; static final CUnit FlowVolume[] = { new CUnit("Foot³/minute", "ft³/min", 4.719474e-04, NA), new CUnit("Foot³/second", "ft³/s", 2.831685e-02, NA), new CUnit("Gallon (U.S. liquid)/day", "gal/day", 4.381264e-08, NA), new CUnit("Gallon (U.S. liquid)/minute", "gal/min", 6.309020e-05, NA), new CUnit("Inch³/minute", "in³/min", 2.731177e-07, NA), new CUnit("Metre³/second", "m³/s", 1.000000e+00, SI), new CUnit("Yard³/minute", "yd³/min", 1.274258e-02, NA), }; static final CUnit Force[] = { new CUnit("Dyne", "dyn", 1.000000e-5, CGS), new CUnit("Kilogram-force", "kg-f", 9.806650e+0, NA), new CUnit("Kilopond", NO_SYMBOL, 9.806650e+0, NA), new CUnit("Kip", NO_SYMBOL, 4.448222e+3, NA), new CUnit("Newton", "N", 1.000000e+0, SI), new CUnit("Ounce-force", "oz-f", 2.780139e-1, NA), new CUnit("Pound-force", "lbf", 4.448222e0, NA), new CUnit("Poundal", NO_SYMBOL, 1.382550e-1, NA), new CUnit("Ton-force", NO_SYMBOL, 8.896443e+3, NA), }; static final CUnit ForcePerLength[] = { new CUnit("Newton/metre", "N/m", 1.000000e+0, SI), new CUnit("Pound-force/foot", "Ibf/ft", 1.459390e+1, NA), new CUnit("Pound-force/inch", "Ibf/in", 1.751268e+2, NA), }; static final CUnit Inductance[] = { new CUnit("Abhenry", "AbH", 1.000000e-09, NA), new CUnit("EMU of inductance", "EMU", 1.000000e-09, NA), new CUnit("ESU of inductance", "ESU", 8.987554e+11, NA), new CUnit("Henry", "H", 1.000000e+00, SI), new CUnit("Stathenry", "StatH", 8.987554e+11, NA), }; /* obsolete units of length: ( "Chain (engineer's)", "ch", 3.048000e+1 , NA ), ( "Chain (surveyor's)", NO_SYMBOL, 2.011680e+1 , NA ), ( "Link (engineer's)", "li", 3.048000e-1 , NA ), ( "Link (surveyor's)", NO_SYMBOL, 2.011680e-1 , NA ), */ static final CUnit Length[] = { new CUnit("Angstrom", "A°", 1.000000e-10, NA), new CUnit("Astronomical unit", NO_SYMBOL, 1.495979e+11, NA), new CUnit("Centimetre", "cm", 1.000000e-2, CGS), new CUnit("Fathom", "fath", 1.828804e+0, NA), new CUnit("Foot", "ft", 3.048000e-1, US), new CUnit("Foot (US Survey)", "ft (US)", 3.048006e-1, NA), new CUnit("Furlong", "fur", 2.011680e+2, NA), new CUnit("Inch", "in", 2.540000e-2, US), new CUnit("League", NO_SYMBOL, 4.828041e+3, NA), new CUnit("Light year", NO_SYMBOL, 9.460550E+15, NA), new CUnit("Metre", "m", 1.000000e+0, SI), new CUnit("Micron", NO_SYMBOL, 1.000000E-6, NA), new CUnit("Mil", NO_SYMBOL, 2.540000E-5, NA), new CUnit("Mile (international)", "mi", 1.609344e+03, NA), new CUnit("Mile (international nautical)", "mi (int. naut)", 1.852000e+03, NA), new CUnit("Mile (US statute)", "mi (US)", 1.609347e+03, NA), new CUnit("Mile (US nautical)", NO_SYMBOL, 1.852000E+3, US), new CUnit("Parsec", NO_SYMBOL, 3.085678E+16, NA), new CUnit("Rod", "rd", 5.029210e+0, NA), new CUnit("Yard", "yd", 9.144000e-1, US), }; static final CUnit Light[] = { new CUnit("Candela/metre²", "cd/m²", 1.000000e+00, SI), new CUnit("Footlambert", NO_SYMBOL, 3.426259e+00, NA), new CUnit("Lambert", NO_SYMBOL, 3.183099e+03, NA), }; static final CUnit MagFlux[] = { new CUnit("Maxwell", NO_SYMBOL, 1.0000000e-08, NA), new CUnit("Unit pole", NO_SYMBOL, 1.2566370e-07, NA), new CUnit("Weber", "W", 1.0000000e+00, SI), }; static final CUnit MagFluxDensity[] = { new CUnit("Gamma", NO_SYMBOL, 1.000000e-09, NA), new CUnit("Gauss", NO_SYMBOL, 1.000000e-04, NA), new CUnit("Tesla", "T", 1.000000e+00, SI), }; static final CUnit Mass[] = { new CUnit("Carat (metric)", "c", 2.000000e-4, NA), new CUnit("Grain", "grain", 6.479891e-5, NA), new CUnit("Gram", "g", 1.000000e-3, CGS), new CUnit("Hundredweight (long)", "cwt (long)", 5.080235e+1, NA), new CUnit("Hundredweight (short)", "cwt (short)", 4.535924e+1, NA), new CUnit("Kilogram-force-second²/metre", "Kgf-s²/m", 9.806650e+0, NA), new CUnit("Kilogram", "kg", 1.000000e+0, SI), new CUnit("Ounce-mass (avoirdupois)", "oz avdp", 2.834952e-2, US), new CUnit("Ounce-mass (troy)", "oz t", 3.110348e-2, NA), new CUnit("Pennyweight", "dwt", 1.555174e-3, NA), new CUnit("Pound-mass (avoirdupois)", "lb avdp", 4.535924e-1, US), new CUnit("Pound-mass (troy)", "lb t", 3.732417e-1, NA), new CUnit("Slug", NO_SYMBOL, 1.459390e+1, NA), new CUnit("Ton-mass (assay)", NO_SYMBOL, 2.916667e-2, NA), new CUnit("Ton-mass (long, 2240 lb)", "ton (long)", 1.016047e+3, NA), new CUnit("Ton-mass (metric)", "t", 1.000000e+3, NA), new CUnit("Ton-mass (short)", "ton", 9.071847e+2, NA), new CUnit("Tonne", NO_SYMBOL, 1.000000e+3, NA), }; static final CUnit MassPerArea[] = { new CUnit("Kilogram/metre²", "kg/m²", 1.000000e+00, SI), new CUnit("Ounce/foot²", "oz/ft²", 3.051517e-01, NA), new CUnit("Ounce/yard²", "oz/yd²", 3.390575e-02, NA), new CUnit("Pound/foot²", "Ib/ft²", 4.882428e+00, NA), }; static final CUnit MassPerLength[] = { new CUnit("Denier", NO_SYMBOL, 1.111111e-07, NA), new CUnit("Kilogram/metre", "kg/m", 1.000000e+00, SI), new CUnit("Pound/foot", "Ib/ft", 1.488164e+00, NA), new CUnit("Pound/inch", "Ib/in", 1.785797e+01, NA), new CUnit("Tex", NO_SYMBOL, 1.000000e-06, NA), }; static final CUnit Power[] = { new CUnit("Btu (International Table)/hour", "Btu(IT)/hr", 2.930711e-01, NA), new CUnit("Btu (International Table)/second", "Btu(IT)/s", 1.055056e+03, NA), new CUnit("Btu (thermochemical)/hour", "Btu/hr", 2.928751e-01, NA), new CUnit("Btu (thermochemical)/minute", "Btu/min", 1.757250e+01, NA), new CUnit("Btu (thermochemical)/second", "Btu/s", 1.054350e+03, NA), new CUnit("Calorie (thermochemical)/minute", "cal/min", 6.973333e-02, NA), new CUnit("Calorie (thermochemical)/second", "cal/s", 4.184000e+00, NA), new CUnit("Erg/second", "Erg/s", 1.000000e-07, CGS), new CUnit("Foot pound-force/hour", "ft.lbf/hr", 3.766161e-04, NA), new CUnit("Foot pound-force/minute", "ft.lbf/min", 2.259697e-02, NA), new CUnit("Foot pound-force/second", "ft.lbf/s", 1.355818e-00, NA), new CUnit("Horsepower (550 ft.lbf/s)", "hp", 7.456999e+02, NA), new CUnit("Horsepower (boiler)", "hp (boiler)", 9.809500e+03, NA), new CUnit("Horsepower (electric)", "hp (electric)", 7.460000e+02, NA), new CUnit("Horsepower (metric)", "hp (metric)", 7.354990e+02, NA), new CUnit("Horsepower (water)", "hp (water)", 7.460430e+02, NA), new CUnit("Horsepower (U.K.)", "hp (U.K.)", 7.45700e+02, NA), new CUnit("Kilocalorie (thermochemical)/minute", "Kcal/min", 6.973333e+01, NA), new CUnit("Kilocalorie (thermochemical)/second", "Kcal/s", 4.184000e+03, NA), new CUnit("Ton of refrigeration", "Ton of refrig.", 3.51700e+03, NA), new CUnit("Watt", "W", 1.000000e+00, SI), }; static final CUnit Pressure[] = { new CUnit("Atmosphere (standard)", "atm", 1.013250e+05, NA), new CUnit("Atmosphere (technical)", "atm (tech)", 9.806650e+04, NA), new CUnit("Bar", NO_SYMBOL, 1.000000e+05, NA), new CUnit("Centimetre of mercury (0°C)", "cm Hg (0°C)", 1.33322e+03, NA), new CUnit("Centimetre of water (4°C)", "cm H20 (4°C)", 9.80638e+01, NA), new CUnit("Dyne/centimetre²", "dyn/cm²", 1.000000e-01, CGS), new CUnit("Foot of water (39.2°F)", "ft H20 (39.2°F)", 2.98898e+03, NA), new CUnit("Gram force/centimetre²", "gmf/cm²", 9.806650e+01, NA), new CUnit("Inch of mercury (32°F)", "in Hg (32°F)", 3.38638e+03, NA), new CUnit("Inch of mercury (60°F)", "in Hg (60°F)", 3.37685e+03, NA), new CUnit("Inch of water (39.2°F)", "in H20 (39.2°F)", 2.49082e+02, NA), new CUnit("Inch of water (60°F)", "in H20 (60°F)", 2.4884e+02, NA), new CUnit("Kilogram force/centimetre²", "Kgf/cm²", 9.806650e+04, NA), new CUnit("Kilogram force/metre²", "Kgf/m²", 9.806650e+00, NA), new CUnit("Kilogram force/millimetre²", "Kgf/mm²", 9.806650e+06, NA), new CUnit("Kip/inch²", "ksi", 6.894757e+06, NA), new CUnit("Millibar", "mbar", 1.000000e+02, NA), new CUnit("Millimetre of mercury (0°C)", "mm Hg", 1.33322e+02, NA), new CUnit("Pascal", "Pa", 1.000000e+00, SI), new CUnit("Poundal/ foot²", "Poundal/ foot²", 1.488164e+00, NA), new CUnit("Pound force/foot²", "Ibf/ft2", 4.788026e+01, NA), new CUnit("Pound force/inch²", "psi", 6.894757e+03, NA), new CUnit("Torr (millimetre of mercury, 0°C)", "Torr (mm Hg, 0°C)", 1.33322e+02, NA), }; static final CUnit Printer[] = { new CUnit("Big Point", "bp", 3.527778E-4, NA), new CUnit("Centimetre", "cm", 1.000000e-2, CGS), new CUnit("Cicero", "cc", 4.512780E-3, NA), new CUnit("Didot Point", "dd", 3.760650E-4, NA), new CUnit("Foot", "ft", 3.048000e-1, US), new CUnit("Inch", "in", 2.540000e-2, NA), new CUnit("Metre", "m", 1.000000e+0, SI), new CUnit("Millimetre", "mm", 1.000000e-3, NA), new CUnit("Pica", "pc", 4.217518e-3, NA), new CUnit("Point", "pt", 3.514598e-4, NA), new CUnit("Scaled Point", "sp", 5.362851E-9, NA), }; static final CUnit Resistance[] = { new CUnit("Abohm", NO_SYMBOL, 1.000000e-09, NA), new CUnit("EMU of resistance", "EMU", 1.000000e-09, NA), new CUnit("ESU of resistance", "ESU", 8.987554e+11, NA), // new CUnit("Ohm", "½", 1.000000e+00, SI), // there is no ohm symbol in WIndows Arial font new CUnit("Ohm", NO_SYMBOL, 1.000000e+00, SI), new CUnit("Stathom", NO_SYMBOL, 8.987554e+11, NA), }; static final CUnit Temperature[] = { new CUnit("Celsius", "°C", 1, NA), new CUnit("Fahrenheit", "°F", 1, NA), new CUnit("Kelvin", "K", 1, SI), new CUnit("Rankine", "°R", 1, NA), }; static final CUnit Timeunit[] = { new CUnit("Century", "C", 3.153600e+09, NA), new CUnit("Day", "d", 8.640000e+04, NA), new CUnit("Day (sidereal)", "Day (sid.)", 8.616409e+04, NA), new CUnit("Decade", NO_SYMBOL, 3.153600e+08, NA), new CUnit("Hour", "hr", 3.600000e+03, NA), new CUnit("Hour (sidereal)", "hr (sid.)", 3.590170e+03, NA), new CUnit("Millenium", "M", 3.153600e+10, NA), new CUnit("Minute", "min", 6.000000e+01, NA), new CUnit("Minute (sidereal)", "min (sid.)", 5.983617e+01, NA), new CUnit("Month (mean calendar)", "mon", 2.628000e+06, NA), new CUnit("Second", "s", 1.000000e+00, SI), new CUnit("Second (sidereal)", "s (sid.)", 9.972696e-01, NA), new CUnit("Week (7 days)", "wk", 6.048000e+05, NA), new CUnit("Year (365 days)", "yr", 3.153600e+07, NA), new CUnit("Year (sidereal)", "yr (sid.)", 3.155815e+07, NA), new CUnit("Year (tropical)", "yr (trop.)", 3.155693e+07, NA), }; static final CUnit Torque[] = { new CUnit("Dyne-centimetre", "dyn-cm", 1.000000e-7, CGS), new CUnit("Kilogram force-metre", "kgf-m", 9.806650e+0, NA), new CUnit("Newton metre", "N-m", 1.000000e+0, SI), new CUnit("Ounce force-inch", "ozf-in", 7.061552e-3, NA), new CUnit("Pound force-inch", "lbf-in", 1.129848e-1, NA), new CUnit("Pound force-foot", "lbf-ft", 1.355818e+0, NA), }; static final CUnit TorquePerLength[] = { new CUnit("Newton metre/metre", "N-m/m", 1.000000e+0, SI), new CUnit("Pound force foot/inch", "lbf-ft/in", 5.337866e+1, NA), new CUnit("Pound force inch/inch", "lbf-in/in", 4.448222e+0, NA), }; static final CUnit Velocity[] = { new CUnit("Foot/hour", "ft/hr", 8.466667e-05, NA), new CUnit("Foot/minute", "ft/min", 5.080000e-03, NA), new CUnit("Foot/second", "ft/s", 3.048000e-01, NA), new CUnit("Inch/second", "in/s", 2.540000e-02, NA), new CUnit("Kilometre/hour", "km/hr", 2.777778e-01, NA), new CUnit("Knot", NO_SYMBOL, 5.144444e-01, NA), new CUnit("Metre/second", "m/s", 1.000000e+00, SI), new CUnit("Mile/hour", "mph", 4.470400e-01, NA), new CUnit("Mile/minute", "mi/min", 2.682240e+01, NA), new CUnit("Mile/second", "mi/s", 1.609344e+03, NA), }; static final CUnit Viscosity[] = { new CUnit("Centipoise", "cP", 1.000000e-03, NA), new CUnit("Pascal second", "Pa-s", 1.000000e+00, SI), new CUnit("Poise", "P", 1.000000e-01, CGS), new CUnit("Poundal-second/foot²", "Poundal-s/ft²", 1.488164e+00, NA), new CUnit("Pound/foot hour", "Ib/ft-hr", 4.133789e-04, NA), new CUnit("Pound/foot second", "Ib/ft-s", 1.488164e-00, NA), new CUnit("Pound force second/foot²", "Ibf-s/ft²", 4.788026e+01, NA), new CUnit("Pound force second/inch²", "Ibf-s/in²", 6.894757e+03, NA), new CUnit("Slug/foot second", "slug/ft-s", 4.788026e1, NA), }; static final CUnit Volume[] = { new CUnit("Acre-foot (U.S. survey)", "acre-ft", 1.233489e+03, NA), new CUnit("Barrel (oil, 42 gallon)", "bbl", 1.589873e-01, NA), new CUnit("Board foot", "fbm", 2.359737e-03, NA), new CUnit("Bushel (U.S.)", "bu", 3.523907e-02, NA), new CUnit("Cup", "c", 2.365882e-04, NA), new CUnit("Foot³", "ft³", 2.831685e-02, NA), new CUnit("Gallon (Canadian liquid)", "gal (Can. liq)", 4.546090e-03, NA), new CUnit("Gallon (U.K. liquid)", "gal (UK liq)", 4.546092e-03, NA), new CUnit("Gallon (U.S. dry)", "gal (US dry)", 4.404884e-03, NA), new CUnit("Gallon (U.S. liquid)", "gal (US liq)", 3.785412e-03, NA), new CUnit("Gill (U.K.)", NO_SYMBOL, 1.420653e-04, NA), new CUnit("Gill (U.S.)", NO_SYMBOL, 1.182941e-04, NA), new CUnit("Inch³", "in³", 1.638706e-05, NA), new CUnit("Litre", "L", 1.000000e-03, NA), new CUnit("Metre³", "m³", 1.000000e+00, SI), new CUnit("Ounce (U.K. fluid)", "fl oz (UK)", 2.841306e-05, NA), new CUnit("Ounce (U.S. fluid)", "fl oz (US)", 2.957353e-05, NA), new CUnit("Peck (U.S.)", NO_SYMBOL, 8.809768e-03, NA), new CUnit("Pint (U.S. dry)", "pt (US liq)", 5.506105e-04, NA), new CUnit("Pint (U.S. liquid)", "pt (US liq)", 4.731765e-04, NA), new CUnit("Quart (U.S. dry)", "qt (US dry)", 1.101221e-03, NA), new CUnit("Quart (U.S. liquid)", "qt (US liq)", 9.463529e-04, NA), new CUnit("Stere", NO_SYMBOL, 1.000000e+00, NA), new CUnit("Tablespoon", "Tsp", 1.478676e-05, NA), new CUnit("Teaspoon", "tsp", 4.928922e-06, NA), new CUnit("Ton (register)", NO_SYMBOL, 2.831685e+00, NA), new CUnit("Yard³", "yd³", 7.645549e-01, NA), }; static final CUnits All[] = { new CUnits("Absorbed Dose", "m²/s²", AbsorbedDose), new CUnits("Acceleration", "m/s²", Acceleration), new CUnits("Activity", "1/s", Activity), new CUnits("Activity Per Volume", "1/s-m³", ActivityPerVolume), new CUnits("Angle", "rad", Angle), new CUnits("Area", "m²", Area), new CUnits("Capacitance", "A³-s^4/kg-m²", Capacitance), new CUnits("Conductance", "A²-s³/kg-m²", Conductance), new CUnits("Density & Concentration", "kg/m³", Density), new CUnits("Dose Equivalent", "m²/s²", DoseEquivalent), new CUnits("Electric Charge", "A-s", ElectricCharge), new CUnits("Electric Current", "A", ElectricCurrent), new CUnits("Electromotive Force", "kg-m²/A-s³", EMF), new CUnits("Energy", "kg-m²/s²", Energy), new CUnits("Energy Per Unit Area Time", "kg/s³", EnergyPerAreaTime), new CUnits("Exposure", "A-s/kg", Exposure), new CUnits("Flow, Mass", "kg/s", FlowMass), new CUnits("Flow, Volume", "m³/s", FlowVolume), new CUnits("Force", "kg-m²/s²", Force), new CUnits("Force Per Unit Length", "kg-m/s²", ForcePerLength), new CUnits("Inductance", "kg-m²/A²-s²", Inductance), new CUnits("Length", "m", Length), new CUnits("Light", "cd/m²", Light), new CUnits("Magnetic Flux", "kg-m²/A-s²", MagFlux), new CUnits("Magnetic Flux Density", "kg/A-s²", MagFluxDensity), new CUnits("Mass", "kg", Mass), new CUnits("Mass Per Unit Area", "kg/m²", MassPerArea), new CUnits("Mass Per Unit Length", "kg/m", MassPerLength), new CUnits("Power", "kg-m²/s³", Power), new CUnits("Pressure", "kg/m-s²", Pressure), new CUnits("Printer's Units", "m", Printer), new CUnits("Resistance", "kg-m²/A²-s³", Resistance), new CUnits("Temperature", "K", Temperature), new CUnits("Time", "s", Timeunit), new CUnits("Torque", "kg-m²/s²", Torque), new CUnits("Torque Per Length", "kg-m/s²", TorquePerLength), new CUnits("Velocity", "m/s", Velocity), new CUnits("Viscosity", "kg/m-s", Viscosity), new CUnits("Volume", "m³", Volume), }; } // end of file