Repository navigation
Expand file tree
/
Copy pathpresentation.html
More file actions
3241 lines (3037 loc) · 184 KB
/
Copy pathpresentation.html
File metadata and controls
3241 lines (3037 loc) · 184 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PINNeAPPle v0.5.0 — Presentation</title>
<style>
:root {
--bg: #0d1117; --surface: #161b22; --surface2: #1c2330; --border: #30363d;
--accent: #58a6ff; --accent2: #3fb950; --accent3: #f78166; --accent4: #d2a8ff; --accent5: #ffa657;
--text: #e6edf3; --muted: #8b949e; --code-bg: #0d1117;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; height: 100vh; overflow: hidden; user-select: none; }
#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, #58a6ff, #d2a8ff); transition: width 0.3s ease; z-index: 1000; }
.deck { width: 100vw; height: 100vh; position: relative; }
.slide { position: absolute; inset: 0; display: none; flex-direction: column; padding: 48px 68px 72px; overflow-y: auto; scroll-behavior: smooth; animation: fadeIn 0.25s ease; }
.slide.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.slide-header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; position: sticky; top: -48px; background: var(--bg); z-index: 5; padding-top: 48px; margin-top: -48px; padding-bottom: 12px; }
.slide-tag { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); background: rgba(88,166,255,.12); border: 1px solid rgba(88,166,255,.3); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.slide-tag.green { color: var(--accent2); background: rgba(63,185,80,.1); border-color: rgba(63,185,80,.3); }
.slide-tag.purple { color: var(--accent4); background: rgba(210,168,255,.1); border-color: rgba(210,168,255,.3); }
.slide-tag.orange { color: var(--accent5); background: rgba(255,166,87,.1); border-color: rgba(255,166,87,.3); }
.slide-tag.red { color: var(--accent3); background: rgba(247,129,102,.1); border-color: rgba(247,129,102,.3); }
.divider-line { flex: 1; height: 1px; background: var(--border); }
.slide-num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
h1 { font-size: 52px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
h3 { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .9px; }
.subtitle { font-size: 17px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.body { flex: 1; overflow: visible; display: flex; flex-direction: column; gap: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.four-col { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.card h4 { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 9px; }
.card p, .card li { font-size: 13px; color: var(--muted); line-height: 1.65; }
.card ul { list-style: none; padding: 0; }
.card ul li::before { content: "→ "; color: var(--accent2); }
.hcard { background: linear-gradient(135deg, rgba(88,166,255,.08) 0%, rgba(210,168,255,.06) 100%); border: 1px solid rgba(88,166,255,.25); border-radius: 10px; padding: 18px 22px; }
.hcard h4 { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
ul.bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
ul.bullets li { font-size: 14px; line-height: 1.6; color: var(--text); padding-left: 20px; position: relative; }
ul.bullets li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge { font-size: 11px; padding: 3px 11px; border-radius: 20px; font-weight: 600; background: rgba(88,166,255,.12); color: var(--accent); border: 1px solid rgba(88,166,255,.25); }
.badge.green { background: rgba(63,185,80,.12); color: var(--accent2); border-color: rgba(63,185,80,.25); }
.badge.purple { background: rgba(210,168,255,.12); color: var(--accent4); border-color: rgba(210,168,255,.25); }
.badge.orange { background: rgba(255,166,87,.12); color: var(--accent5); border-color: rgba(255,166,87,.25); }
.badge.red { background: rgba(247,129,102,.12); color: var(--accent3); border-color: rgba(247,129,102,.25); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.stat-box .num { font-size: 38px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent4)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-box .label { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; letter-spacing: .5px; }
.flow { display: flex; flex-direction: column; gap: 0; }
.flow-step { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; width: 2px; height: calc(100% + 4px); background: var(--border); }
.flow-circle { width: 34px; height: 34px; border-radius: 50%; background: rgba(88,166,255,.15); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.flow-content { padding-top: 6px; padding-bottom: 16px; }
.flow-content strong { font-size: 14px; color: var(--text); }
.flow-content p { font-size: 12px; color: var(--muted); margin-top: 3px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { background: var(--surface2); color: var(--accent); font-weight: 700; padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 11px; letter-spacing: .7px; text-transform: uppercase; }
td { padding: 8px 12px; border-bottom: 1px solid rgba(48,54,61,.5); color: var(--text); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(88,166,255,.04); }
.ck { color: var(--accent2); font-weight: 700; }
.xx { color: var(--muted); }
.pp { color: var(--accent5); }
pre { background: #0d1117; border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace; font-size: 12.5px; line-height: 1.7; overflow: hidden; white-space: pre; }
.kw { color: #ff7b72; } .fn { color: #d2a8ff; } .st { color: #a5d6ff; } .cm { color: #8b949e; font-style: italic; }
.nu { color: #79c0ff; } .op { color: #ffa657; } .cl { color: #ffa657; } .at { color: #79c0ff; }
.module-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.module-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.module-card .mname { font-size: 11px; font-weight: 700; color: var(--accent); font-family: monospace; margin-bottom: 5px; }
.module-card .mdesc { font-size: 11px; color: var(--muted); line-height: 1.5; }
.level-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.level-production { background: rgba(63,185,80,.15); color: #3fb950; border: 1px solid rgba(63,185,80,.3); }
.level-research { background: rgba(255,166,87,.12); color: #ffa657; border: 1px solid rgba(255,166,87,.3); }
.level-prototype { background: rgba(247,129,102,.12); color: #f78166; border: 1px solid rgba(247,129,102,.3); }
.feature-pill { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11px; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); margin: 2px; }
.nav { position: fixed; bottom: 0; left: 0; right: 0; height: 48px; background: rgba(22,27,34,.95); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; backdrop-filter: blur(12px); z-index: 999; }
.nav-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 6px 18px; border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 600; transition: all .15s; }
.nav-btn:hover { background: var(--surface2); border-color: var(--accent); color: var(--accent); }
.nav-counter { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Hero slide */
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(88,166,255,.12) 0%, rgba(210,168,255,.06) 50%, transparent 80%); pointer-events: none; }
.hero-glow { position: absolute; top: 15%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(88,166,255,.08) 0%, transparent 70%); pointer-events: none; border-radius: 50%; }
.hero-title { font-size: 80px; font-weight: 900; letter-spacing: -3px; line-height: 1; background: linear-gradient(135deg, #58a6ff 0%, #d2a8ff 50%, #ffa657 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 22px; color: var(--muted); margin-top: 16px; max-width: 640px; line-height: 1.5; }
.hero-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; z-index: 1; }
img.bench { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); }
.img-wrap { flex: 1; display: flex; align-items: center; justify-content: center; overflow: visible; min-height: 200px; }
.section-divider { background: linear-gradient(135deg, rgba(88,166,255,.06) 0%, rgba(210,168,255,.04) 100%); border: 1px solid rgba(88,166,255,.15); border-radius: 12px; padding: 14px 20px; margin-bottom: 10px; }
.section-divider p { font-size: 13px; color: var(--muted); }
.tag-new { display: inline-block; font-size: 9px; font-weight: 700; background: rgba(63,185,80,.2); color: #3fb950; border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: middle; letter-spacing: .5px; }
.arch-layer { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.arch-layer-num { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.arch-layer-title { font-size: 13px; font-weight: 700; color: var(--text); min-width: 120px; }
.arch-layer-items { font-size: 12px; color: var(--muted); }
</style>
</head>
<body>
<div id="progress-bar"></div>
<div class="deck">
<!-- ============================================================ S1: TITLE ============================================================ -->
<div class="slide active" id="s1">
<div class="hero-bg"></div>
<div class="hero-glow"></div>
<div class="slide-header">
<span class="slide-tag">PINNeAPPle</span>
<div class="divider-line"></div>
<span class="slide-num">1 / 59</span>
</div>
<div class="hero-center">
<div style="font-size:13px;color:var(--accent);letter-spacing:3px;text-transform:uppercase;font-weight:700;margin-bottom:16px;">Physics-Informed Machine Learning</div>
<div class="hero-title">PINNeAPPle</div>
<div style="font-size:36px;font-weight:800;color:var(--accent4);letter-spacing:-1px;margin-top:4px;">v0.5.0</div>
<div class="hero-sub">Physics-Informed Neural Networks for Engineering & Research<br>20 new features · 16 modules · ~54k LOC · Production-Ready</div>
<div class="badge-row" style="justify-content:center;margin-top:20px;">
<span class="badge">v0.5.0</span>
<span class="badge green">Open Source</span>
<span class="badge purple">MIT License</span>
<span class="badge orange">PyTorch</span>
<span class="badge">~54k LOC</span>
</div>
<div class="stat-grid" style="margin-top:32px;max-width:660px;">
<div class="stat-box"><div class="num">20</div><div class="label">New Features</div></div>
<div class="stat-box"><div class="num">16</div><div class="label">Modules</div></div>
<div class="stat-box"><div class="num">54k</div><div class="label">Lines of Code</div></div>
<div class="stat-box"><div class="num">8</div><div class="label">Benchmarks</div></div>
</div>
</div>
<div style="position:relative;z-index:1;text-align:center;font-size:12px;color:var(--muted);">April 2026 · Yan Barros</div>
</div>
<!-- ============================================================ S2: WHAT'S NEW ============================================================ -->
<div class="slide" id="s2">
<div class="slide-header"><span class="slide-tag">Introduction</span><div class="divider-line"></div><span class="slide-num">2 / 59</span></div>
<h2>What's New in v0.5</h2>
<div class="subtitle" style="margin-bottom:14px;">The largest single release in PINNeAPPle history — 20 features across 5 new modules</div>
<div class="body">
<div class="two-col">
<div>
<div class="card">
<h4>v0.4 Had…</h4>
<ul class="bullets" style="margin-top:8px;">
<li>Basic PINN training loop (Trainer)</li>
<li>Standard MLP / ResNet architectures</li>
<li>FDM & FEM numerical solvers</li>
<li>10 PDE presets (Burgers, Heat, Poisson…)</li>
<li>Basic SDF geometry primitives</li>
<li>MC Dropout uncertainty quantification</li>
<li>Inverse problem EKI solver</li>
</ul>
</div>
</div>
<div>
<div class="hcard">
<h4>v0.5 Adds…</h4>
<ul class="bullets" style="margin-top:8px;">
<li>Symbolic PDE compiler (SymPy → autograd) <span class="tag-new">NEW</span></li>
<li>5 new architectures: SIREN, ModMLP, HashGrid, MeshGraphNet, AFNO <span class="tag-new">NEW</span></li>
<li>DoMINO domain decomposition <span class="tag-new">NEW</span></li>
<li>Time-marching & causal PINN trainers <span class="tag-new">NEW</span></li>
<li>Multi-GPU DDP training <span class="tag-new">NEW</span></li>
<li>CSG geometry (L-shape, annulus, T-junction) <span class="tag-new">NEW</span></li>
<li>RANS turbulence presets (k-ω SST, SA) <span class="tag-new">NEW</span></li>
<li>CAD → CFD full pipeline <span class="tag-new">NEW</span></li>
<li>Flow visualization (streamlines, isosurfaces) <span class="tag-new">NEW</span></li>
<li>JAX multi-backend support <span class="tag-new">NEW</span></li>
<li>Differentiable dynamics (MPM, SPH, RigidBody) <span class="tag-new">NEW</span></li>
<li>World foundation model adapters <span class="tag-new">NEW</span></li>
</ul>
</div>
</div>
</div>
<div class="section-divider">
<div class="badge-row">
<span class="badge">pinneaple_symbolic</span>
<span class="badge">pinneaple_backend</span>
<span class="badge">pinneaple_dynamics</span>
<span class="badge">pinneaple_worldmodel</span>
<span class="badge">pinneaple_design_opt (expanded)</span>
</div>
<p style="margin-top:8px;">5 new or significantly expanded modules · 6 new training strategies · 4 new solvers</p>
</div>
</div>
</div>
<!-- ============================================================ S3: MOTIVATION ============================================================ -->
<div class="slide" id="s3">
<div class="slide-header"><span class="slide-tag">Introduction</span><div class="divider-line"></div><span class="slide-num">3 / 59</span></div>
<h2>Why Physics-Informed Neural Networks?</h2>
<div class="subtitle" style="margin-bottom:12px;">Bridging the gap between data-driven ML and first-principles physics</div>
<div class="body">
<div class="three-col">
<div class="card">
<div style="font-size:28px;margin-bottom:8px;">⚛</div>
<h4>Physics Constraints</h4>
<p>Encode governing PDEs (Navier-Stokes, Maxwell, Elasticity) directly in the loss function. The network is forced to respect physical laws, enabling extrapolation beyond training data.</p>
</div>
<div class="card">
<div style="font-size:28px;margin-bottom:8px;">📊</div>
<h4>Data Efficiency</h4>
<p>Physical priors dramatically reduce data requirements. PINNs can solve forward/inverse problems with sparse or noisy observations where classical methods fail.</p>
</div>
<div class="card">
<div style="font-size:28px;margin-bottom:8px;">∂</div>
<h4>Differentiability</h4>
<p>Automatic differentiation provides exact derivatives at any point. Enables gradient-based design optimization, sensitivity analysis, and uncertainty propagation.</p>
</div>
</div>
<div class="two-col">
<div class="card">
<h4>Classical Solvers (FEM / FDM)</h4>
<ul class="bullets">
<li>Require mesh generation (expensive for complex 3D)</li>
<li>Fixed resolution — refining is costly</li>
<li>Inverse problems require adjoint derivation</li>
<li>Not differentiable w.r.t. geometry or BCs</li>
<li>Parallelism limited by mesh decomposition</li>
</ul>
</div>
<div class="hcard">
<h4>PINNs (PINNeAPPle)</h4>
<ul class="bullets">
<li>Mesh-free — geometry via SDF or CSG</li>
<li>Adaptive collocation, resolution-free inference</li>
<li>Inverse problems solved jointly with forward</li>
<li>Fully differentiable w.r.t. all inputs/params</li>
<li>GPU/multi-GPU / JAX / distributed training</li>
</ul>
</div>
</div>
<div class="card">
<h4>Engineering Use Cases</h4>
<div class="badge-row">
<span class="badge">Aerodynamics (NACA, turbomachinery)</span>
<span class="badge orange">Heat Transfer</span>
<span class="badge purple">Structural Mechanics</span>
<span class="badge green">Electromagnetics</span>
<span class="badge red">Fluid-Structure Interaction</span>
<span class="badge">Turbulence Modeling</span>
<span class="badge orange">Inverse Material ID</span>
<span class="badge purple">Shape Optimization</span>
</div>
</div>
</div>
</div>
<!-- ============================================================ S4: MODULE MAP ============================================================ -->
<div class="slide" id="s4">
<div class="slide-header"><span class="slide-tag">Introduction</span><div class="divider-line"></div><span class="slide-num">4 / 59</span></div>
<h2>Complete Module Map — All 17 Modules</h2>
<div class="body">
<div class="module-grid">
<div class="module-card"><div class="mname">pinneaple_environment</div><div class="mdesc">PDE specs & 20+ presets</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span></div></div>
<div class="module-card"><div class="mname">pinneaple_models</div><div class="mdesc">Neural architectures registry</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span></div></div>
<div class="module-card"><div class="mname">pinneaple_data</div><div class="mdesc">Collocation & active learning</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span></div></div>
<div class="module-card"><div class="mname">pinneaple_geom</div><div class="mdesc">SDF geometry & CSG ops</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span></div></div>
<div class="module-card"><div class="mname">pinneaple_pinn</div><div class="mdesc">Physics loss compiler</div><div style="margin-top:6px;"><span class="level-badge level-research">Research</span></div></div>
<div class="module-card"><div class="mname">pinneaple_train</div><div class="mdesc">Training infrastructure</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span></div></div>
<div class="module-card"><div class="mname">pinneaple_solvers</div><div class="mdesc">FDM/FEM/FVM/SPH/OpenFOAM</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span></div></div>
<div class="module-card"><div class="mname">pinneaple_inference</div><div class="mdesc">Grid inference & viz</div><div style="margin-top:6px;"><span class="level-badge level-research">Research</span></div></div>
<div class="module-card"><div class="mname">pinneaple_uq</div><div class="mdesc">Uncertainty quantification</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span></div></div>
<div class="module-card"><div class="mname">pinneaple_inverse</div><div class="mdesc">Inverse problems & EKI</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span></div></div>
<div class="module-card"><div class="mname">pinneaple_design_opt</div><div class="mdesc">Multi-obj design opt</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span></div></div>
<div class="module-card"><div class="mname">pinneaple_symbolic</div><div class="mdesc">SymPy → autograd compiler</div><div style="margin-top:6px;"><span class="level-badge level-research">Research</span> <span class="tag-new">NEW</span></div></div>
<div class="module-card"><div class="mname">pinneaple_backend</div><div class="mdesc">PyTorch / JAX multi-backend</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span> <span class="tag-new">NEW</span></div></div>
<div class="module-card"><div class="mname">pinneaple_dynamics</div><div class="mdesc">Differentiable dynamics</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span> <span class="tag-new">NEW</span></div></div>
<div class="module-card"><div class="mname">pinneaple_worldmodel</div><div class="mdesc">World foundation adapters</div><div style="margin-top:6px;"><span class="level-badge level-prototype">Prototype</span> <span class="tag-new">NEW</span></div></div>
<div class="module-card"><div class="mname">pinneaple_arena</div><div class="mdesc">Benchmark suite</div><div style="margin-top:6px;"><span class="level-badge level-production">Production</span></div></div>
<div class="module-card"><div class="mname">pinneaple_cosim</div><div class="mdesc">Graph co-simulation engine</div><div style="margin-top:6px;"><span class="level-badge level-research">Research</span> <span class="tag-new">NEW</span></div></div>
</div>
</div>
</div>
<!-- ============================================================ S5: ARCHITECTURE ============================================================ -->
<div class="slide" id="s5">
<div class="slide-header"><span class="slide-tag">Introduction</span><div class="divider-line"></div><span class="slide-num">5 / 59</span></div>
<h2>Layered Architecture Overview</h2>
<div class="subtitle" style="margin-bottom:14px;">Six clean layers from raw data to deployable solutions</div>
<div class="body">
<div class="two-col" style="gap:28px;">
<div>
<div class="arch-layer"><div class="arch-layer-num" style="background:rgba(88,166,255,.2);color:var(--accent);">1</div><div class="arch-layer-title">Data & Geometry</div><div class="arch-layer-items">pinneaple_data · pinneaple_geom · CSG/SDF · collocation samplers · active learning</div></div>
<div class="arch-layer"><div class="arch-layer-num" style="background:rgba(210,168,255,.2);color:var(--accent4);">2</div><div class="arch-layer-title">Physics / PDE</div><div class="arch-layer-items">pinneaple_environment · pinneaple_symbolic · ProblemSpec · 20+ presets · SymPy compiler</div></div>
<div class="arch-layer"><div class="arch-layer-num" style="background:rgba(63,185,80,.2);color:var(--accent2);">3</div><div class="arch-layer-title">Neural Models</div><div class="arch-layer-items">pinneaple_models · MLP · SIREN · ModifiedMLP · HashGridMLP · MeshGraphNet · AFNO</div></div>
<div class="arch-layer"><div class="arch-layer-num" style="background:rgba(255,166,87,.2);color:var(--accent5);">4</div><div class="arch-layer-title">PINN Loss</div><div class="arch-layer-items">pinneaple_pinn · PINNFactory · DoMINO · HardBC · PeriodicBC · residual compiler</div></div>
<div class="arch-layer"><div class="arch-layer-num" style="background:rgba(247,129,102,.2);color:var(--accent3);">5</div><div class="arch-layer-title">Training</div><div class="arch-layer-items">pinneaple_train · Trainer · TwoPhaseTrainer · TimeMarchingTrainer · DDPPINNTrainer · CausalPINNTrainer</div></div>
<div class="arch-layer"><div class="arch-layer-num" style="background:rgba(88,166,255,.15);color:var(--accent);">6</div><div class="arch-layer-title">Deployment</div><div class="arch-layer-items">pinneaple_inference · pinneaple_uq · pinneaple_inverse · pinneaple_design_opt · pinneaple_backend</div></div>
</div>
<div class="card" style="display:flex;flex-direction:column;gap:12px;">
<h4>Cross-Cutting Concerns</h4>
<div class="hcard">
<h4>pinneaple_solvers</h4>
<p style="font-size:12px;color:var(--muted);">FDM · FEM · FVM · SPH · OpenFOAM bridge · FEniCS bridge · CAD→CFD pipeline. Used for data generation, validation, and hybrid PINN+FEM approaches.</p>
</div>
<div class="hcard">
<h4>pinneaple_dynamics</h4>
<p style="font-size:12px;color:var(--muted);">RigidBody · MPMSimulator · SPHParticles. Differentiable physics simulation that can be coupled with PINN for robot learning and real-time simulation.</p>
</div>
<div class="hcard">
<h4>pinneaple_worldmodel</h4>
<p style="font-size:12px;color:var(--muted);">CosmosAdapter · SimToRealAdapter. Foundation model layer for video prediction, sim-to-real transfer, and physics-aware generative modeling.</p>
</div>
<div class="hcard">
<h4>pinneaple_cosim <span class="tag-new" style="font-size:10px;">NEW</span></h4>
<p style="font-size:12px;color:var(--muted);">CoSimGraph · CoSimEngine · CoSimTrainer · PINNeProblemNode. Graph-based differentiable co-simulation for coupling PINNs, surrogates, and time-series models.</p>
</div>
<div class="card" style="background:var(--surface2);">
<h4>Design Principles</h4>
<ul class="bullets">
<li>Composable — mix and match any module</li>
<li>Backend-agnostic — PyTorch or JAX</li>
<li>Symbolic-first — PDEs as math, not code</li>
<li>Production-grade — typed, tested, documented</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S6: ENVIRONMENT ============================================================ -->
<div class="slide" id="s6">
<div class="slide-header"><span class="slide-tag green">Core Modules</span><div class="divider-line"></div><span class="slide-num">6 / 59</span></div>
<h2>pinneaple_environment — PDE Specs & Presets</h2>
<div class="body">
<div class="two-col">
<div>
<pre><span class="kw">import</span> pinneaple <span class="kw">as</span> pp
<span class="cm"># Load a built-in preset in one line</span>
spec = pp.<span class="fn">get_preset</span>(<span class="st">"burgers_1d"</span>)
<span class="cm"># ProblemSpec structure</span>
<span class="kw">print</span>(spec.pde_fn) <span class="cm"># callable residual</span>
<span class="kw">print</span>(spec.domain) <span class="cm"># spatial bounds</span>
<span class="kw">print</span>(spec.bcs) <span class="cm"># boundary conditions</span>
<span class="kw">print</span>(spec.ic) <span class="cm"># initial condition</span>
<span class="kw">print</span>(spec.exact_sol) <span class="cm"># analytic solution</span>
<span class="cm"># Custom problem spec</span>
spec = pp.<span class="cl">ProblemSpec</span>(
pde_fn=<span class="kw">lambda</span> u, x, t: u.diff(t) + u*u.diff(x),
domain={<span class="st">"x"</span>: (-<span class="nu">1</span>,<span class="nu">1</span>), <span class="st">"t"</span>: (<span class="nu">0</span>,<span class="nu">1</span>)},
nu=<span class="nu">0.01</span>/<span class="nu">3.14159</span>
)</pre>
<div class="card" style="margin-top:12px;">
<h4>Key Classes</h4>
<ul class="bullets">
<li><strong>ProblemSpec</strong> — unified PDE description object</li>
<li><strong>get_preset(name)</strong> — load from built-in registry</li>
<li><strong>BoundaryCondition</strong> — Dirichlet, Neumann, Robin</li>
<li><strong>RANSSpec</strong> — turbulence model wrapper</li>
</ul>
</div>
</div>
<div>
<h3>Available Presets (20+)</h3>
<div style="display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px;">
<div class="card"><h4>1D Problems</h4><ul class="bullets"><li>burgers_1d</li><li>advection_1d</li><li>wave_1d</li><li>heat_1d</li></ul></div>
<div class="card"><h4>2D Problems</h4><ul class="bullets"><li>heat_2d</li><li>poisson_2d</li><li>navier_stokes_2d</li><li>lid_driven_cavity</li></ul></div>
<div class="card"><h4>3D Problems</h4><ul class="bullets"><li>laplace_3d</li><li>sphere_heat_3d</li><li>stokes_3d</li></ul></div>
<div class="card"><h4>Specialized</h4><ul class="bullets"><li>k_omega_sst <span class="tag-new">NEW</span></li><li>spalart_allmaras <span class="tag-new">NEW</span></li><li>helmholtz_2d</li><li>elasticity_2d</li></ul></div>
</div>
<div class="hcard">
<h4>v0.5 Additions</h4>
<p style="font-size:13px;color:var(--muted);">RANS turbulence presets (k-ω SST, Spalart-Allmaras), 3D NS preset, Helmholtz high-frequency preset, elasticity 2D preset. 3D RANS in progress for Q3 2026.</p>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S7: MODELS ============================================================ -->
<div class="slide" id="s7">
<div class="slide-header"><span class="slide-tag green">Core Modules</span><div class="divider-line"></div><span class="slide-num">7 / 59</span></div>
<h2>pinneaple_models — Neural Architectures Registry</h2>
<div class="body">
<table>
<tr><th>Model</th><th>Type</th><th>Input → Output</th><th>Use Case</th><th>Status</th></tr>
<tr><td><strong>MLP</strong></td><td>Dense</td><td>(B,d) → (B,k)</td><td>General PDE solving</td><td><span class="level-badge level-production">Production</span></td></tr>
<tr><td><strong>ResNet</strong></td><td>Skip-conn</td><td>(B,d) → (B,k)</td><td>Deep networks, sharp gradients</td><td><span class="level-badge level-production">Production</span></td></tr>
<tr><td><strong>FourierNet</strong></td><td>Fourier embed</td><td>(B,d) → (B,k)</td><td>Periodic / oscillatory fields</td><td><span class="level-badge level-production">Production</span></td></tr>
<tr><td><strong>SIREN</strong></td><td>Sine activation</td><td>(B,d) → (B,k)</td><td>Wave eqs, Helmholtz, high-freq</td><td><span class="level-badge level-production">Production</span> <span class="tag-new">NEW</span></td></tr>
<tr><td><strong>ModifiedMLP</strong></td><td>Fourier + highway</td><td>(B,d) → (B,k)</td><td>Multi-scale, sharp gradients</td><td><span class="level-badge level-production">Production</span> <span class="tag-new">NEW</span></td></tr>
<tr><td><strong>HashGridMLP</strong></td><td>InstantNGP hash</td><td>(B,d) → (B,k)</td><td>3D fields, fastest convergence</td><td><span class="level-badge level-production">Production</span> <span class="tag-new">NEW</span></td></tr>
<tr><td><strong>MeshGraphNet</strong></td><td>GNN</td><td>graph → node feat</td><td>Unstructured FEM meshes</td><td><span class="level-badge level-research">Research</span> <span class="tag-new">NEW</span></td></tr>
<tr><td><strong>AFNO</strong></td><td>Fourier operator</td><td>(B,H,W,C) → same</td><td>Structured grids, climate/weather</td><td><span class="level-badge level-research">Research</span> <span class="tag-new">NEW</span></td></tr>
<tr><td><strong>DeepONet</strong></td><td>Operator network</td><td>func → func</td><td>Parametric PDE families</td><td><span class="level-badge level-production">Production</span></td></tr>
<tr><td><strong>FNO</strong></td><td>Fourier layer</td><td>(B,H,W,C) → same</td><td>Turbulence, Navier-Stokes surrogates</td><td><span class="level-badge level-production">Production</span></td></tr>
</table>
<div class="two-col" style="margin-top:8px;">
<pre style="font-size:12px;"><span class="kw">from</span> pinneaple.models <span class="kw">import</span> ModelRegistry
<span class="cm"># Instantiate any model by name</span>
model = <span class="cl">ModelRegistry</span>.<span class="fn">build</span>(
<span class="st">"SIREN"</span>,
in_features=<span class="nu">2</span>, out_features=<span class="nu">1</span>,
hidden_layers=<span class="nu">4</span>, hidden_dim=<span class="nu">256</span>,
omega_0=<span class="nu">30.0</span>
)</pre>
<div class="hcard">
<h4>Architecture Philosophy</h4>
<ul class="bullets">
<li>All models share a common <strong>nn.Module</strong> interface</li>
<li>ModelRegistry.build(name, **kwargs) for uniform access</li>
<li>Auto-initialization per architecture (SIREN uses special init)</li>
<li>Composable: HashGrid encoder + any MLP decoder</li>
</ul>
</div>
</div>
</div>
</div>
<!-- ============================================================ S8: DATA ============================================================ -->
<div class="slide" id="s8">
<div class="slide-header"><span class="slide-tag green">Core Modules</span><div class="divider-line"></div><span class="slide-num">8 / 59</span></div>
<h2>pinneaple_data — Collocation & Active Learning</h2>
<div class="body">
<div class="two-col">
<div>
<pre><span class="kw">from</span> pinneaple.data <span class="kw">import</span> (
<span class="cl">CollocationSampler</span>, <span class="cl">ResidualBasedAL</span>
)
<span class="cm"># Latin-hypercube interior + boundary samples</span>
sampler = <span class="cl">CollocationSampler</span>(
domain={<span class="st">"x"</span>: (<span class="nu">0</span>,<span class="nu">1</span>), <span class="st">"t"</span>: (<span class="nu">0</span>,<span class="nu">1</span>)},
n_interior=<span class="nu">10_000</span>,
n_boundary=<span class="nu">2_000</span>,
strategy=<span class="st">"lhs"</span> <span class="cm"># or "uniform", "sobol"</span>
)
x_int, x_bc = sampler.<span class="fn">sample</span>()
<span class="cm"># Active learning: refine around high residuals</span>
al = <span class="cl">ResidualBasedAL</span>(
model=model, pde_fn=spec.pde_fn,
n_candidates=<span class="nu">50_000</span>, top_k=<span class="nu">2_000</span>
)
x_new = al.<span class="fn">refine</span>(x_int) <span class="cm"># returns high-error pts</span></pre>
</div>
<div>
<h3>Sampling Strategies</h3>
<div class="card" style="margin-bottom:10px;">
<ul class="bullets">
<li><strong>Uniform random</strong> — baseline Monte Carlo</li>
<li><strong>Latin Hypercube (LHS)</strong> — space-filling, low discrepancy</li>
<li><strong>Sobol sequences</strong> — quasi-random, best coverage</li>
<li><strong>Residual-based AL</strong> — concentrate near PDE violation</li>
<li><strong>Gradient-based AL</strong> — concentrate near high-gradient regions</li>
</ul>
</div>
<div class="hcard">
<h4>Adaptive Refinement Loop</h4>
<div class="flow" style="margin-top:10px;">
<div class="flow-step"><div class="flow-circle">1</div><div class="flow-content"><strong>Initial LHS sample</strong><p>Space-filling baseline</p></div></div>
<div class="flow-step"><div class="flow-circle">2</div><div class="flow-content"><strong>Train PINN</strong><p>Compute residual on collocation pts</p></div></div>
<div class="flow-step"><div class="flow-circle">3</div><div class="flow-content"><strong>Residual-based AL</strong><p>Sample 50k candidates, select top-k</p></div></div>
<div class="flow-step"><div class="flow-circle" style="border-color:var(--accent2);color:var(--accent2);">✓</div><div class="flow-content"><strong>Converged</strong><p>Error below threshold → stop</p></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S9: GEOM ============================================================ -->
<div class="slide" id="s9">
<div class="slide-header"><span class="slide-tag green">Core Modules</span><div class="divider-line"></div><span class="slide-num">9 / 59</span></div>
<h2>pinneaple_geom — Geometry & Domains</h2>
<div class="body">
<div class="two-col">
<div>
<pre><span class="kw">from</span> pinneaple.geom <span class="kw">import</span> (
<span class="cl">Rectangle</span>, <span class="cl">Circle</span>, <span class="cl">CSGDifference</span>,
<span class="fn">lshape</span>, <span class="fn">annulus</span>, <span class="fn">channel_with_hole</span>
)
<span class="cm"># L-shaped domain via factory</span>
domain = <span class="fn">lshape</span>(a=<span class="nu">1.0</span>, b=<span class="nu">0.5</span>)
<span class="cm"># Or build with CSG operators</span>
big = <span class="cl">Rectangle</span>(x=(<span class="nu">0</span>,<span class="nu">1</span>), y=(<span class="nu">0</span>,<span class="nu">1</span>))
notch = <span class="cl">Rectangle</span>(x=(<span class="nu">0.5</span>,<span class="nu">1</span>), y=(<span class="nu">0.5</span>,<span class="nu">1</span>))
domain = big - notch <span class="cm"># CSGDifference</span>
<span class="cm"># Annular domain</span>
ring = <span class="fn">annulus</span>(r_inner=<span class="nu">0.3</span>, r_outer=<span class="nu">1.0</span>)
<span class="cm"># Channel with circular obstacle</span>
flow_domain = <span class="fn">channel_with_hole</span>(
channel=(<span class="nu">4</span>,<span class="nu">1</span>), r_hole=<span class="nu">0.1</span>, cx=<span class="nu">1.0</span>
)
pts = flow_domain.<span class="fn">sample_interior</span>(<span class="nu">20_000</span>)</pre>
</div>
<div>
<h3>SDF Primitives</h3>
<div class="two-col" style="gap:10px;margin-bottom:12px;">
<div class="card"><h4>2D Shapes</h4><ul class="bullets"><li>Rectangle</li><li>Circle / Disk</li><li>Triangle</li><li>Polygon</li><li>L-shape <span class="tag-new">NEW</span></li><li>Annulus <span class="tag-new">NEW</span></li></ul></div>
<div class="card"><h4>3D Shapes</h4><ul class="bullets"><li>Box / Cuboid</li><li>Sphere</li><li>Cylinder</li><li>Cone</li><li>Torus</li></ul></div>
</div>
<div class="hcard">
<h4>CSG Operations <span class="tag-new">NEW v0.5</span></h4>
<ul class="bullets">
<li><strong>A + B</strong> → CSGUnion (smooth min SDF)</li>
<li><strong>A * B</strong> → CSGIntersection (smooth max SDF)</li>
<li><strong>A - B</strong> → CSGDifference (A and not B)</li>
<li>All ops return samplers with correct boundary normals</li>
<li>Factory: lshape, annulus, channel_with_hole, T-junction</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S10: PINN ============================================================ -->
<div class="slide" id="s10">
<div class="slide-header"><span class="slide-tag green">Core Modules</span><div class="divider-line"></div><span class="slide-num">10 / 59</span></div>
<h2>pinneaple_pinn — Physics Loss Compiler</h2>
<div class="body">
<div class="two-col">
<div>
<pre><span class="kw">from</span> pinneaple.pinn <span class="kw">import</span> <span class="cl">PINNFactory</span>, <span class="cl">DoMINO</span>
<span class="cm"># Build PINN loss from spec</span>
factory = <span class="cl">PINNFactory</span>(spec=spec, model=model)
loss_fn = factory.<span class="fn">compile</span>(
weights={<span class="st">"pde"</span>: <span class="nu">1.0</span>, <span class="st">"bc"</span>: <span class="nu">10.0</span>, <span class="st">"ic"</span>: <span class="nu">5.0</span>}
)
<span class="cm"># DoMINO domain decomposition (v0.5)</span>
domino = <span class="cl">DoMINO</span>(
domain=flow_domain,
n_subdomains=<span class="nu">4</span>,
overlap=<span class="nu">0.1</span>
)
subdomains = domino.<span class="fn">partition</span>()
<span class="cm"># Each subdomain gets its own PINN</span>
pinns = [<span class="cl">PINNFactory</span>(spec, model=<span class="cl">MLP</span>(<span class="nu">2</span>,<span class="nu">1</span>))
<span class="kw">for</span> _ <span class="kw">in</span> subdomains]
<span class="cm"># Interface continuity conditions auto-enforced</span>
loss = domino.<span class="fn">coupled_loss</span>(pinns)</pre>
</div>
<div>
<h3>DoMINO Domain Decomposition</h3>
<div class="hcard" style="margin-bottom:12px;">
<h4>How It Works</h4>
<ul class="bullets">
<li>Partitions domain into N overlapping subdomains</li>
<li>Each subdomain trains a separate PINN network</li>
<li>Interface conditions: u₁(x) = u₂(x) at boundaries</li>
<li>Flux continuity: ∇u₁·n = ∇u₂·n enforced as loss term</li>
<li>Enables solving large domains that don't fit in one PINN</li>
</ul>
</div>
<div class="card">
<h4>PINNFactory Features</h4>
<ul class="bullets">
<li>Symbolic compilation of PDE residuals</li>
<li>Auto weight balancing (NTK, GradNorm, ReLoBRaLo)</li>
<li>HardBC & PeriodicBC enforcement</li>
<li>Adaptive loss weighting during training</li>
</ul>
</div>
<div class="card" style="margin-top:10px;">
<h4>Loss Terms</h4>
<ul class="bullets"><li>L_pde — PDE residual at interior pts</li><li>L_bc — boundary condition mismatch</li><li>L_ic — initial condition (time-dep PDEs)</li><li>L_data — optional data fitting term</li></ul>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S11: TRAIN ============================================================ -->
<div class="slide" id="s11">
<div class="slide-header"><span class="slide-tag green">Core Modules</span><div class="divider-line"></div><span class="slide-num">11 / 59</span></div>
<h2>pinneaple_train — Training Infrastructure</h2>
<div class="body">
<div class="two-col">
<div>
<pre><span class="kw">from</span> pinneaple.train <span class="kw">import</span> (
<span class="cl">Trainer</span>, <span class="cl">TwoPhaseTrainer</span>,
<span class="cl">TimeMarchingTrainer</span>, <span class="cm"># NEW</span>
<span class="cl">DDPPINNTrainer</span>, <span class="cm"># NEW</span>
<span class="cl">CausalPINNTrainer</span> <span class="cm"># NEW</span>
)
<span class="cm"># Standard training</span>
trainer = <span class="cl">Trainer</span>(
model=model, loss_fn=loss_fn,
optimizer=<span class="st">"adam"</span>, lr=<span class="nu">1e-3</span>,
max_epochs=<span class="nu">50_000</span>,
scheduler=<span class="st">"cosine"</span>
)
trainer.<span class="fn">fit</span>()
<span class="cm"># Time-marching: sequential mini-windows</span>
tm = <span class="cl">TimeMarchingTrainer</span>(
model=model, spec=spec,
T=<span class="nu">1.0</span>, n_windows=<span class="nu">10</span>,
epochs_per_window=<span class="nu">5_000</span>
)
tm.<span class="fn">fit</span>() <span class="cm"># trains [0,0.1], then [0.1,0.2], ...</span></pre>
</div>
<div>
<h3>Trainer Variants</h3>
<div class="card" style="margin-bottom:10px;">
<h4>Training Strategies</h4>
<table style="margin-top:8px;">
<tr><th>Trainer</th><th>Use Case</th></tr>
<tr><td>Trainer</td><td>Standard Adam/LBFGS PINN training</td></tr>
<tr><td>TwoPhaseTrainer</td><td>Adam warm-up → LBFGS refinement</td></tr>
<tr><td>TimeMarchingTrainer</td><td>Sequential time windows <span class="tag-new">NEW</span></td></tr>
<tr><td>DDPPINNTrainer</td><td>Multi-GPU distributed <span class="tag-new">NEW</span></td></tr>
<tr><td>CausalPINNTrainer</td><td>Causal temporal weighting <span class="tag-new">NEW</span></td></tr>
</table>
</div>
<div class="hcard">
<h4>Loss Balancers</h4>
<ul class="bullets">
<li><strong>NTKBalancer</strong> — Neural Tangent Kernel eigenvalue ratio</li>
<li><strong>GradNormBalancer</strong> — gradient magnitude normalization</li>
<li><strong>ReLoBRaLo</strong> — relative loss balancing (Bischof et al.)</li>
<li><strong>Learnable weights</strong> — train α_pde, α_bc jointly</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S12: SOLVERS ============================================================ -->
<div class="slide" id="s12">
<div class="slide-header"><span class="slide-tag green">Core Modules</span><div class="divider-line"></div><span class="slide-num">12 / 59</span></div>
<h2>pinneaple_solvers — Numerical Solvers</h2>
<div class="body">
<div class="two-col">
<div>
<pre><span class="kw">from</span> pinneaple.solvers <span class="kw">import</span> (
<span class="cl">CADToCFDPipeline</span>, <span class="cm"># NEW</span>
<span class="cl">NSFlowSolver</span>, <span class="cm"># NEW</span>
<span class="cl">CFDMesh</span>, <span class="cm"># NEW</span>
<span class="cl">FEMSolver</span>, <span class="cl">FDMSolver</span>
)
<span class="cm"># Full CAD → CFD → PINN data pipeline</span>
pipeline = <span class="cl">CADToCFDPipeline</span>()
pipeline.<span class="fn">load_geometry</span>(<span class="st">"naca0012.step"</span>)
pipeline.<span class="fn">mesh</span>(max_size=<span class="nu">0.05</span>, refinement_box=bbox)
pipeline.<span class="fn">set_bcs</span>(
inlet=<span class="st">"velocity"</span>, outlet=<span class="st">"pressure"</span>,
wall=<span class="st">"no_slip"</span>
)
sol = pipeline.<span class="fn">solve</span>(Re=<span class="nu">1000</span>)
pinn_data = pipeline.<span class="fn">to_pinn_training_data</span>(
n_interior=<span class="nu">50_000</span>
)</pre>
</div>
<div>
<h3>Solver Ecosystem</h3>
<div class="module-grid" style="grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px;">
<div class="card"><h4>Classical FDM/FEM/FVM</h4><ul class="bullets"><li>FDMSolver — structured grids</li><li>FEMSolver — P1/P2 elements</li><li>FVMSolver — finite volumes</li></ul></div>
<div class="card"><h4>Particle Methods</h4><ul class="bullets"><li>SPHSolver — smoothed particles</li><li>MPMSolver — material point</li></ul></div>
<div class="card"><h4>External Bridges</h4><ul class="bullets"><li>OpenFOAMBridge — run cases</li><li>FEniCSBridge — FEniCS scripts</li></ul></div>
<div class="card"><h4>CAD Pipeline <span class="tag-new">NEW</span></h4><ul class="bullets"><li>CADToCFDPipeline</li><li>NSFlowSolver (Stokes/NS)</li><li>CFDMesh (.stl/.step/CSG)</li></ul></div>
</div>
<div class="hcard">
<h4>CFDMesh Sources</h4>
<ul class="bullets">
<li>CFDMesh.from_stl("geom.stl") — import surface mesh</li>
<li>CFDMesh.from_step("geom.step") — import CAD via gmsh</li>
<li>CFDMesh.from_csg(domain) — from pinneaple_geom CSG</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S13: INFERENCE ============================================================ -->
<div class="slide" id="s13">
<div class="slide-header"><span class="slide-tag green">Core Modules</span><div class="divider-line"></div><span class="slide-num">13 / 59</span></div>
<h2>pinneaple_inference — Visualization & Error Analysis</h2>
<div class="body">
<div class="two-col">
<div>
<pre><span class="kw">from</span> pinneaple.inference <span class="kw">import</span> (
<span class="cl">GridInference</span>, <span class="cl">FlowVisualizer</span>
)
<span class="cm"># Dense grid evaluation</span>
inf = <span class="cl">GridInference</span>(model, domain=spec.domain)
u_pred = inf.<span class="fn">evaluate</span>(nx=<span class="nu">512</span>, ny=<span class="nu">512</span>)
error = inf.<span class="fn">l2_error</span>(spec.exact_sol)
<span class="cm"># Flow visualization (v0.5)</span>
viz = <span class="cl">FlowVisualizer</span>(model, domain=flow_domain)
<span class="cm"># 2D streamlines via RK4 integration</span>
viz.<span class="fn">plot_streamlines_2d_model</span>(
nx=<span class="nu">64</span>, ny=<span class="nu">64</span>, density=<span class="nu">1.5</span>
)
<span class="cm"># 3D isosurface (marching cubes)</span>
viz.<span class="fn">plot_isosurface_3d</span>(
field=<span class="st">"pressure"</span>, level=<span class="nu">0.5</span>
)
<span class="cm"># Volume slice</span>
viz.<span class="fn">plot_volume_slice</span>(axis=<span class="st">"z"</span>, z=<span class="nu">0.5</span>)</pre>
</div>
<div>
<h3>Visualization Capabilities</h3>
<div class="card" style="margin-bottom:10px;">
<h4>Existing (v0.4)</h4>
<ul class="bullets">
<li>GridInference — dense evaluation on structured grid</li>
<li>ErrorMap — pointwise L2/Linf error fields</li>
<li>ResidualMap — PDE residual visualization</li>
<li>plot_field_2d — matplotlib heatmaps</li>
</ul>
</div>
<div class="hcard">
<h4>New in v0.5 — FlowVisualizer</h4>
<ul class="bullets">
<li><strong>compute_streamlines</strong> — RK4 integration of velocity field</li>
<li><strong>compute_isosurface</strong> — marching cubes on 3D fields</li>
<li><strong>plot_streamlines_2d_model</strong> — publication-ready 2D streamlines</li>
<li><strong>plot_isosurface_3d</strong> — interactive 3D isosurface (plotly)</li>
<li><strong>plot_volume_slice</strong> — arbitrary plane intersection</li>
<li>Exports to VTK, HDF5, or numpy arrays</li>
</ul>
</div>
<div class="card" style="margin-top:10px;">
<p style="font-size:12px;color:var(--muted);">Note: 3D grid inference is currently thin (research). Full 3D inference optimization planned for Q3 2026.</p>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S14: UQ ============================================================ -->
<div class="slide" id="s14">
<div class="slide-header"><span class="slide-tag green">Core Modules</span><div class="divider-line"></div><span class="slide-num">14 / 59</span></div>
<h2>pinneaple_uq — Uncertainty Quantification</h2>
<div class="body">
<div class="two-col">
<div>
<pre><span class="kw">from</span> pinneaple.uq <span class="kw">import</span> (
<span class="cl">MCDropout</span>, <span class="cl">DeepEnsemble</span>,
<span class="cl">ConformalPrediction</span>
)
<span class="cm"># MC Dropout — fast epistemic UQ</span>
uq = <span class="cl">MCDropout</span>(model, p_drop=<span class="nu">0.1</span>, n_samples=<span class="nu">100</span>)
mu, sigma = uq.<span class="fn">predict</span>(x_test)
<span class="cm"># Deep Ensemble — most reliable</span>
ensemble = <span class="cl">DeepEnsemble</span>(
models=[<span class="cl">MLP</span>(<span class="nu">2</span>,<span class="nu">1</span>) <span class="kw">for</span> _ <span class="kw">in</span> <span class="fn">range</span>(<span class="nu">5</span>)],
spec=spec
)
ensemble.<span class="fn">fit</span>(epochs=<span class="nu">20_000</span>)
mu, sigma = ensemble.<span class="fn">predict</span>(x_test)
<span class="cm"># Conformal Prediction — distribution-free</span>
cp = <span class="cl">ConformalPrediction</span>(
model=model,
calibration_data=x_cal,
alpha=<span class="nu">0.1</span> <span class="cm"># 90% coverage guarantee</span>
)
lo, hi = cp.<span class="fn">predict_interval</span>(x_test)</pre>
</div>
<div>
<h3>UQ Methods Comparison</h3>
<table>
<tr><th>Method</th><th>Cost</th><th>Coverage</th><th>Best For</th></tr>
<tr><td>MC Dropout</td><td>Low</td><td>Approximate</td><td>Fast exploration</td></tr>
<tr><td>Deep Ensemble</td><td>High (5×)</td><td>Good</td><td>Production use</td></tr>
<tr><td>Conformal</td><td>Low (calib)</td><td>Guaranteed</td><td>Safety-critical</td></tr>
<tr><td>SWAG</td><td>Medium</td><td>Good</td><td>Large models</td></tr>
</table>
<div class="hcard" style="margin-top:12px;">
<h4>When to Use UQ in PINNs</h4>
<ul class="bullets">
<li>Inverse problems: quantify parameter uncertainty</li>
<li>Sparse data: model epistemic uncertainty honestly</li>
<li>Design optimization: robust optimization under uncertainty</li>
<li>Safety-critical applications: guaranteed coverage intervals</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S15: INVERSE + DESIGN OPT ============================================================ -->
<div class="slide" id="s15">
<div class="slide-header"><span class="slide-tag green">Core Modules</span><div class="divider-line"></div><span class="slide-num">15 / 59</span></div>
<h2>pinneaple_inverse & pinneaple_design_opt</h2>
<div class="body">
<div class="two-col">
<div>
<div class="card" style="margin-bottom:12px;">
<h4>pinneaple_inverse — Inverse Problems</h4>
<ul class="bullets">
<li>Ensemble Kalman Inversion (EKI) — ensemble-based parameter ID</li>
<li>Adjoint sensitivity analysis — exact gradients w.r.t. parameters</li>
<li>Joint training — forward PINN + inverse simultaneously</li>
<li>Multi-observation fusion — heterogeneous sensor data</li>
</ul>
</div>
<pre style="font-size:11.5px;"><span class="kw">from</span> pinneaple.inverse <span class="kw">import</span> <span class="cl">EKISolver</span>
eki = <span class="cl">EKISolver</span>(
pinn=pinn, observations=obs_data,
params_prior={<span class="st">"nu"</span>: (<span class="nu">0</span>, <span class="nu">0.1</span>)},
n_ensemble=<span class="nu">50</span>
)
nu_est = eki.<span class="fn">solve</span>(max_iter=<span class="nu">100</span>)</pre>
</div>
<div>
<div class="hcard" style="margin-bottom:12px;">
<h4>pinneaple_design_opt — New in v0.5</h4>
<ul class="bullets">
<li><strong>ContinuousAdjointSolver</strong> — dJ/dshape via continuous adjoint + autograd <span class="tag-new">NEW</span></li>
<li><strong>ShapeParametrization</strong> — FFD control points for shape deformation <span class="tag-new">NEW</span></li>
<li><strong>DragAdjointObjective</strong> — aerodynamic drag sensitivity <span class="tag-new">NEW</span></li>
<li>Multi-objective Pareto front (NSGA-III)</li>
<li>Constraint-aware optimization (penalty, augmented Lagrangian)</li>
</ul>
</div>
<pre style="font-size:11.5px;"><span class="kw">from</span> pinneaple.design_opt <span class="kw">import</span> (
<span class="cl">ContinuousAdjointSolver</span>, <span class="cl">ShapeParametrization</span>
)
<span class="cm"># NACA airfoil shape optimization</span>
shape = <span class="cl">ShapeParametrization</span>.<span class="fn">naca</span>(<span class="st">"0012"</span>)
adj = <span class="cl">ContinuousAdjointSolver</span>(pinn, shape)
dJ_ds = adj.<span class="fn">sensitivity</span>() <span class="cm"># exact gradient</span>
shape.<span class="fn">update</span>(step=-<span class="nu">0.01</span>*dJ_ds)</pre>
</div>
</div>
</div>
</div>
<!-- ============================================================ S16: SYMBOLIC PDE ============================================================ -->
<div class="slide" id="s16">
<div class="slide-header"><span class="slide-tag orange">v0.5 Features</span><div class="divider-line"></div><span class="slide-num">16 / 59</span></div>
<h2>Feature 1 — Symbolic PDE Compiler</h2>
<div class="subtitle" style="margin-bottom:10px;">Write PDEs as mathematics. PINNeAPPle compiles them to autograd automatically.</div>
<div class="body">
<div class="two-col">
<div>
<h3>Before (v0.4 — hardcoded)</h3>
<pre style="font-size:12px;"><span class="cm"># Manual if-elif chains for each PDE</span>
<span class="kw">def</span> <span class="fn">poisson_residual</span>(model, x):
u = model(x)
u_x = torch.<span class="fn">autograd</span>.<span class="fn">grad</span>(
u, x, ..., create_graph=<span class="kw">True</span>)[<span class="nu">0</span>][:,<span class="nu">0</span>]
u_xx = torch.<span class="fn">autograd</span>.<span class="fn">grad</span>(
u_x, x, ...)[<span class="nu">0</span>][:,<span class="nu">0</span>]
u_y = torch.<span class="fn">autograd</span>.<span class="fn">grad</span>(
u, x, ...)[<span class="nu">0</span>][:,<span class="nu">1</span>]
u_yy = torch.<span class="fn">autograd</span>.<span class="fn">grad</span>(
u_y, x, ...)[<span class="nu">0</span>][:,<span class="nu">1</span>]
f = <span class="nu">2</span>*pi**<span class="nu">2</span>*sin(pi*x[:,<span class="nu">0</span>])*sin(pi*x[:,<span class="nu">1</span>])
<span class="kw">return</span> u_xx + u_yy + f</pre>
<h3 style="margin-top:12px;">After (v0.5 — symbolic)</h3>
<pre style="font-size:12px;"><span class="kw">import</span> sympy <span class="kw">as</span> sp
<span class="kw">import</span> pinneaple <span class="kw">as</span> pp
x, y = sp.<span class="fn">symbols</span>(<span class="st">'x y'</span>)
u = sp.<span class="cl">Function</span>(<span class="st">'u'</span>)
<span class="cm"># Poisson: ∇²u + 2π²sin(πx)sin(πy) = 0</span>
pde = pp.<span class="cl">SymbolicPDE</span>(
u(x,y).diff(x,<span class="nu">2</span>) + u(x,y).diff(y,<span class="nu">2</span>)
+ <span class="nu">2</span>*sp.pi**<span class="nu">2</span>*sp.sin(sp.pi*x)*sp.sin(sp.pi*y),
coord_syms=[x, y], field_syms=[u(x,y)]
)
<span class="cm"># pde.to_autograd() → callable residual function</span>
residual_fn = pde.<span class="fn">to_autograd</span>()</pre>
</div>
<div>
<div class="hcard" style="margin-bottom:12px;">
<h4>How It Works</h4>
<div class="flow">
<div class="flow-step"><div class="flow-circle">1</div><div class="flow-content"><strong>SymPy Expression</strong><p>User writes PDE in clean math notation</p></div></div>
<div class="flow-step"><div class="flow-circle">2</div><div class="flow-content"><strong>Tree Walking</strong><p>SymPy AST → operation sequence</p></div></div>
<div class="flow-step"><div class="flow-circle">3</div><div class="flow-content"><strong>Autograd Chains</strong><p>Derivatives → torch.autograd.grad calls</p></div></div>
<div class="flow-step"><div class="flow-circle" style="border-color:var(--accent2);color:var(--accent2);">✓</div><div class="flow-content"><strong>Callable Residual</strong><p>Standard Python function usable in any trainer</p></div></div>
</div>
</div>
<div class="card">
<h4>Supported Operations</h4>
<ul class="bullets">
<li>Arbitrary partial derivatives up to 4th order</li>
<li>Nonlinear terms: u·∂u/∂x, u², e^u, etc.</li>
<li>Multi-field PDEs: (u,v,p) for NS</li>
<li>Parameter symbols: ν, λ, μ as SymPy symbols</li>
<li>Output: torch or JAX callable (backend-aware)</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S17: HARD BC + PERIODIC BC ============================================================ -->
<div class="slide" id="s17">
<div class="slide-header"><span class="slide-tag orange">v0.5 Features</span><div class="divider-line"></div><span class="slide-num">17 / 59</span></div>
<h2>Features 4 & 5 — Hard BC & Periodic BC Enforcement</h2>
<div class="body">
<div class="two-col">
<div>
<h3>Hard Boundary Conditions</h3>
<div class="card" style="margin-bottom:10px;">
<h4>Ansatz: φ(x)·net(x) + g_bc(x)</h4>
<p style="font-size:13px;color:var(--muted);margin-top:6px;">The distance function φ(x) vanishes at boundaries, so the prediction automatically satisfies the BC — no BC loss term needed. Eliminates BC weight tuning.</p>
</div>
<pre style="font-size:12px;"><span class="kw">from</span> pinneaple.pinn <span class="kw">import</span> <span class="cl">HardBC</span>
<span class="cm"># φ(x) = x(1-x) for [0,1] Dirichlet</span>
hard = <span class="cl">HardBC</span>(
phi=<span class="kw">lambda</span> x: x*(<span class="nu">1</span>-x),
g_bc=<span class="kw">lambda</span> x: torch.<span class="fn">zeros_like</span>(x[:,<span class="nu">0</span>])
)
model_with_bc = hard.<span class="fn">wrap</span>(base_model)
<span class="cm"># Now model_with_bc(x) always satisfies u=0 at x=0,1</span></pre>
</div>
<div>
<h3>Periodic Boundary Conditions</h3>
<div class="card" style="margin-bottom:10px;">
<h4>Transform: x → (cos(2πx/L), sin(2πx/L))</h4>
<p style="font-size:13px;color:var(--muted);margin-top:6px;">Coordinate transformation ensures network output is automatically periodic with period L. No periodicity loss term required. Works for multi-dimensional periodic domains.</p>
</div>
<pre style="font-size:12px;"><span class="kw">from</span> pinneaple.pinn <span class="kw">import</span> <span class="cl">PeriodicBC</span>
<span class="cm"># Periodic in x with period L=2π</span>
pbc = <span class="cl">PeriodicBC</span>(
periodic_dims=[<span class="nu">0</span>], <span class="cm"># x-axis</span>
periods=[<span class="nu">2</span>*np.pi]
)
model_periodic = pbc.<span class="fn">wrap</span>(base_model)
<span class="cm"># model_periodic(x) == model_periodic(x + 2π)</span></pre>
<div class="hcard" style="margin-top:10px;">
<h4>Benefits</h4>
<ul class="bullets">
<li>Hard BCs: eliminates weight tuning for BCs</li>
<li>Periodic BCs: exact periodicity, not approximate</li>
<li>Faster convergence — network focuses on interior physics</li>
<li>Better conditioning of the optimization problem</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================ S18: SIREN ============================================================ -->
<div class="slide" id="s18">
<div class="slide-header"><span class="slide-tag orange">v0.5 Features</span><div class="divider-line"></div><span class="slide-num">18 / 59</span></div>
<h2>Feature 2 — SIREN: Sinusoidal Representation Networks</h2>
<div class="body">
<div class="two-col">
<div>
<pre><span class="kw">from</span> pinneaple.models <span class="kw">import</span> <span class="cl">SIREN</span>
model = <span class="cl">SIREN</span>(
in_features=<span class="nu">2</span>, <span class="cm"># (x, t)</span>
out_features=<span class="nu">1</span>, <span class="cm"># u(x,t)</span>
hidden_layers=<span class="nu">4</span>,