PySDM 2.97__py3-none-any.whl → 2.99__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.
- PySDM/physics/constants_defaults.py +346 -118
- PySDM/physics/terminal_velocity/rogers_yau.py +2 -1
- {PySDM-2.97.dist-info → PySDM-2.99.dist-info}/METADATA +3 -1
- {PySDM-2.97.dist-info → PySDM-2.99.dist-info}/RECORD +7 -7
- {PySDM-2.97.dist-info → PySDM-2.99.dist-info}/LICENSE +0 -0
- {PySDM-2.97.dist-info → PySDM-2.99.dist-info}/WHEEL +0 -0
- {PySDM-2.97.dist-info → PySDM-2.99.dist-info}/top_level.txt +0 -0
|
@@ -30,6 +30,7 @@ from .constants import ( # pylint: disable=unused-import
|
|
|
30
30
|
from .trivia import Trivia
|
|
31
31
|
|
|
32
32
|
# https://physics.nist.gov/cgi-bin/Star/compos.pl?matno=104
|
|
33
|
+
# TODO #1507
|
|
33
34
|
Md = (
|
|
34
35
|
0.755267 * Substance.from_formula("N2").mass * si.gram / si.mole
|
|
35
36
|
+ 0.231781 * Substance.from_formula("O2").mass * si.gram / si.mole
|
|
@@ -37,134 +38,240 @@ Md = (
|
|
|
37
38
|
+ 0.000124 * Substance.from_formula("C").mass * si.gram / si.mole
|
|
38
39
|
)
|
|
39
40
|
|
|
40
|
-
# https://web.archive.org/web/20200729203147/https://nucleus.iaea.org/rpst/documents/VSMOW_SLAP.pdf
|
|
41
|
-
# heavy-to-light isotope abundance ratios
|
|
42
41
|
VSMOW_R_2H = 155.76 * PPM
|
|
42
|
+
"""
|
|
43
|
+
[IAEA VSMOW-SLAP](https://web.archive.org/web/20200729203147/https://nucleus.iaea.org/rpst/documents/VSMOW_SLAP.pdf)
|
|
44
|
+
heavy-to-light isotope abundance ratio for deuterium
|
|
45
|
+
""" # pylint: disable=line-too-long
|
|
43
46
|
VSMOW_R_3H = 1.85e-11 * PPM
|
|
47
|
+
"""
|
|
48
|
+
〃 for tritium
|
|
49
|
+
"""
|
|
44
50
|
VSMOW_R_18O = 2005.20 * PPM
|
|
51
|
+
"""
|
|
52
|
+
〃 for oxygen-18
|
|
53
|
+
"""
|
|
45
54
|
VSMOW_R_17O = 379.9 * PPM
|
|
55
|
+
"""
|
|
56
|
+
〃 for oxygen-17
|
|
57
|
+
"""
|
|
46
58
|
|
|
47
|
-
# https://physics.nist.gov/cgi-bin/Compositions/stand_alone.pl?ele=H
|
|
48
59
|
M_1H = 1.00782503224 * si.g / si.mole
|
|
60
|
+
"""
|
|
61
|
+
hydrogen atomic weight as in
|
|
62
|
+
[NIST database](https://physics.nist.gov/cgi-bin/Compositions/stand_alone.pl?ele=H)
|
|
63
|
+
"""
|
|
49
64
|
M_2H = 2.01410177812 * si.g / si.mole
|
|
65
|
+
"""
|
|
66
|
+
deuterium atomic weight as in
|
|
67
|
+
[NIST database](https://physics.nist.gov/cgi-bin/Compositions/stand_alone.pl?ele=H)
|
|
68
|
+
"""
|
|
50
69
|
M_3H = 3.01604927792 * si.g / si.mole
|
|
70
|
+
"""
|
|
71
|
+
tritium atomic weight as in
|
|
72
|
+
[NIST database](https://physics.nist.gov/cgi-bin/Compositions/stand_alone.pl?ele=H)
|
|
73
|
+
"""
|
|
51
74
|
|
|
52
|
-
# https://physics.nist.gov/cgi-bin/Compositions/stand_alone.pl?ele=O
|
|
53
75
|
M_16O = 15.99491461957 * si.g / si.mole
|
|
76
|
+
"""
|
|
77
|
+
oxygen-16 atomic weight as in
|
|
78
|
+
[NIST database](https://physics.nist.gov/cgi-bin/Compositions/stand_alone.pl?ele=O)
|
|
79
|
+
"""
|
|
54
80
|
M_17O = 16.99913175651 * si.g / si.mole
|
|
81
|
+
"""
|
|
82
|
+
oxygen-17 atomic weight as in
|
|
83
|
+
[NIST database](https://physics.nist.gov/cgi-bin/Compositions/stand_alone.pl?ele=O)
|
|
84
|
+
"""
|
|
55
85
|
M_18O = 17.99915961287 * si.g / si.mole
|
|
86
|
+
"""
|
|
87
|
+
oxygen-18 atomic weight as in
|
|
88
|
+
[NIST database](https://physics.nist.gov/cgi-bin/Compositions/stand_alone.pl?ele=O)
|
|
89
|
+
"""
|
|
56
90
|
|
|
57
91
|
R_str = sci.R * si.joule / si.kelvin / si.mole
|
|
58
|
-
|
|
92
|
+
""" universal gas constant (value from SciPy) """
|
|
59
93
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
K0 = 2.4e-2 * si.joules / si.metres / si.seconds / si.kelvins
|
|
94
|
+
N_A = sci.N_A / si.mole
|
|
95
|
+
""" Avogadro constant (value from SciPy) """
|
|
64
96
|
|
|
65
|
-
# mass and heat accommodation coefficients
|
|
66
97
|
MAC = 1.0
|
|
98
|
+
""" mass accommodation coefficient of unity as recommended in
|
|
99
|
+
[Laaksonen et al. 2005](https://doi.org/10.5194/acp-5-461-2005) """
|
|
67
100
|
HAC = 1.0
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
c_pd = 1005 * si.joule / si.kilogram / si.kelvin
|
|
71
|
-
c_pv = 1850 * si.joule / si.kilogram / si.kelvin
|
|
72
|
-
g_std = sci.g * si.metre / si.second**2
|
|
73
|
-
|
|
74
|
-
c_pw = 4218 * si.joule / si.kilogram / si.kelvin
|
|
101
|
+
""" thermal accommodation coefficient of uniy as recommended in
|
|
102
|
+
[Laaksonen et al. 2005](https://doi.org/10.5194/acp-5-461-2005) """
|
|
75
103
|
|
|
76
104
|
ARM_C1 = 6.1094 * si.hectopascal
|
|
105
|
+
""" [August](https://doi.org/10.1002/andp.18280890511) Roche Magnus formula coefficients
|
|
106
|
+
(values from [Alduchov & Eskridge 1996](https://doi.org/10.1175%2F1520-0450%281996%29035%3C0601%3AIMFAOS%3E2.0.CO%3B2))
|
|
107
|
+
""" # pylint: disable=line-too-long
|
|
77
108
|
ARM_C2 = 17.625 * si.dimensionless
|
|
109
|
+
""" 〃 """
|
|
78
110
|
ARM_C3 = 243.04 * si.kelvin
|
|
111
|
+
""" 〃 """
|
|
79
112
|
|
|
80
113
|
FWC_C0 = 6.115836990e000 * si.hPa
|
|
114
|
+
""" [Flatau et al. 1992](https://doi.org/10.1175/1520-0450(1992)031%3C1507:PFTSVP%3E2.0.CO;2)
|
|
115
|
+
polynomial fit coefficients """
|
|
81
116
|
FWC_C1 = 0.444606896e000 * si.hPa / si.K
|
|
117
|
+
""" 〃 """
|
|
82
118
|
FWC_C2 = 0.143177157e-01 * si.hPa / si.K**2
|
|
119
|
+
""" 〃 """
|
|
83
120
|
FWC_C3 = 0.264224321e-03 * si.hPa / si.K**3
|
|
121
|
+
""" 〃 """
|
|
84
122
|
FWC_C4 = 0.299291081e-05 * si.hPa / si.K**4
|
|
123
|
+
""" 〃 """
|
|
85
124
|
FWC_C5 = 0.203154182e-07 * si.hPa / si.K**5
|
|
125
|
+
""" 〃 """
|
|
86
126
|
FWC_C6 = 0.702620698e-10 * si.hPa / si.K**6
|
|
127
|
+
""" 〃 """
|
|
87
128
|
FWC_C7 = 0.379534310e-13 * si.hPa / si.K**7
|
|
129
|
+
""" 〃 """
|
|
88
130
|
FWC_C8 = -0.321582393e-15 * si.hPa / si.K**8
|
|
89
|
-
|
|
131
|
+
""" 〃 """
|
|
90
132
|
FWC_I0 = 6.098689930e000 * si.hPa
|
|
133
|
+
""" 〃 """
|
|
91
134
|
FWC_I1 = 0.499320233e000 * si.hPa / si.K
|
|
135
|
+
""" 〃 """
|
|
92
136
|
FWC_I2 = 0.184672631e-01 * si.hPa / si.K**2
|
|
137
|
+
""" 〃 """
|
|
93
138
|
FWC_I3 = 0.402737184e-03 * si.hPa / si.K**3
|
|
139
|
+
""" 〃 """
|
|
94
140
|
FWC_I4 = 0.565392987e-05 * si.hPa / si.K**4
|
|
141
|
+
""" 〃 """
|
|
95
142
|
FWC_I5 = 0.521693933e-07 * si.hPa / si.K**5
|
|
143
|
+
""" 〃 """
|
|
96
144
|
FWC_I6 = 0.307839583e-09 * si.hPa / si.K**6
|
|
145
|
+
""" 〃 """
|
|
97
146
|
FWC_I7 = 0.105785160e-11 * si.hPa / si.K**7
|
|
147
|
+
""" 〃 """
|
|
98
148
|
FWC_I8 = 0.161444444e-14 * si.hPa / si.K**8
|
|
149
|
+
""" 〃 """
|
|
99
150
|
|
|
100
151
|
L77W_A0 = 6.107799961 * si.hPa
|
|
152
|
+
""" polynomial fits from
|
|
153
|
+
[Lowe et al. 1977](https://doi.org/10.1175/1520-0450(1977)016%3C0100:AAPFTC%3E2.0.CO;2) """
|
|
101
154
|
L77W_A1 = 4.436518521e-1 * si.hPa / si.K
|
|
155
|
+
""" 〃 """
|
|
102
156
|
L77W_A2 = 1.428945805e-2 * si.hPa / si.K**2
|
|
157
|
+
""" 〃 """
|
|
103
158
|
L77W_A3 = 2.650648471e-4 * si.hPa / si.K**3
|
|
159
|
+
""" 〃 """
|
|
104
160
|
L77W_A4 = 3.031240396e-6 * si.hPa / si.K**4
|
|
161
|
+
""" 〃 """
|
|
105
162
|
L77W_A5 = 2.034080948e-8 * si.hPa / si.K**5
|
|
163
|
+
""" 〃 """
|
|
106
164
|
L77W_A6 = 6.136820929e-11 * si.hPa / si.K**6
|
|
107
|
-
|
|
165
|
+
""" 〃 """
|
|
108
166
|
L77I_A0 = 6.109177956 * si.hPa
|
|
167
|
+
""" 〃 """
|
|
109
168
|
L77I_A1 = 5.03469897e-1 * si.hPa / si.K
|
|
169
|
+
""" 〃 """
|
|
110
170
|
L77I_A2 = 1.886013408e-2 * si.hPa / si.K**2
|
|
171
|
+
""" 〃 """
|
|
111
172
|
L77I_A3 = 4.176223716e-4 * si.hPa / si.K**3
|
|
173
|
+
""" 〃 """
|
|
112
174
|
L77I_A4 = 5.824720280e-6 * si.hPa / si.K**4
|
|
175
|
+
""" 〃 """
|
|
113
176
|
L77I_A5 = 4.838803174e-8 * si.hPa / si.K**5
|
|
177
|
+
""" 〃 """
|
|
114
178
|
L77I_A6 = 1.838826904e-10 * si.hPa / si.K**6
|
|
179
|
+
""" 〃 """
|
|
115
180
|
|
|
116
|
-
rho_w = 1 * si.kilograms / si.litres
|
|
117
181
|
rho_i = 916.8 * si.kg / si.metres**3
|
|
182
|
+
""" density of ice, for discussion, see [Pounder 1965](https://doi.org/10.1016/C2013-0-08278-3) """
|
|
183
|
+
rho_w = 1 * si.kilograms / si.litres
|
|
184
|
+
""" 〃 of water, 〃 """
|
|
185
|
+
|
|
118
186
|
pH_w = 7
|
|
119
|
-
|
|
187
|
+
""" pH of pure water """
|
|
120
188
|
|
|
121
|
-
|
|
189
|
+
p1000 = 1000 * si.hectopascals
|
|
190
|
+
""" 1000 hPa reference pressure as in the definition of potential temperature"""
|
|
191
|
+
|
|
192
|
+
p_tri = 611.657 * si.pascal
|
|
193
|
+
""" water triple point characteristics as recommended in
|
|
194
|
+
[Murphy & Koop 2005](https://doi.org/10.1256/qj.04.94) """
|
|
122
195
|
T_tri = 273.16 * si.kelvin
|
|
196
|
+
""" 〃 """
|
|
197
|
+
|
|
123
198
|
l_tri = 2.5e6 * si.joule / si.kilogram
|
|
124
199
|
|
|
125
|
-
# Seinfeld and Pandis, Appendix 16.1, 16A.2
|
|
126
|
-
# default constant values according to Lowe et al. (2019), from ICPM code
|
|
127
200
|
l_l19_a = 0.167 * si.dimensionless
|
|
201
|
+
""" [Seinfeld and Pandis](https://archive.org/details/0237-pdf-atmospheric-chemistry-and-physics-2nd-ed-j.-seinfeld-s.-pandis-wiley-2006-ww)
|
|
202
|
+
Appendix 16.1, 16A.2 default constant values according to
|
|
203
|
+
[Lowe et al. 2019](https://doi.org/10.1038/s41467-019-12982-0),
|
|
204
|
+
from ICPM code """ # pylint: disable=line-too-long
|
|
128
205
|
l_l19_b = 3.65e-4 / si.kelvin
|
|
206
|
+
""" 〃 """
|
|
129
207
|
|
|
130
|
-
# Thermal diffusivity constants from Lowe et al. (2019)
|
|
131
208
|
k_l19_a = 4.2e-3 * si.joules / si.metres / si.seconds / si.kelvins
|
|
209
|
+
""" Thermal diffusivity constants from
|
|
210
|
+
[Lowe et al. 2019](https://doi.org/10.1038/s41467-019-12982-0) """
|
|
132
211
|
k_l19_b = 1.0456 * si.dimensionless
|
|
212
|
+
""" 〃 """
|
|
133
213
|
k_l19_c = 0.017 / si.kelvin
|
|
214
|
+
""" 〃 """
|
|
134
215
|
|
|
135
|
-
# Delta v for diffusivity in Pruppacher & Klett eq. 13-14
|
|
136
216
|
dv_pk05 = 0.0 * si.metres
|
|
217
|
+
""" Delta v for diffusivity in [Pruppacher & Klett](https://doi.org/10.1007/978-0-306-48100-0)
|
|
218
|
+
eq. 13-14 """
|
|
137
219
|
|
|
138
|
-
# Seinfeld & Pandis eq. 15.65 (Hall & Pruppacher 1976)
|
|
139
220
|
d_l19_a = 0.211e-4 * si.metre**2 / si.second
|
|
221
|
+
""" [Seinfeld & Pandis](https://archive.org/details/0237-pdf-atmospheric-chemistry-and-physics-2nd-ed-j.-seinfeld-s.-pandis-wiley-2006-ww)
|
|
222
|
+
eq. 15.65
|
|
223
|
+
[Hall & Pruppacher 1976](https://doi.org/10.1175/1520-0469(1976)033%3C1995:TSOIPF%3E2.0.CO;2)
|
|
224
|
+
""" # pylint: disable=line-too-long
|
|
140
225
|
d_l19_b = 1.94
|
|
226
|
+
""" 〃 """
|
|
141
227
|
|
|
142
228
|
MK05_ICE_C1 = 1 * si.Pa
|
|
229
|
+
""" [Murphy and Koop 2005](https://doi.org/10.1256/qj.04.94) """
|
|
143
230
|
MK05_ICE_C2 = 9.550426 * si.dimensionless
|
|
231
|
+
""" 〃 """
|
|
144
232
|
MK05_ICE_C3 = 5723.265 * si.K
|
|
233
|
+
""" 〃 """
|
|
145
234
|
MK05_ICE_C4 = 3.53068 * si.dimensionless
|
|
235
|
+
""" 〃 """
|
|
146
236
|
MK05_ICE_C5 = 1 * si.K
|
|
237
|
+
""" 〃 """
|
|
147
238
|
MK05_ICE_C6 = 0.00728332 / si.K
|
|
148
|
-
|
|
239
|
+
""" 〃 """
|
|
149
240
|
MK05_LIQ_C1 = 1 * si.Pa
|
|
241
|
+
""" 〃 """
|
|
150
242
|
MK05_LIQ_C2 = 54.842763 * si.dimensionless
|
|
243
|
+
""" 〃 """
|
|
151
244
|
MK05_LIQ_C3 = 6763.22 * si.K
|
|
245
|
+
""" 〃 """
|
|
152
246
|
MK05_LIQ_C4 = 4.210 * si.dimensionless
|
|
247
|
+
""" 〃 """
|
|
153
248
|
MK05_LIQ_C5 = 1 * si.K
|
|
249
|
+
""" 〃 """
|
|
154
250
|
MK05_LIQ_C6 = 0.000367 / si.K
|
|
251
|
+
""" 〃 """
|
|
155
252
|
MK05_LIQ_C7 = 0.0415 / si.K
|
|
253
|
+
""" 〃 """
|
|
156
254
|
MK05_LIQ_C8 = 218.8 * si.K
|
|
255
|
+
""" 〃 """
|
|
157
256
|
MK05_LIQ_C9 = 53.878 * si.dimensionless
|
|
257
|
+
""" 〃 """
|
|
158
258
|
MK05_LIQ_C10 = 1331.22 * si.K
|
|
259
|
+
""" 〃 """
|
|
159
260
|
MK05_LIQ_C11 = 9.44523 * si.dimensionless
|
|
261
|
+
""" 〃 """
|
|
160
262
|
MK05_LIQ_C12 = 1 * si.K
|
|
263
|
+
""" 〃 """
|
|
161
264
|
MK05_LIQ_C13 = 0.014025 / si.K
|
|
265
|
+
""" 〃 """
|
|
162
266
|
|
|
163
|
-
# standard pressure and temperature (ICAO)
|
|
164
267
|
T_STP = (sci.zero_Celsius + 15) * si.kelvin
|
|
268
|
+
""" standard temperature (ICAO) ... """
|
|
165
269
|
p_STP = 101325 * si.pascal
|
|
270
|
+
""" ... and pressure """
|
|
166
271
|
|
|
167
272
|
ROOM_TEMP = T_tri + 25 * si.K
|
|
273
|
+
""" room temperature """
|
|
274
|
+
|
|
168
275
|
dT_u = si.K
|
|
169
276
|
|
|
170
277
|
sgm_org = np.nan
|
|
@@ -181,258 +288,334 @@ BIGG_DT_MEDIAN = np.nan
|
|
|
181
288
|
NIEMAND_A = np.nan
|
|
182
289
|
NIEMAND_B = np.nan
|
|
183
290
|
|
|
291
|
+
ABIFM_UNIT = 1 / si.cm**2 / si.s
|
|
292
|
+
""" ice nucleation rate using ABIFM
|
|
293
|
+
([Knopf & Alpert 2013](https://doi.org/10.1039/C3FD00035D)) """
|
|
184
294
|
ABIFM_M = np.inf
|
|
295
|
+
""" 〃 """
|
|
185
296
|
ABIFM_C = np.inf
|
|
186
|
-
|
|
297
|
+
""" 〃 """
|
|
187
298
|
|
|
188
299
|
J_HET = np.nan
|
|
300
|
+
""" constant ice nucleation rate """
|
|
189
301
|
|
|
190
302
|
STRAUB_E_D1 = 0.04 * si.cm
|
|
303
|
+
""" [Straub et al. 2010](https://doi.org/10.1175/2009JAS3175.1) """
|
|
191
304
|
STRAUB_MU2 = 0.095 * si.cm
|
|
305
|
+
""" 〃 """
|
|
192
306
|
|
|
193
307
|
VEDDER_1987_b = 89 / 880
|
|
308
|
+
""" [Vedder 1987](https://doi.org/10.1119/1.15018) """
|
|
194
309
|
VEDDER_1987_A = 993 / 880 / 3 / VEDDER_1987_b
|
|
310
|
+
""" 〃 """
|
|
195
311
|
|
|
196
|
-
""" [eq. 5 in Merlivat and Nief 1967](https://doi.org/10.3402/tellusa.v19i1.9756) """
|
|
197
312
|
MERLIVAT_NIEF_1967_ALPHA_L_2H_T2 = 15013 * si.K**2
|
|
313
|
+
""" [eq. 5 in Merlivat and Nief 1967](https://doi.org/10.3402/tellusa.v19i1.9756) """
|
|
198
314
|
MERLIVAT_NIEF_1967_ALPHA_L_2H_T1 = 0 * si.K
|
|
315
|
+
""" 〃 """
|
|
199
316
|
MERLIVAT_NIEF_1967_ALPHA_L_2H_T0 = -0.1
|
|
200
|
-
|
|
317
|
+
""" 〃 """
|
|
201
318
|
MERLIVAT_NIEF_1967_ALPHA_I_2H_T2 = 16289 * si.K**2
|
|
319
|
+
""" 〃 """
|
|
202
320
|
MERLIVAT_NIEF_1967_ALPHA_I_2H_T1 = 0 * si.K
|
|
321
|
+
""" 〃 """
|
|
203
322
|
MERLIVAT_NIEF_1967_ALPHA_I_2H_T0 = -0.0945
|
|
323
|
+
""" 〃 """
|
|
204
324
|
|
|
205
|
-
""" [Lamb et al. 2017](https://doi.org/10.1073/pnas.1618374114) """
|
|
206
325
|
LAMB_ET_AL_2017_ALPHA_I_2H_T2 = 13525 * si.K**2
|
|
326
|
+
""" [Lamb et al. 2017](https://doi.org/10.1073/pnas.1618374114) """
|
|
207
327
|
LAMB_ET_AL_2017_ALPHA_I_2H_T1 = 0 * si.K
|
|
328
|
+
""" 〃 """
|
|
208
329
|
LAMB_ET_AL_2017_ALPHA_I_2H_T0 = -0.0559
|
|
330
|
+
""" 〃 """
|
|
209
331
|
|
|
210
|
-
""" [Ellehoj et al. 2013](https://doi.org/10.1002/rcm.6668) """
|
|
211
332
|
ELLEHOJ_ET_AL_2013_ALPHA_I_2H_T2 = 48888 * si.K**2
|
|
333
|
+
""" [Ellehoj et al. 2013](https://doi.org/10.1002/rcm.6668) """
|
|
212
334
|
ELLEHOJ_ET_AL_2013_ALPHA_I_2H_T1 = -203.1 * si.K
|
|
335
|
+
""" 〃 """
|
|
213
336
|
ELLEHOJ_ET_AL_2013_ALPHA_I_2H_T0 = 0.2133
|
|
337
|
+
""" 〃 """
|
|
214
338
|
|
|
215
|
-
""" [Majoube 1971](https://doi.org/10.1051/jcp/1971681423) """
|
|
216
|
-
# values taken from Jouzel 1986 (eqs. 1)
|
|
217
339
|
MAJOUBE_1971_ALPHA_L_18O_T2 = 1137 * si.K**2
|
|
340
|
+
""" [Majoube 1971](https://doi.org/10.1051/jcp/1971681423)
|
|
341
|
+
(values taken from [Jouzel 1986](https://doi.org/10.1016/b978-0-444-42225-5.50007-3)) """
|
|
218
342
|
MAJOUBE_1971_ALPHA_L_18O_T1 = -0.4156 * si.K
|
|
343
|
+
""" 〃 """
|
|
219
344
|
MAJOUBE_1971_ALPHA_L_18O_T0 = -0.0020667
|
|
220
|
-
|
|
221
|
-
# values taken from Jouzel 1986 (eqs. 2)
|
|
345
|
+
""" 〃 """
|
|
222
346
|
MAJOUBE_1971_ALPHA_L_2H_T2 = 24844 * si.K**2
|
|
347
|
+
""" 〃 """
|
|
223
348
|
MAJOUBE_1971_ALPHA_L_2H_T1 = -76.248 * si.K
|
|
349
|
+
""" 〃 """
|
|
224
350
|
MAJOUBE_1971_ALPHA_L_2H_T0 = 0.052612
|
|
351
|
+
""" 〃 """
|
|
225
352
|
|
|
226
|
-
""" [Majoube 1970](https://doi.org/10.1038/2261242a0) """
|
|
227
353
|
MAJOUBE_1970_ALPHA_I_18O_T2 = 0 * si.K**2
|
|
354
|
+
""" [Majoube 1970](https://doi.org/10.1038/2261242a0) """
|
|
228
355
|
MAJOUBE_1970_ALPHA_I_18O_T1 = 11.839 * si.K
|
|
356
|
+
""" 〃 """
|
|
229
357
|
MAJOUBE_1970_ALPHA_I_18O_T0 = -0.028224
|
|
358
|
+
""" 〃 """
|
|
230
359
|
|
|
231
|
-
""" [Van Hook 1968](https://doi.org/10.1021/j100850a028) """
|
|
232
360
|
VAN_HOOK_1968_ALPHA_I_2H_A = 11484.5 * si.K**2
|
|
361
|
+
""" [Van Hook 1968](https://doi.org/10.1021/j100850a028) """
|
|
233
362
|
VAN_HOOK_1968_ALPHA_I_2H_B = 35.3315 * si.K
|
|
363
|
+
""" 〃 """
|
|
234
364
|
VAN_HOOK_1968_ALPHA_I_2H_C = -0.159290
|
|
235
|
-
|
|
365
|
+
""" 〃 """
|
|
236
366
|
VAN_HOOK_1968_ALPHA_L_2H_A = 26398.8 * si.K**2
|
|
367
|
+
""" 〃 """
|
|
237
368
|
VAN_HOOK_1968_ALPHA_L_2H_B = -89.6065 * si.K
|
|
369
|
+
""" 〃 """
|
|
238
370
|
VAN_HOOK_1968_ALPHA_L_2H_C = 0.075802
|
|
239
|
-
|
|
371
|
+
""" 〃 """
|
|
240
372
|
VAN_HOOK_1968_ALPHA_I_18O_A = 1740.59 * si.K**2
|
|
373
|
+
""" 〃 """
|
|
241
374
|
VAN_HOOK_1968_ALPHA_I_18O_B = 2.2965 * si.K
|
|
375
|
+
""" 〃 """
|
|
242
376
|
VAN_HOOK_1968_ALPHA_I_18O_C = -0.005793
|
|
243
|
-
|
|
377
|
+
""" 〃 """
|
|
244
378
|
VAN_HOOK_1968_ALPHA_L_18O_A = 1991.1 * si.K**2
|
|
379
|
+
""" 〃 """
|
|
245
380
|
VAN_HOOK_1968_ALPHA_L_18O_B = -4.1887 * si.K
|
|
381
|
+
""" 〃 """
|
|
246
382
|
VAN_HOOK_1968_ALPHA_L_18O_C = 0.001197
|
|
247
|
-
|
|
383
|
+
""" 〃 """
|
|
248
384
|
VAN_HOOK_1968_ALPHA_I_17O_A = 933.651 * si.K**2
|
|
385
|
+
""" 〃 """
|
|
249
386
|
VAN_HOOK_1968_ALPHA_I_17O_B = 1.0953 * si.K
|
|
387
|
+
""" 〃 """
|
|
250
388
|
VAN_HOOK_1968_ALPHA_I_17O_C = -0.002805
|
|
251
|
-
|
|
389
|
+
""" 〃 """
|
|
252
390
|
VAN_HOOK_1968_ALPHA_L_17O_A = 1057.8 * si.K**2
|
|
391
|
+
""" 〃 """
|
|
253
392
|
VAN_HOOK_1968_ALPHA_L_17O_B = -2.24 * si.K
|
|
393
|
+
""" 〃 """
|
|
254
394
|
VAN_HOOK_1968_ALPHA_L_17O_C = 0.000668
|
|
255
|
-
|
|
395
|
+
""" 〃 """
|
|
256
396
|
VAN_HOOK_1968_ALPHA_I_3H_A = 18464.5 * si.K**2
|
|
397
|
+
""" 〃 """
|
|
257
398
|
VAN_HOOK_1968_ALPHA_I_3H_B = 31.0436 * si.K
|
|
399
|
+
""" 〃 """
|
|
258
400
|
VAN_HOOK_1968_ALPHA_I_3H_C = -0.20752
|
|
259
|
-
|
|
401
|
+
""" 〃 """
|
|
260
402
|
VAN_HOOK_1968_ALPHA_L_3H_A = 37813.2 * si.K**2
|
|
403
|
+
""" 〃 """
|
|
261
404
|
VAN_HOOK_1968_ALPHA_L_3H_B = -136.751 * si.K
|
|
405
|
+
""" 〃 """
|
|
262
406
|
VAN_HOOK_1968_ALPHA_L_3H_C = 0.124096
|
|
263
|
-
|
|
407
|
+
""" 〃 """
|
|
264
408
|
VAN_HOOK_1968_ALPHA_I_TOT_A = 33453.7 * si.K**2
|
|
409
|
+
""" 〃 """
|
|
265
410
|
VAN_HOOK_1968_ALPHA_I_TOT_B = 62.4058 * si.K
|
|
411
|
+
""" 〃 """
|
|
266
412
|
VAN_HOOK_1968_ALPHA_I_TOT_C = -0.395542
|
|
267
|
-
|
|
413
|
+
""" 〃 """
|
|
268
414
|
VAN_HOOK_1968_ALPHA_L_TOT_A = 68702.3 * si.K**2
|
|
415
|
+
""" 〃 """
|
|
269
416
|
VAN_HOOK_1968_ALPHA_L_TOT_B = -244.687 * si.K
|
|
417
|
+
""" 〃 """
|
|
270
418
|
VAN_HOOK_1968_ALPHA_L_TOT_C = 0.224388
|
|
271
|
-
|
|
419
|
+
""" 〃 """
|
|
272
420
|
VAN_HOOK_1968_ALPHA_I_DOT_A = 27722.4 * si.K**2
|
|
421
|
+
""" 〃 """
|
|
273
422
|
VAN_HOOK_1968_ALPHA_I_DOT_B = 66.5930 * si.K
|
|
423
|
+
""" 〃 """
|
|
274
424
|
VAN_HOOK_1968_ALPHA_I_DOT_C = -0.351698
|
|
275
|
-
|
|
425
|
+
""" 〃 """
|
|
276
426
|
VAN_HOOK_1968_ALPHA_L_DOT_A = 59313.4 * si.K**2
|
|
427
|
+
""" 〃 """
|
|
277
428
|
VAN_HOOK_1968_ALPHA_L_DOT_B = -204.941 * si.K
|
|
429
|
+
""" 〃 """
|
|
278
430
|
VAN_HOOK_1968_ALPHA_L_DOT_C = 0.182686
|
|
279
|
-
|
|
431
|
+
""" 〃 """
|
|
280
432
|
VAN_HOOK_1968_ALPHA_I_DOD_A = 21577.6 * si.K**2
|
|
433
|
+
""" 〃 """
|
|
281
434
|
VAN_HOOK_1968_ALPHA_I_DOD_B = 69.3358 * si.K
|
|
435
|
+
""" 〃 """
|
|
282
436
|
VAN_HOOK_1968_ALPHA_I_DOD_C = -0.305394
|
|
283
|
-
|
|
437
|
+
""" 〃 """
|
|
284
438
|
VAN_HOOK_1968_ALPHA_L_DOD_A = 49314.9 * si.K**2
|
|
439
|
+
""" 〃 """
|
|
285
440
|
VAN_HOOK_1968_ALPHA_L_DOD_B = -164.266 * si.K
|
|
441
|
+
""" 〃 """
|
|
286
442
|
VAN_HOOK_1968_ALPHA_L_DOD_C = 0.140049
|
|
443
|
+
""" 〃 """
|
|
287
444
|
|
|
288
|
-
""" [Horita and Wesolowski 1994](https://doi.org/10.1016/0016-7037(94)90096-5) """
|
|
289
445
|
HORITA_AND_WESOLOWSKI_1994_ALPHA_L_18O_T3 = 1e-3 * 0.35041e9 * si.K**3
|
|
446
|
+
""" [Horita and Wesolowski 1994](https://doi.org/10.1016/0016-7037(94)90096-5) """
|
|
290
447
|
HORITA_AND_WESOLOWSKI_1994_ALPHA_L_18O_T2 = 1e-3 * -1.6664e6 * si.K**2
|
|
448
|
+
""" 〃 """
|
|
291
449
|
HORITA_AND_WESOLOWSKI_1994_ALPHA_L_18O_T1 = 1e-3 * 6.7123e3 * si.K
|
|
450
|
+
""" 〃 """
|
|
292
451
|
HORITA_AND_WESOLOWSKI_1994_ALPHA_L_18O_T0 = 1e-3 * -7.685
|
|
293
|
-
|
|
452
|
+
""" 〃 """
|
|
294
453
|
HORITA_AND_WESOLOWSKI_1994_ALPHA_L_2H_T3 = 1e-3 * 2.9992e9 * si.K**3
|
|
454
|
+
""" 〃 """
|
|
295
455
|
HORITA_AND_WESOLOWSKI_1994_ALPHA_L_2H_T_0 = 1e-3 * -161.04
|
|
456
|
+
""" 〃 """
|
|
296
457
|
HORITA_AND_WESOLOWSKI_1994_ALPHA_L_2H_T_1 = 1e-3 * 794.84e-3 / si.K
|
|
458
|
+
""" 〃 """
|
|
297
459
|
HORITA_AND_WESOLOWSKI_1994_ALPHA_L_2H_T_2 = 1e-3 * -1620.1e-6 / si.K**2
|
|
460
|
+
""" 〃 """
|
|
298
461
|
HORITA_AND_WESOLOWSKI_1994_ALPHA_L_2H_T_3 = 1e-3 * 1158.8e-9 / si.K**3
|
|
462
|
+
""" 〃 """
|
|
299
463
|
|
|
300
|
-
""" [Barkan and Luz 2005](https://doi.org/10.1002/rcm.2250) """
|
|
301
464
|
BARKAN_AND_LUZ_2005_EXPONENT = 0.529
|
|
465
|
+
""" [Barkan and Luz 2005](https://doi.org/10.1002/rcm.2250) """
|
|
302
466
|
|
|
303
|
-
""" eq. 11 in [Barkan and Luz 2007](https://doi.org/10.1002/rcm.3180) """
|
|
304
467
|
BARKAN_AND_LUZ_2007_EXCESS_18O_COEFF = 0.528
|
|
468
|
+
""" eq. 11 in [Barkan and Luz 2007](https://doi.org/10.1002/rcm.3180) """
|
|
305
469
|
|
|
306
|
-
""" [Craig 1961](https://doi.org/10.1126/science.133.3465.1702) """
|
|
307
470
|
CRAIG_1961_SLOPE_COEFF = 8
|
|
471
|
+
""" [Craig 1961](https://doi.org/10.1126/science.133.3465.1702) """
|
|
308
472
|
CRAIG_1961_INTERCEPT_COEFF = 10 * PER_MILLE
|
|
473
|
+
""" 〃 """
|
|
309
474
|
|
|
310
|
-
""" [Bohren 1987](https://doi.org/10.1119/1.15109) """
|
|
311
475
|
asymmetry_g = 0.85 # forward scattering from cloud droplets
|
|
476
|
+
""" [Bohren 1987](https://doi.org/10.1119/1.15109) """
|
|
312
477
|
|
|
313
|
-
""" [Grabowski et al. 2011](https://doi.org/10.1016/j.atmosres.2010.10.020) """
|
|
314
478
|
diffusion_thermics_D_G11_A = 1e-5 * si.m**2 / si.s
|
|
479
|
+
""" [Grabowski et al. 2011](https://doi.org/10.1016/j.atmosres.2010.10.020) """
|
|
315
480
|
diffusion_thermics_D_G11_B = 0.015 / si.K
|
|
481
|
+
""" 〃 """
|
|
316
482
|
diffusion_thermics_D_G11_C = -1.9
|
|
317
|
-
|
|
483
|
+
""" 〃 """
|
|
318
484
|
diffusion_thermics_K_G11_A = 1.5e-11 * si.W / si.m / si.K**4
|
|
485
|
+
""" 〃 """
|
|
319
486
|
diffusion_thermics_K_G11_B = -4.8e-8 * si.W / si.m / si.K**3
|
|
487
|
+
""" 〃 """
|
|
320
488
|
diffusion_thermics_K_G11_C = 1e-4 * si.W / si.m / si.K**2
|
|
489
|
+
""" 〃 """
|
|
321
490
|
diffusion_thermics_K_G11_D = -3.9e-4 * si.W / si.m / si.K
|
|
491
|
+
""" 〃 """
|
|
322
492
|
|
|
493
|
+
PRUPPACHER_RASMUSSEN_1979_XTHRES = 1.4 * si.dimensionless
|
|
323
494
|
"""
|
|
324
495
|
[Pruppacher & Rasmussen 1979](https://doi.org/10.1175/1520-0469(1979)036%3C1255:AWTIOT%3E2.0.CO;2)
|
|
325
496
|
"""
|
|
326
|
-
PRUPPACHER_RASMUSSEN_1979_XTHRES = 1.4 * si.dimensionless
|
|
327
497
|
PRUPPACHER_RASMUSSEN_1979_CONSTSMALL = 1.0 * si.dimensionless
|
|
498
|
+
""" 〃 """
|
|
328
499
|
PRUPPACHER_RASMUSSEN_1979_COEFFSMALL = 0.108 * si.dimensionless
|
|
500
|
+
""" 〃 """
|
|
329
501
|
PRUPPACHER_RASMUSSEN_1979_POWSMALL = 2 * si.dimensionless
|
|
502
|
+
""" 〃 """
|
|
330
503
|
PRUPPACHER_RASMUSSEN_1979_CONSTBIG = 0.78 * si.dimensionless
|
|
504
|
+
""" 〃 """
|
|
331
505
|
PRUPPACHER_RASMUSSEN_1979_COEFFBIG = 0.308 * si.dimensionless
|
|
506
|
+
""" 〃 """
|
|
332
507
|
|
|
333
|
-
"""[Zografos et al. 1987](https://doi.org/10.1016/0045-7825(87)90003-X) Table 1"""
|
|
334
508
|
ZOGRAFOS_1987_COEFF_T3 = 2.5914e-15 * si.K ** (-3) * si.Pa * si.s
|
|
509
|
+
"""[Zografos et al. 1987](https://doi.org/10.1016/0045-7825(87)90003-X) Table 1"""
|
|
335
510
|
ZOGRAFOS_1987_COEFF_T2 = -1.4346e-11 * si.K ** (-2) * si.Pa * si.s
|
|
511
|
+
""" 〃 """
|
|
336
512
|
ZOGRAFOS_1987_COEFF_T1 = 5.0523e-8 / si.K * si.Pa * si.s
|
|
513
|
+
""" 〃 """
|
|
337
514
|
ZOGRAFOS_1987_COEFF_T0 = 4.1130e-6 * si.Pa * si.s
|
|
515
|
+
""" 〃 """
|
|
338
516
|
|
|
339
|
-
|
|
517
|
+
FROESSLING_1938_A = 1
|
|
340
518
|
""" Froessling 1938 coefficients as given on page 61 in
|
|
341
519
|
[Squires 1952](https://doi.org/10.1071/CH9520059) """
|
|
342
|
-
FROESSLING_1938_A = 1
|
|
343
520
|
FROESSLING_1938_B = 0.276
|
|
521
|
+
""" 〃 """
|
|
344
522
|
|
|
345
|
-
|
|
346
|
-
""" fit coefficients from [Hellmann & Harvey 2020](https://doi.org/10.1029/2020GL089999) """
|
|
347
523
|
HELLMANN_HARVEY_T_UNIT = 100 * si.K
|
|
524
|
+
""" fit coefficients from [Hellmann & Harvey 2020](https://doi.org/10.1029/2020GL089999) """
|
|
348
525
|
HELLMANN_HARVEY_EQ6_COEFF0 = 0.98258
|
|
526
|
+
""" 〃 """
|
|
349
527
|
HELLMANN_HARVEY_EQ6_COEFF1 = -0.02546
|
|
528
|
+
""" 〃 """
|
|
350
529
|
HELLMANN_HARVEY_EQ6_COEFF2 = 0.02421
|
|
530
|
+
""" 〃 """
|
|
351
531
|
HELLMANN_HARVEY_EQ7_COEFF0 = 0.98284
|
|
532
|
+
""" 〃 """
|
|
352
533
|
HELLMANN_HARVEY_EQ7_COEFF1 = 0.003517
|
|
534
|
+
""" 〃 """
|
|
353
535
|
HELLMANN_HARVEY_EQ7_COEFF2 = -0.001996
|
|
536
|
+
""" 〃 """
|
|
354
537
|
HELLMANN_HARVEY_EQ8_COEFF0 = 0.96671
|
|
538
|
+
""" 〃 """
|
|
355
539
|
HELLMANN_HARVEY_EQ8_COEFF1 = 0.007406
|
|
540
|
+
""" 〃 """
|
|
356
541
|
HELLMANN_HARVEY_EQ8_COEFF2 = -0.004861
|
|
542
|
+
""" 〃 """
|
|
357
543
|
|
|
358
|
-
|
|
359
|
-
""" terminal velocity formulation from Rogers & Yau (equations: 8.5, 8.6, 8.8) """
|
|
360
544
|
ROGERS_YAU_TERM_VEL_SMALL_K = 1.19e6 / si.cm / si.s
|
|
545
|
+
""" terminal velocity formulation from
|
|
546
|
+
[Rogers & Yau 1989](https://archive.org/details/shortcourseinclo0000roge_m3k2)
|
|
547
|
+
(equations: 8.5, 8.6, 8.8) """
|
|
361
548
|
ROGERS_YAU_TERM_VEL_MEDIUM_K = 8e3 / si.s
|
|
549
|
+
""" 〃 """
|
|
362
550
|
ROGERS_YAU_TERM_VEL_LARGE_K = 2.01e3 * si.cm**0.5 / si.s
|
|
551
|
+
""" 〃 """
|
|
363
552
|
ROGERS_YAU_TERM_VEL_SMALL_R_LIMIT = 35 * si.um
|
|
553
|
+
""" 〃 """
|
|
364
554
|
ROGERS_YAU_TERM_VEL_MEDIUM_R_LIMIT = 600 * si.um
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
def compute_derived_values(c: dict):
|
|
368
|
-
"""
|
|
369
|
-
computes derived quantities such as molar mass ratios, etc.
|
|
370
|
-
|
|
371
|
-
water molar mass is computed from molecular masses and VSMOW isotope abundances
|
|
372
|
-
(and neglecting molecular binding energies)
|
|
373
|
-
for discussion, see:
|
|
374
|
-
- caption of Table 2.1 in [Gat 2010](https://doi.org/10.1142/p027)
|
|
375
|
-
- [IAPWS Guidelines](http://www.iapws.org/relguide/fundam.pdf)
|
|
376
|
-
"""
|
|
377
|
-
|
|
378
|
-
c["Mv"] = (
|
|
379
|
-
(
|
|
380
|
-
1
|
|
381
|
-
- 2 * Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_2H"])
|
|
382
|
-
- 2 * Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_3H"])
|
|
383
|
-
- 1 * Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_17O"])
|
|
384
|
-
- 1 * Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_18O"])
|
|
385
|
-
)
|
|
386
|
-
* (c["M_1H"] * 2 + c["M_16O"])
|
|
387
|
-
+ 2
|
|
388
|
-
* Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_2H"])
|
|
389
|
-
* (c["M_2H"] + c["M_1H"] + c["M_16O"])
|
|
390
|
-
+ 2
|
|
391
|
-
* Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_3H"])
|
|
392
|
-
* (c["M_3H"] + c["M_1H"] + c["M_16O"])
|
|
393
|
-
+ 1
|
|
394
|
-
* Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_17O"])
|
|
395
|
-
* (c["M_1H"] * 2 + c["M_17O"])
|
|
396
|
-
+ 1
|
|
397
|
-
* Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_18O"])
|
|
398
|
-
* (c["M_1H"] * 2 + c["M_18O"])
|
|
399
|
-
)
|
|
400
|
-
|
|
401
|
-
c["eps"] = c["Mv"] / c["Md"]
|
|
402
|
-
c["Rd"] = c["R_str"] / c["Md"]
|
|
403
|
-
c["Rv"] = c["R_str"] / c["Mv"]
|
|
404
|
-
|
|
405
|
-
c["Rd_over_c_pd"] = c["Rd"] / c["c_pd"]
|
|
406
|
-
|
|
407
|
-
c["water_molar_volume"] = c["Mv"] / c["rho_w"]
|
|
408
|
-
c["rho_STP"] = c["p_STP"] / c["Rd"] / c["T_STP"]
|
|
409
|
-
c["H_u"] = c["M"] / c["p_STP"]
|
|
410
|
-
|
|
555
|
+
""" 〃 """
|
|
411
556
|
|
|
412
557
|
W76W_G0 = -2.9912729e3 * si.K**2
|
|
558
|
+
""" [Wexler 1976](https://doi.org/10.6028/jres.080A.071) saturation vapour pressure """
|
|
413
559
|
W76W_G1 = -6.0170128e3 * si.K
|
|
560
|
+
""" 〃 """
|
|
414
561
|
W76W_G2 = 1.887643854e1
|
|
562
|
+
""" 〃 """
|
|
415
563
|
W76W_G3 = -2.8354721e-2 * si.K**-1
|
|
564
|
+
""" 〃 """
|
|
416
565
|
W76W_G4 = 1.7838301e-5 * si.K**-2
|
|
566
|
+
""" 〃 """
|
|
417
567
|
W76W_G5 = -8.4150417e-10 * si.K**-3
|
|
568
|
+
""" 〃 """
|
|
418
569
|
W76W_G6 = 4.4412543e-13 * si.K**-4
|
|
570
|
+
""" 〃 """
|
|
419
571
|
W76W_G7 = 2.858487
|
|
572
|
+
""" 〃 """
|
|
420
573
|
W76W_G8 = 1 * si.Pa
|
|
574
|
+
""" 〃 """
|
|
575
|
+
one_kelvin = 1 * si.K
|
|
576
|
+
""" 〃 """
|
|
421
577
|
|
|
422
578
|
B80W_G0 = 6.112 * si.hPa
|
|
579
|
+
""" [Bolton 1980](https://doi.org/10.1175/1520-0493(1980)108%3C1046:TCOEPT%3E2.0.CO;2)
|
|
580
|
+
saturation vapour pressure """
|
|
423
581
|
B80W_G1 = 17.67 * si.dimensionless
|
|
582
|
+
""" 〃 """
|
|
424
583
|
B80W_G2 = 243.5 * si.K
|
|
584
|
+
""" 〃 """
|
|
425
585
|
|
|
426
|
-
|
|
586
|
+
sgm_w = 0.072 * si.joule / si.metre**2
|
|
587
|
+
""" surface tension of water/air interface, value compatible with the kappa-Koehler hygroscopicity
|
|
588
|
+
parameterisation [Petters & Kreidenweis 2007](https://doi.org/10.5194/acp-7-1961-2007) """
|
|
589
|
+
|
|
590
|
+
D0 = 2.26e-5 * si.metre**2 / si.second
|
|
591
|
+
""" diffusivity of water vapor in air (Tracy et al. 2010, "Properties of Air", page 22) """
|
|
592
|
+
D_exp = 1.81
|
|
593
|
+
""" 〃 """
|
|
594
|
+
|
|
595
|
+
K0 = 2.4e-2 * si.joules / si.metres / si.seconds / si.kelvins
|
|
596
|
+
""" thermal conductivity of air (see Tracy et al. 2010, "Properties of Air", page 32) """
|
|
597
|
+
|
|
598
|
+
c_pd = 1005 * si.joule / si.kilogram / si.kelvin
|
|
599
|
+
""" specific heat at constant pressure of dry air, as in Table 2.1 in
|
|
600
|
+
[Cotton et al. 2011](https://doi.org/10.1016/S0074-6142(10)09908-0) """
|
|
601
|
+
c_pv = 1850 * si.joule / si.kilogram / si.kelvin
|
|
602
|
+
""" 〃 of water vapour 〃 """
|
|
603
|
+
c_pw = 4218 * si.joule / si.kilogram / si.kelvin
|
|
604
|
+
""" 〃 of liquid water 〃 """
|
|
605
|
+
|
|
606
|
+
g_std = sci.g * si.metre / si.second**2
|
|
607
|
+
""" standard gravitational acceleration (value from SciPy) """
|
|
427
608
|
|
|
428
609
|
bulk_phase_partitioning_T_cold = 235 * si.K
|
|
610
|
+
""" [Kaul et al. 2015](https://doi.org/10.1175/MWR-D-14-00319.1) """
|
|
429
611
|
bulk_phase_partitioning_T_warm = 273 * si.K
|
|
612
|
+
""" 〃 """
|
|
430
613
|
bulk_phase_partitioning_exponent = np.nan
|
|
431
|
-
|
|
614
|
+
""" 〃 """
|
|
432
615
|
|
|
433
616
|
BOLIN_ISOTOPE_TIMESCALE_COEFF_C1 = np.nan * si.dimensionless
|
|
434
617
|
"""
|
|
435
|
-
|
|
618
|
+
Coefficient c1 used in [Bolin 1958](https://https://digitallibrary.un.org/record/3892725)
|
|
436
619
|
for the falling drop evaporation timescale of equilibration with ambient air void of a given
|
|
437
620
|
isotopologue; in the paper timescale is calculated for tritium with assumption of no tritium
|
|
438
621
|
in the environment around the drop (Table 1).
|
|
@@ -456,3 +639,48 @@ PICCIOTTO_18O_TO_2H_SLOPE_COEFF = 0.8 * PER_CENT / PER_MILLE
|
|
|
456
639
|
"""
|
|
457
640
|
PICCIOTTO_18O_TO_2H_INTERCEPT_COEFF = -1.8 * PER_CENT
|
|
458
641
|
"""〃"""
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
def compute_derived_values(c: dict):
|
|
645
|
+
"""
|
|
646
|
+
computes derived quantities such as molar mass ratios, etc.
|
|
647
|
+
|
|
648
|
+
water molar mass is computed from molecular masses and VSMOW isotope abundances
|
|
649
|
+
(and neglecting molecular binding energies)
|
|
650
|
+
for discussion, see:
|
|
651
|
+
- caption of Table 2.1 in [Gat 2010](https://doi.org/10.1142/p027)
|
|
652
|
+
- [IAPWS Guidelines](http://www.iapws.org/relguide/fundam.pdf)
|
|
653
|
+
"""
|
|
654
|
+
|
|
655
|
+
c["Mv"] = (
|
|
656
|
+
(
|
|
657
|
+
1
|
|
658
|
+
- 2 * Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_2H"])
|
|
659
|
+
- 2 * Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_3H"])
|
|
660
|
+
- 1 * Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_17O"])
|
|
661
|
+
- 1 * Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_18O"])
|
|
662
|
+
)
|
|
663
|
+
* (c["M_1H"] * 2 + c["M_16O"])
|
|
664
|
+
+ 2
|
|
665
|
+
* Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_2H"])
|
|
666
|
+
* (c["M_2H"] + c["M_1H"] + c["M_16O"])
|
|
667
|
+
+ 2
|
|
668
|
+
* Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_3H"])
|
|
669
|
+
* (c["M_3H"] + c["M_1H"] + c["M_16O"])
|
|
670
|
+
+ 1
|
|
671
|
+
* Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_17O"])
|
|
672
|
+
* (c["M_1H"] * 2 + c["M_17O"])
|
|
673
|
+
+ 1
|
|
674
|
+
* Trivia.mixing_ratio_to_specific_content(c["VSMOW_R_18O"])
|
|
675
|
+
* (c["M_1H"] * 2 + c["M_18O"])
|
|
676
|
+
)
|
|
677
|
+
|
|
678
|
+
c["eps"] = c["Mv"] / c["Md"]
|
|
679
|
+
c["Rd"] = c["R_str"] / c["Md"]
|
|
680
|
+
c["Rv"] = c["R_str"] / c["Mv"]
|
|
681
|
+
|
|
682
|
+
c["Rd_over_c_pd"] = c["Rd"] / c["c_pd"]
|
|
683
|
+
|
|
684
|
+
c["water_molar_volume"] = c["Mv"] / c["rho_w"]
|
|
685
|
+
c["rho_STP"] = c["p_STP"] / c["Rd"] / c["T_STP"]
|
|
686
|
+
c["H_u"] = c["M"] / c["p_STP"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PySDM
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.99
|
|
4
4
|
Summary: Pythonic particle-based (super-droplet) warm-rain/aqueous-chemistry cloud microphysics package with box, parcel & 1D/2D prescribed-flow examples in Python, Julia and Matlab
|
|
5
5
|
Home-page: https://github.com/open-atmos/PySDM
|
|
6
6
|
Author: https://github.com/open-atmos/PySDM/graphs/contributors
|
|
@@ -34,6 +34,8 @@ Provides-Extra: tests
|
|
|
34
34
|
Requires-Dist: matplotlib ; extra == 'tests'
|
|
35
35
|
Requires-Dist: pytest ; extra == 'tests'
|
|
36
36
|
Requires-Dist: pytest-timeout ; extra == 'tests'
|
|
37
|
+
Requires-Dist: PySDM-examples ; extra == 'tests'
|
|
38
|
+
Requires-Dist: open-atmos-jupyter-utils >=v1.2.0 ; extra == 'tests'
|
|
37
39
|
Requires-Dist: pyrcel ; extra == 'tests'
|
|
38
40
|
Requires-Dist: jupyter-core <5.0.0 ; extra == 'tests'
|
|
39
41
|
Requires-Dist: ipywidgets !=8.0.3 ; extra == 'tests'
|
|
@@ -200,7 +200,7 @@ PySDM/initialisation/spectra/sum.py,sha256=SaxepweOdCozWlUkxCfr6Udo-KjGKWXgrdS0a
|
|
|
200
200
|
PySDM/initialisation/spectra/top_hat.py,sha256=xmBr_IrctsnguPNgX-jR7JnQnQl1qzIaEyz75fvAJho,563
|
|
201
201
|
PySDM/physics/__init__.py,sha256=4Bm2NhKc7H-a88ObXTFW5sCyb4FK4e9QnwN02tS2yrM,1918
|
|
202
202
|
PySDM/physics/constants.py,sha256=ETbcdk-nhrVtjHidTREjHiUkAemNBNrSBWED3XjCXb8,1333
|
|
203
|
-
PySDM/physics/constants_defaults.py,sha256=
|
|
203
|
+
PySDM/physics/constants_defaults.py,sha256=8h28dYy4ziba0wt_lcxztKMrjVuPoiXM98G7X-GZVMs,21237
|
|
204
204
|
PySDM/physics/dimensional_analysis.py,sha256=Zk6ZHq9eTuOxoETgxyvg-0s0Tv4FDYbyFKCRFqVlCU0,790
|
|
205
205
|
PySDM/physics/trivia.py,sha256=gAF0fUKTGFZbt95D2G_MwnDfAgVymGDWMawncKAMOG0,4048
|
|
206
206
|
PySDM/physics/air_dynamic_viscosity/__init__.py,sha256=cLemG7DDSvwWv0mDwotzIUMHdiVhlLP_OrFENOnD8RM,90
|
|
@@ -310,7 +310,7 @@ PySDM/physics/surface_tension/szyszkowski_langmuir.py,sha256=Jng8wErWKhnrliltn1b
|
|
|
310
310
|
PySDM/physics/terminal_velocity/__init__.py,sha256=LyYiG6t2CM9zIYW1SPGEeZFH0cPdQqbndBT573z7YdA,153
|
|
311
311
|
PySDM/physics/terminal_velocity/gunn_kinzer_1949.py,sha256=qMd7hyE4Ahva7sw58xuzu9yz9wxzXv1xReh2TEY0w9Y,204
|
|
312
312
|
PySDM/physics/terminal_velocity/power_series.py,sha256=TBseiVJcLJdkkK7JnRk7XDP6dKB0v153eoVtgBPL3qc,136
|
|
313
|
-
PySDM/physics/terminal_velocity/rogers_yau.py,sha256
|
|
313
|
+
PySDM/physics/terminal_velocity/rogers_yau.py,sha256=-zhBjqo_47DLvnq3wjzHBtCyb6-gNX1z7JhYCENPgL8,690
|
|
314
314
|
PySDM/physics/ventilation/__init__.py,sha256=I3KbAm0iWX3rNaMvLtoIoxviK-FGdXXnZDfAMhgPVYs,181
|
|
315
315
|
PySDM/physics/ventilation/froessling_1938.py,sha256=wC4-Ideeiugav1dswuKbsyvYAj64pNKJcVB_WW90NiU,414
|
|
316
316
|
PySDM/physics/ventilation/neglect.py,sha256=QeTBWlGQQvgQ8qHyaMzCrJ5RSW25HkowTmJg2-ykDu8,330
|
|
@@ -387,8 +387,8 @@ PySDM/products/size_spectral/size_standard_deviation.py,sha256=3ee3Wk4XYchMSwH-m
|
|
|
387
387
|
PySDM/products/size_spectral/total_particle_concentration.py,sha256=K7sO2jgUpYOwWvBK3jXp9KUxLRXk_Ve6ooOdY5q5jd0,470
|
|
388
388
|
PySDM/products/size_spectral/total_particle_specific_concentration.py,sha256=isLZt5j2vJGr-FrzYFcUNPHZqMKhOtl51za1Hogh6hQ,476
|
|
389
389
|
PySDM/products/size_spectral/water_mixing_ratio.py,sha256=PP54hfMy4SPDQDJgV4RNzVP03lmL1THZPa2KXrdgoQ4,1324
|
|
390
|
-
PySDM-2.
|
|
391
|
-
PySDM-2.
|
|
392
|
-
PySDM-2.
|
|
393
|
-
PySDM-2.
|
|
394
|
-
PySDM-2.
|
|
390
|
+
PySDM-2.99.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
391
|
+
PySDM-2.99.dist-info/METADATA,sha256=R8CWU986eVvIv3o9TLTRxtfG7UK5qpwMvXhK3vLKiCk,17127
|
|
392
|
+
PySDM-2.99.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
393
|
+
PySDM-2.99.dist-info/top_level.txt,sha256=6NYaDAhUnaYMD7ebD_dQ7HlhiJS7NMuKEXb0ck7Wcsg,6
|
|
394
|
+
PySDM-2.99.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|