anemocore 0.2.0__tar.gz

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.
Files changed (39) hide show
  1. anemocore-0.2.0/Cargo.lock +468 -0
  2. anemocore-0.2.0/Cargo.toml +29 -0
  3. anemocore-0.2.0/PKG-INFO +108 -0
  4. anemocore-0.2.0/README.md +83 -0
  5. anemocore-0.2.0/bindings/python/Cargo.toml +26 -0
  6. anemocore-0.2.0/bindings/python/src/lib.rs +903 -0
  7. anemocore-0.2.0/bindings/python/tests/test_bindings.py +134 -0
  8. anemocore-0.2.0/crates/anemocore/Cargo.toml +33 -0
  9. anemocore-0.2.0/crates/anemocore/README.md +83 -0
  10. anemocore-0.2.0/crates/anemocore/fix_no_std.sh +41 -0
  11. anemocore-0.2.0/crates/anemocore/src/edge_governor.rs +112 -0
  12. anemocore-0.2.0/crates/anemocore/src/fib_liquidity.rs +99 -0
  13. anemocore-0.2.0/crates/anemocore/src/fib_qmc.rs +428 -0
  14. anemocore-0.2.0/crates/anemocore/src/kam_vsg.rs +411 -0
  15. anemocore-0.2.0/crates/anemocore/src/lib.rs +45 -0
  16. anemocore-0.2.0/crates/anemocore/src/math_no_std.rs +111 -0
  17. anemocore-0.2.0/crates/anemocore/src/microsite.rs +948 -0
  18. anemocore-0.2.0/crates/anemocore/src/oa.rs +383 -0
  19. anemocore-0.2.0/crates/anemocore/src/phyllotaxis_wake.rs +153 -0
  20. anemocore-0.2.0/crates/anemocore/src/pi_emeans.rs +112 -0
  21. anemocore-0.2.0/crates/anemocore/src/quasicrystal_wpt.rs +148 -0
  22. anemocore-0.2.0/crates/anemocore/src/reg_econ.rs +110 -0
  23. anemocore-0.2.0/crates/anemocore/src/sheaf_graph.rs +20 -0
  24. anemocore-0.2.0/crates/anemocore/src/signal_wpt.rs +106 -0
  25. anemocore-0.2.0/crates/anemocore/src/thermo.rs +531 -0
  26. anemocore-0.2.0/crates/anemocore/src/topology_braids.rs +126 -0
  27. anemocore-0.2.0/crates/anemocore/src/transforms.rs +466 -0
  28. anemocore-0.2.0/crates/anemocore/src/tribology.rs +569 -0
  29. anemocore-0.2.0/crates/anemocore/src/wake.rs +177 -0
  30. anemocore-0.2.0/crates/anemocore/src/weibull_est.rs +636 -0
  31. anemocore-0.2.0/crates/anemocore/src/wra.rs +1029 -0
  32. anemocore-0.2.0/crates/anemocore/tests/round1_physics_parity.rs +86 -0
  33. anemocore-0.2.0/crates/anemocore/tests/windio_parity.rs +111 -0
  34. anemocore-0.2.0/pyproject.toml +40 -0
  35. anemocore-0.2.0/python/anemocore/__init__.py +58 -0
  36. anemocore-0.2.0/python/anemocore/climate.py +100 -0
  37. anemocore-0.2.0/python/anemocore/drivetrain.py +118 -0
  38. anemocore-0.2.0/python/anemocore/farm.py +76 -0
  39. anemocore-0.2.0/python/anemocore/viz.py +37 -0
@@ -0,0 +1,468 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "anemocore"
7
+ version = "0.2.0"
8
+ dependencies = [
9
+ "libm",
10
+ "microfft",
11
+ "rayon",
12
+ "rustfft",
13
+ "serde",
14
+ "serde_json",
15
+ ]
16
+
17
+ [[package]]
18
+ name = "anemocore-py"
19
+ version = "0.2.0"
20
+ dependencies = [
21
+ "anemocore",
22
+ "num-traits",
23
+ "numpy",
24
+ "pyo3",
25
+ ]
26
+
27
+ [[package]]
28
+ name = "autocfg"
29
+ version = "1.5.1"
30
+ source = "registry+https://github.com/rust-lang/crates.io-index"
31
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
32
+
33
+ [[package]]
34
+ name = "cfg-if"
35
+ version = "1.0.5"
36
+ source = "registry+https://github.com/rust-lang/crates.io-index"
37
+ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
38
+
39
+ [[package]]
40
+ name = "crossbeam-deque"
41
+ version = "0.8.8"
42
+ source = "registry+https://github.com/rust-lang/crates.io-index"
43
+ checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
44
+ dependencies = [
45
+ "crossbeam-epoch",
46
+ "crossbeam-utils",
47
+ ]
48
+
49
+ [[package]]
50
+ name = "crossbeam-epoch"
51
+ version = "0.9.21"
52
+ source = "registry+https://github.com/rust-lang/crates.io-index"
53
+ checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
54
+ dependencies = [
55
+ "crossbeam-utils",
56
+ ]
57
+
58
+ [[package]]
59
+ name = "crossbeam-utils"
60
+ version = "0.8.23"
61
+ source = "registry+https://github.com/rust-lang/crates.io-index"
62
+ checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
63
+
64
+ [[package]]
65
+ name = "either"
66
+ version = "1.19.0"
67
+ source = "registry+https://github.com/rust-lang/crates.io-index"
68
+ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
69
+
70
+ [[package]]
71
+ name = "heck"
72
+ version = "0.5.0"
73
+ source = "registry+https://github.com/rust-lang/crates.io-index"
74
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
75
+
76
+ [[package]]
77
+ name = "indoc"
78
+ version = "2.0.8"
79
+ source = "registry+https://github.com/rust-lang/crates.io-index"
80
+ checksum = "a37b2691796cffeb8a8cd305ac66e65841559f147f4e63231d0eafa4db5384d1"
81
+ dependencies = [
82
+ "rustversion",
83
+ ]
84
+
85
+ [[package]]
86
+ name = "itoa"
87
+ version = "1.0.19"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
90
+
91
+ [[package]]
92
+ name = "libc"
93
+ version = "0.2.191"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
96
+
97
+ [[package]]
98
+ name = "libm"
99
+ version = "0.2.16"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
102
+
103
+ [[package]]
104
+ name = "matrixmultiply"
105
+ version = "0.3.11"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"
108
+ dependencies = [
109
+ "autocfg",
110
+ "rawpointer",
111
+ ]
112
+
113
+ [[package]]
114
+ name = "memchr"
115
+ version = "2.8.3"
116
+ source = "registry+https://github.com/rust-lang/crates.io-index"
117
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
118
+
119
+ [[package]]
120
+ name = "memoffset"
121
+ version = "0.9.1"
122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
123
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
124
+ dependencies = [
125
+ "autocfg",
126
+ ]
127
+
128
+ [[package]]
129
+ name = "microfft"
130
+ version = "0.6.0"
131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ checksum = "f2b6673eb0cc536241d6734c2ca45abfdbf90e9e7791c66a36a7ba3c315b76cf"
133
+ dependencies = [
134
+ "cfg-if",
135
+ "num-complex",
136
+ "static_assertions",
137
+ ]
138
+
139
+ [[package]]
140
+ name = "ndarray"
141
+ version = "0.16.1"
142
+ source = "registry+https://github.com/rust-lang/crates.io-index"
143
+ checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
144
+ dependencies = [
145
+ "matrixmultiply",
146
+ "num-complex",
147
+ "num-integer",
148
+ "num-traits",
149
+ "portable-atomic",
150
+ "portable-atomic-util",
151
+ "rawpointer",
152
+ ]
153
+
154
+ [[package]]
155
+ name = "num-complex"
156
+ version = "0.4.6"
157
+ source = "registry+https://github.com/rust-lang/crates.io-index"
158
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
159
+ dependencies = [
160
+ "num-traits",
161
+ ]
162
+
163
+ [[package]]
164
+ name = "num-integer"
165
+ version = "0.1.47"
166
+ source = "registry+https://github.com/rust-lang/crates.io-index"
167
+ checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
168
+ dependencies = [
169
+ "num-traits",
170
+ ]
171
+
172
+ [[package]]
173
+ name = "num-traits"
174
+ version = "0.2.19"
175
+ source = "registry+https://github.com/rust-lang/crates.io-index"
176
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
177
+ dependencies = [
178
+ "autocfg",
179
+ ]
180
+
181
+ [[package]]
182
+ name = "numpy"
183
+ version = "0.22.1"
184
+ source = "registry+https://github.com/rust-lang/crates.io-index"
185
+ checksum = "edb929bc0da91a4d85ed6c0a84deaa53d411abfb387fc271124f91bf6b89f14e"
186
+ dependencies = [
187
+ "libc",
188
+ "ndarray",
189
+ "num-complex",
190
+ "num-integer",
191
+ "num-traits",
192
+ "pyo3",
193
+ "rustc-hash",
194
+ ]
195
+
196
+ [[package]]
197
+ name = "once_cell"
198
+ version = "1.21.4"
199
+ source = "registry+https://github.com/rust-lang/crates.io-index"
200
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
201
+
202
+ [[package]]
203
+ name = "portable-atomic"
204
+ version = "1.15.0"
205
+ source = "registry+https://github.com/rust-lang/crates.io-index"
206
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
207
+
208
+ [[package]]
209
+ name = "portable-atomic-util"
210
+ version = "0.2.8"
211
+ source = "registry+https://github.com/rust-lang/crates.io-index"
212
+ checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
213
+ dependencies = [
214
+ "portable-atomic",
215
+ ]
216
+
217
+ [[package]]
218
+ name = "primal-check"
219
+ version = "0.3.4"
220
+ source = "registry+https://github.com/rust-lang/crates.io-index"
221
+ checksum = "dc0d895b311e3af9902528fbb8f928688abbd95872819320517cc24ca6b2bd08"
222
+ dependencies = [
223
+ "num-integer",
224
+ ]
225
+
226
+ [[package]]
227
+ name = "proc-macro2"
228
+ version = "1.0.107"
229
+ source = "registry+https://github.com/rust-lang/crates.io-index"
230
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
231
+ dependencies = [
232
+ "unicode-ident",
233
+ ]
234
+
235
+ [[package]]
236
+ name = "pyo3"
237
+ version = "0.22.6"
238
+ source = "registry+https://github.com/rust-lang/crates.io-index"
239
+ checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
240
+ dependencies = [
241
+ "cfg-if",
242
+ "indoc",
243
+ "libc",
244
+ "memoffset",
245
+ "once_cell",
246
+ "portable-atomic",
247
+ "pyo3-build-config",
248
+ "pyo3-ffi",
249
+ "pyo3-macros",
250
+ "unindent",
251
+ ]
252
+
253
+ [[package]]
254
+ name = "pyo3-build-config"
255
+ version = "0.22.6"
256
+ source = "registry+https://github.com/rust-lang/crates.io-index"
257
+ checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
258
+ dependencies = [
259
+ "once_cell",
260
+ "target-lexicon",
261
+ ]
262
+
263
+ [[package]]
264
+ name = "pyo3-ffi"
265
+ version = "0.22.6"
266
+ source = "registry+https://github.com/rust-lang/crates.io-index"
267
+ checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
268
+ dependencies = [
269
+ "libc",
270
+ "pyo3-build-config",
271
+ ]
272
+
273
+ [[package]]
274
+ name = "pyo3-macros"
275
+ version = "0.22.6"
276
+ source = "registry+https://github.com/rust-lang/crates.io-index"
277
+ checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
278
+ dependencies = [
279
+ "proc-macro2",
280
+ "pyo3-macros-backend",
281
+ "quote",
282
+ "syn 2.0.119",
283
+ ]
284
+
285
+ [[package]]
286
+ name = "pyo3-macros-backend"
287
+ version = "0.22.6"
288
+ source = "registry+https://github.com/rust-lang/crates.io-index"
289
+ checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
290
+ dependencies = [
291
+ "heck",
292
+ "proc-macro2",
293
+ "pyo3-build-config",
294
+ "quote",
295
+ "syn 2.0.119",
296
+ ]
297
+
298
+ [[package]]
299
+ name = "quote"
300
+ version = "1.0.47"
301
+ source = "registry+https://github.com/rust-lang/crates.io-index"
302
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
303
+ dependencies = [
304
+ "proc-macro2",
305
+ ]
306
+
307
+ [[package]]
308
+ name = "rawpointer"
309
+ version = "0.2.1"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
312
+
313
+ [[package]]
314
+ name = "rayon"
315
+ version = "1.12.0"
316
+ source = "registry+https://github.com/rust-lang/crates.io-index"
317
+ checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
318
+ dependencies = [
319
+ "either",
320
+ "rayon-core",
321
+ ]
322
+
323
+ [[package]]
324
+ name = "rayon-core"
325
+ version = "1.13.0"
326
+ source = "registry+https://github.com/rust-lang/crates.io-index"
327
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
328
+ dependencies = [
329
+ "crossbeam-deque",
330
+ "crossbeam-utils",
331
+ ]
332
+
333
+ [[package]]
334
+ name = "rustc-hash"
335
+ version = "1.1.0"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
338
+
339
+ [[package]]
340
+ name = "rustfft"
341
+ version = "6.4.1"
342
+ source = "registry+https://github.com/rust-lang/crates.io-index"
343
+ checksum = "21db5f9893e91f41798c88680037dba611ca6674703c1a18601b01a72c8adb89"
344
+ dependencies = [
345
+ "num-complex",
346
+ "num-integer",
347
+ "num-traits",
348
+ "primal-check",
349
+ "strength_reduce",
350
+ "transpose",
351
+ ]
352
+
353
+ [[package]]
354
+ name = "rustversion"
355
+ version = "1.0.23"
356
+ source = "registry+https://github.com/rust-lang/crates.io-index"
357
+ checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
358
+
359
+ [[package]]
360
+ name = "serde"
361
+ version = "1.0.229"
362
+ source = "registry+https://github.com/rust-lang/crates.io-index"
363
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
364
+ dependencies = [
365
+ "serde_core",
366
+ "serde_derive",
367
+ ]
368
+
369
+ [[package]]
370
+ name = "serde_core"
371
+ version = "1.0.229"
372
+ source = "registry+https://github.com/rust-lang/crates.io-index"
373
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
374
+ dependencies = [
375
+ "serde_derive",
376
+ ]
377
+
378
+ [[package]]
379
+ name = "serde_derive"
380
+ version = "1.0.229"
381
+ source = "registry+https://github.com/rust-lang/crates.io-index"
382
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
383
+ dependencies = [
384
+ "proc-macro2",
385
+ "quote",
386
+ "syn 3.0.10",
387
+ ]
388
+
389
+ [[package]]
390
+ name = "serde_json"
391
+ version = "1.0.154"
392
+ source = "registry+https://github.com/rust-lang/crates.io-index"
393
+ checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
394
+ dependencies = [
395
+ "itoa",
396
+ "memchr",
397
+ "serde",
398
+ "serde_core",
399
+ "zmij",
400
+ ]
401
+
402
+ [[package]]
403
+ name = "static_assertions"
404
+ version = "1.1.0"
405
+ source = "registry+https://github.com/rust-lang/crates.io-index"
406
+ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
407
+
408
+ [[package]]
409
+ name = "strength_reduce"
410
+ version = "0.2.4"
411
+ source = "registry+https://github.com/rust-lang/crates.io-index"
412
+ checksum = "fe895eb47f22e2ddd4dabc02bce419d2e643c8e3b585c78158b349195bc24d82"
413
+
414
+ [[package]]
415
+ name = "syn"
416
+ version = "2.0.119"
417
+ source = "registry+https://github.com/rust-lang/crates.io-index"
418
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
419
+ dependencies = [
420
+ "proc-macro2",
421
+ "quote",
422
+ "unicode-ident",
423
+ ]
424
+
425
+ [[package]]
426
+ name = "syn"
427
+ version = "3.0.10"
428
+ source = "registry+https://github.com/rust-lang/crates.io-index"
429
+ checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
430
+ dependencies = [
431
+ "proc-macro2",
432
+ "quote",
433
+ "unicode-ident",
434
+ ]
435
+
436
+ [[package]]
437
+ name = "target-lexicon"
438
+ version = "0.12.16"
439
+ source = "registry+https://github.com/rust-lang/crates.io-index"
440
+ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
441
+
442
+ [[package]]
443
+ name = "transpose"
444
+ version = "0.2.3"
445
+ source = "registry+https://github.com/rust-lang/crates.io-index"
446
+ checksum = "1ad61aed86bc3faea4300c7aee358b4c6d0c8d6ccc36524c96e4c92ccf26e77e"
447
+ dependencies = [
448
+ "num-integer",
449
+ "strength_reduce",
450
+ ]
451
+
452
+ [[package]]
453
+ name = "unicode-ident"
454
+ version = "1.0.27"
455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
456
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
457
+
458
+ [[package]]
459
+ name = "unindent"
460
+ version = "0.2.4"
461
+ source = "registry+https://github.com/rust-lang/crates.io-index"
462
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
463
+
464
+ [[package]]
465
+ name = "zmij"
466
+ version = "1.0.23"
467
+ source = "registry+https://github.com/rust-lang/crates.io-index"
468
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
@@ -0,0 +1,29 @@
1
+ [workspace]
2
+ resolver = "2"
3
+ members = ["crates/anemocore", "bindings/python"]
4
+ exclude = [
5
+ "firmware",
6
+ "bindings/r",
7
+ ]
8
+
9
+ [workspace.package]
10
+ version = "0.2.0"
11
+ edition = "2021"
12
+ license = "MIT OR Apache-2.0"
13
+ authors = ["Chatchawich Chaihong <6610130021@email.psu.ac.th>"]
14
+ repository = "https://github.com/chatchawich-c/AnemoCore"
15
+ keywords = ["wind-turbine", "prognostics", "grid-forming", "wavelet", "no-std"]
16
+ categories = ["science", "embedded", "mathematics", "simulation"]
17
+
18
+ [workspace.dependencies]
19
+ libm = "0.2"
20
+
21
+ microfft = "0.6"
22
+ rayon = "1.10"
23
+
24
+ rustfft = "6.2"
25
+
26
+ [profile.release]
27
+ lto = true
28
+ codegen-units = 1
29
+ strip = true
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: anemocore
3
+ Version: 0.2.0
4
+ Classifier: Development Status :: 4 - Beta
5
+ Classifier: Intended Audience :: Science/Research
6
+ Classifier: License :: OSI Approved :: MIT License
7
+ Classifier: License :: OSI Approved :: Apache Software License
8
+ Classifier: Programming Language :: Rust
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Topic :: Scientific/Engineering
11
+ Requires-Dist: polars>=1.0 ; extra == 'io'
12
+ Requires-Dist: xarray>=2024.1 ; extra == 'io'
13
+ Requires-Dist: matplotlib>=3.8 ; extra == 'viz'
14
+ Provides-Extra: io
15
+ Provides-Extra: viz
16
+ Summary: Python bindings for the AnemoCore Rust core library via PyO3
17
+ Keywords: wind-turbine,prognostics,grid-forming,wavelet,quasicrystal
18
+ Author-email: Chatchawich Chaihong <6610130021@email.psu.ac.th>
19
+ License-Expression: MIT OR Apache-2.0
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
22
+ Project-URL: Homepage, https://github.com/chatchawich-c/AnemoCore
23
+ Project-URL: Repository, https://github.com/chatchawich-c/AnemoCore
24
+
25
+ # `AnemoCore`: Pure-Rust Multi-Scale Physics-Informed Wind Resource, Wake Aerodynamics & Turbine Prognostics Engine
26
+
27
+ [![Dual License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](#license)
28
+ [![no_std Compatible](https://img.shields.io/badge/rust-no__std%20%2B%20std-orange.svg)](#architecture)
29
+ [![Target: Cortex-M4](https://img.shields.io/badge/target-thumbv7em--none--eabihf-brightgreen.svg)](#embedded-hil)
30
+
31
+ **AnemoCore** (`anemocore`) is a **pure‑Rust** computational engine for wind resource assessment, 3‑D Gaussian‑Curl wake modeling & sectoral AEP, signal processing, and embedded digital twins on micro‑controllers.
32
+
33
+ It originated during an exchange research stay at **Tallinn University of Technology (TalTech)**, Estonia, funded by the **EU Erasmus+ CBHE Project ECO‑WIND** (*Enhancing Capacity in Condition‑based Maintenance of Wind Energy*, Grant No. `ERASMUS-EDU-2025-CBHE-101177220`).
34
+
35
+ ---
36
+
37
+ ## 1. Naming Convention (Hybrid Naming Convention)
38
+
39
+ * **Display / Prose / Repo:** `AnemoCore`
40
+ * **Code Identifiers:** `anemocore` (Rust crate `anemocore`, Python module `anemocore`, R package `anemocore`)
41
+ * **WAsP Compatibility:** Supports reading and exporting sectoral wind‑rose `.tab` files via the `microsite` module (trademark‑safe).
42
+
43
+ ---
44
+
45
+ ## 2. Architecture – 16 Modules of `AnemoCore`
46
+
47
+ ### Group A: `#![no_std]` Embedded‑Safe (8 modules — Zero‑Heap, ready for STM32F401)
48
+ | Module | Status | Core Functionality |
49
+ | :--- | :---: | :--- |
50
+ | `fib_qmc.rs` | **Phase 1** | Rank‑1 Fibonacci/Korobov QMC, `weyl_convergent_lags`, Tent Transform, Golden‑Section Search, Streaming Weibull $E[v^3]$ |
51
+ | `weibull_est.rs` | **Phase 1** | `FixedWindHistogram` (Zero‑Heap) + 6 estimation equations (EMJ, MoM, EPFM/PDM, Raw MLE, Binned MMLE, Graphical LSM) + Goodness‑of‑Fit ($R^2$, RMSE, KS) |
52
+ | `transforms.rs` | **Phase 1** | Goertzel single‑bin DFT, `microfft` 64‑pt FFT/IFFT/Hilbert, Numerical inverse Laplace (Stehfest, Talbot), Tustin $s \to z$ |
53
+ | `thermo.rs` | Phase 4 | First‑law thermal network, Arrhenius `CTD_P6`, CIPM‑2007 moist air density, ISO 281 |
54
+ | `kam_vsg.rs` | Phase 4 | Two‑mass shaft, four‑stage Foster RC IGBT, KAM golden‑ratio VSG, `jacobi_horizon_guard` |
55
+ | `quasicrystal_wpt.rs` | Phase 4 | 1D Fibonacci quasicrystal multiplier‑less shift‑add filter bank |
56
+ | `edge_governor.rs` | Phase 5 | 64‑byte aligned lock‑free SPSC ring buffer, branchless Grönwall guard, `bartlett_factor_project`, `stealth_fdia_wind_residual` |
57
+ | `pi_emeans.rs` | Phase 4 | Physics‑informed thermodynamic centroid clustering |
58
+
59
+ ### Group B: `std` High‑Performance (8 modules — `rayon` + `faer` + `rustfft`, Peak RSS ≤ 150 MiB on a 2017 MacBook Pro)
60
+ | Module | Status | Core Functionality |
61
+ | :--- | :---: | :--- |
62
+ | `microsite.rs` | **Phase 1** | Monin–Obukhov log‑law, Elliott IBL, `CfdSpeedupGrid` (f32 trilinear + circular‑sector), `.tab` I/O, `TurbineSpec` (IEA‑3.4MW, NREL‑5MW, IEA‑15MW, parametric, auto‑$C_t$), Gross AEP |
63
+ | `phyllotaxis_wake.rs` | **Phase 1** | 3D Gaussian‑Curl wake (Bastankhah–Porté‑Agel), RSS superposition, golden‑angle yaw‑staggering, Net AEP & Wake loss (%) |
64
+ | `signal_wpt.rs` | Phase 4 | STFT, FSST, SET, Hertzian–Gabor, Rényi entropy, tacholess resampling, $J=3$ WPT |
65
+ | `fib_liquidity.rs` | Phase 4 | Roll spread, discrete scale invariance, skew‑Brownian HJB‑VI, Pontryagin LATFC |
66
+ | `tribology.rs` | Phase 4 | Hertzian contact, Dowson–Higginson EHL, Roelands–VFT, Lemaitre CDM, Paris–Erdogan |
67
+ | `topology_braids.rs` | Phase 4 | 3D Takens embedding, Artin braid group, Alexander polynomial |
68
+ | `sheaf_graph.rs` | Phase 4 | Cellular cosheaf Laplacian, first cohomology, matrix product states (MPS) |
69
+ | `reg_econ.rs` | Phase 5 | Baron–Myerson audit, ECPR + Pigouvian wake fee, TOTEX PBR, Wasserstein MFG |
70
+
71
+ ---
72
+ ## Installation
73
+
74
+ ```bash
75
+ # Python installation via PyPI
76
+ pip install anemocore
77
+
78
+ # Python installation via GitHub repository
79
+ python3 -m pip install "git+https://github.com/chatchawich-c/AnemoCore.git#subdirectory=bindings/python"
80
+
81
+ # R installation via remotes
82
+ R -q -e 'remotes::install_github("chatchawich-c/AnemoCore", subdir = "bindings/r")'
83
+
84
+ # R-universe (optional)
85
+ R -q -e 'install.packages("anemocore", repos = c("https://chatchawich-c.r-universe.dev", "https://cloud.r-project.org"))'
86
+ ```
87
+
88
+ ## 3. Quickstart & Verification
89
+
90
+ ```bash
91
+ # 1. Compile and run all unit tests
92
+ cargo test -p anemocore
93
+
94
+ # 2. Verify no‑std compilation for ARM Cortex‑M4
95
+ cargo check -p anemocore --no-default-features --target thumbv7em-none-eabihf
96
+
97
+ # 3. Run benchmark to measure Peak RSS on a 2017 MacBook Pro
98
+ python benchmarks/bench_fib_qmc_mbp2017.py --fib-order 28 --runs 10
99
+ ```
100
+
101
+ ---
102
+
103
+ ## 4. Authors & Grant Attribution
104
+
105
+ * **Lead Author:** Chatchawich Chaihong (`ORCID: 0009-0000-7379-5738`, `6610130021@email.psu.ac.th`), Energy Technology Program, Department of Interdisciplinary Engineering, Faculty of Engineering, Prince of Songkla University (PSU), Hat Yai Campus, Songkhla 90110, Thailand.
106
+ * **Funding:** Initiated during an academic exchange at Tallinn University of Technology (TalTech), Estonia, under the **EU Erasmus+ CBHE Project ECO‑WIND** (*Enhancing Capacity in Condition‑based Maintenance of Wind Energy*, Grant No. `ERASMUS-EDU-2025-CBHE-101177220`).
107
+ * **License:** Dual‑licensed under [MIT](LICENSE-MIT) OR [Apache‑2.0](LICENSE-APACHE).
108
+
@@ -0,0 +1,83 @@
1
+ # `AnemoCore`: Pure-Rust Multi-Scale Physics-Informed Wind Resource, Wake Aerodynamics & Turbine Prognostics Engine
2
+
3
+ [![Dual License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](#license)
4
+ [![no_std Compatible](https://img.shields.io/badge/rust-no__std%20%2B%20std-orange.svg)](#architecture)
5
+ [![Target: Cortex-M4](https://img.shields.io/badge/target-thumbv7em--none--eabihf-brightgreen.svg)](#embedded-hil)
6
+
7
+ **AnemoCore** (`anemocore`) is a **pure‑Rust** computational engine for wind resource assessment, 3‑D Gaussian‑Curl wake modeling & sectoral AEP, signal processing, and embedded digital twins on micro‑controllers.
8
+
9
+ It originated during an exchange research stay at **Tallinn University of Technology (TalTech)**, Estonia, funded by the **EU Erasmus+ CBHE Project ECO‑WIND** (*Enhancing Capacity in Condition‑based Maintenance of Wind Energy*, Grant No. `ERASMUS-EDU-2025-CBHE-101177220`).
10
+
11
+ ---
12
+
13
+ ## 1. Naming Convention (Hybrid Naming Convention)
14
+
15
+ * **Display / Prose / Repo:** `AnemoCore`
16
+ * **Code Identifiers:** `anemocore` (Rust crate `anemocore`, Python module `anemocore`, R package `anemocore`)
17
+ * **WAsP Compatibility:** Supports reading and exporting sectoral wind‑rose `.tab` files via the `microsite` module (trademark‑safe).
18
+
19
+ ---
20
+
21
+ ## 2. Architecture – 16 Modules of `AnemoCore`
22
+
23
+ ### Group A: `#![no_std]` Embedded‑Safe (8 modules — Zero‑Heap, ready for STM32F401)
24
+ | Module | Status | Core Functionality |
25
+ | :--- | :---: | :--- |
26
+ | `fib_qmc.rs` | **Phase 1** | Rank‑1 Fibonacci/Korobov QMC, `weyl_convergent_lags`, Tent Transform, Golden‑Section Search, Streaming Weibull $E[v^3]$ |
27
+ | `weibull_est.rs` | **Phase 1** | `FixedWindHistogram` (Zero‑Heap) + 6 estimation equations (EMJ, MoM, EPFM/PDM, Raw MLE, Binned MMLE, Graphical LSM) + Goodness‑of‑Fit ($R^2$, RMSE, KS) |
28
+ | `transforms.rs` | **Phase 1** | Goertzel single‑bin DFT, `microfft` 64‑pt FFT/IFFT/Hilbert, Numerical inverse Laplace (Stehfest, Talbot), Tustin $s \to z$ |
29
+ | `thermo.rs` | Phase 4 | First‑law thermal network, Arrhenius `CTD_P6`, CIPM‑2007 moist air density, ISO 281 |
30
+ | `kam_vsg.rs` | Phase 4 | Two‑mass shaft, four‑stage Foster RC IGBT, KAM golden‑ratio VSG, `jacobi_horizon_guard` |
31
+ | `quasicrystal_wpt.rs` | Phase 4 | 1D Fibonacci quasicrystal multiplier‑less shift‑add filter bank |
32
+ | `edge_governor.rs` | Phase 5 | 64‑byte aligned lock‑free SPSC ring buffer, branchless Grönwall guard, `bartlett_factor_project`, `stealth_fdia_wind_residual` |
33
+ | `pi_emeans.rs` | Phase 4 | Physics‑informed thermodynamic centroid clustering |
34
+
35
+ ### Group B: `std` High‑Performance (8 modules — `rayon` + `faer` + `rustfft`, Peak RSS ≤ 150 MiB on a 2017 MacBook Pro)
36
+ | Module | Status | Core Functionality |
37
+ | :--- | :---: | :--- |
38
+ | `microsite.rs` | **Phase 1** | Monin–Obukhov log‑law, Elliott IBL, `CfdSpeedupGrid` (f32 trilinear + circular‑sector), `.tab` I/O, `TurbineSpec` (IEA‑3.4MW, NREL‑5MW, IEA‑15MW, parametric, auto‑$C_t$), Gross AEP |
39
+ | `phyllotaxis_wake.rs` | **Phase 1** | 3D Gaussian‑Curl wake (Bastankhah–Porté‑Agel), RSS superposition, golden‑angle yaw‑staggering, Net AEP & Wake loss (%) |
40
+ | `signal_wpt.rs` | Phase 4 | STFT, FSST, SET, Hertzian–Gabor, Rényi entropy, tacholess resampling, $J=3$ WPT |
41
+ | `fib_liquidity.rs` | Phase 4 | Roll spread, discrete scale invariance, skew‑Brownian HJB‑VI, Pontryagin LATFC |
42
+ | `tribology.rs` | Phase 4 | Hertzian contact, Dowson–Higginson EHL, Roelands–VFT, Lemaitre CDM, Paris–Erdogan |
43
+ | `topology_braids.rs` | Phase 4 | 3D Takens embedding, Artin braid group, Alexander polynomial |
44
+ | `sheaf_graph.rs` | Phase 4 | Cellular cosheaf Laplacian, first cohomology, matrix product states (MPS) |
45
+ | `reg_econ.rs` | Phase 5 | Baron–Myerson audit, ECPR + Pigouvian wake fee, TOTEX PBR, Wasserstein MFG |
46
+
47
+ ---
48
+ ## Installation
49
+
50
+ ```bash
51
+ # Python installation via PyPI
52
+ pip install anemocore
53
+
54
+ # Python installation via GitHub repository
55
+ python3 -m pip install "git+https://github.com/chatchawich-c/AnemoCore.git#subdirectory=bindings/python"
56
+
57
+ # R installation via remotes
58
+ R -q -e 'remotes::install_github("chatchawich-c/AnemoCore", subdir = "bindings/r")'
59
+
60
+ # R-universe (optional)
61
+ R -q -e 'install.packages("anemocore", repos = c("https://chatchawich-c.r-universe.dev", "https://cloud.r-project.org"))'
62
+ ```
63
+
64
+ ## 3. Quickstart & Verification
65
+
66
+ ```bash
67
+ # 1. Compile and run all unit tests
68
+ cargo test -p anemocore
69
+
70
+ # 2. Verify no‑std compilation for ARM Cortex‑M4
71
+ cargo check -p anemocore --no-default-features --target thumbv7em-none-eabihf
72
+
73
+ # 3. Run benchmark to measure Peak RSS on a 2017 MacBook Pro
74
+ python benchmarks/bench_fib_qmc_mbp2017.py --fib-order 28 --runs 10
75
+ ```
76
+
77
+ ---
78
+
79
+ ## 4. Authors & Grant Attribution
80
+
81
+ * **Lead Author:** Chatchawich Chaihong (`ORCID: 0009-0000-7379-5738`, `6610130021@email.psu.ac.th`), Energy Technology Program, Department of Interdisciplinary Engineering, Faculty of Engineering, Prince of Songkla University (PSU), Hat Yai Campus, Songkhla 90110, Thailand.
82
+ * **Funding:** Initiated during an academic exchange at Tallinn University of Technology (TalTech), Estonia, under the **EU Erasmus+ CBHE Project ECO‑WIND** (*Enhancing Capacity in Condition‑based Maintenance of Wind Energy*, Grant No. `ERASMUS-EDU-2025-CBHE-101177220`).
83
+ * **License:** Dual‑licensed under [MIT](LICENSE-MIT) OR [Apache‑2.0](LICENSE-APACHE).