aesoptparam 0.3.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,233 @@
1
+ # Default unit library definitions. Much of this is based on
2
+ # http://www.bipm.org/utils/common/pdf/si_brochure_8_en.pdf
3
+
4
+
5
+ # ------------------------------------------------------------------------
6
+ [prefixes]
7
+ # ------------------------------------------------------------------------
8
+ # prefix-string: float-multiplier [, comment]
9
+
10
+ # SI.
11
+ Y: 1.e24
12
+ Z: 1.e21
13
+ E: 1.e18
14
+ P: 1.e15
15
+ T: 1.e12
16
+ G: 1.e9
17
+ M: 1.e6
18
+ k: 1.e3
19
+ h: 1.e2
20
+ da: 1.e1
21
+ d: 1.e-1
22
+ c: 1.e-2
23
+ m: 1.e-3
24
+ u: 1.e-6
25
+ n: 1.e-9
26
+ p: 1.e-12
27
+ f: 1.e-15
28
+ a: 1.e-18
29
+ z: 1.e-21
30
+ y: 1.e-24
31
+
32
+ # IEC
33
+ Ei: 1152921504606846976, (1 << 60)
34
+ Pi: 1125899906842624, (1 << 50)
35
+ Ti: 1099511627776, (1 << 40)
36
+ Gi: 1073741824, (1 << 30)
37
+ Mi: 1048576, (1 << 20)
38
+ Ki: 1024, (1 << 10)
39
+
40
+
41
+ # ------------------------------------------------------------------------
42
+ [base_units]
43
+ # ------------------------------------------------------------------------
44
+ # quantity-name: unit-name
45
+
46
+ # SI.
47
+ length: m
48
+ mass: kg
49
+ time: s
50
+ current: A
51
+ temperature: K
52
+ amount: mol
53
+ luminous_intensity: cd
54
+
55
+ # Derived SI (Table 3).
56
+ angle: rad
57
+ solid_angle: sr
58
+
59
+ # Other.
60
+ money: USD
61
+ passengers: pax
62
+ digital_data: byte
63
+
64
+ # Unitness
65
+ Unitless: unitless
66
+
67
+
68
+ # ------------------------------------------------------------------------
69
+ [units]
70
+ # ------------------------------------------------------------------------
71
+ # unit-name: unit-expression, comment
72
+ # OR
73
+ # unit-name: factor, base-unit, offset, comment
74
+ #
75
+ # Note that unit names cannot be Python reserved words (such as 'in' for inch).
76
+ # Unit names are matched before prefix names are checked.
77
+ # A unit-expression cannot use prefixes (except for 'kg'), however 'pi' is
78
+ # available as a predefined constant.
79
+
80
+ g: kg/1000, gram
81
+
82
+ # Derived SI (Table 3).
83
+ Hz: 1/s, hertz
84
+ N: m*kg/s**2, newton
85
+ Pa: N/m**2, pascal
86
+ J: N*m, joule
87
+ W: J/s, watt
88
+ C: A*s, coulomb
89
+ V: W/A, volt
90
+ F: C/V, farad
91
+ ohm: V/A, ohm
92
+ S: A/V, siemens
93
+ Wb: V*s, weber
94
+ T: Wb/m**2, tesla
95
+ H: Wb/A, henry
96
+ degC: 1, K, 273.15, degree celsius
97
+ lm: cd*sr, lumen
98
+ lx: lm/m**2, lux
99
+ Bq: 1/s, becquerel
100
+ Gy: J/kg, gray
101
+ Sv: J/kg, sievert
102
+ kat: mol/s, katal
103
+
104
+ # Non-SI (Table 6).
105
+ min: 60*s, minute
106
+ h: 3600*s, hour
107
+ d: 86400*s, day
108
+ deg: (pi/180)*rad, degree
109
+ arc_minute: deg/60, arc minute
110
+ arc_second: arc_minute/60, arc second
111
+ ha: 1e4*m**2, hectare
112
+ L: 1e-3*m**3, liter
113
+ t: 1e3*kg, tonne (metric ton)
114
+
115
+ # Non-SI (Table 7).
116
+ e: 1.60217653e-19*C, elementary charge
117
+ eV: e*V, electron volt
118
+ Da: 1.66053886e-27*kg, dalton
119
+ u: Da, unified atomic mass unit
120
+ ua: 1.49597870700e11*m, astronomical unit
121
+ AU: 1.49597870700e11*m, astronomical unit
122
+ c0: 299792458.*m/s, speed of light in vacuum
123
+ hbar: 1.05457168e-34*J*s, reduced Planck Constant
124
+ me: 9.1093826e-31*kg, electron mass
125
+ a0: 0.5291772108e-10*m, Bohr radius
126
+ Eh: 4.35974417e-18*J, Hartree energy
127
+
128
+ # Non-SI (Table 8).
129
+ bar: 1.e5*Pa, pressure
130
+ Ang: 1.e-10*m, angstrom
131
+ NM: 1.852e3*m, nautical mile
132
+ b: 1.e-28*m**2, barn
133
+ kn: NM/h, knot
134
+
135
+ # Non-SI (Table 9).
136
+ erg: 1.e-7*J, erg
137
+ dyn: 1.e-5*N, dyne
138
+ P: 0.1*Pa*s, poise (dynamic viscosity)
139
+ St: 1.e-4*m**2/s, stokes (kinematic viscosity)
140
+ sb: 1.e4*cd/m**2, stilb (luminance)
141
+ ph: 1.e4*lx, phot (illuminance)
142
+ # 'Gal' skipped due to likely confusion with volume unit.
143
+ Mx: 1.e-8*Wb, maxwell (magnetic flux)
144
+ # 'G' renamed 'gauss' to avoid confusion with acceleration unit.
145
+ gauss: 1e-4*T, gauss (magnetic flux density)
146
+ Oe: (1.e3/(4*pi))*A/m, oersted (magnetic field)
147
+
148
+ # Backward compatibility.
149
+ degK: K, degree Kelvin
150
+ nmi: NM, nautical mile
151
+ knot: kn, knot
152
+
153
+ # Other length.
154
+ inch: 2.54e-2*m, inch
155
+ ft: 0.3048*m, foot
156
+ mi: 1.609344e3*m, mile (U.S. statute)
157
+ ly: c0*365.25*d, light year
158
+ pc: 648000/pi*AU, parsec
159
+ # Other mass.
160
+ oz: 28.349523125*g, ounce
161
+ lb: 16*oz, pound mass
162
+ lbm: lb, pound mass
163
+ ton: 2000*lb, ton (short)
164
+ slug: 14.5939029*kg, slug
165
+
166
+ # Other time.
167
+ wk: 7*d, week
168
+ week: 7*d, week (backward compatibility)
169
+ a: 365.242199*d, year
170
+ yr: a, year
171
+ year: a, year (backward compatibility)
172
+ mo: yr/12, month
173
+ month: yr/12, month (backward compatibility)
174
+
175
+ # Other temperature.
176
+ degR: K*5./9., degree Rankine
177
+ degF: 1, degR, 459.67, degree Fahrenheit
178
+
179
+ # Other volume.
180
+ tsp: 4.92892159375e-3*L, teaspoon
181
+ tbsp: 3*tsp, tablespoon
182
+ floz: 2*tbsp, fluid ounce
183
+ cup: 8*floz, cup
184
+ pt: 16*floz, pint
185
+ qt: 2*pt, quart
186
+ galUS: 3.785411*L, gallon (U.S.)
187
+ galUK: 4.54609*L, gallon (U.K.)
188
+
189
+ # Other miscellaneous.
190
+ lbf: 4.44822162*N, pound force
191
+
192
+ rev: 2*pi*rad, revolution
193
+ rpm: 2*pi*rad/min, RPM
194
+ rps: 2*pi*rad/s, RPS
195
+
196
+ cal: 4.184*J, thermochemical calorie
197
+ cali: 4.1868*J, international calorie
198
+ Btu: 1055.05585262*J, British thermal unit
199
+
200
+ acre: mi**2/640, acre
201
+ hp: 745.7*W, horsepower
202
+
203
+ atm: 101325.*Pa, standard atmosphere
204
+ torr: atm/760, Torr (1 mm of mercury)
205
+ psi: 6894.75729317*Pa, pounds per square inch
206
+ psf: psi/144, pounds per square foot
207
+
208
+ mu0: 4.e-7*pi*N/A**2, permeability of vacuum
209
+ eps0: 1/mu0/c0**2, permittivity of vacuum
210
+ Grav: 6.67259e-11*m**3/kg/s**2, universal gravitational constant
211
+ Nav: 6.0221367e23/mol, Avagadros number
212
+ R: 8.31424*J/(mol*K), gas constant
213
+ V0: 2.24136*m**3/(1000*mol), volume of ideal gas
214
+ planck: 2*pi*hbar, Planck constant
215
+ mp: 1.672614e-27*kg, proton rest mass
216
+ mn: 1.674920e-27*kg, neutron rest mass
217
+ sigma: 5.66961e-8*W/(m**2*K**-4), Stefan-Boltzmann constant
218
+ Ken: 1.380649e-23*J, kelvin as energy unit
219
+ Rinfinity: 1.09737312e7/m, Rydberg constant
220
+ re: 2.817939e-15*m, classic electron radius
221
+ lambdac: 2.4263096e-12*m, Compton wavelength of electron
222
+ lambdap: 1.3214409e-15*m, Compton wavelength of proton
223
+ lambdan: 1.3196217e-15*m, Compton wavelength of neutron
224
+ mue: 9.284851e-24*J/T, electron magnetic moment
225
+ mup: 1.4106203e-26*J/T, proton magnetic moment
226
+ mub: 9.274096e-24*J/T, bohr magneton
227
+ mun: 5.050951e-27*J/T, nuclear magneton
228
+ gammap: 2.6751270e8*rad/(s*T), gyromagnetic ratio of protons in H2O
229
+ gammapc: 2.6751965e8*rad/(s*T), gyromagnetic ratio of protons in H2O corrected for diamagnetism of H2O
230
+ phi0: 2.0678538e-15*Wb, magnetic flux quantum
231
+ hme: 7.273894e-4*J*s/kg, quantum of circulation
232
+
233
+ percent: unitless/100, percentage