Debian Codegraph @

data/units.dat

raw
1 #*****************************************************************************
2 #units.dat, the units data file, version 0.7.3
3 #
4 # ConvertAll, a units conversion program
5 # Copyright (C) 2020, Douglas W. Bell
6 #
7 # This is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License, Version 2. This program is
9 # distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
10 #*****************************************************************************
11 #
12 # Units are defined by an optional quantity and an equivalent unit or unit
13 # combination. A Python expression may be used for the quantity, but is
14 # restricted to using only the following operators: *, /, +, -.
15 # Beware of integer division truncation: be sure to use a float for at least
16 # one of the values.
17 #
18 # The unit type must be placed in square brackets before a set of units. The
19 # first comment after the equivalent unit will be put in parenthesis after the
20 # unit name (usually used to give the full name of an abbreviated unit). The
21 # next comment will be used in the program list's comment column; later
22 # comments and full line comments are ignored.
23 #
24 # Non-linear units are indicated with an equivalent unit in square brackets,
25 # followed by either equations or equivalency lists for the definition. For
26 # equations, two are given, separated by a ';'. Both are functions of "x", the
27 # first going from the unit to the equivalent unit and the second one in
28 # reverse. Any valid Python expression returning a float (including the
29 # functions in the math module) should work. The equivalency list is a Python
30 # list of tuples giving points for linear interpolation.
31 #
32 # All units must reduce to primitive units, which are indicated by an
33 # equivalent unit starting with '!'. A special "unitless" primitve unit
34 # (usualty called "unit") has '!!' for an equivalent unit. Circular references
35 # must also be avoided.
36 #
37 # Primitive units: kg, m, s, K, A, mol, cd, rad, sr, bit, unit
38 #
39 ##############################################################################
40
41 #
42 # mass units
43 #
44 [mass]
45 kg = ! # kilogram
46 kilogram = kg
47 key = kg # # drug slang
48 hectogram = 100 gram
49 dekagram = 10 gram
50 gram = 0.001 kg
51 g = gram # gram
52 decigram = 0.1 gram
53 centigram = 0.01 gram
54 milligram = 0.001 gram
55 mg = milligram # milligram
56 microgram = 0.001 mg
57 tonne = 1000 kg # # metric
58 metric ton = tonne
59 megagram = tonne
60 kilotonne = 1000 tonne # # metric
61 gigagram = 1e9 gram
62 teragram = 1e12 gram
63 carat = 0.2 gram
64 ct = carat # carat
65 amu = 1.660539066605e-27 kg # atomic mass
66 atomic mass unit = amu
67 dalton = amu # # atomic mass
68 Da = amu # dalton # atomic mass
69 pound = 0.45359237 kg # # avoirdupois
70 lb = pound # pound # avoirdupois
71 lbm = pound # pound # avoirdupois
72 ounce = 1/16.0 pound # # avoirdupois
73 oz = ounce # ounce # avoirdupois
74 lid = ounce # # drug slang
75 dram = 1/16.0 ounce # # avoirdupois
76 pound troy = 5760 grain
77 lb troy = pound troy # pound troy
78 ounce troy = 1/12.0 lb troy
79 oz troy = ounce troy # ounce troy
80 ton = 2000 lb # # non-metric
81 kiloton = 1000 ton # # non-metric
82 long ton = 2240 lb # # Imperial
83 ton imperial = long ton
84 slug = lbf*s^2/ft
85 stone = 14 lb
86 grain = 1/7000.0 lb
87 pennyweight = 24 grain
88 hundredweight long = 112 lb # # Imperial
89 hundredweight short = 100 lb # # US & Canada
90 solar mass = 1.9891e30 kg
91
92
93 #
94 # length / distance units
95 #
96 [length]
97 m = ! # meter
98 meter = m
99 metre = m
100 dm = 0.1 m # decimeter
101 decimeter = dm
102 cm = 0.01 m # centimeter
103 centimeter = cm
104 mm = 0.001 m # millimeter
105 millimeter = mm
106 micrometer = 1e-6 m
107 micron = micrometer
108 nanometer = 1e-9 m
109 nm = nanometer # nanometer
110 dekameter = 10 m
111 hectometer = 100 m
112 km = 1000 m # kilometer
113 kilometer = km
114 megameter = 1000 km
115 angstrom = 1e-10 m
116 fermi = 1e-15 m # # nuclear sizes
117 inch = 2.54 cm
118 in = inch # inch
119 inches = inch
120 mil = 0.001 inch
121 microinch = 1e-6 inch
122 microinches = microinch
123 foot = 12 inch
124 ft = foot # foot
125 feet = foot
126 foot US survey = 1200/3937.0 m
127 Cape foot = 1.033 foot
128 yard = 3 ft
129 yd = yard # yard
130 mile = 5280 ft # # statute mile
131 mi = mile # mile # statute mile
132 nautical mile = 1852 m
133 nmi = nautical mile # nautical mile
134 mile US survey = 5280 foot US survey
135 league = 3 mile
136 chain = 66 ft
137 chain US survey = 66 foot US survey
138 link = 0.01 chain
139 fathom = 6 ft
140 cable = 0.1 nautical mile
141 rod = 5.5 yard
142 furlong = 40 rod
143 hand = 4 inch
144 cubit = 21.8 inch # # biblical unit
145 point = 1/72.0 inch # # desktop publishing point
146 pica = 12 point
147 caliber = 1.0 inch # # bullet sizes
148 rack unit = 1.75 in # # computing
149 smoot = 67 inch
150 football field = 100 yd
151 marathon = 46145 yd
152 mil Swedish = 10 km
153 versta = 3500 ft # # Russian unit
154 au = 1.495978707e11 m # astronomical unit
155 astronomical unit = au
156 LD = 384400 km # lunar distance # astronomical
157 lunar distance = LD # # astronomical distance
158 light year = 365.25 light speed * day
159 light minute = light speed * min
160 light second = light speed * s
161 parsec = 648000 au/pi
162 kiloparsec = 1000 parsec
163 megaparsec = 1000 kiloparsec
164 screw size = [in] 0.013*x + 0.06 ; (x - 0.06) / 0.013 \
165 # # Unified diameters, non-linear
166 AWG Dia = [in] pow(92.0,(36-x)/39.0)/200.0 ; \
167 36 - 39.0*log(200.0*x)/log(92.0) \
168 # American Wire Gauge \
169 # use -1, -2 for 00, 000; non-linear
170 American Wire Gauge Dia = [in] pow(92.0,(36-x)/39.0)/200.0 ; \
171 36 - 39.0*log(200.0*x)/log(92.0) \
172 # # use -1, -2 for 00, 000; non-linear
173 British Std Wire Gauge = [in] [(-6, .500), (-5, .464), (-3, .400), \
174 (-2, .372), (3, .252), (6, .192), (10, .128), \
175 (14, .080), (19, .040), (23, .024), (26, .018), \
176 (28, .0148), (30, .0124), (39, .0052), \
177 (49, .0012), (50, .001)] \
178 # # use -1, -2 for 2/0, 3/0; non-linear
179 standard gauge = [in] [(-5, .448350), (1, .269010), (14, .0747250), \
180 (16, .0597800), (17, .0538020), (20, .0358680), \
181 (26, .0179340), (31, .0104615), (36, .00672525), \
182 (38, .00597800)] # steel \
183 # Manufacturers Std. Gauge, non-linear
184 zinc gauge = [in] [(1, .002), (10, .02), (15, .04), (19, .06), \
185 (23, .1), (24, .125), (27, .5), (28, 1)] \
186 # # sheet metal thickness, non-linear
187 ring size = [in] 0.1018*x + 1.4216 ; (x - 1.4216) / 0.1018 \
188 # # US size, circum., non-linear
189 shoe size mens = [in] x/3.0 + 7 + 1/3.0 ; (x - 7 - 1/3.0) * 3 \
190 # # US sizes, non-linear
191 shoe size womens = [in] x/3.0 + 6 + 5/6.0 ; (x - 6 - 5/6.0) * 3 \
192 # # US sizes, non-linear
193 drill bit size = [in] [(104,0.0031), (103,0.0035), (102,0.0039), \
194 (101,0.0043), (100,0.0047), (99,0.0051), \
195 (98,0.0055), (97,0.0059), (96,0.0063), \
196 (95,0.0067), (94,0.0071), (93,0.0075), \
197 (92,0.0079), (91,0.0083), (90,0.0087), \
198 (89,0.0091), (88,0.0095), (87,0.01), \
199 (86,0.0105), (85,0.011), (84,0.0115), \
200 (83,0.012), (82,0.0125), (81,0.013), \
201 (80,0.0135), (79,0.0145), (78,0.016), \
202 (77,0.018), (76,0.02), (75,0.021), \
203 (74,0.0225), (73,0.024), (72,0.025), \
204 (71,0.026), (70,0.028), (69,0.0292), \
205 (68,0.031), (67,0.032), (66,0.033), \
206 (65,0.035), (64,0.036), (63,0.037), \
207 (62,0.038), (61,0.039), (60,0.04), \
208 (59,0.041), (58,0.042), (57,0.043), \
209 (56,0.0465), (55,0.052), (54,0.055), \
210 (53,0.0595), (52,0.0635), (51,0.067), \
211 (50,0.07), (49,0.073), (48,0.076), \
212 (47,0.0785), (46,0.081), (45,0.082), \
213 (44,0.086), (43,0.089), (42,0.0935), \
214 (41,0.096), (40,0.098), (39,0.0995), \
215 (38,0.1015), (37,0.104), (36,0.1065), \
216 (35,0.11), (34,0.111), (33,0.113), \
217 (32,0.116), (31,0.12), (30,0.1285), \
218 (29,0.136), (28,0.1405), (27,0.144), \
219 (26,0.147), (25,0.1495), (24,0.152), \
220 (23,0.154), (22,0.157), (21,0.159), \
221 (20,0.161), (19,0.166), (18,0.1695), \
222 (17,0.173), (16,0.177), (15,0.18), \
223 (14,0.182), (13,0.185), (12,0.189), \
224 (11,0.191), (10,0.1935), (9,0.196), \
225 (8,0.199), (7,0.201), (6,0.204), \
226 (5,0.2055), (4,0.209), (3,0.213), \
227 (2,0.221), (1,0.228)] \
228 # # American drill bit gauge, non-linear
229
230
231 #
232 # time units
233 #
234 [time]
235 s = ! # second
236 sec = s # second
237 second = s
238 ms = 0.001 s # millisecond
239 millisecond = ms
240 microsecond = 1e-6 s
241 ns = 1e-9 s # nanosecond
242 nanosecond = ns
243 minute = 60 s
244 min = minute # minute
245 hour = 60 min
246 hr = hour # hour
247 bell = 30 min # # naval definition
248 watch = 4 hour
249 watches = watch
250 day = 24 hr
251 week = 7 day
252 wk = week # week
253 fortnight = 14 day
254 month = 1/12.0 year
255 year = 365.242198781 day
256 yr = year # year
257 calendar year = 365 day
258 decade = 10 year
259 century = 100 year
260 centuries = century
261 millennium = 1000 year
262 millennia = millennium
263 [scheduling]
264 man hour = 168/40.0 hour
265 man week = 40 man hour
266 man month = 1/12.0 man year
267 man year = 52 man week
268
269
270 #
271 # temperature
272 #
273 [temperature]
274 K = ! # Kelvin
275 Kelvin = K
276 deg K = K # Kelvin
277 degree Kelvin = K
278
279 C = [K] x + 273.15 ; x - 273.15 # Celsius # non-linear
280 Celsius = [K] x + 273.15 ; x - 273.15 # # non-linear
281 deg C = [K] x + 273.15 ; x - 273.15 # Celsius # non-linear
282 degree Celsius = [K] x + 273.15 ; x - 273.15 # # non-linear
283
284 R = 5/9.0 K # Rankine
285 Rankine = R
286 deg R = R # Rankine
287 F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # non-linear
288 Fahrenheit = [R] x + 459.67 ; x - 459.67 # # non-linear
289 deg F = [R] x + 459.67 ; x - 459.67 # Fahrenheit # non-linear
290 degree Fahrenheit = [R] x + 459.67 ; x - 459.67 # # non-linear
291
292 [temp. diff.]
293 C deg = K # Celsius degree
294 Celsius degree = C deg
295 F deg = R # Fahrenheit deg.
296 Fahrenheit degree = F deg
297
298
299 #
300 # electrical units
301 #
302 [current]
303 A = ! # ampere
304 ampere = A
305 amp = A
306 milliampere = 0.001 A
307 milliamp = milliampere
308 mA = milliampere # milliampere
309 microampere = 0.001 mA
310 kiloampere = 1000 A
311 kA = kiloampere # kiloampere
312 [charge]
313 coulomb = A*s
314 amp hour = A*hr
315 mAh = 0.001 amp hour # milliamp hour
316 milliamp hour = mAh
317 [potential]
318 volt = W/A
319 V = volt # volt
320 millivolt = 0.001 volt
321 mV = millivolt # millivolt
322 kilovolt = 1000 volt
323 kV = kilovolt # kilovolt
324 [resistance]
325 ohm = V/A
326 milliohm = 0.001 ohm
327 microhm = 0.001 milliohm
328 kilohm = 1000 ohm
329 [conductance]
330 siemens = A/V
331 [capacitance]
332 farad = coulomb/V
333 millifarad = 0.001 farad
334 microfarad = 0.001 millifarad
335 nanofarad = 1e-9 farad
336 picofarad = 1e-12 farad
337 [magn. flux]
338 weber = V*s
339 Wb = weber # weber
340 maxwell = 1e-8 Wb
341 [inductance]
342 henry = Wb/A
343 H = henry # henry
344 millihenry = 0.001 henry
345 mH = millihenry # millihenry
346 microhenry = 0.001 mH
347 [flux density]
348 tesla = Wb/m^2
349 T = tesla # tesla
350 gauss = maxwell/cm^2
351
352
353 #
354 # molecular units
355 #
356 [molecular qty]
357 mol = ! # mole # gram mole
358 mole = mol # # gram mole
359 gram mole = mol
360 kilomole = 1000 mol
361 kmol = kilomole # kilomole
362 pound mole = mol*lbm/gram
363 lbmol = pound mole # pound mole
364 [size of a mol]
365 avogadro = gram/(amu*mol)
366
367
368 #
369 # Illumination units
370 #
371 [lum. intens.]
372 cd = ! # candela
373 candela = cd
374
375 [luminous flux]
376 lumen = cd * sr
377 lm = lumen # lumen
378
379 [illuminance]
380 lux = lumen/m^2
381 footcandle = lumen/ft^2
382 metercandle = lumen/m^2
383
384 [luminance]
385 lambert = cd/(pi*cm^2)
386 millilambert = 0.001 lambert
387 footlambert = cd/(pi*ft^2)
388
389
390 #
391 # angular units
392 #
393 [angle]
394 radian = !
395 rad = radian # radian
396 circle = 2 pi*radian
397 turn = circle
398 revolution = circle
399 rev = revolution # revolution
400 degree = 1/360.0 circle
401 deg = degree # degree
402 arc min = 1/60.0 degree # minute
403 arc minute = arc min
404 min arc = arc min # minute
405 minute arc = arc min
406 arc sec = 1/60.0 arc min # second
407 arc second = arc sec
408 sec arc = arc sec # second
409 second arc = arc sec
410 quadrant = 1/4.0 circle
411 right angle = quadrant
412 gradian = 0.01 quadrant
413
414
415 #
416 # solid angle units
417 #
418 [solid angle]
419 sr = ! # steradian
420 steradian = sr
421 sphere = 4 pi*sr
422 hemisphere = 1/2.0 sphere
423
424
425 #
426 # information units
427 #
428 [data]
429 bit = !
430 kilobit = 1000 bit # # based on power of 10
431 megabit = 1000 kilobit # # based on power of 10
432 gigabit = 1000 megabit # # based on power of 10
433 terabit = 1000 gigabit # # based on power of 10
434 byte = 8 bit
435 B = byte # byte
436 kilobyte = 1024 byte # # based on power of 2
437 kB = kilobyte # kilobyte # based on power of 2
438 megabyte = 1024 kB # # based on power of 2
439 MB = megabyte # megabyte # based on power of 2
440 gigabyte = 1024 MB # # based on power of 2
441 GB = gigabyte # gigabyte # based on power of 2
442 terabyte = 1024 GB # # based on power of 2
443 TB = terabyte # terabyte # based on power of 2
444 petabyte = 1024 TB # # based on power of 2
445 PB = petabyte # petabyte # based on power of 2
446
447 kilobyte SI std = 1000 byte # # based on power of 10
448 kB SI std = kilobyte SI std # kilobyte # based on power of 10
449 megabyte SI std = 1000 kB SI std # # based on power of 10
450 MB SI std = megabyte SI std # megabyte # based on power of 10
451 gigabyte SI std = 1000 MB SI std # # based on power of 10
452 GB SI std = gigabyte SI std # gigabyte # based on power of 10
453 terabyte SI std = 1000 GB SI std # # based on power of 10
454 TB SI std = terabyte SI std # terabyte # based on power of 10
455 petabyte SI std = 1000 TB SI std # # based on power of 10
456 PB SI std = petabyte SI std # petabyte # based on power of 10
457
458 kibibyte = 1024 byte
459 KiB = kibibyte # kibibyte
460 mebibyte = 1024 KiB
461 MiB = mebibyte # mebibyte
462 gibibyte = 1024 MiB
463 GiB = gibibyte # gibibyte
464 tebibyte = 1024 GiB
465 TiB = tebibyte # tebibyte
466 pebibyte = 1024 TiB
467 PiB = pebibyte # pebibyte
468
469 [data transfer]
470 bps = bit/sec # bits / second
471 kbps = 1000 bps # kilobits / sec. # based on power of 10
472
473
474 #
475 # Unitless numbers
476 #
477 [quantity]
478 unit = !!
479 1 = unit # unit
480 pi = 3.14159265358979323846 unit
481 pair = 2 unit
482 hat trick = 3 unit # # sports
483 dozen = 12 unit
484 doz = dozen # dozen
485 bakers dozen = 13 unit
486 score = 20 unit
487 gross = 144 unit
488 great gross = 12 gross
489 ream = 500 unit
490 percent = 0.01 unit
491 % = percent
492 mill = 0.001 unit
493 [interest rate]
494 APR = [unit] log(1 + x/100) ; (exp(x) - 1)*100 \
495 # annual % rate # based on continuous compounding
496 [concentration]
497 proof = 1/200.0 unit # # alcohol content
498 ppm = 1e-6 unit # parts per million
499 parts per million = ppm
500 ppb = 1e-9 unit # parts per billion
501 parts per billion = ppb
502 ppt = 1e-12 unit # parts per trillion
503 parts per trillion = ppt
504 karat = 1/24.0 unit # # gold purity
505 carat gold = karat # # gold purity
506
507
508 #
509 # force units
510 #
511 [force]
512 newton = kg*m/s^2
513 N = newton # newton
514 dekanewton = 10 newton
515 kilonewton = 1000 N
516 kN = kilonewton # kilonewton
517 meganewton = 1000 kN
518 millinewton = 0.001 N
519 dyne = cm*g/s^2
520 kg force = kg * gravity # kilogram f
521 kgf = kg force # kilogram force
522 kilogram force = kg force
523 kp = kg force # kilopond
524 kilopond = kg force
525 gram force = g * gravity
526 pound force = lbm * gravity # # avoirdupois
527 lbf = pound force # pound force # avoirdupois
528 ton force = ton * gravity
529 ounce force = ounce * gravity
530 ozf = ounce force # ounce force
531 tonne force = tonne * gravity # # metric
532 pdl = lbm * ft / sec^2 # poundal # Imperial force
533 poundal = pdl # # Imperial force
534
535
536 #
537 # area units
538 #
539 [area]
540 barn = 1e-28 m^2 # # particle physics
541 are = 100 m^2
542 decare = 10 are
543 dekare = 10 are
544 hectare = 100 are
545 stremma = 1000 m^2
546 acre = 10 chain^2
547 section = mile^2
548 township = 36 section
549 homestead = 160 acre
550 square perch = 30.25 yd^2
551 rood = 0.25 acre
552 rai = 1600 m^2 # # Thai
553 ngaan = 400 m^2 # # Thai
554 circular inch = 1/4.0 pi*in^2 # # area of 1 inch circle
555 circular mil = 1/4.0 pi*mil^2 # # area of 1 mil circle
556 AWG Area = [in^2] pi/4*pow(pow(92.0,(36-x)/39.0)/200.0,2) ; \
557 36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
558 # American Wire Gauge \
559 # use -1, -2 for 00, 000; non-linear
560 American Wire Gauge Area = [in^2] pi/4*pow(pow(92.0,(36-x)/39.0)/200.0,2) ; \
561 36 - 39.0*log(200.0*sqrt(x*4.0/pi))/log(92.0) \
562 # # use -1, -2 for 00, 000; non-linear
563
564
565 #
566 # volume units
567 #
568 [volume]
569 cc = cm^3 # cubic centimeter
570 cubic centimeter = cc
571 liter = 1000 cc
572 l = liter # liter
573 litre = liter
574 deciliter = 0.1 liter
575 centiliter = 0.01 liter
576 milliliter = cc
577 ml = milliliter # milliliter
578 microliter = 1e-6 liter
579 dekaliter = 10 liter
580 hectoliter = 100 liter
581 kiloliter = 1000 liter
582 kl = kiloliter # kiloliter
583 megaliter = 1000 kiloliter
584 gallon = 231 in^3 # # US liquid
585 gal = gallon # gallon # US liquid
586 quart = 1/4.0 gallon # # US liquid
587 qt = quart # quart # US liquid
588 pint = 1/2.0 quart # # US liquid
589 pt = pint # pint # US liquid
590 fluid ounce = 1/16.0 pint # # US
591 fl oz = fluid ounce # fluid ounce # US
592 ounce fluid = fluid ounce # # US
593 fluid dram = 1/8.0 fluid ounce # # US
594 minim = 1/480.0 fluid ounce # # US
595 imperial gallon = 4.54609 liter
596 imp gal = imperial gallon # imperial gallon
597 gallon imperial = imperial gallon
598 imperial quart = 1/4.0 imp gal
599 imp qt = imperial quart # imperial quart
600 quart imperial = imperial quart
601 imperial pint = 1/8.0 imp gal
602 imp pt = imperial pint # imperial pint
603 pint imperial = imperial pint
604 imperial fluid ounce = 1/160.0 imp gal
605 imp fl oz = imperial fluid ounce # imperial fluid ounce
606 imperial fluid dram = 1/8.0 imp fl oz
607 imperial minim = 1/480.0 imp fl oz
608 cup = 8 fl oz
609 tablespoon = 1/16.0 cup
610 tbsp = tablespoon # tablespoon
611 teaspoon = 1/3.0 tbsp
612 tsp = teaspoon # teaspoon
613 barrel = 42 gallon
614 bbl = barrel # barrel
615 shot = 1.5 fl oz
616 fifth = 1/5.0 gallon # # alcohol
617 wine bottle = 750 ml
618 magnum = 1.5 liter # # alcohol
619 keg = 15.5 gallon # # beer
620 hogshead wine = 63 gal
621 hogshead beer = 54 gal
622 bushel = 2150.42 in^3
623 peck = 1/4.0 bushel
624 cord = 128 ft^3
625 board foot = ft^2*in
626 board feet = board foot
627
628
629 #
630 # velocity units
631 #
632 [velocity]
633 knot = nmi/hr
634 kt = knot # knot
635 light speed = 2.99792458e8 m/s
636 mph = mi/hr # miles/hour
637 kph = km/hr # kilometers/hour
638 mach = 340.29 m/s # # speed sound at STP
639 Beaufort wind = [m/s] 0.836 * x**1.5 ; (x / 0.836)**(2/3) \
640 # # wind speed, non-linear
641 [rot. velocity]
642 rpm = rev/min # rev/min
643 rps = rev/sec # rev/sec
644
645
646 #
647 # flow rate units
648 #
649 [fluid flow]
650 gph = gal/hr # gallons/hour
651 gpm = gal/min # gallons/minute
652 cfs = ft^3/sec # cu ft/second
653 cfm = ft^3/min # cu ft/minute
654 lpm = l/min # liter/min
655 [gas flow]
656 sccm = atm*cc/min # std cc/min # pressure * flow
657 sccs = atm*cc/sec # std cc/sec # pressure * flow
658 slpm = atm*l/min # std liter/min # pressure * flow
659 slph = atm*l/hr # std liter/hour # pressure * flow
660 scfh = atm*ft^3/hour # std cu ft/hour # pressure * flow
661 scfm = atm*ft^3/min # std cu ft/min # pressure * flow
662
663
664 #
665 # pressure units
666 #
667 [pressure]
668 Pa = N/m^2 # pascal
669 pascal = Pa
670 hPa = 100 Pa # hectopascal
671 hectopascal = hPa
672 kPa = 1000 Pa # kilopascal
673 kilopascal = kPa
674 MPa = 1000 kPa # megapascal
675 megapascal = MPa
676 GPa = 1000 MPa # gigapascal
677 gigapascal = GPa
678 atm = 101325 Pa # atmosphere
679 atmosphere = atm
680 bar = 1e5 Pa
681 mbar = 0.001 bar # millibar
682 millibar = mbar
683 microbar = 0.001 mbar
684 decibar = 0.1 bar
685 kilobar = 1000 bar
686 megabar = 1000 kilobar
687 mm Hg = mm*density Hg*gravity
688 millimeter of Hg = mm Hg
689 torr = mm Hg
690 micron of Hg = micron*density Hg*gravity
691 in Hg = in*density Hg*gravity # inch of Hg
692 inch of Hg = in Hg
693 m water = m*density water*gravity # meter of H2O # fresh water
694 m H2O = m water # meter of H2O # fresh water
695 meter of water = m water # # fresh water
696 in water = in*density water*gravity # inch of H2O # fresh water
697 in H2O = in water # inch of H2O # fresh water
698 inch of water = in water # # fresh water
699 ft water = ft*density water*gravity # feet of H2O # fresh water
700 ft H2O = ft water # feet of H20 # fresh water
701 feet of water = ft water # # fresh water
702 foot of head = ft water # # fresh water
703 ft hd = ft water # foot of head # fresh water
704 psi = lbf/in^2 # pound / sq inch
705 pound per sq inch = psi
706 ksi = 1000 psi # 1000 lb / sq inch
707
708
709 #
710 # density units
711 #
712 [density]
713 density water = gram/cm^3
714 density sea water = 1.025 gram/cm^3
715 density Hg = 13.5950981 gram/cm^3
716 density air = 1.293 kg/m^3 # # at STP
717 density steel = 0.283 lb/in^3 # # carbon steel
718 density aluminum = 0.098 lb/in^3
719 density zinc = 0.230 lb/in^3
720 density brass = 0.310 lb/in^3 # # 80Cu-20Zn
721 density copper = 0.295 lb/in^3
722 density iron = 0.260 lb/in^3 # # cast iron
723 density nickel = 0.308 lb/in^3
724 density tin = 0.275 lb/in^3
725 density titanium = 0.170 lb/in^3
726 density silver = 0.379 lb/in^3
727 density nylon = 0.045 lb/in^3
728 density polycarbonate = 0.045 lb/in^3
729
730
731 #
732 # energy units
733 #
734 [energy]
735 joule = N*m
736 J = joule # joule
737 kilojoule = 1000 joule
738 kJ = kilojoule # kilojoule
739 megajoule = 1000 kilojoule
740 gigajoule = 1000 megajoule
741 millijoule = 0.001 joule
742 mJ = millijoule # millijoule
743 calorie = 4.1868 J
744 cal = calorie # calorie
745 kilocalorie = 1000 cal
746 kcal = kilocalorie # kilocalorie
747 calorie food = kilocalorie
748 thermie = 1000 kcal
749 Btu = cal*lb*R/(g*K) # British thermal unit
750 British thermal unit = Btu
751 therm = 100000 Btu
752 erg = cm*dyne
753 electronvolt = 1.602176634e-19 J
754 eV = electronvolt # electronvolt
755 Ry = 2.179872361103542e-18 J # Rydberg unit
756 Rydberg unit = Ry
757 hartree = 2 Ry
758 kWh = kW*hour # kilowatt-hour
759 kilowatt hour = kWh
760 ton TNT = 4.184e9 J
761 tonne oil equivalent = 41.868 gigajoule
762 tonne coal equivalent = 7000000 kcal
763
764
765 #
766 # power units
767 #
768 [power]
769 watt = J/s
770 W = watt # watt
771 kilowatt = 1000 W
772 kW = kilowatt # kilowatt
773 megawatt = 1000 kW
774 MW = megawatt # megawatt
775 gigawatt = 1000 MW
776 GW = gigawatt # gigawatt
777 milliwatt = 0.001 W
778 horsepower = 550 ft*lbf/sec
779 hp = horsepower # horsepower
780 metric horsepower = 75 kgf*m/s
781 ton refrigeration = 12000 Btu/hr
782 MBH = 1000 Btu/hr # 1000 Btu/hr
783 boiler horsepower = 33475 Btu/hr
784
785
786 #
787 # frequency
788 #
789 [frequency]
790 hertz = unit/sec
791 Hz = hertz # hertz
792 millihertz = 0.001 Hz
793 kilohertz = 1000 Hz
794 kHz = kilohertz # kilohertz
795 megahertz = 1000 kHz
796 MHz = megahertz # megahertz
797 gigahertz = 1000 MHz
798 GHz = gigahertz # gigahertz
799
800
801 #
802 # radioactivity
803 #
804 [radioactivity]
805 becquerel = unit/sec
806 Bq = becquerel # becquerel
807 curie = 3.7e10 Bq
808 millicurie = 0.001 curie
809 roentgen = 2.58e-4 coulomb/kg
810 [radiation dose]
811 gray = J/kg
812 Gy = gray # gray
813 centigray = 0.01 Gy
814 rad. abs. dose = 0.01 Gy # # commonly rad
815 sievert = J/kg # # equiv. dose
816 millisievert = 0.001 sievert # # equiv. dose
817 Sv = sievert # sievert # equiv. dose
818 rem = 0.01 Sv # # roentgen equiv mammal
819 millirem = 0.001 rem # # roentgen equiv mammal
820
821
822 #
823 # viscosity
824 #
825 [dyn viscosity]
826 poise = g/(cm*s)
827 P = poise # poise
828 centipoise = 0.01 poise
829 cP = centipoise # centipoise
830
831 [kin viscosity]
832 stokes = cm^2/s
833 St = stokes # stokes
834 centistokes = 0.01 stokes
835 cSt = centistokes # centistokes
836
837
838 #
839 # misc. units
840 #
841 [acceleration]
842 gravity = 9.80665 m/s^2
843 galileo = cm/s^2
844 [constant]
845 gravity constant = 6.673e-11 N*m^2/kg^2
846 gas constant = 8.314472 J/(mol*K) # R
847 Planck constant = 6.62607015e-34 J*s
848 [fuel consumpt.]
849 mpg = mi/gal # miles/gallon
850 mpg imp = mi/gallon imperial # miles/gallon imp
851 liter per 100 km = [mpg] 3.785411784 / (x * 0.01609344) ; \
852 3.785411784 / (x * 0.01609344) # # non-linear
853 [optical power]
854 diopter = m^-1 # # American spelling
855 dioptre = diopter # # British spelling
856 [permeability]
857 darcy = 1 cm^2*centipoise/atm/s
858 millidarcy = 0.001 darcy
859 [thermal resistance]
860 Rvalue = R*ft^2*hr/Btu
861 RSI = K*m^2/W # R-value SI
862 Rvalue SI = RSI