forked from python-quantities/python-quantities
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnaturalunits.py
More file actions
65 lines (60 loc) · 1.57 KB
/
naturalunits.py
File metadata and controls
65 lines (60 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- coding: utf-8 -*-
"""
"""
from __future__ import absolute_import
from ._utils import _cd
from ..unitquantity import UnitConstant
natural_unit_of_action = UnitConstant(
'natural_unit_of_action',
_cd('natural unit of action'),
symbol='hbar',
u_symbol='ħ'
)
natural_unit_of_energy = UnitConstant(
'natural_unit_of_energy',
_cd('natural unit of energy'),
symbol='(m_e*c**2)',
u_symbol='(mₑ·c²)'
)
natural_unit_of_length = UnitConstant(
'natural_unit_of_length',
_cd('natural unit of length'),
symbol='lambdabar_C',
u_symbol='ƛ_C'
)
natural_unit_of_mass = UnitConstant(
'natural_unit_of_mass',
_cd('natural unit of mass'),
symbol='m_e',
u_symbol='mₑ'
)
natural_unit_of_momentum = UnitConstant(
'natural_unit_of_momentum',
_cd('natural unit of momentum'),
symbol='(m_e*c)',
u_symbol='(mₑ·c)'
)
natural_unit_of_time = UnitConstant(
'natural_unit_of_time',
_cd('natural unit of time'),
symbol='(hbar/(m_e*c**2))',
u_symbol='(ħ/(mₑ·c²))'
)
natural_unit_of_velocity = UnitConstant(
'natural_unit_of_velocity',
_cd('natural unit of velocity'),
symbol='c'
)
natural_unit_of_action_in_eV_s = UnitConstant(
'natural_unit_of_action_in_eV_s',
_cd('natural unit of action in eV s')
)
natural_unit_of_energy_in_MeV = UnitConstant(
'natural_unit_of_energy_in_MeV',
_cd('natural unit of energy in MeV')
)
natural_unit_of_momentum_in_MeV_per_c = UnitConstant(
'natural_unit_of_momentum_in_MeV_per_c',
_cd('natural unit of momentum in MeV/c')
)
del UnitConstant, _cd