db.AddUnit('per length', 'per mile', '1/mi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 2589988.11, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 2589988.11, 0.0) db.AddUnit('per area', 'per square mile', '1/mi2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 60, 0.0) db.AddUnit('per time', 'per minute', '1/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('per length', 'per millimetre', '1/mm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('per length', 'per nanometre', '1/nm', f_base_to_unit, f_unit_to_base, default_category=None) db.AddUnit('compressibility', 'per pico pascal', '1/pPa', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 6894.757, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 6894.757, 0.0) db.AddUnit('compressibility', 'per pounds/square inch', '1/psi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 0.006894757, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 0.006894757, 0.0) db.AddUnit('compressibility', 'per micro pounds per square inch', '1/upsi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('per electric potential', 'per microvolt', '1/uV', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 604800, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 604800, 0.0) db.AddUnit('per time', 'per week', '1/wk', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 0.9144, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 0.9144, 0.0) db.AddUnit('per length', 'per yard', '1/yd', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 28.316846592, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28.316846592, 1.0, 0.0) db.AddUnit('volume', 'thousand cubic feet', '1000ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 28.316846592, 0.1589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28.316846592, 0.1589873, 0.0) db.AddUnit('dimensionless', 'thousand cubic feet per barrel', '1000ft3/bbl', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 28.31685, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28.31685, 86400, 0.0) db.AddUnit('volume flow rate', 'thousand cubic feet per day', '1000ft3/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 92.90304, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 92.90304, 86400, 0.0) db.AddUnit('volume per time per length', 'thousand cubic feet per day per foot', '1000ft3/d.ft', f_base_to_unit, f_unit_to_base, default_category=None) db.AddUnit('productivity index', 'thousand cubic feet per day per psi', '1000ft3/psi.d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 86400, 0.0) db.AddUnit('volume flow rate', 'thousand cubic metres per day', '1000m3/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 86400, 0.0) db.AddUnit('volume per time per length', 'thousand cubic meter per day per meter', '1000m3/d.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 3600, 0.0) db.AddUnit('volume flow rate', 'thousand cubic metres per hour', '1000m3/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 3600, 0.0) db.AddUnit('volume per time per length', 'thousand cubic meters per hour per meter', '1000m3/h.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 86400, 0.0) db.AddUnit('volume length per time', 'thousand (cubic meter per day)-meter', '1000m4/d', f_base_to_unit, f_unit_to_base, default_category=None) db.AddUnit('time', '100000 years', '100ka', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10000, 1.0, 0.0) db.AddUnit('density', 'ten thousand kilograms per cubic metre', '10Mg/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 31558150, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 31558150, 1.0, 0.0) db.AddUnit('time', 'annum', 'a', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600, 1.0, 0.0) db.AddUnit('electric capacity', 'Ampere hour', 'A.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10000, 1.0, 0.0) db.AddUnit('current density', 'ampere per square centimeter', 'A/cm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 0.09290304, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 0.09290304, 0.0) db.AddUnit('current density', 'ampere per square foot', 'A/ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('magnetization', 'Ampere/millimetre', 'A/mm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('current density', 'Ampere/square millimetre', 'A/mm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4046.873, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4046.873, 1.0, 0.0) db.AddUnit('area', 'acre', 'acre', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1233.489, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1233.489, 1.0, 0.0) db.AddUnit('volume', 'acre foot', 'acre.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1233.489, 158987.3, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1233.489, 158987.3, 0.0) db.AddUnit('volume per standard volume', 'acre feet/million stbs, 60 deg F', 'acre.ft/MMstb', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1E-021, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1E-021, 1.0, 0.0) db.AddUnit('mass', 'attogram', 'ag', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1E-018, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1E-018, 1.0, 0.0) db.AddUnit('moment of force', 'attojoule', 'aJ', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000000001, 1.0, 0.0) db.AddUnit('length', 'Angstrom', 'angstrom', f_base_to_unit, f_unit_to_base, default_category=None) db.AddUnit('pressure', 'Atmosphere', 'atm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 101325, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 101325, 0.3048, 0.0) db.AddUnit('pressure per length', 'Atmospheres per ft', 'atm/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 101325, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 101325, 3600, 0.0) db.AddUnit('pressure per time', 'atmosphere per hour', 'atm/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 101325, 100, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 101325, 100, 0.0) db.AddUnit('pressure per length', 'Atmospheres per hundred metre', 'atm/hm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 101325, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 101325, 1.0, 0.0) db.AddUnit('pressure per length', 'Atmospheres/metre', 'atm/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1E+028, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1E+028, 1.0, 0.0) db.AddUnit('area', 'barn', 'b', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1E+034, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1E+034, 1.0, 0.0) db.AddUnit('per length', 'barns/cubic centimetre', 'b/cm3', f_base_to_unit, f_unit_to_base, default_category='area per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.00006023, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00006023, 1.0, 0.0) db.AddUnit('cross section absorption', 'barns/electron', 'b/elec', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100000, 1.0, 0.0) db.AddUnit('pressure', 'bar', 'bar', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100000, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100000, 3600, 0.0) db.AddUnit('pressure per time', 'bar per hour', 'bar/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100, 1.0, 0.0) db.AddUnit('pressure per length', 'bar per kilometer', 'bar/km', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100000, 1.0, 0.0) db.AddUnit('pressure per length', 'bar per meter', 'bar/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10000000000, 1.0, 0.0) db.AddUnit('pressure squared', 'bar squared', 'bar2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.E+13, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.E+13, 1.0, 0.0) db.AddUnit('pressure per time', 'bar squared per centipoise', 'bar2/cP', f_base_to_unit, f_unit_to_base, default_category='pressure squared per (dynamic viscosity)') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 1.0, 0.0) db.AddUnit('volume', 'barrel', 'bbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 1.0, 0.0) db.AddUnit('dimensionless', 'barrel per hundred barrel', 'bbl/100bbl', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 4046.879, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 4046.879, 0.0) db.AddUnit('length', 'barrels/acre', 'bbl/acre', f_base_to_unit, f_unit_to_base, default_category='volume per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 1233.489, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 1233.489, 0.0) db.AddUnit('dimensionless', 'barrel/acre foot', 'bbl/acre.ft', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'barrel/barrel', 'bbl/bbl', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 595707, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 595707, 0.0) db.AddUnit('specific productivity index', 'barrels/centiPoise day psi', 'bbl/cP.d.psi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 86400, 0.0) db.AddUnit('volume flow rate', 'barrel/day', 'bbl/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 106573450, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 106573450, 0.0) db.AddUnit('per time', 'barrels/day acre foot', 'bbl/d.acre.ft', f_base_to_unit, f_unit_to_base, default_category='volume per time per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 26334.72, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 26334.72, 0.0) db.AddUnit('volume per time per length', 'barrels/day foot', 'bbl/d.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000000266888418, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000000266888418, 0.3048, 0.0) db.AddUnit('unit productivity index', 'barrels/day foot pounds/sq in', 'bbl/d.ft.psi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000000266888418, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000000266888418, 1.0, 0.0) db.AddUnit('productivity index', 'barrel/day pounds/square inch', 'bbl/d.psi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000000000212978, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000000000212978, 1.0, 0.0) db.AddUnit('volume per time per time', 'barrels/day per day', 'bbl/d2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 0.3048, 0.0) db.AddUnit('area', 'barrel/foot', 'bbl/ft', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 0.02831685, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 0.02831685, 0.0) db.AddUnit('dimensionless', 'barrel per cubic foot', 'bbl/ft3', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 3600, 0.0) db.AddUnit('volume flow rate', 'barrel/hour', 'bbl/hr', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 12960000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 12960000, 0.0) db.AddUnit('volume per time per time', 'barrels/hour/hour', 'bbl/hr2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 0.0254, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 0.0254, 0.0) db.AddUnit('area', 'barrel/inch', 'bbl/in', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 28.31685, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 28.31685, 0.0) db.AddUnit('dimensionless', 'barrel per thousand cubic feet', 'bbl/k(ft3)', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 86400000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 86400000, 0.0) db.AddUnit('productivity index', 'barrel per day per kilopascal', 'bbl/kPa.d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 28316.85, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 28316.85, 0.0) db.AddUnit('dimensionless', 'barrel per million cubic feet', 'bbl/M(ft3)', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 1609.344, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 1609.344, 0.0) db.AddUnit('area', 'barrel/mile', 'bbl/mi', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 60, 0.0) db.AddUnit('volume flow rate', 'barrel per minute', 'bbl/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 28262.357, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 28262.357, 0.0) db.AddUnit('volume per standard volume', 'barrels/million std cubic feet, 60 degF', 'bbl/MMscf(60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1589873, 595707004.8, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1589873, 595707004.8, 0.0) db.AddUnit('productivity index', 'barrel per day per psi', 'bbl/psi.d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('volume per standard volume', 'barrels/stock tank barrel, 60 deg F', 'bbl/stb(60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 156.4763, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 156.4763, 1.0, 0.0) db.AddUnit('specific volume', 'barrel per U.K. ton', 'bbl/tonUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 175.2535, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 175.2535, 1.0, 0.0) db.AddUnit('specific volume', 'barrel per U.S. ton', 'bbl/tonUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 28316850, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28316850, 1.0, 0.0) db.AddUnit('volume', 'billion cubic feet', 'bcf', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 8, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 8, 0.0) db.AddUnit('digital storage', 'bit', 'bit', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1055.056, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1055.056, 1.0, 0.0) db.AddUnit('moment of force', 'British thermal unit', 'Btu', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1442279, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1442279, 1.0, 0.0) db.AddUnit('thermal conductivity', 'Btus/hour foot squared deg F per inch', 'Btu.in/hr.ft2.F', f_base_to_unit, f_unit_to_base, default_category='energy length per time area temperature') f_unit_to_base = MakeCustomaryToBase(0.0, 293071.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 293071.1, 1.0, 0.0) db.AddUnit('power', 'million Btus/hour', 'Btu(million)/hr', f_base_to_unit, f_unit_to_base, default_category='heat flow rate') f_unit_to_base = MakeCustomaryToBase(0.0, 1055.056, 0.1589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1055.056, 0.1589873, 0.0) db.AddUnit('normal stress', 'British thermal units/barrel', 'Btu/bbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0003930148, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0003930148, 1.0, 0.0) db.AddUnit('dimensionless', 'Btus/brake-horsepower hour', 'Btu/bhp.hr', f_base_to_unit, f_unit_to_base, default_category='relative power') f_unit_to_base = MakeCustomaryToBase(0.0, 37258.95, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 37258.95, 1.0, 0.0) db.AddUnit('normal stress', 'British thermal units/cubic foot', 'Btu/ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 232080, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 232080, 1.0, 0.0) db.AddUnit('normal stress', 'British thermal units/U.K. gallon', 'Btu/galUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 278716.3, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 278716.3, 1.0, 0.0) db.AddUnit('normal stress', 'British thermal units/U.S. gallon', 'Btu/galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.2930711, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.2930711, 1.0, 0.0) db.AddUnit('power', 'British thermal unit/hour', 'Btu/hr', f_base_to_unit, f_unit_to_base, default_category='heat flow rate') f_unit_to_base = MakeCustomaryToBase(0.0, 1.730735, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.730735, 1.0, 0.0) db.AddUnit('thermal conductivity', 'British thermal units/hour foot deg F', 'Btu/hr.ft.degF', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3.154591, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3.154591, 1.0, 0.0) db.AddUnit('density of heat flow rate', 'Btus/hour per square foot', 'Btu/hr.ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 5.678263, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 5.678263, 1.0, 0.0) db.AddUnit('heat transfer coefficient', 'Btus/hour foot squared deg F', 'Btu/hr.ft2.degF', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 5.678263, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 5.678263, 1.0, 0.0) db.AddUnit('heat transfer coefficient', 'Btus/hour foot squared deg R', 'Btu/hr.ft2.degR', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10.34971, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10.34971, 1.0, 0.0) db.AddUnit('power per volume', 'British thermal units/hour cubic foot', 'Btu/hr.ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 18.62947, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 18.62947, 1.0, 0.0) db.AddUnit('volumetric heat transfer coefficient', 'Btus/hour foot cubed deg F', 'Btu/hr.ft3.degF', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.2930711, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.2930711, 1.0, 0.0) db.AddUnit('heat transfer coefficient', 'Btus/hour metre squared deg C', 'Btu/hr.m2.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 2326, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2326, 1.0, 0.0) db.AddUnit('specific energy', 'British thermal units/pound mass', 'Btu/lbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4186.8, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4186.8, 1.0, 0.0) db.AddUnit('specific heat capacity', 'British thermal units/pound mass deg F', 'Btu/lbm.degF', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4186.8, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4186.8, 1.0, 0.0) db.AddUnit('specific heat capacity', 'British thermal units/pound mass deg R', 'Btu/lbm.degR', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 17.58427, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 17.58427, 1.0, 0.0) db.AddUnit('power', 'British thermal units/minute', 'Btu/min', f_base_to_unit, f_unit_to_base, default_category='heat flow rate') f_unit_to_base = MakeCustomaryToBase(0.0, 2.326, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2.326, 1.0, 0.0) db.AddUnit('molar thermodynamic energy', 'British thermal units/pound mass mol', 'Btu/lbmole', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 2326, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2326, 1.0, 0.0) db.AddUnit('molar thermodynamic energy', 'British thermal units/pound mass mol', 'Btu/mol(lbm)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.1868, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.1868, 1.0, 0.0) db.AddUnit('molar heat capacity', 'Btus/pound mass mol deg F', 'Btu/lbmole.F', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4186.8, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4186.8, 1.0, 0.0) db.AddUnit('molar heat capacity', 'Btus/pound mass mol deg F', 'Btu/mol(lbm).F', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1055.056, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1055.056, 1.0, 0.0) db.AddUnit('power', 'British thermal units/second', 'Btu/s', f_base_to_unit, f_unit_to_base, default_category='heat flow rate') f_unit_to_base = MakeCustomaryToBase(0.0, 11356.53, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 11356.53, 1.0, 0.0) db.AddUnit('density of heat flow rate', 'British thermal units/second square foot', 'Btu/s.ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 20441.75, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 20441.75, 1.0, 0.0) db.AddUnit('heat transfer coefficient', 'Btus/second per square foot deg F', 'Btu/s.ft2.degF', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 37258.95, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 37258.95, 1.0, 0.0) db.AddUnit('power per volume', 'Btus/second per cubic foot', 'Btu/s.ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 67066.11, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 67066.11, 1.0, 0.0) db.AddUnit('volumetric heat transfer coefficient', 'Btus/second per cubic foot deg F', 'Btu/s.ft3.degF', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 6.283185307, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 6.283185307, 1.0, 0.0) db.AddUnit('plane angle', 'cycle', 'c', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 0.0001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 0.0001, 0.0) db.AddUnit('electric polarization', 'Coulombs/square centimetre', 'C/cm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 0.000001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 0.000001, 0.0) db.AddUnit('charge density', 'Coulombs/cubic centimeter', 'C/cm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('exposure (radioactivity)', 'coulomb per gram', 'C/g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 0.000001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 0.000001, 0.0) db.AddUnit('electric polarization', 'Coulombs/square millimetre', 'C/mm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 0.000000001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 0.000000001, 0.0) db.AddUnit('charge density', 'Coulombs/cubic millimetre', 'C/mm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 6.283185307, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 6.283185307, 1.0, 0.0) db.AddUnit('frequency', 'cycles/second', 'c/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.184, 1.0, 0.0) db.AddUnit('moment of force', 'calorie', 'cal', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.184, 0.000001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.184, 0.000001, 0.0) db.AddUnit('normal stress', 'calories/cubic centimetre', 'cal/cm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 1.0, 0.0) db.AddUnit('specific energy', 'calories/gram', 'cal/g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 1.0, 0.0) db.AddUnit('specific heat capacity', 'calories/gram degree Kelvin', 'cal/g.K', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1162222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1162222, 1.0, 0.0) db.AddUnit('thermal conductivity', 'calories/hour centimetre degree Celsius', 'cal/h.cm.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 11.62222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 11.62222, 1.0, 0.0) db.AddUnit('density of heat flow rate', 'calories/hour centimetre squared', 'cal/h.cm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 11.62222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 11.62222, 1.0, 0.0) db.AddUnit('heat transfer coefficient', 'calories/hour square centimetre deg C', 'cal/h.cm2.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1162.222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1162.222, 1.0, 0.0) db.AddUnit('power per volume', 'calories/hour cubic centimetre', 'cal/h.cm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.184, 1.0, 0.0) db.AddUnit('specific energy', 'calories/kilogram', 'cal/kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 9.224141, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.224141, 1.0, 0.0) db.AddUnit('specific energy', 'calories/pound mass', 'cal/lbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184000, 1.0, 0.0) db.AddUnit('normal stress', 'calories/milliliter', 'cal/mL', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.184, 0.000000001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.184, 0.000000001, 0.0) db.AddUnit('normal stress', 'calories/cubic millimetre', 'cal/mm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.184, 1.0, 0.0) db.AddUnit('molar heat capacity', 'calories/gram mol degree celsius', 'cal/mol.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 1.0, 0.0) db.AddUnit('molar heat capacity', 'calories/gram mol degree celsius', 'cal/mol(g).degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 418.4, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 418.4, 1.0, 0.0) db.AddUnit('thermal conductivity', 'calories/second centimetre deg C', 'cal/s.cm.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 41840, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 41840, 1.0, 0.0) db.AddUnit('heat transfer coefficient', 'calories/second square centimetre deg C', 'cal/s.cm2.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184000, 1.0, 0.0) db.AddUnit('power per volume', 'calories/second cubic centimetre', 'cal/s.cm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3.1415926535898, 2000000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3.1415926535898, 2000000, 0.0) db.AddUnit('plane angle', 'centesimal second', 'ccgr', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 1.0, 0.0) db.AddUnit('dimensionless', 'centiEuclid', 'cEuc', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3.1415926535898, 20000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3.1415926535898, 20000, 0.0) db.AddUnit('plane angle', 'centesimal minute', 'cgr', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 735.499, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 735.499, 1.0, 0.0) db.AddUnit('power', 'ch', 'ch', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 2647796, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2647796, 1.0, 0.0) db.AddUnit('moment of force', 'ch hours', 'ch.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 20.1167824, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 20.1167824, 1.0, 0.0) db.AddUnit('length', 'Benoit chain (1895 A)', 'chBnA', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 792, 39.370113, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 792, 39.370113, 0.0) db.AddUnit('length', 'Benoit chain (1895 B)', 'chBnB', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 20.11661949, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 20.11661949, 1.0, 0.0) db.AddUnit('length', 'Clarke chain', 'chCla', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 792, 39.370147, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 792, 39.370147, 0.0) db.AddUnit('length', 'Sears chain', 'chSe', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1899.101, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1899.101, 1.0, 0.0) db.AddUnit('moment of force', 'chus', 'Chu', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 792, 39.37, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 792, 39.37, 0.0) db.AddUnit('length', 'US Survey chain', 'chUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 37000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 37000000000, 1.0, 0.0) db.AddUnit('activity (of radioactivity)', 'curie', 'Ci', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 1.0, 0.0) db.AddUnit('length', 'centimetre', 'cm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 31558150, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 31558150, 0.0) db.AddUnit('velocity', 'centimeter per year', 'cm/a', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 1.0, 0.0) db.AddUnit('velocity', 'centimetre/second', 'cm/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 1.0, 0.0) db.AddUnit('acceleration linear', 'centimetre/second squared', 'cm/s2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0001, 1.0, 0.0) db.AddUnit('area', 'square centimetre', 'cm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('mass attenuation coefficient', 'centimetres squared/gram', 'cm2/g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0001, 1.0, 0.0) db.AddUnit('volume per time per length', 'centimetres squared/second', 'cm2/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('volume', 'cubic centimetre', 'cm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1800, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1800, 0.0) db.AddUnit('volume flow rate', 'cubic centimeter per thirty minutes', 'cm3/30min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'cubic centimeters/ cubic centimetres', 'cm3/cm3', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('specific volume', 'cubic centimetres/gram', 'cm3/g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 3600, 0.0) db.AddUnit('volume flow rate', 'cubic centimeter per hour', 'cm3/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('dimensionless', 'cubic centimetre/cubic metre', 'cm3/m3', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 60, 0.0) db.AddUnit('volume flow rate', 'cubic centimeter per minute', 'cm3/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('volume flow rate', 'cubic centimeter per second', 'cm3/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00000001, 1.0, 0.0) db.AddUnit('second moment of area', 'centimetres fourth', 'cm4', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 98.0638, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 98.0638, 1.0, 0.0) db.AddUnit('pressure', 'cm of water at 4 degC.', 'cmH2O(4degC)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('mass per time per length', 'centipoise', 'cP', f_base_to_unit, f_unit_to_base, default_category='dynamic viscosity') f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 1.0, 0.0) db.AddUnit('time', 'ten milli second', 'cs', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('volume per time per length', 'centiStoke', 'cSt', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0002, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0002, 1.0, 0.0) db.AddUnit('mass', 'carat', 'ct', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('per length', 'capture unit', 'cu', f_base_to_unit, f_unit_to_base, default_category='area per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 1.0, 0.0) db.AddUnit('volume', 'cubic feet', 'cu ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00001638706, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00001638706, 1.0, 0.0) db.AddUnit('volume', 'cubic inch', 'cu in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.7645549, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.7645549, 1.0, 0.0) db.AddUnit('volume', 'cubic yard', 'cu yd', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4168182000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4168182000, 1.0, 0.0) db.AddUnit('volume', 'cubic mile', 'cubem', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 37000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 37000000000, 1.0, 0.0) db.AddUnit('activity (of radioactivity)', 'curie', 'curie', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 735.499, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 735.499, 1.0, 0.0) db.AddUnit('power', 'cheval vapeur', 'CV', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 2647796, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2647796, 1.0, 0.0) db.AddUnit('moment of force', 'CV hours', 'CV.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 50.80235, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 50.80235, 1.0, 0.0) db.AddUnit('mass', 'UK hundredweight', 'cwtUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 45.35924, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 45.35924, 1.0, 0.0) db.AddUnit('mass', 'US hundredweight', 'cwtUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000000000986923, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000000000986923, 1.0, 0.0) db.AddUnit('area', 'darcy', 'D', f_base_to_unit, f_unit_to_base, default_category='permeability rock') f_unit_to_base = MakeCustomaryToBase(0.0, 86400, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 86400, 1.0, 0.0) db.AddUnit('time', 'day', 'd', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000000000003008141, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000000000003008141, 1.0, 0.0) db.AddUnit('volume', 'darcy foot', 'D.ft', f_base_to_unit, f_unit_to_base, default_category='permeability length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000000000986923, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000000000986923, 1.0, 0.0) db.AddUnit('volume', 'darcy metre', 'D.m', f_base_to_unit, f_unit_to_base, default_category='permeability length') f_unit_to_base = MakeCustomaryToBase(0.0, 86400, 0.1589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 86400, 0.1589873, 0.0) db.AddUnit('time per volume', 'day per barrel', 'd/bbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 86400, 0.028316846592, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 86400, 0.028316846592, 0.0) db.AddUnit('time per volume', 'days/cubic foot', 'd/ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 86400, 28.316846592, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 86400, 28.316846592, 0.0) db.AddUnit('time per volume', 'day per thousand cubic feet', 'd/k(ft3)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 86400, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 86400, 1.0, 0.0) db.AddUnit('time per volume', 'days/cubic metre', 'd/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10, 1.0, 0.0) db.AddUnit('force', 'decanewtons', 'daN', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10, 1.0, 0.0) db.AddUnit('moment of force', 'decanewton metres', 'daN.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('level of power intensity', 'decibel', 'dB', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 0.3048, 0.0) db.AddUnit('attenuation per length', 'decibels/foot', 'dB/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('attenuation per length', 'decibels/metre', 'dB/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0001, 1.0, 0.0) db.AddUnit('attenuation per length', 'decibels/kilometre', 'dB/km', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('attenuation', 'decibels/octave', 'dB/O', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('temperature', 'change in degrees Celsius', 'ddegC', f_base_to_unit, f_unit_to_base, default_category='delta temperature') f_unit_to_base = MakeCustomaryToBase(0.0, 5, 9, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 5, 9, 0.0) db.AddUnit('temperature', 'change in degrees Fahrenheit', 'ddegF', f_base_to_unit, f_unit_to_base, default_category='delta temperature') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('temperature', 'change in degrees Kelvin', 'ddegK', f_base_to_unit, f_unit_to_base, default_category='delta temperature') f_unit_to_base = MakeCustomaryToBase(0.0, 5, 9, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 5, 9, 0.0) db.AddUnit('temperature', 'change in degrees Rankine', 'ddegR', f_base_to_unit, f_unit_to_base, default_category='delta temperature') f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 1.0, 0.0) db.AddUnit('plane angle', 'degree of an angle', 'dega', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 30.48, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 30.48, 0.0) db.AddUnit('angle per length', 'degrees of an angle/100 feet', 'dega/100ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 9.144, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 9.144, 0.0) db.AddUnit('angle per length', 'degrees of an angle per thirty feet', 'dega/30ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 30, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 30, 0.0) db.AddUnit('angle per length', 'degrees of an angle/30 metres', 'dega/30m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 0.3048, 0.0) db.AddUnit('angle per length', 'degrees of an angle/foot', 'dega/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 30.48, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 30.48, 0.0) db.AddUnit('angle per length', 'degrees of an angle/100 feet', 'dega/ft(100)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 3600, 0.0) db.AddUnit('frequency', 'degrees of an angle per hour', 'dega/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 1.0, 0.0) db.AddUnit('angle per length', 'degrees of an angle/metre', 'dega/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 30, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 30, 0.0) db.AddUnit('angle per length', 'degrees of an angle/30 metres', 'dega/m(30)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 60, 0.0) db.AddUnit('frequency', 'degrees of an angle/minute', 'dega/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01745329, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01745329, 1.0, 0.0) db.AddUnit('frequency', 'degrees of an angle per second', 'dega/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(273.15, 1, 1, 0) f_base_to_unit = MakeBaseToCustomary(273.15, 1, 1, 0) db.AddUnit('temperature', 'degrees Celsius', 'degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.8604208, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.8604208, 1.0, 0.0) db.AddUnit('thermal insulance', 'degrees C square metres hours/kilocal', 'degC.m2.h/kcal', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 1.0, 0.0) db.AddUnit('temperature per length', 'degrees Celsius per hundred metre', 'degC/100m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 0.3048, 0.0) db.AddUnit('temperature per length', 'degrees Celsius per foot', 'degC/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3600, 0.0) db.AddUnit('temperature per time', 'degrees Celsius per hour', 'degC/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('temperature per length', 'degrees Celsius/kilometre', 'degC/km', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('temperature per length', 'degrees Celsius/metre', 'degC/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 60, 0.0) db.AddUnit('temperature per time', 'degrees Celsius per minute', 'degC/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('temperature per time', 'degrees Celsius per second', 'degC/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(2298.35, 5, 9, 0) f_base_to_unit = MakeBaseToCustomary(2298.35, 5, 9, 0) db.AddUnit('temperature', 'degree Fahrenheit', 'degF', f_base_to_unit, f_unit_to_base, default_category='thermodynamic temperature') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1761102, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1761102, 1.0, 0.0) db.AddUnit('thermal insulance', 'degrees F square feet hours/Btu', 'degF.ft2.h/Btu', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01822689, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01822689, 1.0, 0.0) db.AddUnit('temperature per length', 'degrees Fahrenheit/100 feet.', 'degF/100ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.822689, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.822689, 1.0, 0.0) db.AddUnit('temperature per length', 'degrees Fahrenheit/foot', 'degF/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01822689, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01822689, 1.0, 0.0) db.AddUnit('temperature per length', 'degrees Fahrenheit/100 feet.', 'degF/ft(100)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 5, 32400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 5, 32400, 0.0) db.AddUnit('temperature per time', 'degrees Fahrenheit per hour', 'degF/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 5, 9, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 5, 9, 0.0) db.AddUnit('temperature per length', 'degrees Fahrenheit per meter', 'degF/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 5, 540, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 5, 540, 0.0) db.AddUnit('temperature per time', 'degrees Fahrenheit per minute', 'degF/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 5, 9, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 5, 9, 0.0) db.AddUnit('temperature per time', 'degrees Fahrenheit per second', 'degF/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 5, 9, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 5, 9, 0.0) db.AddUnit('temperature', 'degrees Rankine', 'degR', f_base_to_unit, f_unit_to_base, default_category='thermodynamic temperature') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('length', 'decimetre', 'dm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('velocity', 'decimeter per second', 'dm/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('volume', 'cubic decimetre', 'dm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00000001, 1.0, 0.0) db.AddUnit('area', 'cubic decimetres/100 kilometres', 'dm3/100km', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('specific volume', 'cubic decimetres/kilogram', 'dm3/kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00000001, 1.0, 0.0) db.AddUnit('area', 'cubic decimetres/100 kilometres', 'dm3/km(100)', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000000002777778, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000000002777778, 1.0, 0.0) db.AddUnit('isothermal compressibility', 'cubic decimetres/kilowatt hour', 'dm3/kW.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('area', 'cubic decimetres/metre', 'dm3/m', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('dimensionless', 'cubic decimetres/cubic metre', 'dm3/m3', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('isothermal compressibility', 'cubic decimetres/megajoule', 'dm3/MJ', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('molar volume', 'cubic decimetres/kilogram mole', 'dm3/kmol', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('molar volume', 'cubic decimetres/kilogram mole', 'dm3/mol(kg)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('volume flow rate', 'cubic decimetres/second', 'dm3/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('volume per time per time', 'cubic decimetres/second/second', 'dm3/s2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('specific volume', 'cubic decimetres/ton', 'dm3/t', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('moment of force', 'decinewton metres', 'dN.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00001, 1.0, 0.0) db.AddUnit('force', 'dynes', 'dyne', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('force area', 'dyne centimetre squared', 'dyne.cm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('mass per time per length', 'dyne seconds/square centimetre', 'dyne.s/cm2', f_base_to_unit, f_unit_to_base, default_category='dynamic viscosity') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('force per length', 'dynes/centimetre', 'dyne/cm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('pressure', 'dynes/square centimetre', 'dyne/cm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('parachor', 'dynes/centimetre fourth/gram cm cubed', '(dyne/cm)4/gcm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('parachor', 'newton/metre fourth/kilogram metre cubed', '(N/m)4/kg.m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 746, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 746, 1.0, 0.0) db.AddUnit('power', 'electric horsepower', 'ehp', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1E+018, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1E+018, 1.0, 0.0) db.AddUnit('moment of force', 'exajoule', 'EJ', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 31687540000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 31687540000, 1.0, 0.0) db.AddUnit('power', 'exajoules/year', 'EJ/a', f_base_to_unit, f_unit_to_base, default_category='heat flow rate') f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('equivalent per volume', 'equivalents/ Liter', 'eq/L', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000001, 1.0, 0.0) db.AddUnit('moment of force', 'ergs', 'erg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000001, 31558150, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000001, 31558150, 0.0) db.AddUnit('power', 'ergs/year', 'erg/a', f_base_to_unit, f_unit_to_base, default_category='heat flow rate') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('force per length', 'ergs/square centimetre', 'erg/cm2', f_base_to_unit, f_unit_to_base, default_category='energy per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('normal stress', 'ergs/cubic centimetre', 'erg/cm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0001, 1.0, 0.0) db.AddUnit('specific energy', 'ergs/gram', 'erg/g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000001, 1.0, 0.0) db.AddUnit('specific energy', 'ergs/kilogram', 'erg/kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000001, 1.0, 0.0) db.AddUnit('normal stress', 'ergs/cubic metre', 'erg/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.602177E-019, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.602177E-019, 1.0, 0.0) db.AddUnit('moment of force', 'electron volts', 'eV', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.8288, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.8288, 1.0, 0.0) db.AddUnit('length', 'fathoms', 'fathom', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1E-015, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1E-015, 1.0, 0.0) db.AddUnit('electric capacity', 'femtocoulomb', 'fC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00002841308, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00002841308, 1.0, 0.0) db.AddUnit('volume', 'UK fluid ounce', 'fl ozUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00002957353, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00002957353, 1.0, 0.0) db.AddUnit('volume', 'US fluid ounces', 'fl ozUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('per time', 'flops', 'flops', f_base_to_unit, f_unit_to_base, default_category='operations per time') f_unit_to_base = MakeCustomaryToBase(0.0, 0.00002841308, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00002841308, 1.0, 0.0) db.AddUnit('volume', 'UK fluid ounce', 'flozUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00002957353, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00002957353, 1.0, 0.0) db.AddUnit('volume', 'US fluid ounces', 'flozUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1E-015, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1E-015, 1.0, 0.0) db.AddUnit('length', 'femtometer', 'fm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10.76391, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10.76391, 1.0, 0.0) db.AddUnit('illuminance', 'footcandles', 'footcandle', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10.76391, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10.76391, 1.0, 0.0) db.AddUnit('light exposure', 'footcandle seconds', 'footcandle.s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.3048, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3048, 1.0, 0.0) db.AddUnit('length', 'foot', 'ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.355818, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.355818, 1.0, 0.0) db.AddUnit('moment of force', 'foot pounds force', 'ft.lbf', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.355818, 0.1589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.355818, 0.1589873, 0.0) db.AddUnit('normal stress', 'foot pounds force/barrel', 'ft.lbf/bbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 358.1692, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 358.1692, 1.0, 0.0) db.AddUnit('normal stress', 'foot pounds force/US gallon', 'ft.lbf/galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.355818, 0.4535924, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.355818, 0.4535924, 0.0) db.AddUnit('specific energy', 'foot pounds force/pound mass', 'ft.lbf/lbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.02259697, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02259697, 1.0, 0.0) db.AddUnit('power', 'foot pounds force/minute', 'ft.lbf/min', f_base_to_unit, f_unit_to_base, default_category='heat flow rate') f_unit_to_base = MakeCustomaryToBase(0.0, 1.355818, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.355818, 1.0, 0.0) db.AddUnit('power', 'foot pounds force/second', 'ft.lbf/s', f_base_to_unit, f_unit_to_base, default_category='heat flow rate') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1382549, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1382549, 1.0, 0.0) db.AddUnit('mass length', 'foot-pound mass', 'ft.lbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 1.0, 0.0) db.AddUnit('dimensionless', 'feet per 100 feet', 'ft/100ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.917134, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.917134, 1.0, 0.0) db.AddUnit('per area', 'feet/barrel', 'ft/bbl', f_base_to_unit, f_unit_to_base, default_category='length per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.3048, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3048, 86400, 0.0) db.AddUnit('velocity', 'feet/day', 'ft/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.54864, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.54864, 1.0, 0.0) db.AddUnit('length per temperature', 'feet/degree Fahrenheit', 'ft/degF', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'feet per feet', 'ft/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10.76391, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10.76391, 1.0, 0.0) db.AddUnit('per area', 'feet/cubic foot', 'ft/ft3', f_base_to_unit, f_unit_to_base, default_category='length per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 80.51964, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 80.51964, 1.0, 0.0) db.AddUnit('per area', 'feet/US gallon', 'ft/galUS', f_base_to_unit, f_unit_to_base, default_category='length per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.3048, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3048, 3600, 0.0) db.AddUnit('velocity', 'feet/hour', 'ft/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 12, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 12, 1.0, 0.0) db.AddUnit('dimensionless', 'feet/inch', 'ft/in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.3048, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3048, 1.0, 0.0) db.AddUnit('dimensionless', 'feet/metre', 'ft/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 5280, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 5280, 0.0) db.AddUnit('dimensionless', 'feet/mile', 'ft/mi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.3048, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3048, 60, 0.0) db.AddUnit('velocity', 'feet/minute', 'ft/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 304.8, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 304.8, 1.0, 0.0) db.AddUnit('velocity', 'foot per millisecond', 'ft/ms', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.3048, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3048, 1.0, 0.0) db.AddUnit('velocity', 'feet/second', 'ft/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.3048, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3048, 1.0, 0.0) db.AddUnit('acceleration linear', 'feet/second squared', 'ft/s2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 304800, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 304800, 1.0, 0.0) db.AddUnit('velocity', 'foot per microsecond', 'ft/us', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('velocity', 'meters per microsecond', 'm/us', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.09290304, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.09290304, 1.0, 0.0) db.AddUnit('area', 'square foot', 'ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.09290304, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.09290304, 3600, 0.0) db.AddUnit('volume per time per length', 'square feet/hour', 'ft2/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 5669.291, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 5669.291, 1.0, 0.0) db.AddUnit('per length', 'square feet/cubic inch', 'ft2/in3', f_base_to_unit, f_unit_to_base, default_category='area per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.09290304, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.09290304, 1.0, 0.0) db.AddUnit('volume per time per length', 'square feet/second', 'ft2/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 1.0, 0.0) db.AddUnit('volume', 'cubic feet', 'ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0011953, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0011953, 1.0, 0.0) db.AddUnit('standard volume', 'cubic feet at standard conditions', 'ft3(std,60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 0.1589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 0.1589873, 0.0) db.AddUnit('dimensionless', 'cubic feet/barrel', 'ft3/bbl', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 86400, 0.0) db.AddUnit('volume flow rate', 'cubic feet/day', 'ft3/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.09290304, 5957067005, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.09290304, 5957067005, 0.0) db.AddUnit('unit productivity index', 'cubic feet/day foot psi', 'ft3/d.ft.psi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 7464960000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 7464960000, 0.0) db.AddUnit('volume per time per time', 'cubic feet/day/day', 'ft3/d2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.09290304, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.09290304, 1.0, 0.0) db.AddUnit('area', 'cubic feet/foot', 'ft3/ft', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'cubic feet/cubic foot', 'ft3/ft3', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 3600, 0.0) db.AddUnit('volume flow rate', 'cubic feet/hour', 'ft3/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 12960000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 12960000, 0.0) db.AddUnit('volume per time per time', 'cubic feet/hour/hour', 'ft3/h2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 1.0, 0.0) db.AddUnit('specific volume', 'cubic feet per kilogram', 'ft3/kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.06242796, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.06242796, 1.0, 0.0) db.AddUnit('specific volume', 'cubic feet/pound mass', 'ft3/lbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 60, 0.0) db.AddUnit('volume flow rate', 'cubic feet/minute', 'ft3/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.3048, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3048, 60, 0.0) db.AddUnit('velocity', 'cubic feet/min square foot', 'ft3/min.ft2', f_base_to_unit, f_unit_to_base, default_category='volume per time per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 3600, 0.0) db.AddUnit('volume per time per time', 'cubic feet/minute/minute', 'ft3/min2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00006242796, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00006242796, 1.0, 0.0) db.AddUnit('molar volume', 'cubic feet/mole (pound mass)', 'ft3/lbmole', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.06242796, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.06242796, 1.0, 0.0) db.AddUnit('molar volume', 'cubic feet/mole (pound mass)', 'ft3/mol(lbm)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 1.0, 0.0) db.AddUnit('volume flow rate', 'cubic feet/second', 'ft3/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.3048, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3048, 1.0, 0.0) db.AddUnit('velocity', 'cubic feet/second square foot', 'ft3/s.ft2', f_base_to_unit, f_unit_to_base, default_category='volume per time per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 1.0, 0.0) db.AddUnit('volume per time per time', 'cubic feet/second/second', 'ft3/s2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.02831685, 42.63769, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02831685, 42.63769, 0.0) db.AddUnit('specific volume', 'cubic feet per 94 pound sack', 'ft3/sack94', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('volume per standard volume', 'cubic feet/std cubic foot, 60 deg F', 'ft3/scf(60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.9143992, 3, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.9143992, 3, 0.0) db.AddUnit('length', 'British Foot (Benoit 1895 A)', 'ftBnA', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 12, 39.370113, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 12, 39.370113, 0.0) db.AddUnit('length', 'British Foot (Benoit 1895 B)', 'ftBnB', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.9144025, 3, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.9144025, 3, 0.0) db.AddUnit('length', 'British Foot 1865', 'ftBr(65)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.304797265, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.304797265, 1.0, 0.0) db.AddUnit('length', 'Imperial Foot', 'ftCla', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 6378300, 20926201, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 6378300, 20926201, 0.0) db.AddUnit('length', 'Gold Coast Foot', 'ftGC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 12, 39.370142, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 12, 39.370142, 0.0) db.AddUnit('length', 'Indian Foot', 'ftInd', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.30479841, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.30479841, 1.0, 0.0) db.AddUnit('length', 'Indian Foot, 1937', 'ftInd(37)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.3047996, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3047996, 1.0, 0.0) db.AddUnit('length', 'Indian Foot, 1962', 'ftInd(62)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.3047995, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.3047995, 1.0, 0.0) db.AddUnit('length', 'Indian Foot, 1975', 'ftInd(75)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.304812253, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.304812253, 1.0, 0.0) db.AddUnit('length', 'Modified American Foot', 'ftMA', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 12, 39.370147, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 12, 39.370147, 0.0) db.AddUnit('length', 'Sears Foot', 'ftSe', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 12, 39.37, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 12, 39.37, 0.0) db.AddUnit('length', 'US Survey Foot', 'ftUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('mass', 'gram', 'g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0003048, 0.000001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0003048, 0.000001, 0.0) db.AddUnit('mass per time per area', 'gram feet/cubic centimetre second', 'g.ft/cm3.s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('density', 'grams/cubic centimetre', 'g/cm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100000, 1.0, 0.0) db.AddUnit('mass per volume per length', 'grams/centimetre fourth', 'g/cm4', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('density', 'grams/cubic decimetre', 'g/dm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.2199692, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.2199692, 1.0, 0.0) db.AddUnit('density', 'grams/UK gallon', 'g/galUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.264172, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.264172, 1.0, 0.0) db.AddUnit('density', 'grams/US gallon', 'g/galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('dimensionless', 'grams/kilogram', 'g/kg', f_base_to_unit, f_unit_to_base, default_category='mass concentration') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('density', 'grams/litre', 'g/L', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('density', 'grams/cubic metre', 'g/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('mass flow rate', 'grams/second', 'g/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3.155815E+016, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3.155815E+016, 1.0, 0.0) db.AddUnit('time', 'gigayears', 'Ga', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 1.0, 0.0) db.AddUnit('acceleration linear', 'galileo', 'Gal', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 42.63769, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 42.63769, 0.0) db.AddUnit('specific volume', 'US gallons/94 lb sack', 'gal/sack', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.004546092, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.004546092, 1.0, 0.0) db.AddUnit('volume', 'UK gallon', 'galUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.004549092, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.004549092, 86400, 0.0) db.AddUnit('volume flow rate', 'UK gallons per day', 'galUK/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1605437, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1605437, 1.0, 0.0) db.AddUnit('dimensionless', 'UK gallons/cubic foot', 'galUK/ft3', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.004549092, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.004549092, 3600, 0.0) db.AddUnit('volume flow rate', 'UK gallons/hour', 'galUK/hr', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000004143055, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000004143055, 1.0, 0.0) db.AddUnit('volume per time per length', 'UK gallons/hour foot', 'galUK/hr.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000135927, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000135927, 1.0, 0.0) db.AddUnit('velocity', 'UK gallons/hour square foot', 'galUK/hr.ft2', f_base_to_unit, f_unit_to_base, default_category='volume per time per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.00004971667, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00004971667, 1.0, 0.0) db.AddUnit('volume per time per length', 'UK gallons/hour inch', 'galUK/hr.in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001957349, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001957349, 1.0, 0.0) db.AddUnit('velocity', 'UK gallons/hour square inch', 'galUK/hr.in2', f_base_to_unit, f_unit_to_base, default_category='volume per time per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.004546092, 12960000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.004546092, 12960000, 0.0) db.AddUnit('volume per time per time', 'UK gallons/hour/hour', 'galUK/hr2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('dimensionless', 'UK gallons per thousand UK gallons', 'galUK/kgalUK', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.01002242, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01002242, 1.0, 0.0) db.AddUnit('specific volume', 'UK gallons/pound mass', 'galUK/lbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00002859406, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00002859406, 1.0, 0.0) db.AddUnit('dimensionless', 'UK gallons/1000 barrels', 'galUK/Mbbl', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.004546092, 1609.344, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.004546092, 1609.344, 0.0) db.AddUnit('area', 'UK gallons/mile', 'galUK/mi', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.004549092, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.004549092, 60, 0.0) db.AddUnit('volume flow rate', 'UK gallons/minute', 'galUK/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0002485333, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0002485333, 1.0, 0.0) db.AddUnit('volume per time per length', 'UK gallons/minute foot', 'galUK/min.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0008155621, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0008155621, 1.0, 0.0) db.AddUnit('velocity', 'UK gallons/minute square foot', 'galUK/min.ft2', f_base_to_unit, f_unit_to_base, default_category='volume per time per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.004546092, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.004546092, 3600, 0.0) db.AddUnit('volume per time per time', 'UK gallons/minute/minute', 'galUK/min2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 1.0, 0.0) db.AddUnit('volume', 'US gallons', 'galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.002380952381, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.002380952381, 1.0, 0.0) db.AddUnit('dimensionless', 'US gallons per ten barrels', 'galUS/10bbl', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.02380952381, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.02380952381, 1.0, 0.0) db.AddUnit('dimensionless', 'US gallons/barrels', 'galUS/bbl', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 86400, 0.0) db.AddUnit('volume flow rate', 'US gallons per day', 'galUS/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 0.3048, 0.0) db.AddUnit('area', 'US gallons/foot', 'galUS/ft', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.1336806, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1336806, 1.0, 0.0) db.AddUnit('dimensionless', 'US gallons/cubic foot', 'galUS/ft3', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 3600, 0.0) db.AddUnit('volume flow rate', 'US gallons/hour', 'galUS/hr', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000003449814, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000003449814, 1.0, 0.0) db.AddUnit('volume per time per length', 'US gallons/foot hour', 'galUS/hr.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00001131829, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00001131829, 1.0, 0.0) db.AddUnit('velocity', 'US gallons/hour square foot', 'galUS/hr.ft2', f_base_to_unit, f_unit_to_base, default_category='volume per time per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.00004139776, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00004139776, 1.0, 0.0) db.AddUnit('volume per time per length', 'US gallons/hour inch', 'galUS/hr.in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001629833, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001629833, 1.0, 0.0) db.AddUnit('velocity', 'US gallons/hour square inch', 'galUS/hr.in2', f_base_to_unit, f_unit_to_base, default_category='volume per time per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 12960000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 12960000, 0.0) db.AddUnit('volume per time per time', 'US gallons/hour/hour', 'galUS/hr2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('dimensionless', 'US gallons per thousand US gallons', 'galUS/kgalUS', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.008345404, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.008345404, 1.0, 0.0) db.AddUnit('specific volume', 'US gallons/pound mass', 'galUS/lbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00002380952, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00002380952, 1.0, 0.0) db.AddUnit('dimensionless', 'US gallons/1000 barrels', 'galUS/Mbbl', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 1609.344, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 1609.344, 0.0) db.AddUnit('area', 'US gallons/mile', 'galUS/mi', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 60, 0.0) db.AddUnit('volume flow rate', 'US gallons/minute', 'galUS/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0002069888, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0002069888, 1.0, 0.0) db.AddUnit('volume per time per length', 'US gallons/minute foot', 'galUS/min.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0006790972, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0006790972, 1.0, 0.0) db.AddUnit('velocity', 'US gallons/minute square foot', 'galUS/min.ft2', f_base_to_unit, f_unit_to_base, default_category='volume per time per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 3600, 0.0) db.AddUnit('volume per time per time', 'US gallons/minute/minute', 'galUS/min2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 28.262357, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 28.262357, 0.0) db.AddUnit('volume per standard volume', 'US gals/1000 std cubic feet, 60 deg F', 'galUS/Mscf(60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.003785412, 42.63769, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.003785412, 42.63769, 0.0) db.AddUnit('specific volume', 'US gallons/94 lb sack', 'galUS/sack94', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000003725627, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000003725627, 1.0, 0.0) db.AddUnit('specific volume', 'US gallons/UK ton', 'galUS/tonUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000004172702, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000004172702, 1.0, 0.0) db.AddUnit('specific volume', 'US gallons/US ton', 'galUS/tonUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0007957747, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0007957747, 1.0, 0.0) db.AddUnit('magnetization', 'gamma', 'gamma', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0001, 1.0, 0.0) db.AddUnit('magnetic induction', 'gauss', 'gauss', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('activity (of radioactivity)', 'gigabecquerel', 'GBq', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000000160219, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000000160219, 1.0, 0.0) db.AddUnit('moment of force', 'billions of electron volts', 'GeV', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00980665, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00980665, 1.0, 0.0) db.AddUnit('force', 'gram force', 'gf', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 6283185307, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 6283185307, 1.0, 0.0) db.AddUnit('frequency', 'gigahertz', 'GHz', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('moment of force', 'gigajoule', 'GJ', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 9.80665, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.80665, 1.0, 0.0) db.AddUnit('acceleration linear', 'gravity', 'gn', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('resistance', 'gigaohm', 'Gohm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.015707963268, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.015707963268, 1.0, 0.0) db.AddUnit('plane angle', 'gons', 'gon', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('pressure', 'gigapascal', 'GPa', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100000000000, 1.0, 0.0) db.AddUnit('pressure per length', 'gigapascal per centimeter', 'GPa/cm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1E+018, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1E+018, 1.0, 0.0) db.AddUnit('pressure squared', 'gigapascal squared', 'GPa2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.015707963268, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.015707963268, 1.0, 0.0) db.AddUnit('plane angle', 'grad', 'gr', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('plane angle', 'gigaradian', 'Grad', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00006479891, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00006479891, 1.0, 0.0) db.AddUnit('mass', 'grain', 'grain', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00002288352, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00002288352, 1.0, 0.0) db.AddUnit('density', 'grains/100 cubic feet', 'grain/100ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.002288352, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.002288352, 1.0, 0.0) db.AddUnit('density', 'grains/cubic foot', 'grain/ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00002288352, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00002288352, 1.0, 0.0) db.AddUnit('density', 'grains/100 cubic feet', 'grain/ft3(100)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01711806, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01711806, 1.0, 0.0) db.AddUnit('density', 'grains/US gallon', 'grain/galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('electric conductance', 'gigasiemens', 'GS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('standard volume', 'giga standard cubic metres 15C', 'Gsm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('power', 'gigawatt', 'GW', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600000000000, 1.0, 0.0) db.AddUnit('moment of force', 'gigawatt hour', 'GW.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600, 1.0, 0.0) db.AddUnit('time', 'hour', 'h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600, 0.028316846592, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600, 0.028316846592, 0.0) db.AddUnit('time per volume', 'hours/cubic foot', 'h/ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600, 304.8, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600, 304.8, 0.0) db.AddUnit('time per length', 'hour per thousand foot', 'h/kft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3.6, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3.6, 1.0, 0.0) db.AddUnit('time per length', 'hour per kilometer', 'h/km', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600, 1.0, 0.0) db.AddUnit('time per volume', 'hour per cubic meter', 'h/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10000, 1.0, 0.0) db.AddUnit('area', 'hectare', 'ha', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10000, 1.0, 0.0) db.AddUnit('volume', 'hectare metres', 'ha.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10000000, 1.0, 0.0) db.AddUnit('pressure', 'hectobar', 'hbar', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 746.043, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 746.043, 1.0, 0.0) db.AddUnit('power', 'hydraulic horsepower', 'hhp', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 746.043, 0.00064516, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 746.043, 0.00064516, 0.0) db.AddUnit('density of heat flow rate', '(hydraulic) horsepower per square inch', 'hhp/in2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('volume', 'hectoliter', 'hL', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 745.6999, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 745.6999, 1.0, 0.0) db.AddUnit('power', 'horsepower', 'hp', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 2684520, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2684520, 1.0, 0.0) db.AddUnit('moment of force', 'horsepower hour', 'hp.hr', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 2684520, 0.1589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2684520, 0.1589873, 0.0) db.AddUnit('normal stress', 'horsepower hours/barrel', 'hp.hr/bbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 2684520, 0.4535924, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2684520, 0.4535924, 0.0) db.AddUnit('specific energy', 'horsepower hours/pound mass', 'hp.hr/lbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 26334.14, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 26334.14, 1.0, 0.0) db.AddUnit('power per volume', 'horsepower/cubic foot', 'hp/ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 745.6999, 0.00064516, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 745.6999, 0.00064516, 0.0) db.AddUnit('density of heat flow rate', 'horsepower per square inch', 'hp/in2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100, 1.0, 0.0) db.AddUnit('time', 'hundred seconds', 'hs', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0254, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0254, 1.0, 0.0) db.AddUnit('length', 'inch', 'in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00254, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00254, 1.0, 0.0) db.AddUnit('length', 'tenth of an inch', 'in/10', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0015875, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0015875, 1.0, 0.0) db.AddUnit('length', '16th of an inch', 'in/16', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00079375, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00079375, 1.0, 0.0) db.AddUnit('length', '32nd of an inch', 'in/32', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000396875, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000396875, 1.0, 0.0) db.AddUnit('length', '64th of an inch', 'in/64', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0254, 31558150, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0254, 31558150, 0.0) db.AddUnit('velocity', 'inches/year', 'in/a', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.8, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.8, 1.0, 0.0) db.AddUnit('volumetric thermal expansion', 'inches/inch degree Fahrenheit', 'in/in.degF', f_base_to_unit, f_unit_to_base, default_category='linear thermal expansion') f_unit_to_base = MakeCustomaryToBase(0.0, 0.0254, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0254, 60, 0.0) db.AddUnit('velocity', 'inches/minute', 'in/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0254, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0254, 1.0, 0.0) db.AddUnit('velocity', 'inches/second', 'in/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00064516, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00064516, 1.0, 0.0) db.AddUnit('area', 'square inches', 'in2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 144, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 144, 0.0) db.AddUnit('dimensionless', 'square inches/square foot', 'in2/ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'square inches/square inch', 'in2/in2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00064516, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00064516, 1.0, 0.0) db.AddUnit('volume per time per length', 'square inches/second', 'in2/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00001638706, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00001638706, 1.0, 0.0) db.AddUnit('volume', 'cubic inches', 'in3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000016387064, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000016387064, 0.3048, 0.0) db.AddUnit('area', 'cubic inches/foot', 'in3/ft', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000004162314, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000004162314, 1.0, 0.0) db.AddUnit('second moment of area', 'inches to the fourth', 'in4', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 249.082, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 249.082, 1.0, 0.0) db.AddUnit('pressure', 'inches of water at 39.2 deg F', 'inH2O(39.2F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 248.84, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 248.84, 1.0, 0.0) db.AddUnit('pressure', 'inches of water at 60 deg F', 'inH2O(60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3386.38, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3386.38, 1.0, 0.0) db.AddUnit('pressure', 'inches of mercury at 32 deg F', 'inHg(32F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3376.85, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3376.85, 1.0, 0.0) db.AddUnit('pressure', 'inches of mercury at 60 deg F', 'inHg(60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 39.37, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 39.37, 0.0) db.AddUnit('length', 'US Survey inch', 'inUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10000, 1.0, 0.0) db.AddUnit('force per length', 'joules/square centimetre', 'J/cm2', f_base_to_unit, f_unit_to_base, default_category='energy per area') f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('normal stress', 'joules/cubic decimetre', 'J/dm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('specific energy', 'joules/gram', 'J/g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('specific heat capacity', 'joules/gram degree Kelvin', 'J/g.K', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('force', 'joules/metre', 'J/m', f_base_to_unit, f_unit_to_base, default_category='energy per length') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('force per length', 'joules/square metre', 'J/m2', f_base_to_unit, f_unit_to_base, default_category='energy per area') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('heat transfer coefficient', 'joules/second square metre deg C', 'J/s.m2.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('thermal insulance', 'degrees Kelvin square metres/kilowatt', 'K.m2/kW', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('electric current', 'kiloampere', 'kA', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158.9873, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158.9873, 86400, 0.0) db.AddUnit('volume flow rate', 'thousand barrels per day', 'kbbl/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1024, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1024, 1.0, 0.0) db.AddUnit('digital storage', 'kilobyte', 'kbyte', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('electric capacity', 'kilocoulombs', 'kC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 1.0, 0.0) db.AddUnit('moment of force', 'kilocalories', 'kcal', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 0.0001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 0.0001, 0.0) db.AddUnit('force', 'kilocalorie metres/square centimetre', 'kcal.m/cm2', f_base_to_unit, f_unit_to_base, default_category='energy length per area') f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 0.000001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 0.000001, 0.0) db.AddUnit('normal stress', 'kilocalories/cubic centimetre', 'kcal/cm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 0.001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 0.001, 0.0) db.AddUnit('specific energy', 'kilocalories/gram', 'kcal/g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.162222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.162222, 1.0, 0.0) db.AddUnit('power', 'kilocalories/hour', 'kcal/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.162222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.162222, 1.0, 0.0) db.AddUnit('thermal conductivity', 'kilocalories/hour metre degree Celsius', 'kcal/h.m.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.162222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.162222, 1.0, 0.0) db.AddUnit('heat transfer coefficient', 'kilocalorie/hour square metre deg C', 'kcal/h.m2.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 1.0, 0.0) db.AddUnit('specific energy', 'kilocalories/kilogram', 'kcal/kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 1.0, 0.0) db.AddUnit('specific heat capacity', 'kilocalories/kilogram degree Celsius', 'kcal/kg.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 1.0, 0.0) db.AddUnit('normal stress', 'kilocalroies/cubic metre', 'kcal/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184, 1.0, 0.0) db.AddUnit('molar thermodynamic energy', 'kilocalories/mole (gram)', 'kcal/mol', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4184000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4184000, 1.0, 0.0) db.AddUnit('molar thermodynamic energy', 'kilocalories/mole (gram)', 'kcal/mol(g)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('luminous intensity', 'kilocandela', 'kcd', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.01, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.01, 1.0, 0.0) db.AddUnit('force', 'kilkodynes', 'kdyne', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('per time', 'thousand per second', 'kEuc/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.60217733E-016, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.60217733E-016, 1.0, 0.0) db.AddUnit('moment of force', 'kiloelectron volts', 'keV', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1355.818, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1355.818, 1.0, 0.0) db.AddUnit('moment of force', 'thousand foot pounds force', 'kft.lbf', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 304.8, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 304.8, 3600, 0.0) db.AddUnit('velocity', 'thousand feet per hour', 'kft/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 304.8, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 304.8, 1.0, 0.0) db.AddUnit('velocity', 'thousand feet per second', 'kft/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10000, 1.0, 0.0) db.AddUnit('linear density', 'kilogram metres/square centimetre', 'kg.m/cm2', f_base_to_unit, f_unit_to_base, default_category='mass per length') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 86400, 0.0) db.AddUnit('mass flow rate', 'kilogram per day', 'kg/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('density', 'kilograms/cubic decimetre', 'kg/dm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10000, 1.0, 0.0) db.AddUnit('mass per volume per length', 'kilograms/decimetre fourth', 'kg/dm4', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3600, 0.0) db.AddUnit('mass flow rate', 'kilograms/hour', 'kg/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'kilograms/kilogram', 'kg/kg', f_base_to_unit, f_unit_to_base, default_category='mass concentration') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3600000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3600000, 0.0) db.AddUnit('mass per energy', 'kilograms/kilowatt hour', 'kg/kW.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('density', 'kilogram per litre', 'kg/L', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('mass per time per length', 'kilograms/metre second', 'kg/m.s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 60, 0.0) db.AddUnit('mass flow rate', 'kilogram per min', 'kg/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('mass per energy', 'kilograms/megajoule', 'kg/MJ', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 42.63769, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 42.63769, 0.0) db.AddUnit('dimensionless', 'kilogram per 94 pound sack', 'kg/sack94', f_base_to_unit, f_unit_to_base, default_category='mass concentration') f_unit_to_base = MakeCustomaryToBase(0.0, 9.80665, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.80665, 1.0, 0.0) db.AddUnit('force', 'kilogram force', 'kgf', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 9.80665, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.80665, 1.0, 0.0) db.AddUnit('moment of force', 'kilogram force metres', 'kgf.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 98066.5, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 98066.5, 1.0, 0.0) db.AddUnit('force per length', 'kilogram force metres/square centimetre', 'kgf.m/cm2', f_base_to_unit, f_unit_to_base, default_category='energy per area') f_unit_to_base = MakeCustomaryToBase(0.0, 9.80665, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.80665, 1.0, 0.0) db.AddUnit('force', 'kilograms force metres/metre', 'kgf.m/m', f_base_to_unit, f_unit_to_base, default_category='force length per length') f_unit_to_base = MakeCustomaryToBase(0.0, 9.80665, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.80665, 1.0, 0.0) db.AddUnit('force area', 'kilogram force metres squared', 'kgf.m2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 9.80665, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.80665, 1.0, 0.0) db.AddUnit('mass per time per length', 'kilograms force seconds/square metre', 'kgf.s/m2', f_base_to_unit, f_unit_to_base, default_category='dynamic viscosity') f_unit_to_base = MakeCustomaryToBase(0.0, 9.80665, 0.01, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.80665, 0.01, 0.0) db.AddUnit('force per length', 'kilograms force/centimetre', 'kgf/cm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 9.80665, 0.0001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.80665, 0.0001, 0.0) db.AddUnit('pressure', 'kilogram per square centimeter', 'kgf/cm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'kilogram force per kilogram force', 'kgf/kgf', f_base_to_unit, f_unit_to_base, default_category='force per force') f_unit_to_base = MakeCustomaryToBase(0.0, 9.80665, 0.000001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.80665, 0.000001, 0.0) db.AddUnit('pressure', 'kilogram force/square millimetre', 'kgf/mm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 6283.185307, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 6283.185307, 1.0, 0.0) db.AddUnit('frequency', 'kilohertz', 'kHz', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('moment of force', 'kilojoules', 'kJ', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3.6, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3.6, 0.0) db.AddUnit('thermal conductivity', 'kilojoule metres/hour sq metre deg K', 'kJ.m/h.m2.K', f_base_to_unit, f_unit_to_base, default_category='energy length per time area temperature') f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('normal stress', 'kilojoules/cubic decimetre', 'kJ/dm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 3600, 0.0) db.AddUnit('heat transfer coefficient', 'kilojoules/hour square metre deg K', 'kJ/h.m2.K', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('specific energy', 'kilojoule/kilogram', 'kJ/kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('specific heat capacity', 'kilojoules/kilogram degree Kelvin', 'kJ/kg.K', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('normal stress', 'kilojoule/cubic metre', 'kJ/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.0, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.0, 1.0, 0.0) db.AddUnit('molar thermodynamic energy', 'kilojoule/mole (kilogram)', 'kJ/kmol', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('molar thermodynamic energy', 'kilojoule/mole (kilogram)', 'kJ/mol(kg)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.0, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.0, 1.0, 0.0) db.AddUnit('molar heat capacity', 'kilojoules/mole (kilogram) deg K', 'kJ/kmol.K', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('molar heat capacity', 'kilojoules/mole (kilogram) deg K', 'kJ/mol(kg).K', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4448.222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4448.222, 1.0, 0.0) db.AddUnit('force', 'thousand pounds force', 'klbf', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 453.5924, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 453.5924, 1.0, 0.0) db.AddUnit('mass', 'thousand pounds mass', 'klbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 453.5924, 0.0254, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 453.5924, 0.0254, 0.0) db.AddUnit('linear density', 'thousand pounds mass per inch', 'klbm/in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('illuminance', 'kilolux', 'klx', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('length', 'kilometre', 'km', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100000, 1.0, 0.0) db.AddUnit('dimensionless', 'kilometre/ centimetre', 'km/cm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('per area', 'kilometres/cubic decimetre', 'km/dm3', f_base_to_unit, f_unit_to_base, default_category='length per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3.6, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3.6, 0.0) db.AddUnit('velocity', 'kilometres/hour', 'km/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('per area', 'kilometres/litre', 'km/L', f_base_to_unit, f_unit_to_base, default_category='length per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('velocity', 'kilometer per second', 'km/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('area', 'square kilometres', 'km2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('volume', 'cubic kilometres', 'km3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('molar mass', 'kilomole', 'kmol', f_base_to_unit, f_unit_to_base, default_category='amount of substance') f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('force', 'kilonewtons', 'kN', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('moment of force', 'kilonewton metres', 'kN.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('force area', 'kilonewton metres squared', 'kN.m2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('force per length', 'kilonewtons/metre', 'kN/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('pressure', 'kilonewtons/square metre', 'kN/m2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1852, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1852, 3600, 0.0) db.AddUnit('velocity', 'knots', 'knot', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('resistance', 'kilohm', 'kohm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('electrical resistivity', 'kilo ohm metre', 'kohm.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('pressure', 'kilopascals', 'kPa', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('mass per time per area', 'kilopascal seconds/metre', 'kPa.s/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10, 1.0, 0.0) db.AddUnit('pressure per length', 'kilopascal per hundred meter', 'kPa/100m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 3600, 0.0) db.AddUnit('pressure per time', 'kilopascal per hour', 'kPa/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('pressure per length', 'kilopascals/metre', 'kPa/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 60, 0.0) db.AddUnit('pressure per time', 'kilopascal per min', 'kPa/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('pressure squared', 'kilopascal squared', 'kPa2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000000, 1.0, 0.0) db.AddUnit('pressure per time', 'kilopascal squared per centipoise', 'kPa2/cP', f_base_to_unit, f_unit_to_base, default_category='pressure squared per (dynamic viscosity)') f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('pressure per time', 'kilopascal squared per thousand centipoise', 'kPa2/kcP', f_base_to_unit, f_unit_to_base, default_category='pressure squared per (dynamic viscosity)') f_unit_to_base = MakeCustomaryToBase(0.0, 6894757, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 6894757, 1.0, 0.0) db.AddUnit('pressure', 'thousand pounds per square inch', 'kpsi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 47537674000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 47537674000000, 1.0, 0.0) db.AddUnit('pressure squared', 'thousand pound per square inch, squared', 'kpsi2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('plane angle', 'kiloradian', 'krad', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('electric conductance', 'kilosiemens', 'kS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('standard volume', 'kilo standard cubic metres 15C', 'ksm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 86400, 0.0) db.AddUnit('standard volume per time', 'thousand std cubic metres/ day', 'ksm3/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('dimensionless', '1000 std cubic metres/ std cubic metre', 'ksm3/sm3', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('electric potential', 'kilovolt', 'kV', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('power', 'kilowatts', 'kW', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600000, 1.0, 0.0) db.AddUnit('moment of force', 'kilowatt hours', 'kW.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600000, 0.001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600000, 0.001, 0.0) db.AddUnit('normal stress', 'kilowatt hours/decimetre', 'kW.h/dm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600000, 1.0, 0.0) db.AddUnit('specific energy', 'kilowatt hours/kilogram', 'kW.h/kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600000, 1.0, 0.0) db.AddUnit('specific heat capacity', 'kilowatt hours/kilogram degree C', 'kW.h/kg.degC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600000, 1.0, 0.0) db.AddUnit('normal stress', 'kilowatt hours/cubic metres', 'kW.h/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10000000, 1.0, 0.0) db.AddUnit('density of heat flow rate', 'kilowatts/square centimetre', 'kW/cm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('density of heat flow rate', 'kilowatts/square metre', 'kW/m2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('heat transfer coefficient', 'kilowatts/square metre degree Kelvin', 'kW/m2.K', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('power per volume', 'kilowatts/cubic metre', 'kW/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('volumetric heat transfer coefficient', 'killowatts/cubic metre degree Kelvin', 'kW/m3.K', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('volume', 'litre', 'L', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00001, 1.0, 0.0) db.AddUnit('specific volume', 'liter per hundred kilogram', 'L/100kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('area', 'litres/100 kilometres', 'L/100km', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.589873, 0.0) db.AddUnit('dimensionless', 'liter per ten barrel', 'L/10bbl', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 6000000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 6000000, 0.0) db.AddUnit('productivity index', 'litres per minute per bar', 'L/bar.min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 3600, 0.0) db.AddUnit('volume flow rate', 'liter per hour', 'L/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('specific volume', 'liter per kilogram', 'L/kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('area', 'litres/100 kilometres', 'L/km(100)', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('area', 'litres/metre', 'L/m', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('dimensionless', 'litres/cubic metre', 'L/m3', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 60, 0.0) db.AddUnit('volume flow rate', 'liter per minute', 'L/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, .001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, .001, 1.0, 0.0) db.AddUnit('molar volume', 'litres/mole (gram)', 'L/mol', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('molar volume', 'litres/mole (gram)', 'L/mol(g)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('molar volume', 'litres/mole (kilogram)', 'L/kmol', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('molar volume', 'litres/mole (kilogram)', 'L/mol(kg)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('volume flow rate', 'litres/second', 'L/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('volume per time per time', 'litres/second/second', 'L/s2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('specific volume', 'litres/tonne', 'L/t', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1016.047, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1016.047, 0.0) db.AddUnit('specific volume', 'liter per UK ton', 'L/tonUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.448222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.448222, 1.0, 0.0) db.AddUnit('force', 'pounds force', 'lbf', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.355818, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.355818, 1.0, 0.0) db.AddUnit('moment of force', 'foot pounds force', 'lbf.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.355818, 0.1589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.355818, 0.1589873, 0.0) db.AddUnit('normal stress', 'foot pounds force/barrel', 'lbf.ft/bbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.355818, 0.0254, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.355818, 0.0254, 0.0) db.AddUnit('force', 'pounds force feet/inch', 'lbf.ft/in', f_base_to_unit, f_unit_to_base, default_category='force length per length') f_unit_to_base = MakeCustomaryToBase(0.0, 2101.522, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2101.522, 1.0, 0.0) db.AddUnit('force per length', 'foot pounds force/square inch', 'lbf.ft/in2', f_base_to_unit, f_unit_to_base, default_category='energy per area') f_unit_to_base = MakeCustomaryToBase(0.0, 1.355818, 0.4535924, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.355818, 0.4535924, 0.0) db.AddUnit('specific energy', 'foot pounds force/pound mass', 'lbf.ft/lbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1129848, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1129848, 1.0, 0.0) db.AddUnit('moment of force', 'inch pounds force', 'lbf.in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.448222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.448222, 1.0, 0.0) db.AddUnit('force', 'pounds force inches/inch', 'lbf.in/in', f_base_to_unit, f_unit_to_base, default_category='force length per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.002869815, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.002869815, 1.0, 0.0) db.AddUnit('force area', 'pounds force inches squared', 'lbf.in2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 47.88026, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 47.88026, 1.0, 0.0) db.AddUnit('mass per time per length', 'pounds force seconds/square foot', 'lbf.s/ft2', f_base_to_unit, f_unit_to_base, default_category='dynamic viscosity') f_unit_to_base = MakeCustomaryToBase(0.0, 6894.757, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 6894.757, 1.0, 0.0) db.AddUnit('mass per time per length', 'pounds force seconds/square inch', 'lbf.s/in2', f_base_to_unit, f_unit_to_base, default_category='dynamic viscosity') f_unit_to_base = MakeCustomaryToBase(0.0, 4.448222, 30.48, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.448222, 30.48, 0.0) db.AddUnit('force per length', 'pounds force per hundred foot', 'lbf/100ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4788026, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4788026, 1.0, 0.0) db.AddUnit('pressure', 'pounds force/100 square foot', 'lbf/100ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.448222, 30, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.448222, 30, 0.0) db.AddUnit('force per length', 'pounds force per thirty meters', 'lbf/30m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.448222, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.448222, 0.3048, 0.0) db.AddUnit('force per length', 'pounds force per foot', 'lbf/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 47.88026, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 47.88026, 1.0, 0.0) db.AddUnit('pressure', 'pounds force/square foot', 'lbf/ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4788026, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4788026, 1.0, 0.0) db.AddUnit('pressure', 'pounds force/100 square foot', 'lbf/ft2(100)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.448222, 0.02831685, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.448222, 0.02831685, 0.0) db.AddUnit('force per volume', 'pounds force/cubic foot', 'lbf/ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.448222, 0.003785412, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.448222, 0.003785412, 0.0) db.AddUnit('force per volume', 'pounds force/US gallon', 'lbf/galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.448222, 0.0254, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.448222, 0.0254, 0.0) db.AddUnit('force per length', 'pounds force/inch', 'lbf/in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 6894.757, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 6894.757, 1.0, 0.0) db.AddUnit('pressure', 'pounds force/square inch', 'lbf/in2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'pound force per pound force', 'lbf/lbf', f_base_to_unit, f_unit_to_base, default_category='force per force') f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 1.0, 0.0) db.AddUnit('mass', 'pounds mass', 'lbm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.138255, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.138255, 1.0, 0.0) db.AddUnit('momentum', 'foot pounds mass/second', 'lbm.ft/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.04214011, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.04214011, 1.0, 0.0) db.AddUnit('moment of inertia', 'pounds mass square feet', 'lbm.ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.04214011, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.04214011, 1.0, 0.0) db.AddUnit('moment of force', 'pounds mass square feet/second squared', 'lbm.ft2/s2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 453592.4, 31558150, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 453592.4, 31558150, 0.0) db.AddUnit('mass flow rate', 'million pounds mass/year', 'lbm(million)/yr', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 99.77633, 1000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 99.77633, 1000, 0.0) db.AddUnit('density', 'pounds mass/1000 UK gallons', 'lbm/1000galUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 119.8264, 1000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 119.8264, 1000, 0.0) db.AddUnit('density', 'pounds mass/1000 US gallons', 'lbm/1000galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.882428, 100, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.882428, 100, 0.0) db.AddUnit('surface density', 'pounds mass per hundred square foot', 'lbm/100ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 1.589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 1.589873, 0.0) db.AddUnit('density', 'pounds mass per 10 barrel', 'lbm/10bbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 0.1589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 0.1589873, 0.0) db.AddUnit('density', 'pounds mass/barrel', 'lbm/bbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 86400, 0.0) db.AddUnit('mass flow rate', 'pound mass per day', 'lbm/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 0.3048, 0.0) db.AddUnit('linear density', 'pounds mass/foot', 'lbm/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0004133789, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0004133789, 1.0, 0.0) db.AddUnit('mass per time per length', 'pounds mass/foot hour', 'lbm/ft.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.488164, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.488164, 1.0, 0.0) db.AddUnit('mass per time per length', 'pounds mass/foot second', 'lbm/ft.s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.882428, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.882428, 1.0, 0.0) db.AddUnit('surface density', 'pounds mass/square foot', 'lbm/ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 16.01846, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 16.01846, 1.0, 0.0) db.AddUnit('density', 'pounds mass/cubic foot', 'lbm/ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 16.01846, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 16.01846, 0.3048, 0.0) db.AddUnit('mass per volume per length', 'pounds mass/foot fourth', 'lbm/ft4', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 99.77633, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 99.77633, 1.0, 0.0) db.AddUnit('density', 'pounds mass/UK gallon', 'lbm/galUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 99.77633, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 99.77633, 0.3048, 0.0) db.AddUnit('mass per volume per length', 'pounds mass/UK gallon foot', 'lbm/galUK.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 99.77633, 1000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 99.77633, 1000, 0.0) db.AddUnit('density', 'pounds mass/1000 UK gallons', 'lbm/galUK(1000)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 119.8264, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 119.8264, 1.0, 0.0) db.AddUnit('density', 'pounds mass/US gallon', 'lbm/galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 119.8264, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 119.8264, 0.3048, 0.0) db.AddUnit('mass per volume per length', 'pounds mass/US gallon foot', 'lbm/galUS.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 119.8264, 1000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 119.8264, 1000, 0.0) db.AddUnit('density', 'pounds mass/1000 US gallons', 'lbm/galUS(1000)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 3600, 0.0) db.AddUnit('mass flow rate', 'pounds mass/hour', 'lbm/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0004133789, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0004133789, 1.0, 0.0) db.AddUnit('mass per time per length', 'pounds mass/hour foot', 'lbm/h.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00135623, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00135623, 1.0, 0.0) db.AddUnit('mass per time per area', 'pounds mass/hour square foot', 'lbm/h.ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000001689659, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000001689659, 1.0, 0.0) db.AddUnit('mass per energy', 'pounds mass/horsepower hour', 'lbm/hp.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 0.000016387064, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 0.000016387064, 0.0) db.AddUnit('density', 'pounds mass/cubic inch', 'lbm/in3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00285301, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00285301, 1.0, 0.0) db.AddUnit('density', 'pounds mass/1000 barrels', 'lbm/Mbbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 60, 0.0) db.AddUnit('mass flow rate', 'pounds mass/minute', 'lbm/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 1.0, 0.0) db.AddUnit('mass flow rate', 'pounds mass/second', 'lbm/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.488164, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.488164, 1.0, 0.0) db.AddUnit('mass per time per length', 'pounds mass/second foot', 'lbm/s.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4.882428, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4.882428, 1.0, 0.0) db.AddUnit('mass per time per area', 'pounds mass/second square foot', 'lbm/s.ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.201167824, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.201167824, 1.0, 0.0) db.AddUnit('length', 'British link 1895 A', 'lkBnA', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 7.92, 39.370113, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 7.92, 39.370113, 0.0) db.AddUnit('length', 'British link 1895 B', 'lkBnB', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 7.92, 39.370432, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 7.92, 39.370432, 0.0) db.AddUnit('length', 'Clarke link', 'lkCla', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 7.92, 39.370147, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 7.92, 39.370147, 0.0) db.AddUnit('length', 'Sears link', 'lkSe', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 7.92, 39.37, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 7.92, 39.37, 0.0) db.AddUnit('length', 'US Survey link', 'lkUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('illuminance', 'lumens/square metre', 'lm/m2', f_base_to_unit, f_unit_to_base, default_category='luminous exitance') f_unit_to_base = MakeCustomaryToBase(0.0, 28316.846592, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28316.846592, 1.0, 0.0) db.AddUnit('volume', 'million cubic feet', 'M(ft3)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 43560, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 43560, 0.0) db.AddUnit('dimensionless', 'million cubic feet per acre-foot', 'M(ft3)/acre.ft', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 28316.85, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28316.85, 86400, 0.0) db.AddUnit('volume flow rate', 'million cubic feet per day', 'M(ft3)/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('volume', 'million cubic meters', 'M(m3)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 86400, 0.0) db.AddUnit('volume flow rate', 'million cubic metres per day', 'M(m3)/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 30, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 30, 0.0) db.AddUnit('dimensionless', 'metres per thirty metres', 'm/30m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100, 1.0, 0.0) db.AddUnit('dimensionless', 'metres/ centimetre', 'm/cm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 86400, 0.0) db.AddUnit('velocity', 'metres/day', 'm/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3600, 0.0) db.AddUnit('velocity', 'metres/hour', 'm/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('dimensionless', 'metres/kilometre', 'm/km', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'metres/metre', 'm/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('volumetric thermal expansion', 'metres/metre Kelvin', 'm/m.K', f_base_to_unit, f_unit_to_base, default_category='linear thermal expansion') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('per area', 'metres/cubic metre', 'm/m3', f_base_to_unit, f_unit_to_base, default_category='length per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 60, 0.0) db.AddUnit('velocity', 'meter per minute', 'm/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('velocity', 'metres/millisecond', 'm/ms', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('per length', 'square metres/cubic centimetre', 'm2/cm3', f_base_to_unit, f_unit_to_base, default_category='area per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 86400000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 86400000, 0.0) db.AddUnit('unit productivity index', 'square metres/day kiloPascal', 'm2/d.kPa', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('mass attenuation coefficient', 'square metres/gram', 'm2/g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3600, 0.0) db.AddUnit('volume per time per length', 'square metres/hour', 'm2/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'square metres/square metre', 'm2/m2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('per length', 'square metres/cubic metre', 'm2/m3', f_base_to_unit, f_unit_to_base, default_category='area per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.0446158, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0446158, 1.0, 0.0) db.AddUnit('molar mass', 'cubic metres at std condition (0 deg C)', 'm3(std,0C)', f_base_to_unit, f_unit_to_base, default_category='amount of substance') f_unit_to_base = MakeCustomaryToBase(0.0, 0.0422932, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0422932, 1.0, 0.0) db.AddUnit('molar mass', 'cubic metres at std condition (15 deg C)', 'm3(std,15C)', f_base_to_unit, f_unit_to_base, default_category='amount of substance') f_unit_to_base = MakeCustomaryToBase(0.0, 1., 8640000000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1., 8640000000, 0.0) db.AddUnit('productivity index', 'cubic meter per day per bar', 'm3/bar.d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 360000000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 360000000, 0.0) db.AddUnit('productivity index', 'cubic meter per hour per bar', 'm3/bar.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 6000000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 6000000, 0.0) db.AddUnit('productivity index', 'cubic meter per minute per bar', 'm3/bar.min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 86400, 0.0) db.AddUnit('specific productivity index', 'cubic metres/centiPoise day kiloPascal', 'm3/cP.d.kPa', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('specific productivity index', 'cubic metres/centiPoise Pascal second', 'm3/cP.Pa.s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 86400, 0.0) db.AddUnit('volume flow rate', 'cubic metres/day', 'm3/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 86400000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 86400000, 0.0) db.AddUnit('productivity index', 'cubic metres/day kilopascal', 'm3/d.kPa', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 86400, 0.0) db.AddUnit('volume per time per length', 'cubic meter per day per meter', 'm3/d.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 7464960000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 7464960000, 0.0) db.AddUnit('volume per time per time', 'cubic metres/day/day', 'm3/d2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('specific volume', 'cubic metres/gram', 'm3/g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3600, 0.0) db.AddUnit('volume flow rate', 'cubic metres/hour', 'm3/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3600, 0.0) db.AddUnit('volume per time per length', 'cubic meter per hour per meter', 'm3/h.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0001, 1.0, 0.0) db.AddUnit('dimensionless', 'cubic metres/hectare metre', 'm3/ha.m', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('area', 'cubic metres/kilometre', 'm3/km', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 86400000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 86400000, 0.0) db.AddUnit('productivity index', 'cubic meter per day per kilopascal', 'm3/kPa.d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3600000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3600000, 0.0) db.AddUnit('productivity index', '(cubic metres per hour) per kilopascal', 'm3/kPa.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3600000, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3600000, 0.0) db.AddUnit('isothermal compressibility', 'cubic metres/kilowatt hour', 'm3/kW.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('area', 'cubic metres/metre', 'm3/m', f_base_to_unit, f_unit_to_base, default_category='volume per length') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('length', 'cubic meter per square meter', 'm3/m2', f_base_to_unit, f_unit_to_base, default_category='volume per area') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'cubic metres/cubic metre', 'm3/m3', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 60, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 60, 0.0) db.AddUnit('volume flow rate', 'cubic meter per minute', 'm3/min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, .001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, .001, 1.0, 0.0) db.AddUnit('molar volume', 'cubic metres/mole (kilogram)', 'm3/kmol', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('molar volume', 'cubic metres/mole (kilogram)', 'm3/mol(kg)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 595707004.8, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 595707004.8, 0.0) db.AddUnit('productivity index', 'cubic meter per day per (pound per square inch)', 'm3/psi.d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 0.3048, 0.0) db.AddUnit('volume per time per length', 'cubic meter per second per foot', 'm3/s.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('volume per time per length', 'cubic metres/second metre', 'm3/s.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('velocity', 'cubic metres/second square metre', 'm3/s.m2', f_base_to_unit, f_unit_to_base, default_category='volume per time per area') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('specific volume', 'cubic metres/tonne', 'm3/t', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1016.047, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1016.047, 0.0) db.AddUnit('specific volume', 'cubic meters per UK ton', 'm3/tonUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 907.1847, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 907.1847, 0.0) db.AddUnit('specific volume', 'cubic meters per US ton', 'm3/tonUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('electric current', 'milliamp', 'mA', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 31558150000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 31558150000000, 1.0, 0.0) db.AddUnit('time', 'megayears', 'Ma', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('electric current', 'megaampere', 'MA', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10, 1.0, 0.0) db.AddUnit('current density', 'milliampere per square centimeter', 'mA/cm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 0.09290304, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 0.09290304, 0.0) db.AddUnit('current density', 'milliampere per square foot', 'mA/ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100, 1.0, 0.0) db.AddUnit('pressure', 'millibar', 'mbar', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158.9873, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158.9873, 1.0, 0.0) db.AddUnit('volume', 'thousand barrels', 'Mbbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 48.45933, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 48.45933, 86400, 0.0) db.AddUnit('volume length per time', 'thousand barrel feet/day', 'Mbbl.ft/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158.9873, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158.9873, 86400, 0.0) db.AddUnit('volume flow rate', 'thousand barrels/day', 'Mbbl/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('activity (of radioactivity)', 'megabecquerel', 'MBq', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 293071.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 293071.1, 1.0, 0.0) db.AddUnit('power', 'million Btus/hour', 'MBtu/hr', f_base_to_unit, f_unit_to_base, default_category='heat flow rate') f_unit_to_base = MakeCustomaryToBase(0.0, 1048576, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1048576, 1.0, 0.0) db.AddUnit('digital storage', 'megabyte', 'Mbyte', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('electric capacity', 'millicoulomb', 'mC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('electric polarization', 'millicoulombs/square metre', 'mC/m2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 28.316846592, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28.316846592, 1.0, 0.0) db.AddUnit('volume', 'thousand cubic feet', 'Mcf', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 37000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 37000000, 1.0, 0.0) db.AddUnit('activity (of radioactivity)', 'None', 'mCi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 37000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 37000, 1.0, 0.0) db.AddUnit('activity (of radioactivity)', 'millicurie', 'mcurie', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 9.86923E-016, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.86923E-016, 1.0, 0.0) db.AddUnit('area', 'millidarcy', 'mD', f_base_to_unit, f_unit_to_base, default_category='permeability rock') f_unit_to_base = MakeCustomaryToBase(0.0, 3.008141E-016, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3.008141E-016, 1.0, 0.0) db.AddUnit('volume', 'millidarcy foot', 'mD.ft', f_base_to_unit, f_unit_to_base, default_category='permeability length') f_unit_to_base = MakeCustomaryToBase(0.0, 9.86932E-016, 47.88026, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.86932E-016, 47.88026, 0.0) db.AddUnit('unit productivity index', 'millidarcy sq feet/pound force second', 'mD.ft2/lbf.s', f_base_to_unit, f_unit_to_base, default_category='mobility') f_unit_to_base = MakeCustomaryToBase(0.0, 9.86932E-016, 6894.757, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.86932E-016, 6894.757, 0.0) db.AddUnit('unit productivity index', 'millidarcy sq inches/pound force second', 'mD.in2/lbf.s', f_base_to_unit, f_unit_to_base, default_category='mobility') f_unit_to_base = MakeCustomaryToBase(0.0, 9.86932E-016, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.86932E-016, 1.0, 0.0) db.AddUnit('volume', 'millidarcy metres', 'mD.m', f_base_to_unit, f_unit_to_base, default_category='permeability length') f_unit_to_base = MakeCustomaryToBase(0.0, 9.86932E-016, 0.001, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.86932E-016, 0.001, 0.0) db.AddUnit('unit productivity index', 'millidarcies/centipoise', 'mD/cP', f_base_to_unit, f_unit_to_base, default_category='mobility') f_unit_to_base = MakeCustomaryToBase(0.0, 9.86932E-016, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 9.86932E-016, 1.0, 0.0) db.AddUnit('unit productivity index', 'millidarcies/Pascal second', 'mD/Pa.s', f_base_to_unit, f_unit_to_base, default_category='mobility') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('electrochemical equivalent', 'milliequivalent', 'meq', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 100, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 100, 1.0, 0.0) db.AddUnit('equivalent per mass', 'milliequivalents/ hectogram', 'meq/100g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('equivalent per volume', 'milliequivalents/ cubic centimeter', 'meq/cm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('equivalent per mass', 'milliequivalents/ gram', 'meq/g', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('dimensionless', 'milliEuclid', 'mEuc', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000000000160219, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000000000160219, 1.0, 0.0) db.AddUnit('moment of force', 'millions of electron volts', 'MeV', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('per time', 'megaflops', 'Mflops', f_base_to_unit, f_unit_to_base, default_category='operations per time') f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('mass', 'megagram', 'Mg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('mass', 'milligram', 'mg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 31558150, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 31558150, 0.0) db.AddUnit('mass flow rate', 'megagrams/year', 'Mg/a', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 86400, 0.0) db.AddUnit('mass flow rate', 'megagrams/day', 'Mg/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('density', 'milligrams/cubic decimetre', 'mg/dm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000264172, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000264172, 1.0, 0.0) db.AddUnit('density', 'milligrams/US gallon', 'mg/galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3.6, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3.6, 0.0) db.AddUnit('mass flow rate', 'megagrams/hour', 'Mg/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 0.0254, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 0.0254, 0.0) db.AddUnit('linear density', 'thousand kilograms per inch', 'Mg/in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('mass per energy', 'milligrams/joule', 'mg/J', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('dimensionless', 'milligrams/kilogram', 'mg/kg', f_base_to_unit, f_unit_to_base, default_category='mass concentration') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('density', 'milligram per litre', 'mg/L', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('surface density', 'megagrams/square metre', 'Mg/m2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('density', 'milligrams/cubic metre', 'mg/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('density', 'thousand kilograms per cubic metre', 'Mg/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00001, 1.0, 0.0) db.AddUnit('acceleration linear', 'milligalileo', 'mGal', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000001, 1.0, 0.0) db.AddUnit('magnetic induction', 'milligauss', 'mgauss', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1.000014, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1.000014, 1.0, 0.0) db.AddUnit('length', 'German legal metre', 'mGer', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4448222, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4448222, 1.0, 0.0) db.AddUnit('force', 'thousand kilograms force', 'Mgf', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00980665, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00980665, 1.0, 0.0) db.AddUnit('acceleration linear', 'milligravity', 'mgn', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('absorbed dose', 'milligray', 'mGy', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('self inductance', 'millihenries', 'mH', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('electric conductance', 'mhos', 'mho', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('conductivity', 'mhos/metre', 'mho/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 6283185.307, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 6283185.307, 1.0, 0.0) db.AddUnit('frequency', 'megahertz', 'MHz', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.006283185307, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.006283185307, 1.0, 0.0) db.AddUnit('frequency', 'millihertz', 'mHz', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1609.344, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1609.344, 1.0, 0.0) db.AddUnit('length', 'mile', 'mi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1609.344, 0.004546092, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1609.344, 0.004546092, 0.0) db.AddUnit('per area', 'miles/UK gallon', 'mi/galUK', f_base_to_unit, f_unit_to_base, default_category='length per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1609.344, 0.003785412, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1609.344, 0.003785412, 0.0) db.AddUnit('per area', 'miles/US gallon', 'mi/galUS', f_base_to_unit, f_unit_to_base, default_category='length per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1609.344, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1609.344, 3600, 0.0) db.AddUnit('velocity', 'miles/hour', 'mi/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 63360, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 63360, 1.0, 0.0) db.AddUnit('dimensionless', 'miles/inch', 'mi/in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 2589988, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2589988, 1.0, 0.0) db.AddUnit('area', 'square miles', 'mi2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 4168182000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 4168182000, 1.0, 0.0) db.AddUnit('volume', 'cubic mile', 'mi3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000254, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000254, 1.0, 0.0) db.AddUnit('length', 'mil, a thousandth of an inch', 'mil', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0000254, 31558150, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0000254, 31558150, 0.0) db.AddUnit('velocity', 'mils/year', 'mil/yr', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3.1415926535898, 3200, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3.1415926535898, 3200, 0.0) db.AddUnit('plane angle', 'mil_6400', 'mila', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 60, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 60, 1.0, 0.0) db.AddUnit('time', 'minutes', 'min', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 60, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 60, 0.3048, 0.0) db.AddUnit('time per length', 'minute per foot', 'min/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 60, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 60, 1.0, 0.0) db.AddUnit('time per length', 'minute per meter', 'min/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00029088821, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00029088821, 1.0, 0.0) db.AddUnit('plane angle', 'minutes angular', 'mina', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1609.347, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1609.347, 1.0, 0.0) db.AddUnit('length', 'U.S. Survey mile', 'miUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 2589998, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 2589998, 1.0, 0.0) db.AddUnit('area', 'U.S. Survey square mile', 'miUS2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('moment of force', 'megajoules', 'MJ', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('moment of force', 'millijoules', 'mJ', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 31558150, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 31558150, 0.0) db.AddUnit('power', 'megajoules/year', 'MJ/a', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 10, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 10, 1.0, 0.0) db.AddUnit('force per length', 'millijoules/square centimetre', 'mJ/cm2', f_base_to_unit, f_unit_to_base, default_category='energy per area') f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('specific energy', 'megajoules/kilogram', 'MJ/kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('force', 'megajoules/metre', 'MJ/m', f_base_to_unit, f_unit_to_base, default_category='energy per length') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('force per length', 'millijoules/square metre', 'mJ/m2', f_base_to_unit, f_unit_to_base, default_category='energy per area') f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('normal stress', 'megajoules/cubic metre', 'MJ/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('molar thermodynamic energy', 'megajoules/mole (kilogram)', 'MJ/kmol', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('molar thermodynamic energy', 'megajoules/mole (kilogram)', 'MJ/mol(kg)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('temperature per length', 'millidegrees Kelvin/metre', 'mK/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('volume', 'millilitre', 'mL', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0002199692, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0002199692, 1.0, 0.0) db.AddUnit('dimensionless', 'millilitres/UK gallon', 'mL/galUK', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 0.000264172, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000264172, 1.0, 0.0) db.AddUnit('dimensionless', 'millilitres/US gallon', 'mL/galUS', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'milliliter per milliliter', 'mL/mL', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 453592.4, 31558150, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 453592.4, 31558150, 0.0) db.AddUnit('mass flow rate', 'million pounds mass/year', 'Mlbm/yr', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('length', 'millimetres', 'mm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('length', 'megameter', 'Mm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 31558150, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 31558150, 0.0) db.AddUnit('velocity', 'millimetres/year', 'mm/a', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('volumetric thermal expansion', 'millimetres/millimetre degree Kelvin', 'mm/mm.K', f_base_to_unit, f_unit_to_base, default_category='linear thermal expansion') f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('velocity', 'millimetres/second', 'mm/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('area', 'square millimetres', 'mm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('dimensionless', 'square millimetres/square millimetre', 'mm2/mm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('volume per time per length', 'square millimetres/second', 'mm2/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('volume', 'cubic millimetres', 'mm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('isothermal compressibility', 'cubic millimetres/joule', 'mm3/J', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158987.3, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158987.3, 1.0, 0.0) db.AddUnit('volume', 'million barrels', 'MMbbl', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158987.3, 1233.489, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158987.3, 1233.489, 0.0) db.AddUnit('dimensionless', 'million barrels/acre foot', 'MMbbl/acre.ft', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 28316.85, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28316.85, 1.0, 0.0) db.AddUnit('volume', 'million cubic feet', 'MMcf', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 133.3224, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 133.3224, 1.0, 0.0) db.AddUnit('pressure', 'millimetres of Mercury at 0 deg C', 'mmHg(0C)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('conductivity', 'millimhos/metre', 'mmho/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('molar mass', 'millimole', 'mmol', f_base_to_unit, f_unit_to_base, default_category='amount of substance') f_unit_to_base = MakeCustomaryToBase(0.0, 28262.357, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28262.357, 1.0, 0.0) db.AddUnit('standard volume', 'million standard cubic feet at 60 deg F', 'MMscf(60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 28262.357, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28262.357, 86400, 0.0) db.AddUnit('standard volume per time', 'million standard cubic feet/day', 'MMscf(60F)/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 28262.357, 0.1589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28262.357, 0.1589873, 0.0) db.AddUnit('dimensionless', 'million std cu ft/ stock tank barrel', 'MMscf60/stb60', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('standard volume', 'million standard cubic metres 15C', 'MMscm(15C)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 86400, 0.0) db.AddUnit('standard volume per time', 'million std cubic metres, 15 degC/day', 'MMscm(15C)/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158987.3, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158987.3, 1.0, 0.0) db.AddUnit('standard volume', 'million stock tank barrels 60 deg F', 'MMstb(60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158987.3, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158987.3, 86400, 0.0) db.AddUnit('standard volume per time', 'million stock tank barrels, 60 deg F/day', 'MMstb(60F)/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158987.3, 4046.873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158987.3, 4046.873, 0.0) db.AddUnit('standard volume per area', 'million stock tank barrels 60 deg F/acre', 'MMstb/acre', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158987.3, 1233.489, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158987.3, 1233.489, 0.0) db.AddUnit('standard volume per volume', 'million stbs, 60 deg F/acre foot', 'MMstb/acre.ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('force', 'meganewtons', 'MN', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('force', 'millinewtons', 'mN', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('force area', 'millinewton metres squared', 'mN.m2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000001, 1.0, 0.0) db.AddUnit('force per length', 'millinewtons/kilometre', 'mN/km', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('force per length', 'millinewtons/metre', 'mN/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('resistance', 'megaohm', 'Mohm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('resistance', 'milliohm', 'mohm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('molar mass', 'mole (gram)', 'mol(g)', f_base_to_unit, f_unit_to_base, default_category='amount of substance') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('molar mass', 'mole (kilogram)', 'mol(kg)', f_base_to_unit, f_unit_to_base, default_category='amount of substance') f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 3600, 0.0) db.AddUnit('mole per time', 'moles (kilogram)/hour', 'kmol/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 3600, 0.0) db.AddUnit('mole per time', 'moles (kilogram)/hour', 'mol(kg)/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('concentration of B', 'moles (kilogram)/cubic metre', 'kmol/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('concentration of B', 'moles (kilogram)/cubic metre', 'mol(kg)/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 1.0, 0.0) db.AddUnit('mole per time', 'moles (kilogram)/second', 'kmol/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('mole per time', 'moles (kilogram)/second', 'mol(kg)/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 453.5924, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 453.5924, 1.0, 0.0) db.AddUnit('molar mass', 'moles (pounds mass)', 'lbmole', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 1.0, 0.0) db.AddUnit('molar mass', 'moles (pounds mass)', 'mol(lbm)', f_base_to_unit, f_unit_to_base, default_category='amount of substance') f_unit_to_base = MakeCustomaryToBase(0.0, 16018.46, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 16018.46, 1.0, 0.0) db.AddUnit('concentration of B', 'moles (pounds mass)/cubic foot', 'lbmole/ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 16.01846, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 16.01846, 1.0, 0.0) db.AddUnit('concentration of B', 'moles (pounds mass)/cubic foot', 'mol(lbm)/ft3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 99776.33537, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 99776.33537, 1.0, 0.0) db.AddUnit('concentration of B', 'moles (pounds mass)/UK gallon', 'lbmole/galUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 99.77633, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 99.77633, 1.0, 0.0) db.AddUnit('concentration of B', 'moles (pounds mass)/UK gallon', 'mol(lbm)/galUK', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 119826.4, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 119826.4, 1.0, 0.0) db.AddUnit('concentration of B', 'moles (pounds mass)/US gallon', 'lbmole/galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 119.8264, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 119.8264, 1.0, 0.0) db.AddUnit('concentration of B', 'moles (pounds mass)/US gallon', 'mol(lbm)/galUS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 453.5924, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 453.5924, 3600, 0.0) db.AddUnit('mole per time', 'moles (pounds mass)/hour', 'lbmole/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 3600, 0.0) db.AddUnit('mole per time', 'moles (pounds mass)/hour', 'mol(lbm)/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 334.450944, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 334.450944, 0.0) db.AddUnit('mole per time per area', 'moles (pounds mass)/hour square foot', 'mol(lbm)/h.ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 453.5924, 334.450944, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 453.5924, 334.450944, 0.0) db.AddUnit('mole per time per area', 'moles (pounds mass)/hour square foot', 'lbmole/h.ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 453.5924, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 453.5924, 1.0, 0.0) db.AddUnit('mole per time', 'moles (pounds mass)/second', 'lbmole/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 1.0, 0.0) db.AddUnit('mole per time', 'moles (pounds mass)/second', 'mol(lbm)/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 453.5924, 0.09290304, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 453.5924, 0.09290304, 0.0) db.AddUnit('mole per time per area', 'moles (pounds mass)/second square foot', 'lbmole/s.ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.4535924, 0.09290304, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.4535924, 0.09290304, 0.0) db.AddUnit('mole per time per area', 'moles (pounds mass)/second square foot', 'mol(lbm)/s.ft2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('pressure', 'millipascal', 'mPa', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('pressure', 'megapascals', 'MPa', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('mass per time per length', 'millipascal seconds', 'mPa.s', f_base_to_unit, f_unit_to_base, default_category='dynamic viscosity') f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('mass per time per area', 'megapascal seconds/metre (megarayl)', 'MPa.s/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 3600, 0.0) db.AddUnit('pressure per time', 'megapascal per hour', 'MPa/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('pressure per length', 'megapascal per meter', 'MPa/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 6894757000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 6894757000, 1.0, 0.0) db.AddUnit('pressure', 'mega pounds per square inch', 'Mpsi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('plane angle', 'milliradian', 'mrad', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('plane angle', 'megaradian', 'Mrad', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00001, 1.0, 0.0) db.AddUnit('dose equivalent', 'milli-rem', 'mrem', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00001, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00001, 3600, 0.0) db.AddUnit('dose equivalent rate', 'milli-rems per hour', 'mrem/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('electric conductance', 'millisiemen', 'mS', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('time', 'milliseconds', 'ms', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.0005, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.0005, 1.0, 0.0) db.AddUnit('time', 'half a millisecond', 'ms/2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.1, 1.0, 0.0) db.AddUnit('time per length', 'milliseconds/centimetre', 'ms/cm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 0.3048, 0.0) db.AddUnit('time per length', 'millisecond per foot', 'ms/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 0.0254, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 0.0254, 0.0) db.AddUnit('time per length', 'milliseconds/inch', 'ms/in', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('conductivity', 'millisiemens/metre', 'mS/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('time per length', 'millisecond per meter', 'ms/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('dimensionless', 'milliseconds/second', 'ms/s', f_base_to_unit, f_unit_to_base, default_category='relative time') f_unit_to_base = MakeCustomaryToBase(0.0, 28.262357, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28.262357, 1.0, 0.0) db.AddUnit('standard volume', 'thousand cubic feet at 60 deg F', 'Mscf(60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 28.262357, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28.262357, 86400, 0.0) db.AddUnit('standard volume per time', 'thousand standard cubic feet/day', 'Mscf(60F)/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 28.262357, 0.1589873, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 28.262357, 0.1589873, 0.0) db.AddUnit('dimensionless', 'thousand std cu ft/ stock tank barrel', 'Mscf60/stb60', f_base_to_unit, f_unit_to_base, default_category='volume per volume') f_unit_to_base = MakeCustomaryToBase(0.0, 1000, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000, 86400, 0.0) db.AddUnit('standard volume per time', 'thousand std cubic metres, 15 degC/day', 'Mscm(15C)/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.00000000484814, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.00000000484814, 1.0, 0.0) db.AddUnit('plane angle', 'milliseconds angular', 'mseca', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('standard volume', 'mega standard cubic metres 15C', 'Msm3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158.9873, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158.9873, 1.0, 0.0) db.AddUnit('standard volume', 'thousand stock tank barrels 60 F', 'Mstb(60F)', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 158.9873, 86400, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 158.9873, 86400, 0.0) db.AddUnit('standard volume per time', 'thousand stock tank barrels,60 deg F/day', 'Mstb(60F)/d', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('dose equivalent', 'millisievert', 'mSv', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 3600, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 3600, 0.0) db.AddUnit('dose equivalent rate', 'millisieverts per hour', 'mSv/h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('magnetic induction', 'milliteslas', 'mT', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('electric potential', 'megavolt', 'MV', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('electric potential', 'millivolts', 'mV', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 0.3048, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 0.3048, 0.0) db.AddUnit('electric field strength', 'millivolt per foot', 'mV/ft', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('electric field strength', 'millivolt per meter', 'mV/m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('power', 'megawatts', 'MW', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('power', 'milliwatt', 'mW', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600000000, 1.0, 0.0) db.AddUnit('moment of force', 'megawatt hours', 'MW.h', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600000000, 1.0, 0.0) db.AddUnit('specific energy', 'megawatt hours/kilogram', 'MW.h/kg', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 3600000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 3600000000, 1.0, 0.0) db.AddUnit('normal stress', 'megawatt hours/cubic metre', 'MW.h/m3', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('density of heat flow rate', 'milliwatts/square metres', 'mW/m2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.001, 1.0, 0.0) db.AddUnit('magnetic flux', 'milliwebers', 'mWb', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 31558150000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 31558150000000, 1.0, 0.0) db.AddUnit('time', 'megayears', 'MY', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('moment of force', 'newton metre', 'N.m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('force', 'newton metres/metre', 'N.m/m', f_base_to_unit, f_unit_to_base, default_category='force length per length') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('mass per time per length', 'newton seconds/metre squared', 'N.s/m2', f_base_to_unit, f_unit_to_base, default_category='dynamic viscosity') f_unit_to_base = MakeCustomaryToBase(0.0, 1, 30, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 30, 0.0) db.AddUnit('force per length', 'newton per thirty meters', 'N/30m', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1, 1.0, 0.0) db.AddUnit('pressure', 'newtons/square metre', 'N/m2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1000000, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1000000, 1.0, 0.0) db.AddUnit('pressure', 'newtons/square millimetre', 'N/mm2', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('electric current', 'nanoampere', 'nA', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 1852, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 1852, 1.0, 0.0) db.AddUnit('length', 'nautical mile', 'nautmi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('electric capacity', 'nanocoulomb', 'nC', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 37, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 37, 1.0, 0.0) db.AddUnit('activity (of radioactivity)', 'None', 'nCi', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 37, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 37, 1.0, 0.0) db.AddUnit('activity (of radioactivity)', 'nanocurie', 'ncurie', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('dimensionless', 'nanoeuclid', 'nEuc', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('self inductance', 'nanohenry', 'nH', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('moment of force', 'nanojoules', 'nJ', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('length', 'nanometres', 'nm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('velocity', 'nanometer per second', 'nm/s', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) db.AddUnit('resistance', 'nanohm', 'nohm', f_base_to_unit, f_unit_to_base, default_category=None) f_unit_to_base = MakeCustomaryToBase(0.0, 0.000000001, 1.0, 0.0) f_base_to_unit = MakeBaseToCustomary(0.0, 0.000000001, 1.0, 0.0) if True: pass