-
Notifications
You must be signed in to change notification settings - Fork 0
/
defs.js
175 lines (175 loc) · 10.6 KB
/
defs.js
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
exports.defaultQuantities = {
length: [
{name: 'metre', multiplier: 1, symbol: 'm'},
{name: 'centimetre', multiplier: 1e2, symbol: 'cm'},
{name: 'millimetre', multiplier: 1e3, symbol: 'mm'},
{name: 'inch', multiplier: 1e4/254, symbol: 'in'},
{name: 'foot', multiplier: 1e4/3048, symbol: 'ft'},
{name: 'footUS', multiplier: 3937/1200, symbol: 'ftUS'},
{name: 'yard', multiplier: 1e4/9144, symbol: 'yd'},
{name: 'kilometre', multiplier: 1e-3, symbol: 'km'},
{name: 'nauticalMille', multiplier: 1/1852, symbol: 'NM'},
{name: 'mille', multiplier: 1e3/1609344, symbol: 'mi'},
{name: 'milleUS', multiplier: 3937/6336e3, symbol: 'miUS'},
],
area: [
{name: 'squareMetre', multiplier: 1, symbol: 'm^2'},
{name: 'squareCentimetre', multiplier: 1e4, symbol: 'cm^2'},
{name: 'squareMillimetre', multiplier: 1e6, symbol: 'mm^2'},
{name: 'squareInch', multiplier: 1e8/64516, symbol: 'sq in'},
{name: 'squareFoot', multiplier: 1e8/9290304, symbol: 'sq ft'},
{name: 'squareFootUS', multiplier: 15499969/1440000, symbol: 'sq ftUS'},
{name: 'squareYard', multiplier: 1e8/83612736, symbol: 'sq yard'},
{name: 'squareKilometre', multiplier: 1e-6, symbol: 'km^2'},
{name: 'squareMille', multiplier: 1e6/2589988110336, symbol: 'sq mi'},
{name: 'squareMilleUS', multiplier: 15499969/40144896e6, symbol: 'sq miUS'},
{name: 'are', multiplier: 1e-2, symbol: 'a'},
{name: 'hectare', multiplier: 1e-4, symbol: 'ha'},
{name: 'acre', multiplier: 1e7/40468564224, symbol: 'ac'},
],
volume: [
{name: 'cubicMetre', multiplier: 1, symbol: 'm^3'},
{name: 'litre', multiplier: 1e3, symbol: 'L'},
{name: 'cubicCentimetre', multiplier: 1e6, symbol: 'cm^3'},
{name: 'cubicMillimetre', multiplier: 1e9, symbol: 'mm^3'},
{name: 'cubicInch', multiplier: 1e12/16387064, symbol: 'cu in'},
{name: 'cubicFoot', multiplier: 1e12/28316846592, symbol: 'cu ft'},
{name: 'cubicFootUS', multiplier: 61023377953/1728000000, symbol: 'cu ftUS'},
{name: 'cubicYard', multiplier: 1e12/764554857984, symbol: 'cu yard'},
{name: 'ImperialGallon', multiplier: 1e8/454609, symbol: 'imp gal'},
{name: 'USGallon', multiplier: 1e12/3785411784, symbol: 'US gal'},
{name: 'ImperialOunce', multiplier: 1e13/284130625, symbol: 'imp fl oz'},
{name: 'USounce', multiplier: 1e16/295735295625, symbol: 'US fl oz'},
{name: 'cubicKilometre', multiplier: 1e-9, symbol: 'km^2'},
{name: 'cubicMille', multiplier: 1e9/4168181825440579600, symbol: 'cu mi'},
{name: 'cubicMilleUS', multiplier: 61023377953/254358061056e9, symbol: 'cu miUS'},
],
speed: [
{name: 'metrePerSecond', multiplier: 1, symbol: 'm/s'},
{name: 'kilometrePerHour', multiplier: 36e-1, symbol: 'km/h'},
{name: 'knot', multiplier: 3600/1852, symbol: 'kn'},
{name: 'millePerHour', multiplier: 1e5/44704, symbol: 'mph'},
{name: 'millePerMinute', multiplier: 1e4/268224, symbol: 'mpm'},
{name: 'millePerSecond', multiplier: 1e3/1609344, symbol: 'mps'},
{name: 'footPerHour', multiplier: 3e6/254, symbol: 'fph'},
{name: 'footPerMinute', multiplier: 1e5/508, symbol: 'fpm'},
{name: 'footPerSecond', multiplier: 1e4/3048, symbol: 'fps'},
{name: 'inchPerHour', multiplier: 18e6/127, symbol: 'iph'},
{name: 'inchPerMinute', multiplier: 3e5/127, symbol: 'ipm'},
{name: 'inchPerSecond', multiplier: 1e4/254, symbol: 'ips'},
{name: 'speedOfLight', multiplier: 1/299792458, symbol: 'c'},
],
acceleration: [
{name: 'metrePerSecondSquared', multiplier: 1, symbol: 'm/s^2'},
{name: 'knotPerSecond', multiplier: 3600/1852, symbol: 'kn/s'},
{name: 'millePerHourPerSecond', multiplier: 1e5/44704, symbol: 'mph/s'},
{name: 'millePerMinutePerSecond', multiplier: 1e4/268224, symbol: 'mpm/s'},
{name: 'millePerSecondSquared', multiplier: 1e3/1609344, symbol: 'mps^2'},
{name: 'footPerHourPerSecond', multiplier: 3e6/254, symbol: 'fph/s'},
{name: 'footPerMinutePerSecond', multiplier: 1e5/508, symbol: 'fpm/s'},
{name: 'footPerSecondSquared', multiplier: 1e4/3048, symbol: 'fps^2'},
{name: 'inchPerHourPerSecond', multiplier: 18e6/127, symbol: 'iph/s'},
{name: 'inchPerMinutePerSecond', multiplier: 3e5/127, symbol: 'ipm/s'},
{name: 'inchPerSecondSquared', multiplier: 1e4/254, symbol: 'ips^2'},
{name: 'gravity', multiplier: 1e5/980665, symbol: 'c'},
],
mass: [
{name: 'kilogram', multiplier: 1, symbol: 'kg'},
{name: 'gram', multiplier: 1e3, symbol: 'gr'},
{name: 'quintal', multiplier: 1e-2, symbol: 'q'},
{name: 'tonne', multiplier: 1e-3, symbol: 't'},
{name: 'ounce', multiplier: 1e12/28349523125, symbol: 'oz'},
{name: 'pound', multiplier: 1e8/45359237, symbol: 'lb'},
{name: 'slug', multiplier: 3048e9/44482216152605, symbol: 'slug'},
],
density: [
{name: 'kilogramPerCubicMetre', multiplier: 1, symbol: 'kg/m^3'},
{name: 'kilogramPerLitre', multiplier: 1e-3, symbol: 'kg/L'},
{name: 'gramPerMillilitre', multiplier: 1e-3, symbol: 'g/mL'},
{name: 'ouncePerCubicFoot', multiplier: 28316846592/28349523125, symbol: 'oz/ft^3'},
{name: 'ouncePerCubicInch', multiplier: 16387064/28349523125, symbol: 'oz/in^3'},
{name: 'ouncePerImperialGallon', multiplier: 454609e4/28349523125, symbol: 'oz/imp gal'},
{name: 'ouncePerUSGallon', multiplier: 3785411784/28349523125, symbol: 'oz/US gal'},
{name: 'poundPerCubicFoot', multiplier: 28316846592/45359237e4, symbol: 'lb/ft^3'},
{name: 'poundPerCubicInch', multiplier: 16387064/45359237e4, symbol: 'lb/in^3'},
{name: 'poundPerImperialGallon', multiplier: 454609/45359237, symbol: 'lb/imp gal'},
{name: 'poundPerUSGallon', multiplier: 3785411784/45359237e4, symbol: 'lb/US gal'},
{name: 'slugPerCubicFoot', multiplier: 86309748412416/44482216152605e3, symbol: 'slug/ft^3'},
],
force: [
{name: 'newton', multiplier: 1, symbol: 'N'},
{name: 'dyne', multiplier: 1e5, symbol: 'dyn'},
{name: 'kilogramForce', multiplier: 1e5/980665, symbol: 'kgf'},
{name: 'kilopond', multiplier: 1e5/980665, symbol: 'kp'},
{name: 'ounceForce', multiplier: 1e16/27801385095378124e-1, symbol: 'ozf'},
{name: 'poundForce', multiplier: 3048e12/13558179483314004, symbol: 'lbf'},
{name: 'poundal', multiplier: 1e12/138254954376, symbol: 'pdl'},
],
pressure: [
{name: 'pascal', multiplier: 1, symbol: 'Pa'},
{name: 'bar', multiplier: 1e-5, symbol: 'bar'},
{name: 'milibar', multiplier: 1e-2, symbol: 'mbar'},
{name: 'atmosphere', multiplier: 1/101325, symbol: 'atm'},
{name: 'milimetreHg', multiplier: 1e4/1333224, symbol: 'mmHg'},
{name: 'inchHg', multiplier: 1e3/3386389, symbol: 'inHg'},
{name: 'poundPerSquareInch', multiplier: 196644768e3/13558179483314003e-1, symbol: 'psi'},
{name: 'poundPerSquareFoot', multiplier: 28316846592e4/13558179483314003, symbol: 'psf'},
{name: 'poundalPerSquareInch', multiplier: 127e4/272155422, symbol: 'pdl/sq in'},
{name: 'poundalPerSquareFoot', multiplier: 3048e4/45359237, symbol: 'pdf/sq ft'},
{name: 'kilogramForcePerSquareMetre', multiplier: 0.001019368, symbol: 'kg/m^2'},
{name: 'kilogramPerSquareMetre', multiplier: 1e5/980665, symbol: 'kg/m^2'},
{name: 'kilogramPerSquareCentimetre', multiplier: 1e9/980665, symbol: 'kg/m^2'},
{name: 'kilogramPerSquareMillitimetre', multiplier: 1e11/980665, symbol: 'kg/m^2'},
],
torque: [
{name: 'newtonMetre', symbol: 'N m', multiplier: 1},
{name: 'metreKilogramForce', symbol: 'm Kgf', multiplier: 1e5/980665},
{name: 'inchPoundForce', symbol: 'in lbf', multiplier:1e16/1129848290276167},
{name: 'footPoundForce', symbol: 'ft lbf', multiplier: 1e16/13558179483314004},
{name: 'footPoundal', symbol: 'ft pdl', multiplier: 1e16/421401100938048},
],
energy: [
{name: 'joule', symbol: 'J', multiplier: 1},
{name: 'calorie', symbol: 'cal', multiplier: 1e4/41868},
{name: 'kilocalorie', symbol: 'Kcal', multiplier: 10/41868},
{name: 'KilowattHour', symbol: 'KW h', multiplier: 1e7/36},
{name: 'horsepowerHour', symbol: 'hp h', multiplier: 1e12/2684519537696172792},
{name: 'inchPoundForce', symbol: 'in lbf', multiplier: 1e16/1129848290276167},
{name: 'footPoundForce', symbol: 'ft lbf', multiplier: 1e16/13558179483314004},
{name: 'footPoundal', symbol: 'ft pdl', multiplier: 1e16/421401100938048},
{name: 'erg', symbol: 'erg', multiplier: 1e7},
{name: 'electronvolt', symbol: 'eV', multiplier: 1e30/160217656535},
],
power: [
{name: 'watt', symbol: 'W', multiplier: 1},
{name: 'footPoundForcePerHour', symbol: 'ft lbf/h', multiplier: 3e18/1129848290276167},
{name: 'footPoundForcePerMinute', symbol: 'ft lbf/min', multiplier: 1e17/225969658055233},
{name: 'footPoundForcePerSecond', symbol: 'ft lbf/s', multiplier: 1e16/13558179483314004225969658055233},
{name: 'horsepower', symbol: 'hp', multiplier: 10e5/73549875},
],
time: [
{name: 'second', symbol: 's', multiplier: 1},
{name: 'minute', symbol: 'min', multiplier: 1/60},
{name: 'hour', symbol: 'h', multiplier: 1/3600},
{name: 'day', symbol: 'd', multiplier: 1/86400},
{name: 'week', symbol: 'wk', multiplier: 1/604800},
],
temperature: [
{name: 'kelvin', symbol: 'K', multiplier: 1},
{name: 'degreeCelsius', symbol: '°C', multiplier: 1, shift: -273.15},
{name: 'degreeFarenheit', symbol: '°F', multiplier: 9/5, shift: -459.67},
],
dynamicViscosity: [
{name: 'pascalSecond', symbol: 'Pa s', multiplier: 1},
{name: 'poundPerFootHour', symbol: 'lb/(ft h)', multiplier: 109728e6/45359237},
{name: 'poundPerFootSecond', symbol: 'lb/(ft s)', multiplier: 3048e4/45359237},
{name: 'poundForceSecondPerSquareFoot', symbol: 'lbf s/ft^2', multiplier: 18580608e4/8896443230521},
{name: 'poundForceSecondPerSquareInch', symbol: 'lbf s/in^2', multiplier: 129032e4/8896443230521},
],
kinematicicViscosity: [
{name: 'squareMetrePerSecond', symbol: 'm^2/s', multiplier: 1},
{name: 'squareFootPerSecond', symbol: 'ft^2/s', multiplier: 1e8/9290304},
{name: 'stokes', symbol: 'St', multiplier: 1e4},
],
adimensional: [{name:'nodim', multiplier:1, symbol:''}]
};