|
8 | 8 | from quantities.unitquantity import UnitConstant |
9 | 9 |
|
10 | 10 |
|
11 | | -# temporary units without uncertainty required for some other constants |
12 | | -# we will redefine them with uncertainty later |
13 | | -eV = electron_volt = UnitConstant( |
14 | | - 'electron_volt', |
15 | | - _cd('electron volt').view(Quantity), |
16 | | - symbol='eV' |
17 | | -) |
18 | | -MeV = UnitConstant( |
19 | | - 'MeV', |
20 | | - 1e6*eV, |
21 | | -) |
22 | | -GeV = UnitConstant( |
23 | | - 'GeV', |
24 | | - 1e9*eV, |
25 | | -) |
26 | | -E_h = Hartree_energy = UnitConstant( |
27 | | - 'Hartree_energy', |
28 | | - _cd('Hartree energy').view(Quantity), |
29 | | - symbol='E_h' |
30 | | -) |
31 | | -u = unified_atomic_mass_unit = UnitConstant( |
32 | | - 'unified_atomic_mass_unit', |
33 | | - _cd('unified atomic mass unit').view(Quantity), |
34 | | - symbol='u' |
35 | | -) |
36 | | - |
37 | 11 | d_220 = a_Si_220 = silicon_220_lattice_spacing = UnitConstant( |
38 | 12 | 'silicon_220_lattice_spacing', |
39 | 13 | _cd('{220} lattice spacing of silicon'), |
40 | 14 | symbol='d_220', |
41 | | - u_symbol='d₂₂₀', |
42 | | - aliases=['a_Si_220'] |
| 15 | + u_symbol='d₂₂₀' |
43 | 16 | ) |
44 | 17 | m_alpha = alpha_particle_mass = UnitConstant( |
45 | 18 | 'alpha_particle_mass', |
|
56 | 29 | au = astronomical_unit = UnitConstant( |
57 | 30 | 'astronomical_unit', |
58 | 31 | UncertainQuantity(149597870691, 'm', 30), |
59 | | - symbol='au', |
60 | | - aliases=['astronomical_units'], |
| 32 | + symbol='au' |
61 | 33 | ) # http://en.wikipedia.org/wiki/Astronomical_unit |
62 | 34 | amu = atomic_mass_constant = UnitConstant( |
63 | 35 | 'atomic_mass_constant', |
|
288 | 260 | 'electric_constant', |
289 | 261 | _cd('electric constant'), |
290 | 262 | symbol='epsilon_0', |
291 | | - u_symbol='ε₀', |
292 | | - aliases=['vacuum_permittivity'] |
| 263 | + u_symbol='ε₀' |
293 | 264 | ) |
294 | 265 | electron_charge_to_mass_quotient = UnitConstant( |
295 | 266 | 'electron_charge_to_mass_quotient', |
|
333 | 304 | symbol='m_e', |
334 | 305 | u_symbol='mₑ' |
335 | 306 | ) |
| 307 | +eV = electron_volt = UnitConstant( |
| 308 | + 'electron_volt', |
| 309 | + _cd('electron volt'), |
| 310 | + symbol='eV' |
| 311 | +) |
336 | 312 | e = elementary_charge = UnitConstant( |
337 | 313 | 'elementary_charge', |
338 | 314 | _cd('elementary charge'), |
|
374 | 350 | symbol='c_1L', |
375 | 351 | u_symbol='c₁_L' |
376 | 352 | ) |
| 353 | +E_h = Hartree_energy = UnitConstant( |
| 354 | + 'Hartree_energy', |
| 355 | + _cd('Hartree energy'), |
| 356 | + symbol='E_h' |
| 357 | +) |
377 | 358 | m_h = helion_mass = UnitConstant( |
378 | 359 | 'helion_mass', |
379 | 360 | _cd('helion mass'), |
|
752 | 733 | _cd('triton mass'), |
753 | 734 | symbol='m_t' |
754 | 735 | ) |
| 736 | +u = unified_atomic_mass_unit = UnitConstant( |
| 737 | + 'unified_atomic_mass_unit', |
| 738 | + _cd('unified atomic mass unit'), |
| 739 | + symbol='u' |
| 740 | +) |
755 | 741 | R_K = von_Klitzing_constant = UnitConstant( |
756 | 742 | 'von_Klitzing_constant', |
757 | 743 | _cd('von Klitzing constant'), |
|
773 | 759 | symbol='b' |
774 | 760 | ) |
775 | 761 |
|
776 | | -eV = electron_volt = UnitConstant( |
777 | | - 'electron_volt', |
778 | | - _cd('electron volt'), |
779 | | - symbol='eV' |
780 | | -) |
781 | | -meV = UnitConstant( |
782 | | - 'meV', |
783 | | - eV/1000, |
784 | | -) |
785 | | -keV = UnitConstant( |
786 | | - 'keV', |
787 | | - 1000*eV, |
788 | | -) |
789 | | -MeV = UnitConstant( |
790 | | - 'MeV', |
791 | | - 1000*keV, |
792 | | -) |
793 | | -GeV = beV = UnitConstant( |
794 | | - 'GeV', |
795 | | - 1000*MeV, |
796 | | - aliases=['beV'] |
797 | | -) |
798 | | -E_h = Hartree_energy = UnitConstant( |
799 | | - 'Hartree_energy', |
800 | | - _cd('Hartree energy'), |
801 | | - symbol='E_h' |
802 | | -) |
803 | | -u = unified_atomic_mass_unit = UnitConstant( |
804 | | - 'unified_atomic_mass_unit', |
805 | | - _cd('unified atomic mass unit'), |
806 | | - symbol='u' |
807 | | -) |
808 | 762 |
|
809 | 763 | del UnitConstant, Quantity, UncertainQuantity, _cd |
0 commit comments