1""" 2""" 3from __future__ import absolute_import 4 5from ..unitquantity import UnitQuantity 6from .force import dyne, N 7from .length import cm, m 8from .time import s, h 9 10J = joule = UnitQuantity( 11 'joule', 12 N*m, 13 symbol='J', 14 aliases=['joules'] 15) 16erg = UnitQuantity( 17 'erg', 18 dyne*cm 19) 20btu = Btu = BTU = british_thermal_unit = UnitQuantity( 21 'British_thermal_unit', 22 J*1.05505585262e3, 23 symbol='BTU' 24) 25eV = electron_volt = UnitQuantity( 26 'electron_volt', 27 J*1.60217653e-19, 28 symbol='eV', 29 aliases=['electron_volts'] 30) 31meV = UnitQuantity( 32 'meV', 33 eV/1000 34) 35keV = UnitQuantity( 36 'keV', 37 1000*eV 38) 39MeV = UnitQuantity( 40 'MeV', 41 1000*keV 42) 43bev = GeV = UnitQuantity( 44 'GeV', 45 1000*MeV 46) 47thm = therm = EC_therm = UnitQuantity( 48 'EC_therm', 49 100000*BTU, 50 symbol='thm' 51) 52cal = calorie = thermochemical_calorie = UnitQuantity( 53 'thermochemical_calorie', 54 4.184*J, 55 symbol='cal', 56 aliases=['calorie', 'calories', 'thermochemical_calories'] 57) 58international_steam_table_calorie = UnitQuantity( 59 'international_steam_table_calorie', 60 J*4.1868, 61 symbol='cal_IT', 62 aliases=['international_steam_table_calories'] 63) 64ton_TNT = UnitQuantity( 65 'ton_TNT', 66 4.184e9*J, 67 symbol='tTNT' 68) 69US_therm = UnitQuantity( 70 'US_therm', 71 1.054804e8*J, 72 aliases=['US_therms'] 73) 74Wh = watthour = watt_hour = UnitQuantity( 75 'watt_hour', 76 J/s*h, 77 symbol='Wh', 78 aliases=['watthour', 'watthours', 'watt_hours'] 79) 80kWh = kilowatthour = kilowatt_hour = UnitQuantity( 81 'kilowatt_hour', 82 1000*Wh, 83 symbol='kWh', 84 aliases=['kilowatthour', 'kilowatthours', 'kilowatt_hours'] 85) 86MWh = megawatthour = megawatt_hour = UnitQuantity( 87 'megawatt_hour', 88 1000*kWh, 89 symbol='MWh', 90 aliases=['megawatthour', 'megawatthours', 'megawatt_hours'] 91) 92GWh = gigawatthour = gigawatt_hour = UnitQuantity( 93 'gigawatt_hour', 94 1000*MWh, 95 symbol='GWh', 96 aliases=['gigawatthour', 'gigawatthours', 'gigawatt_hours'] 97) 98E_h = hartree = hartree_energy = UnitQuantity( 99 'hartree', 100 4.35974394e-18*J, 101 symbol='E_h', 102 aliases=['hartrees', 'hartree_energy', 'Hartree_energy'], 103 doc='relative uncertainty = 2.1e-6' 104) 105 106del UnitQuantity, dyne, N, cm, m, s, h 107