musica 0.11.1.4__cp312-cp312-win_amd64.whl → 0.12.1__cp312-cp312-win_amd64.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 (76) hide show
  1. musica/CMakeLists.txt +28 -2
  2. musica/__init__.py +9 -49
  3. musica/_musica.cp312-win_amd64.pyd +0 -0
  4. musica/_version.py +1 -1
  5. musica/backend.py +41 -0
  6. musica/binding_common.cpp +23 -6
  7. musica/carma.cpp +911 -0
  8. musica/carma.py +1729 -0
  9. musica/constants.py +3 -0
  10. musica/cpu_binding.cpp +2 -1
  11. musica/cuda.py +4 -1
  12. musica/examples/__init__.py +1 -0
  13. musica/examples/carma_aluminum.py +123 -0
  14. musica/examples/carma_sulfate.py +245 -0
  15. musica/examples/examples.py +165 -0
  16. musica/examples/sulfate_box_model.py +439 -0
  17. musica/examples/ts1_latin_hypercube.py +245 -0
  18. musica/gpu_binding.cpp +2 -1
  19. musica/main.py +89 -0
  20. musica/mechanism_configuration/__init__.py +1 -0
  21. musica/mechanism_configuration/aqueous_equilibrium.py +274 -0
  22. musica/mechanism_configuration/arrhenius.py +307 -0
  23. musica/mechanism_configuration/branched.py +299 -0
  24. musica/mechanism_configuration/condensed_phase_arrhenius.py +309 -0
  25. musica/mechanism_configuration/condensed_phase_photolysis.py +88 -0
  26. musica/mechanism_configuration/emission.py +71 -0
  27. musica/mechanism_configuration/first_order_loss.py +174 -0
  28. musica/mechanism_configuration/henrys_law.py +44 -0
  29. musica/mechanism_configuration/mechanism_configuration.py +234 -0
  30. musica/mechanism_configuration/phase.py +47 -0
  31. musica/mechanism_configuration/photolysis.py +88 -0
  32. musica/mechanism_configuration/reactions.py +73 -0
  33. musica/mechanism_configuration/simpol_phase_transfer.py +217 -0
  34. musica/mechanism_configuration/species.py +91 -0
  35. musica/mechanism_configuration/surface.py +94 -0
  36. musica/mechanism_configuration/ternary_chemical_activation.py +352 -0
  37. musica/mechanism_configuration/troe.py +352 -0
  38. musica/mechanism_configuration/tunneling.py +250 -0
  39. musica/mechanism_configuration/user_defined.py +88 -0
  40. musica/mechanism_configuration/utils.py +10 -0
  41. musica/mechanism_configuration/wet_deposition.py +52 -0
  42. musica/mechanism_configuration.cpp +184 -96
  43. musica/musica.cpp +48 -61
  44. musica/test/examples/v1/full_configuration/full_configuration.json +67 -35
  45. musica/test/examples/v1/full_configuration/full_configuration.yaml +44 -20
  46. musica/test/{test_analytical.py → integration/test_analytical.py} +1 -2
  47. musica/test/integration/test_carma.py +227 -0
  48. musica/test/integration/test_carma_aluminum.py +11 -0
  49. musica/test/integration/test_carma_sulfate.py +16 -0
  50. musica/test/integration/test_sulfate_box_model.py +34 -0
  51. musica/test/integration/test_tuvx.py +62 -0
  52. musica/test/unit/test_parser.py +64 -0
  53. musica/test/unit/test_serializer.py +69 -0
  54. musica/test/{test_parser.py → unit/test_util_full_mechanism.py} +409 -404
  55. musica/tools/prepare_build_environment_linux.sh +39 -32
  56. musica/tools/prepare_build_environment_macos.sh +1 -0
  57. musica/tuvx.cpp +93 -0
  58. musica/tuvx.py +199 -0
  59. musica/types.py +104 -63
  60. {musica-0.11.1.4.dist-info → musica-0.12.1.dist-info}/METADATA +100 -84
  61. musica-0.12.1.dist-info/RECORD +69 -0
  62. {musica-0.11.1.4.dist-info → musica-0.12.1.dist-info}/WHEEL +1 -1
  63. musica-0.12.1.dist-info/entry_points.txt +3 -0
  64. musica-0.12.1.dist-info/licenses/AUTHORS.md +59 -0
  65. musica/mechanism_configuration.py +0 -1291
  66. musica/test/examples/v0/config.json +0 -7
  67. musica/test/examples/v0/config.yaml +0 -3
  68. musica/test/examples/v0/reactions.json +0 -193
  69. musica/test/examples/v0/reactions.yaml +0 -142
  70. musica/test/examples/v0/species.json +0 -40
  71. musica/test/examples/v0/species.yaml +0 -19
  72. musica/test/tuvx.py +0 -10
  73. musica/tools/prepare_build_environment_windows.sh +0 -22
  74. musica-0.11.1.4.dist-info/RECORD +0 -33
  75. /musica/test/{test_chapman.py → integration/test_chapman.py} +0 -0
  76. {musica-0.11.1.4.dist-info → musica-0.12.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "camp-files": [
3
- "species.json",
4
- "reactions.json"
5
- ]
6
- }
7
-
@@ -1,3 +0,0 @@
1
- camp-files:
2
- - species.yaml
3
- - reactions.yaml
@@ -1,193 +0,0 @@
1
- {
2
- "camp-data": [
3
- {
4
- "type": "MECHANISM",
5
- "name": "music box interactive configuration",
6
- "reactions": [
7
- {
8
- "type": "PHOTOLYSIS",
9
- "scaling factor": 1,
10
- "MUSICA name": "foo",
11
- "reactants": {
12
- "foo": {}
13
- },
14
- "products": {
15
- "buz": {
16
- "yield": 1
17
- },
18
- "bar": {
19
- "yield": 1
20
- }
21
- }
22
- },
23
- {
24
- "type": "ARRHENIUS",
25
- "A": 6e-34,
26
- "Ea": 0,
27
- "B": -2.4,
28
- "D": 300,
29
- "E": 0,
30
- "reactants": {
31
- "bar": {
32
- "qty": 1
33
- },
34
- "quuz": {
35
- "qty": 1
36
- },
37
- "M": {
38
- "qty": 1
39
- }
40
- },
41
- "products": {
42
- "baz": {
43
- "yield": 1
44
- },
45
- "M": {
46
- "yield": 1
47
- }
48
- }
49
- },
50
- {
51
- "type": "TROE",
52
- "k0_A": 2.5e-31,
53
- "k0_B": -1.8,
54
- "k0_C": 0,
55
- "kinf_A": 2.2e-11,
56
- "kinf_B": -0.7,
57
- "kinf_C": 0,
58
- "Fc": 0.6,
59
- "N": 1,
60
- "reactants": {
61
- "bar": {
62
- "qty": 1
63
- },
64
- "foo": {
65
- "qty": 1
66
- }
67
- },
68
- "products": {
69
- "baz": {
70
- "yield": 1
71
- }
72
- }
73
- },
74
- {
75
- "type": "EMISSION",
76
- "scaling factor": 1,
77
- "MUSICA name": "buz",
78
- "species": "buz"
79
- },
80
- {
81
- "type": "FIRST_ORDER_LOSS",
82
- "species": "bar",
83
- "MUSICA name": "bar",
84
- "scaling factor": 2.5
85
- },
86
- {
87
- "type": "TERNARY_CHEMICAL_ACTIVATION",
88
- "reactants": {
89
- "bar" : { },
90
- "baz" : { }
91
- },
92
- "products": {
93
- "bar": { "yield": 0.5 },
94
- "foo": { }
95
- },
96
- "k0_A": 32.1,
97
- "k0_B": -2.3,
98
- "k0_C": 102.3,
99
- "kinf_A": 63.4,
100
- "kinf_B": -1.3,
101
- "kinf_C": 908.5,
102
- "Fc": 1.3,
103
- "N": 32.1
104
- },
105
- {
106
- "type": "BRANCHED",
107
- "reactants": {
108
- "foo" : { },
109
- "quz" : { "qty" :2 }
110
- },
111
- "alkoxy products": {
112
- "bar": { "yield": 1.0 },
113
- "baz": { "yield": 3.2 }
114
- },
115
- "nitrate products": {
116
- "quz": { "yield": 1.0 }
117
- },
118
- "Y" : 42.3,
119
- "X" : 12.3,
120
- "a0" : 1.0e-5,
121
- "n" : 3
122
- },
123
- {
124
- "type": "WENNBERG_NO_RO2",
125
- "reactants": {
126
- "bar" : { },
127
- "baz" : { }
128
- },
129
- "alkoxy products": {
130
- "baz": { }
131
- },
132
- "nitrate products": {
133
- "bar": { "yield": 0.5 },
134
- "foo": { }
135
- },
136
- "Y" : 2.3e8,
137
- "X" : 0.32,
138
- "a0" : 0.423,
139
- "n" : 6
140
- },
141
- {
142
- "type": "TUNNELING",
143
- "reactants": {
144
- "bar" : { },
145
- "baz" : { }
146
- },
147
- "products": {
148
- "bar": { "yield": 0.5 },
149
- "foo": { }
150
- },
151
- "A": 32.1,
152
- "B": -2.3,
153
- "C": 102.3
154
- },
155
- {
156
- "type": "WENNBERG_TUNNELING",
157
- "reactants": {
158
- "bar2" : { },
159
- "baz2" : { }
160
- },
161
- "products": {
162
- "bar2": { "yield": 0.5 },
163
- "foo2": { }
164
- },
165
- "A": 2.1,
166
- "B": -1.3,
167
- "C": 12.3
168
- },
169
- {
170
- "type": "SURFACE",
171
- "gas-phase reactant": "bar",
172
- "gas-phase products": {
173
- "bar": { "yield": 0.5 },
174
- "foo": { }
175
- },
176
- "reaction probability": 0.5,
177
- "MUSICA name": "kbar"
178
- },
179
- {
180
- "type": "USER_DEFINED",
181
- "MUSICA name": "bar",
182
- "reactants": {
183
- "foo" : { "qty": 2 }
184
- },
185
- "products": {
186
- "bar" : { }
187
- },
188
- "scaling factor": 2.5
189
- }
190
- ]
191
- }
192
- ]
193
- }
@@ -1,142 +0,0 @@
1
- camp-data:
2
- - name: music box interactive configuration
3
- reactions:
4
- - MUSICA name: foo
5
- products:
6
- bar:
7
- yield: 1
8
- buz:
9
- yield: 1
10
- reactants:
11
- foo: {}
12
- scaling factor: 1
13
- type: PHOTOLYSIS
14
- - A: 6.0e-34
15
- B: -2.4
16
- D: 300
17
- E: 0
18
- Ea: 0
19
- products:
20
- M:
21
- yield: 1
22
- baz:
23
- yield: 1
24
- reactants:
25
- M:
26
- qty: 1
27
- bar:
28
- qty: 1
29
- quuz:
30
- qty: 1
31
- type: ARRHENIUS
32
- - Fc: 0.6
33
- N: 1
34
- k0_A: 2.5e-31
35
- k0_B: -1.8
36
- k0_C: 0
37
- kinf_A: 2.2e-11
38
- kinf_B: -0.7
39
- kinf_C: 0
40
- products:
41
- baz:
42
- yield: 1
43
- reactants:
44
- bar:
45
- qty: 1
46
- foo:
47
- qty: 1
48
- type: TROE
49
- - MUSICA name: buz
50
- scaling factor: 1
51
- species: buz
52
- type: EMISSION
53
- - MUSICA name: bar
54
- scaling factor: 2.5
55
- species: bar
56
- type: FIRST_ORDER_LOSS
57
- - Fc: 1.3
58
- N: 32.1
59
- k0_A: 32.1
60
- k0_B: -2.3
61
- k0_C: 102.3
62
- kinf_A: 63.4
63
- kinf_B: -1.3
64
- kinf_C: 908.5
65
- products:
66
- bar:
67
- yield: 0.5
68
- foo: {}
69
- reactants:
70
- bar: {}
71
- baz: {}
72
- type: TERNARY_CHEMICAL_ACTIVATION
73
- - X: 12.3
74
- Y: 42.3
75
- a0: 1.0e-05
76
- alkoxy products:
77
- bar:
78
- yield: 1.0
79
- baz:
80
- yield: 3.2
81
- n: 3
82
- nitrate products:
83
- quz:
84
- yield: 1.0
85
- reactants:
86
- foo: {}
87
- quz:
88
- qty: 2
89
- type: BRANCHED
90
- - X: 0.32
91
- Y: 230000000.0
92
- a0: 0.423
93
- alkoxy products:
94
- baz: {}
95
- n: 6
96
- nitrate products:
97
- bar:
98
- yield: 0.5
99
- foo: {}
100
- reactants:
101
- bar: {}
102
- baz: {}
103
- type: WENNBERG_NO_RO2
104
- - A: 32.1
105
- B: -2.3
106
- C: 102.3
107
- products:
108
- bar:
109
- yield: 0.5
110
- foo: {}
111
- reactants:
112
- bar: {}
113
- baz: {}
114
- type: TUNNELING
115
- - A: 2.1
116
- B: -1.3
117
- C: 12.3
118
- products:
119
- bar2:
120
- yield: 0.5
121
- foo2: {}
122
- reactants:
123
- bar2: {}
124
- baz2: {}
125
- type: WENNBERG_TUNNELING
126
- - MUSICA name: kbar
127
- gas-phase products:
128
- bar:
129
- yield: 0.5
130
- foo: {}
131
- gas-phase reactant: bar
132
- reaction probability: 0.5
133
- type: SURFACE
134
- - MUSICA name: bar
135
- products:
136
- bar: {}
137
- reactants:
138
- foo:
139
- qty: 2
140
- scaling factor: 2.5
141
- type: USER_DEFINED
142
- type: MECHANISM
@@ -1,40 +0,0 @@
1
- {
2
- "camp-data": [
3
- {
4
- "name": "foo",
5
- "type": "CHEM_SPEC"
6
- },
7
- {
8
- "name": "bar",
9
- "type": "CHEM_SPEC"
10
- },
11
- {
12
- "name": "buz",
13
- "type": "CHEM_SPEC"
14
- },
15
- {
16
- "name": "quuz",
17
- "type": "CHEM_SPEC"
18
- },
19
- {
20
- "name": "foo2",
21
- "type": "CHEM_SPEC"
22
- },
23
- {
24
- "name": "bar2",
25
- "type": "CHEM_SPEC"
26
- },
27
- {
28
- "name": "baz",
29
- "type": "CHEM_SPEC"
30
- },
31
- {
32
- "name": "baz2",
33
- "type": "CHEM_SPEC"
34
- },
35
- {
36
- "name": "M",
37
- "type": "CHEM_SPEC"
38
- }
39
- ]
40
- }
@@ -1,19 +0,0 @@
1
- camp-data:
2
- - name: foo
3
- type: CHEM_SPEC
4
- - name: bar
5
- type: CHEM_SPEC
6
- - name: buz
7
- type: CHEM_SPEC
8
- - name: quuz
9
- type: CHEM_SPEC
10
- - name: foo2
11
- type: CHEM_SPEC
12
- - name: bar2
13
- type: CHEM_SPEC
14
- - name: baz
15
- type: CHEM_SPEC
16
- - name: baz2
17
- type: CHEM_SPEC
18
- - name: M
19
- type: CHEM_SPEC
musica/test/tuvx.py DELETED
@@ -1,10 +0,0 @@
1
- import pytest
2
- import musica
3
-
4
-
5
- def test_tuvx_run():
6
- assert 1 != 0
7
-
8
-
9
- if __name__ == '__main__':
10
- pytest.main()
@@ -1,22 +0,0 @@
1
- #! /bin/bash
2
-
3
- set -e
4
- set -x
5
-
6
- CUDA_ROOT="C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8"
7
- # curl --netrc-optional -L -nv -o cuda.exe https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_537.13_windows.exe
8
- curl --netrc-optional -L -nv -o cuda.exe https://developer.download.nvidia.com/compute/cuda/12.8.1/local_installers/cuda_12.8.1_572.61_windows.exe
9
- ./cuda.exe -s nvcc_12.8 cudart_12.8 cublas_dev_12.8 curand_dev_12.8
10
- rm cuda.exe
11
-
12
- export CUDA_PATH="/c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8"
13
- export PATH="$CUDA_PATH/bin:$PATH"
14
-
15
- ls "c/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.8/extras/visual_studio_integration/MSBuildExtensions"
16
- ls "c/Program Files (x86)/Microsoft Visual Studio/"
17
-
18
- # choco install cuda
19
-
20
- ls "$CUDA_PATH"
21
- ls "$CUDA_PATH/bin"
22
- which nvcc.exe
@@ -1,33 +0,0 @@
1
- musica/__init__.py,sha256=-TtiqPge1QqHDQHJLZb1S13378oCvioqxveGFsTG1K4,1799
2
- musica/_musica.cp312-win_amd64.pyd,sha256=SGqR5rpV5vWs6BXvgSlpo1Jrf41PYBe_RUMusbbagH4,1511424
3
- musica/_version.py,sha256=8qJ5k0-ETwr6dVZPpj6tTjKpDf7mxlh9RCLnW4-0JlI,22
4
- musica/binding_common.cpp,sha256=A1Y5LxGjWXi09Eczv06H5iJC-9i0R9eya2ehz2jnD9U,575
5
- musica/binding_common.hpp,sha256=YAcb9WnfXL7Ps-rR-iMBSwUgBQZfZZdCQQod5CTMEZA,108
6
- musica/CMakeLists.txt,sha256=qRSE9QuzRR1go16-ujVBHpkdHf-5dCuPZLbCrP7ygHc,1092
7
- musica/cpu_binding.cpp,sha256=J-9SfvuXeWYvOAwX5luG6f5DieV0pchkutRAJ3xoN2Y,234
8
- musica/cuda.cpp,sha256=oTG2ZnL-SiW2kx9eL4XJOQGJeIiGuy8tJ5BEoLRWL4M,358
9
- musica/cuda.py,sha256=6Qe6cBbPN9K5Uqu7wBt18zTUjRIgvnQKBJZr6tHJrs8,234
10
- musica/gpu_binding.cpp,sha256=sv1_exUAhGRXY0kzT_q-f0Yl_GYgkYRKwmqWGSi0Qx8,238
11
- musica/mechanism_configuration.cpp,sha256=JXGAO3j1EEKYdswjrtX8J3KcI_YlfS9WGRmlMxctaDw,27619
12
- musica/mechanism_configuration.py,sha256=4aAPN-tN0q6RFMe9s-W94--Llu4Q7V5t_IpO1PVgL-w,59276
13
- musica/musica.cpp,sha256=w6kI-mrUqNbJPeYuuPzzsDrb7GsHy2bKNoOt0b8tJTY,8614
14
- musica/test/examples/v0/config.json,sha256=JDQdrDNRmRXGYlytX1uiSDV1lkYIAneLwlodHKFw-os,85
15
- musica/test/examples/v0/config.yaml,sha256=r31QbiFE2YDudGxLGpTKnpyveTnlfXeLgJ2qSrQddDY,47
16
- musica/test/examples/v0/reactions.json,sha256=SmRUE5XOAv0h3HOWg4Fb1swBiZvZ-1hsIrmMCJqEVIk,4380
17
- musica/test/examples/v0/reactions.yaml,sha256=5QeEkhjeAL_rXxNYCLOuqDUudTmgwLW3NERDupKpj6s,2408
18
- musica/test/examples/v0/species.json,sha256=klFuYb2vAtWdHfHJVYuIuPe_6LHRTuB0Aw29YhwfCFc,604
19
- musica/test/examples/v0/species.yaml,sha256=ECT9DDa2GMwhSRaRLxjOiCATTKkTRTPwugRsUjHSytY,302
20
- musica/test/examples/v1/full_configuration/full_configuration.json,sha256=1-kr2bZJvfuENfy6FMfc5ZEOtgs_NhzHYeGrEGLqLMw,9240
21
- musica/test/examples/v1/full_configuration/full_configuration.yaml,sha256=9NSd8BUJnJ6CPjX9ZngqbFDEqUf1qG5ixbnQDO2m79k,5505
22
- musica/test/test_analytical.py,sha256=6-H8OKGj83qF9_JD_1XxcoHkljrWbZWNuzX5RAFIHuI,14125
23
- musica/test/test_chapman.py,sha256=t6p0CadUy-B4OP7A-EZ9Wz52diuYs5yc9LKiFUS9T6A,3651
24
- musica/test/test_parser.py,sha256=Pf-I4CSJ1aMfRl8meVsuIsLSXd-eOqZW_JM5_zjD-IA,24978
25
- musica/test/tuvx.py,sha256=L8X7rJ09HiRlrhLK6fjircI8tGHnFCZJzVow8He5YOE,126
26
- musica/tools/prepare_build_environment_linux.sh,sha256=kdcBj9qELh811OzY8o5tQDAnLXJFXqzwIkZmkRAcLFY,1500
27
- musica/tools/prepare_build_environment_windows.sh,sha256=sBBWhJQaS2zWDVFLIDMNBMOMPw8auXwnwz7nhuB5Q_k,847
28
- musica/tools/repair_wheel_gpu.sh,sha256=nQueyGNC2qWcBAicjVdAfB6JH4m_51dFOG83vVxke54,1525
29
- musica/types.py,sha256=GKQ9L68bGbid6qYEykmFVBOxYCptXztt9xsRvHFmGmo,15233
30
- musica-0.11.1.4.dist-info/METADATA,sha256=3S0lnuWJjva1wxEFXEmDsnNI1NO0Y1TY1W3RXgAJUoo,25120
31
- musica-0.11.1.4.dist-info/WHEEL,sha256=jS-OUpQ7pzysZBq4lYO_axuVXwmbi12-xcZ3P0PA_yc,106
32
- musica-0.11.1.4.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
33
- musica-0.11.1.4.dist-info/RECORD,,