musica 0.11.1.4__cp311-cp311-macosx_11_0_arm64.whl → 0.12.0__cp311-cp311-macosx_11_0_arm64.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.

Potentially problematic release.


This version of musica might be problematic. Click here for more details.

Files changed (39) hide show
  1. musica/_musica.cpython-311-darwin.so +0 -0
  2. musica/_version.py +1 -1
  3. musica/constants.py +3 -0
  4. musica/mechanism_configuration/__init__.py +1 -0
  5. musica/mechanism_configuration/aqueous_equilibrium.py +101 -0
  6. musica/mechanism_configuration/arrhenius.py +121 -0
  7. musica/mechanism_configuration/branched.py +116 -0
  8. musica/mechanism_configuration/condensed_phase_arrhenius.py +116 -0
  9. musica/mechanism_configuration/condensed_phase_photolysis.py +91 -0
  10. musica/mechanism_configuration/emission.py +67 -0
  11. musica/mechanism_configuration/first_order_loss.py +67 -0
  12. musica/mechanism_configuration/henrys_law.py +85 -0
  13. musica/mechanism_configuration/mechanism_configuration.py +161 -0
  14. musica/mechanism_configuration/phase.py +43 -0
  15. musica/mechanism_configuration/photolysis.py +83 -0
  16. musica/mechanism_configuration/reactions.py +61 -0
  17. musica/mechanism_configuration/simpol_phase_transfer.py +88 -0
  18. musica/mechanism_configuration/species.py +72 -0
  19. musica/mechanism_configuration/surface.py +89 -0
  20. musica/mechanism_configuration/troe.py +137 -0
  21. musica/mechanism_configuration/tunneling.py +103 -0
  22. musica/mechanism_configuration/user_defined.py +83 -0
  23. musica/mechanism_configuration/utils.py +10 -0
  24. musica/mechanism_configuration/wet_deposition.py +49 -0
  25. musica/mechanism_configuration.cpp +0 -1
  26. musica/test/examples/v1/full_configuration/full_configuration.json +30 -15
  27. musica/test/examples/v1/full_configuration/full_configuration.yaml +16 -1
  28. musica/test/test_analytical.py +1 -1
  29. musica/test/test_parser.py +3 -639
  30. musica/test/test_serializer.py +69 -0
  31. musica/test/test_util_full_mechanism.py +668 -0
  32. musica/types.py +1 -4
  33. {musica-0.11.1.4.dist-info → musica-0.12.0.dist-info}/METADATA +61 -46
  34. musica-0.12.0.dist-info/RECORD +57 -0
  35. musica-0.12.0.dist-info/licenses/AUTHORS.md +59 -0
  36. musica/mechanism_configuration.py +0 -1291
  37. musica-0.11.1.4.dist-info/RECORD +0 -33
  38. {musica-0.11.1.4.dist-info → musica-0.12.0.dist-info}/WHEEL +0 -0
  39. {musica-0.11.1.4.dist-info → musica-0.12.0.dist-info}/licenses/LICENSE +0 -0
@@ -72,6 +72,7 @@ reactions:
72
72
  aerosol-phase species: H2O2_aq
73
73
  aerosol-phase water: H2O_aq
74
74
  name: my henry's law
75
+ __irrelevant: "2"
75
76
  - type: SIMPOL_PHASE_TRANSFER
76
77
  gas phase: gas
77
78
  gas-phase species: ethanol
@@ -83,6 +84,7 @@ reactions:
83
84
  - 0.00196
84
85
  - -0.496
85
86
  name: my simpol
87
+ __irrelevant: "2"
86
88
  - type: AQUEOUS_EQUILIBRIUM
87
89
  aerosol phase: aqueous aerosol
88
90
  aerosol-phase water: H2O_aq
@@ -98,6 +100,7 @@ reactions:
98
100
  - species name: C
99
101
  coefficient: 1
100
102
  name: my aqueous eq
103
+ __irrelevant: "2"
101
104
  - type: CONDENSED_PHASE_ARRHENIUS
102
105
  aerosol phase: aqueous aerosol
103
106
  aerosol-phase water: H2O_aq
@@ -115,6 +118,7 @@ reactions:
115
118
  - species name: ethanol_aq
116
119
  coefficient: 1
117
120
  name: my condensed arrhenius
121
+ __irrelevant: "2"
118
122
  - type: CONDENSED_PHASE_ARRHENIUS
119
123
  aerosol phase: aqueous aerosol
120
124
  aerosol-phase water: H2O_aq
@@ -143,6 +147,7 @@ reactions:
143
147
  coefficient: 1
144
148
  scaling factor: 12.3
145
149
  name: condensed photo B
150
+ __irrelevant: "2"
146
151
  - type: EMISSION
147
152
  gas phase: gas
148
153
  products:
@@ -150,6 +155,7 @@ reactions:
150
155
  coefficient: 1
151
156
  name: my emission
152
157
  scaling factor: 12.3
158
+ __irrelevant: "2"
153
159
  - type: FIRST_ORDER_LOSS
154
160
  gas phase: gas
155
161
  reactants:
@@ -157,6 +163,7 @@ reactions:
157
163
  coefficient: 1
158
164
  name: my first order loss
159
165
  scaling factor: 12.3
166
+ __irrelevant: "2"
160
167
  - type: PHOTOLYSIS
161
168
  gas phase: gas
162
169
  reactants:
@@ -167,6 +174,7 @@ reactions:
167
174
  coefficient: 1
168
175
  name: photo B
169
176
  scaling factor: 12.3
177
+ __irrelevant: "2"
170
178
  - type: SURFACE
171
179
  gas phase: gas
172
180
  gas-phase species: A
@@ -178,6 +186,7 @@ reactions:
178
186
  coefficient: 1
179
187
  aerosol phase: surface reacting phase
180
188
  name: my surface
189
+ __irrelevant: "2"
181
190
  - type: TROE
182
191
  gas phase: gas
183
192
  reactants:
@@ -197,6 +206,7 @@ reactions:
197
206
  Fc: 0.9
198
207
  N: 0.8
199
208
  name: my troe
209
+ __irrelevant: "2"
200
210
  - type: BRANCHED_NO_RO2
201
211
  gas phase: gas
202
212
  reactants:
@@ -213,6 +223,7 @@ reactions:
213
223
  a0: 0.15
214
224
  "n": 9
215
225
  name: my branched
226
+ __irrelevant: "2"
216
227
  - gas phase: gas
217
228
  type: TUNNELING
218
229
  name: "my tunneling"
@@ -225,10 +236,12 @@ reactions:
225
236
  products:
226
237
  - species name: C
227
238
  coefficient: 1
239
+ __irrelevant: "2"
228
240
  - type: WET_DEPOSITION
229
241
  aerosol phase: cloud
230
242
  name: rxn cloud
231
243
  scaling factor: 12.3
244
+ __irrelevant: "2"
232
245
  - type: ARRHENIUS
233
246
  gas phase: gas
234
247
  reactants:
@@ -243,6 +256,7 @@ reactions:
243
256
  D: 63.4
244
257
  E: -1.3
245
258
  name: my arrhenius
259
+ __irrelevant: "2"
246
260
  - type: ARRHENIUS
247
261
  gas phase: gas
248
262
  reactants:
@@ -268,4 +282,5 @@ reactions:
268
282
  - species name: C
269
283
  coefficient: 1.3
270
284
  name: my user defined
271
- scaling factor: 12.3
285
+ scaling factor: 12.3
286
+ __irrelevant: "2"
@@ -4,12 +4,12 @@ import musica
4
4
  import random
5
5
  import musica.mechanism_configuration as mc
6
6
  from musica.cuda import is_cuda_available
7
+ from musica.constants import GAS_CONSTANT
7
8
 
8
9
 
9
10
  def TestSingleGridCell(solver, state, time_step, places=5):
10
11
  temperature = 272.5
11
12
  pressure = 101253.3
12
- GAS_CONSTANT = 8.31446261815324
13
13
  air_density = pressure / (GAS_CONSTANT * temperature)
14
14
 
15
15
  rate_constants = {