Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
494 lines (465 loc) · 46.4 KB
/
Copy pathindex.html
File metadata and controls
494 lines (465 loc) · 46.4 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
<!doctype html>
<!--
* ════════════════════════════════════════════════════════════════
* Tri's Lab by FEAScript
* Finite Element Simulation in JavaScript
* https://lab.feascript.com
* MIT License © 2026 FEAScript (writing and art: CC BY 4.0, see README)
* ════════════════════════════════════════════════════════════════
-->
<html lang="en" class="site">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Tri's Lab by FEAScript</title>
<link rel="canonical" href="https://lab.feascript.com/" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Tri's Lab by FEAScript" />
<meta property="og:title" content="Tri's Lab by FEAScript" />
<meta property="og:description" content="Play and build with real finite element simulations in your browser: a pixel-art game and a block editor, guided by Tri, the FEAScript robot." />
<meta property="og:url" content="https://lab.feascript.com/" />
<meta property="og:image" content="https://lab.feascript.com/assets/critical-mesh.png" />
<meta name="twitter:card" content="summary_large_image" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Tri's Lab by FEAScript",
"alternateName": ["Tri's Lab", "Tris Lab", "FEAScript Tri's Lab"],
"url": "https://lab.feascript.com/",
"description": "Play and build with real finite element simulations in your browser: a pixel-art game and a block editor, guided by Tri, the FEAScript robot.",
"isAccessibleForFree": true,
"publisher": { "@type": "Organization", "name": "FEAScript", "url": "https://feascript.com" }
}
</script>
<link rel="icon" type="image/svg+xml" href="assets/tris-lab-icon.svg?v=pixel" />
<meta
name="description"
content="Tri's Lab by FEAScript: a pixel-art game and a block editor that let anyone play with real finite element simulations in the browser, and learn the equations behind them."
/>
<meta
name="keywords"
content="Tri's Lab, Tri's Lab by FEAScript, finite elements, fem, education, game, blocks, no-code, heat conduction, kids, javascript, FEAScript"
/>
<script>
// Apply stored theme before first paint and enable JS-only styles
(function () {
var d = document.documentElement;
d.className += " js";
try {
var t = localStorage.getItem("feascript-theme");
if (t === "light" || t === "dark") d.setAttribute("data-theme", t);
} catch (e) {}
})();
</script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&family=Roboto:wght@300;400;500;700&family=Jersey+10&display=swap"
rel="stylesheet"
/>
<link href="https://feascript.com/feascript-website.css" rel="stylesheet" type="text/css" />
<link href="tris-lab.css" rel="stylesheet" type="text/css" />
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1JPK0KLEC9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-1JPK0KLEC9");
</script>
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
<header class="site-nav">
<div class="nav-inner">
<div class="nav-group">
<a class="nav-brand" href="https://feascript.com/">
<svg viewBox="14 79 242 242" aria-hidden="true">
<polygon points="17,254 190,82 253,317" fill="#d4aa00" />
</svg>
<span
>FEAScrip<svg class="wm-t" viewBox="0 0 30 115" fill="none" stroke="currentColor">
<path stroke-width="5.9" d="M15 0V100A11.4 11.4 0 0 0 26.4 111.4H29.5" />
<path stroke-width="5.4" d="M0.4 16.9H29.6" /></svg
></span>
</a>
<nav class="nav-links label" aria-label="Main">
<a class="nav-link" href="#tri"><span>Meet Tri</span></a>
<a class="nav-link" href="#play"><span>Play and build</span></a>
<a class="nav-link" href="#learn"><span>What you learn</span></a>
<a class="nav-link nav-link-out" href="https://feascript.com/"><span>FEAScript</span></a>
</nav>
</div>
<div class="nav-group">
<a
class="nav-icon nav-github"
href="https://github.com/FEAScript/FEAScript-core"
aria-label="FEAScript on GitHub"
title="FEAScript on GitHub"
>
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
/>
</svg>
<span id="github-stars" class="label"></span>
</a>
<button id="theme-toggle" class="nav-icon theme-toggle" type="button" aria-label="Toggle colour theme">
<svg
class="icon-moon"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
>
<path
d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"
/>
</svg>
<svg
class="icon-sun"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
>
<circle cx="12" cy="12" r="4" />
<path
d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"
/>
</svg>
</button>
<a class="nav-cta" href="#play">Start playing</a>
<button
id="nav-burger"
class="nav-icon nav-burger"
type="button"
aria-label="Open menu"
aria-expanded="false"
aria-controls="mobile-nav"
>
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
aria-hidden="true"
>
<path d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
</div>
</div>
<nav id="mobile-nav" class="mobile-nav" aria-label="Mobile">
<a href="#tri">Meet Tri</a>
<a href="#play">Play and build</a>
<a href="#learn">What you learn</a>
<a class="nav-link-out" href="https://feascript.com/">FEAScript</a>
</nav>
</header>
<main id="main">
<!-- ───────────── HERO ───────────── -->
<section class="hero lab-hero">
<div class="hero-inner">
<canvas id="mesh-canvas" aria-hidden="true"></canvas>
<div class="hero-content">
<div class="wordmark-wrap">
<div class="wordmark lab-wordmark" role="img" aria-label="Tri's Lab by FEAScript">
<!-- tri:start (generated from blocks/js/pixels.js) -->
<svg class="lab-tri" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 -1 36 36" shape-rendering="crispEdges">
<g class="tri-feet" fill="#1d1d1d"><rect x="11" y="27" width="1" height="3"/><rect x="10" y="30" width="3" height="1"/><rect x="25" y="30" width="1" height="3"/><rect x="24" y="33" width="3" height="1"/></g>
<g class="tri-up">
<rect x="24" y="3" width="1" height="1" fill="#1d1d1d"/><rect x="23" y="4" width="2" height="1" fill="#1d1d1d"/><rect x="22" y="5" width="1" height="1" fill="#1d1d1d"/><rect x="23" y="5" width="1" height="1" fill="#f6d54a"/><rect x="24" y="5" width="1" height="1" fill="#1d1d1d"/><rect x="21" y="6" width="1" height="1" fill="#1d1d1d"/><rect x="22" y="6" width="1" height="1" fill="#f6d54a"/><rect x="23" y="6" width="1" height="1" fill="#d4aa00"/><rect x="24" y="6" width="1" height="1" fill="#1d1d1d"/><rect x="20" y="7" width="1" height="1" fill="#1d1d1d"/><rect x="21" y="7" width="1" height="1" fill="#d4aa00"/><rect x="22" y="7" width="1" height="1" fill="#f6d54a"/><rect x="23" y="7" width="2" height="1" fill="#d4aa00"/><rect x="25" y="7" width="1" height="1" fill="#1d1d1d"/><rect x="19" y="8" width="1" height="1" fill="#1d1d1d"/><rect x="20" y="8" width="2" height="1" fill="#d4aa00"/><rect x="22" y="8" width="1" height="1" fill="#f6d54a"/><rect x="23" y="8" width="2" height="1" fill="#d4aa00"/><rect x="25" y="8" width="1" height="1" fill="#1d1d1d"/><rect x="18" y="9" width="1" height="1" fill="#1d1d1d"/><rect x="19" y="9" width="6" height="1" fill="#f6d54a"/><rect x="25" y="9" width="1" height="1" fill="#1d1d1d"/><rect x="17" y="10" width="1" height="1" fill="#1d1d1d"/><rect x="18" y="10" width="1" height="1" fill="#f6d54a"/><rect x="19" y="10" width="3" height="1" fill="#d4aa00"/><rect x="22" y="10" width="1" height="1" fill="#f6d54a"/><rect x="23" y="10" width="3" height="1" fill="#d4aa00"/><rect x="26" y="10" width="1" height="1" fill="#1d1d1d"/><rect x="16" y="11" width="1" height="1" fill="#1d1d1d"/><rect x="17" y="11" width="1" height="1" fill="#d4aa00"/><rect x="18" y="11" width="1" height="1" fill="#f6d54a"/><rect x="19" y="11" width="3" height="1" fill="#d4aa00"/><rect x="22" y="11" width="1" height="1" fill="#f6d54a"/><rect x="23" y="11" width="3" height="1" fill="#d4aa00"/><rect x="26" y="11" width="1" height="1" fill="#1d1d1d"/><rect x="15" y="12" width="1" height="1" fill="#1d1d1d"/><rect x="16" y="12" width="2" height="1" fill="#d4aa00"/><rect x="18" y="12" width="1" height="1" fill="#f6d54a"/><rect x="19" y="12" width="3" height="1" fill="#d4aa00"/><rect x="22" y="12" width="1" height="1" fill="#f6d54a"/><rect x="23" y="12" width="3" height="1" fill="#d4aa00"/><rect x="26" y="12" width="1" height="1" fill="#1d1d1d"/><rect x="14" y="13" width="1" height="1" fill="#1d1d1d"/><rect x="15" y="13" width="11" height="1" fill="#f6d54a"/><rect x="26" y="13" width="1" height="1" fill="#1d1d1d"/><rect x="13" y="14" width="1" height="1" fill="#1d1d1d"/><rect x="14" y="14" width="1" height="1" fill="#f6d54a"/><rect x="15" y="14" width="3" height="1" fill="#d4aa00"/><rect x="18" y="14" width="1" height="1" fill="#f6d54a"/><rect x="19" y="14" width="3" height="1" fill="#d4aa00"/><rect x="22" y="14" width="1" height="1" fill="#f6d54a"/><rect x="23" y="14" width="3" height="1" fill="#d4aa00"/><rect x="26" y="14" width="1" height="1" fill="#f6d54a"/><rect x="27" y="14" width="1" height="1" fill="#1d1d1d"/><rect x="12" y="15" width="1" height="1" fill="#1d1d1d"/><rect x="13" y="15" width="1" height="1" fill="#d4aa00"/><rect x="14" y="15" width="1" height="1" fill="#f6d54a"/><rect x="15" y="15" width="3" height="1" fill="#d4aa00"/><rect x="18" y="15" width="1" height="1" fill="#f6d54a"/><rect x="19" y="15" width="3" height="1" fill="#d4aa00"/><rect x="22" y="15" width="1" height="1" fill="#f6d54a"/><rect x="23" y="15" width="3" height="1" fill="#d4aa00"/><rect x="26" y="15" width="1" height="1" fill="#f6d54a"/><rect x="27" y="15" width="1" height="1" fill="#1d1d1d"/><rect x="11" y="16" width="1" height="1" fill="#1d1d1d"/><rect x="12" y="16" width="2" height="1" fill="#d4aa00"/><rect x="14" y="16" width="1" height="1" fill="#f6d54a"/><rect x="15" y="16" width="3" height="1" fill="#d4aa00"/><rect x="18" y="16" width="1" height="1" fill="#f6d54a"/><rect x="19" y="16" width="3" height="1" fill="#d4aa00"/><rect x="22" y="16" width="1" height="1" fill="#f6d54a"/><rect x="23" y="16" width="3" height="1" fill="#d4aa00"/><rect x="26" y="16" width="1" height="1" fill="#f6d54a"/><rect x="27" y="16" width="1" height="1" fill="#1d1d1d"/><rect x="10" y="17" width="1" height="1" fill="#1d1d1d"/><rect x="11" y="17" width="16" height="1" fill="#f6d54a"/><rect x="27" y="17" width="1" height="1" fill="#1d1d1d"/><rect x="9" y="18" width="1" height="1" fill="#1d1d1d"/><rect x="10" y="18" width="1" height="1" fill="#f6d54a"/><rect x="11" y="18" width="3" height="1" fill="#d4aa00"/><rect x="14" y="18" width="1" height="1" fill="#f6d54a"/><rect x="15" y="18" width="3" height="1" fill="#d4aa00"/><rect x="18" y="18" width="1" height="1" fill="#f6d54a"/><rect x="19" y="18" width="3" height="1" fill="#d4aa00"/><rect x="22" y="18" width="1" height="1" fill="#f6d54a"/><rect x="23" y="18" width="3" height="1" fill="#d4aa00"/><rect x="26" y="18" width="1" height="1" fill="#f6d54a"/><rect x="27" y="18" width="1" height="1" fill="#d4aa00"/><rect x="28" y="18" width="1" height="1" fill="#1d1d1d"/><rect x="8" y="19" width="1" height="1" fill="#1d1d1d"/><rect x="9" y="19" width="1" height="1" fill="#d4aa00"/><rect x="10" y="19" width="1" height="1" fill="#f6d54a"/><rect x="11" y="19" width="3" height="1" fill="#d4aa00"/><rect x="14" y="19" width="1" height="1" fill="#f6d54a"/><rect x="15" y="19" width="3" height="1" fill="#d4aa00"/><rect x="18" y="19" width="1" height="1" fill="#f6d54a"/><rect x="19" y="19" width="3" height="1" fill="#d4aa00"/><rect x="22" y="19" width="1" height="1" fill="#f6d54a"/><rect x="23" y="19" width="3" height="1" fill="#d4aa00"/><rect x="26" y="19" width="1" height="1" fill="#f6d54a"/><rect x="27" y="19" width="1" height="1" fill="#d4aa00"/><rect x="28" y="19" width="1" height="1" fill="#1d1d1d"/><rect x="7" y="20" width="1" height="1" fill="#1d1d1d"/><rect x="8" y="20" width="2" height="1" fill="#d4aa00"/><rect x="10" y="20" width="1" height="1" fill="#f6d54a"/><rect x="11" y="20" width="3" height="1" fill="#d4aa00"/><rect x="14" y="20" width="1" height="1" fill="#f6d54a"/><rect x="15" y="20" width="3" height="1" fill="#d4aa00"/><rect x="18" y="20" width="1" height="1" fill="#f6d54a"/><rect x="19" y="20" width="3" height="1" fill="#d4aa00"/><rect x="22" y="20" width="1" height="1" fill="#f6d54a"/><rect x="23" y="20" width="3" height="1" fill="#d4aa00"/><rect x="26" y="20" width="1" height="1" fill="#f6d54a"/><rect x="27" y="20" width="1" height="1" fill="#d4aa00"/><rect x="28" y="20" width="1" height="1" fill="#1d1d1d"/><rect x="6" y="21" width="1" height="1" fill="#1d1d1d"/><rect x="7" y="21" width="21" height="1" fill="#f6d54a"/><rect x="28" y="21" width="1" height="1" fill="#1d1d1d"/><rect x="5" y="22" width="1" height="1" fill="#1d1d1d"/><rect x="6" y="22" width="1" height="1" fill="#f6d54a"/><rect x="7" y="22" width="3" height="1" fill="#d4aa00"/><rect x="10" y="22" width="1" height="1" fill="#f6d54a"/><rect x="11" y="22" width="3" height="1" fill="#d4aa00"/><rect x="14" y="22" width="1" height="1" fill="#f6d54a"/><rect x="15" y="22" width="3" height="1" fill="#d4aa00"/><rect x="18" y="22" width="1" height="1" fill="#f6d54a"/><rect x="19" y="22" width="3" height="1" fill="#d4aa00"/><rect x="22" y="22" width="1" height="1" fill="#f6d54a"/><rect x="23" y="22" width="3" height="1" fill="#d4aa00"/><rect x="26" y="22" width="1" height="1" fill="#f6d54a"/><rect x="27" y="22" width="2" height="1" fill="#d4aa00"/><rect x="29" y="22" width="1" height="1" fill="#1d1d1d"/><rect x="4" y="23" width="1" height="1" fill="#1d1d1d"/><rect x="5" y="23" width="1" height="1" fill="#d4aa00"/><rect x="6" y="23" width="1" height="1" fill="#f6d54a"/><rect x="7" y="23" width="3" height="1" fill="#d4aa00"/><rect x="10" y="23" width="1" height="1" fill="#f6d54a"/><rect x="11" y="23" width="3" height="1" fill="#d4aa00"/><rect x="14" y="23" width="1" height="1" fill="#f6d54a"/><rect x="15" y="23" width="3" height="1" fill="#d4aa00"/><rect x="18" y="23" width="1" height="1" fill="#f6d54a"/><rect x="19" y="23" width="3" height="1" fill="#d4aa00"/><rect x="22" y="23" width="1" height="1" fill="#f6d54a"/><rect x="23" y="23" width="3" height="1" fill="#d4aa00"/><rect x="26" y="23" width="1" height="1" fill="#f6d54a"/><rect x="27" y="23" width="2" height="1" fill="#d4aa00"/><rect x="29" y="23" width="1" height="1" fill="#1d1d1d"/><rect x="3" y="24" width="4" height="1" fill="#1d1d1d"/><rect x="7" y="24" width="3" height="1" fill="#d4aa00"/><rect x="10" y="24" width="1" height="1" fill="#f6d54a"/><rect x="11" y="24" width="3" height="1" fill="#d4aa00"/><rect x="14" y="24" width="1" height="1" fill="#f6d54a"/><rect x="15" y="24" width="3" height="1" fill="#d4aa00"/><rect x="18" y="24" width="1" height="1" fill="#f6d54a"/><rect x="19" y="24" width="3" height="1" fill="#d4aa00"/><rect x="22" y="24" width="1" height="1" fill="#f6d54a"/><rect x="23" y="24" width="3" height="1" fill="#d4aa00"/><rect x="26" y="24" width="1" height="1" fill="#f6d54a"/><rect x="27" y="24" width="2" height="1" fill="#d4aa00"/><rect x="29" y="24" width="1" height="1" fill="#1d1d1d"/><rect x="7" y="25" width="3" height="1" fill="#1d1d1d"/><rect x="10" y="25" width="20" height="1" fill="#f6d54a"/><rect x="30" y="25" width="1" height="1" fill="#1d1d1d"/><rect x="10" y="26" width="4" height="1" fill="#1d1d1d"/><rect x="14" y="26" width="1" height="1" fill="#f6d54a"/><rect x="15" y="26" width="3" height="1" fill="#d4aa00"/><rect x="18" y="26" width="1" height="1" fill="#f6d54a"/><rect x="19" y="26" width="3" height="1" fill="#d4aa00"/><rect x="22" y="26" width="1" height="1" fill="#f6d54a"/><rect x="23" y="26" width="3" height="1" fill="#d4aa00"/><rect x="26" y="26" width="1" height="1" fill="#f6d54a"/><rect x="27" y="26" width="3" height="1" fill="#d4aa00"/><rect x="30" y="26" width="1" height="1" fill="#1d1d1d"/><rect x="14" y="27" width="4" height="1" fill="#1d1d1d"/><rect x="18" y="27" width="1" height="1" fill="#f6d54a"/><rect x="19" y="27" width="3" height="1" fill="#d4aa00"/><rect x="22" y="27" width="1" height="1" fill="#f6d54a"/><rect x="23" y="27" width="3" height="1" fill="#d4aa00"/><rect x="26" y="27" width="1" height="1" fill="#f6d54a"/><rect x="27" y="27" width="3" height="1" fill="#d4aa00"/><rect x="30" y="27" width="1" height="1" fill="#1d1d1d"/><rect x="18" y="28" width="4" height="1" fill="#1d1d1d"/><rect x="22" y="28" width="1" height="1" fill="#f6d54a"/><rect x="23" y="28" width="3" height="1" fill="#d4aa00"/><rect x="26" y="28" width="1" height="1" fill="#f6d54a"/><rect x="27" y="28" width="3" height="1" fill="#d4aa00"/><rect x="30" y="28" width="1" height="1" fill="#1d1d1d"/><rect x="22" y="29" width="3" height="1" fill="#1d1d1d"/><rect x="25" y="29" width="6" height="1" fill="#f6d54a"/><rect x="31" y="29" width="1" height="1" fill="#1d1d1d"/><rect x="25" y="30" width="4" height="1" fill="#1d1d1d"/><rect x="29" y="30" width="1" height="1" fill="#d4aa00"/><rect x="30" y="30" width="1" height="1" fill="#f6d54a"/><rect x="31" y="30" width="1" height="1" fill="#1d1d1d"/><rect x="29" y="31" width="3" height="1" fill="#1d1d1d"/>
<rect x="13" y="21" width="2" height="1" fill="#ff5c8d"/><rect x="26" y="21" width="2" height="1" fill="#ff5c8d"/>
<g class="tri-eyes"><rect x="16" y="16" width="3" height="3" fill="#ffffff"/><rect x="22" y="16" width="3" height="3" fill="#ffffff"/><rect x="17" y="17" width="2" height="2" fill="#1d1d1d"/><rect x="23" y="17" width="2" height="2" fill="#1d1d1d"/></g>
<rect x="18" y="22" width="1" height="1" fill="#1d1d1d"/><rect x="19" y="23" width="4" height="1" fill="#1d1d1d"/><rect x="23" y="22" width="1" height="1" fill="#1d1d1d"/>
</g>
</svg>
<!-- tri:end -->
<span aria-hidden="true">Tri's<span class="lab-word">Lab</span></span>
</div>
</div>
<p class="lab-pixel-tag" aria-hidden="true">
<span class="b-heat">PLAY</span><span class="b-flow">BUILD</span><span class="b-structure">SOLVE</span
><span class="b-front">LEARN</span>
</p>
<h1><span class="sr-only">Tri's Lab by FEAScript: </span>Finite elements, <span class="accent">for fun.</span></h1>
<p class="hero-lede">
Tri's Lab is the FEAScript playground for the finite element method: games, and a block editor for
building your own simulations. Every picture in them is a real simulation, solved in your browser.
Your guide is <a href="#tri">Tri, the triangle robot of FEAScript</a>.
</p>
<div class="hero-links label">
<a href="critical-mesh/index.html">Play Critical Mesh</a>
<a href="blocks/index.html">Build with FEM Blocks</a>
<a href="#tri">Meet Tri</a>
</div>
<div class="hero-meta label">
<span>Free</span>
<span>No install, no account</span>
<span>Powered by open-source FEAScript</span>
</div>
</div>
</div>
</section>
<!-- ───────────── MEET TRI ───────────── -->
<section id="tri" class="section">
<div class="section-frame">
<div class="eyebrow label">
<p>Meet Tri</p>
</div>
<div class="section-head">
<h2 data-reveal>Hi, I'm Tri, <span class="accent">the triangle robot.</span></h2>
<p data-reveal>
Tri is the FEAScript logo come to life. Look closely: Tri's body is cut into small elements, the same
kind of mesh FEAScript solves on.
</p>
</div>
<div class="grid grid-2">
<div class="cell lab-meet-stage" data-reveal>
<p class="lab-bubble">Every picture here is a real simulation!</p>
<div class="lab-meet-badge">
<!-- tri:start (generated from blocks/js/pixels.js, triSvg("happy")) -->
<svg class="lab-tri lab-meet-svg" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 -1 36 36" shape-rendering="crispEdges">
<g class="tri-feet" fill="#1d1d1d"><rect x="11" y="27" width="1" height="3"/><rect x="10" y="30" width="3" height="1"/><rect x="25" y="30" width="1" height="3"/><rect x="24" y="33" width="3" height="1"/></g>
<g class="tri-up">
<rect x="24" y="3" width="1" height="1" fill="#1d1d1d"/><rect x="23" y="4" width="2" height="1" fill="#1d1d1d"/><rect x="22" y="5" width="1" height="1" fill="#1d1d1d"/><rect x="23" y="5" width="1" height="1" fill="#f6d54a"/><rect x="24" y="5" width="1" height="1" fill="#1d1d1d"/><rect x="21" y="6" width="1" height="1" fill="#1d1d1d"/><rect x="22" y="6" width="1" height="1" fill="#f6d54a"/><rect x="23" y="6" width="1" height="1" fill="#d4aa00"/><rect x="24" y="6" width="1" height="1" fill="#1d1d1d"/><rect x="20" y="7" width="1" height="1" fill="#1d1d1d"/><rect x="21" y="7" width="1" height="1" fill="#d4aa00"/><rect x="22" y="7" width="1" height="1" fill="#f6d54a"/><rect x="23" y="7" width="2" height="1" fill="#d4aa00"/><rect x="25" y="7" width="1" height="1" fill="#1d1d1d"/><rect x="19" y="8" width="1" height="1" fill="#1d1d1d"/><rect x="20" y="8" width="2" height="1" fill="#d4aa00"/><rect x="22" y="8" width="1" height="1" fill="#f6d54a"/><rect x="23" y="8" width="2" height="1" fill="#d4aa00"/><rect x="25" y="8" width="1" height="1" fill="#1d1d1d"/><rect x="18" y="9" width="1" height="1" fill="#1d1d1d"/><rect x="19" y="9" width="6" height="1" fill="#f6d54a"/><rect x="25" y="9" width="1" height="1" fill="#1d1d1d"/><rect x="17" y="10" width="1" height="1" fill="#1d1d1d"/><rect x="18" y="10" width="1" height="1" fill="#f6d54a"/><rect x="19" y="10" width="3" height="1" fill="#d4aa00"/><rect x="22" y="10" width="1" height="1" fill="#f6d54a"/><rect x="23" y="10" width="3" height="1" fill="#d4aa00"/><rect x="26" y="10" width="1" height="1" fill="#1d1d1d"/><rect x="16" y="11" width="1" height="1" fill="#1d1d1d"/><rect x="17" y="11" width="1" height="1" fill="#d4aa00"/><rect x="18" y="11" width="1" height="1" fill="#f6d54a"/><rect x="19" y="11" width="3" height="1" fill="#d4aa00"/><rect x="22" y="11" width="1" height="1" fill="#f6d54a"/><rect x="23" y="11" width="3" height="1" fill="#d4aa00"/><rect x="26" y="11" width="1" height="1" fill="#1d1d1d"/><rect x="15" y="12" width="1" height="1" fill="#1d1d1d"/><rect x="16" y="12" width="2" height="1" fill="#d4aa00"/><rect x="18" y="12" width="1" height="1" fill="#f6d54a"/><rect x="19" y="12" width="3" height="1" fill="#d4aa00"/><rect x="22" y="12" width="1" height="1" fill="#f6d54a"/><rect x="23" y="12" width="3" height="1" fill="#d4aa00"/><rect x="26" y="12" width="1" height="1" fill="#1d1d1d"/><rect x="14" y="13" width="1" height="1" fill="#1d1d1d"/><rect x="15" y="13" width="11" height="1" fill="#f6d54a"/><rect x="26" y="13" width="1" height="1" fill="#1d1d1d"/><rect x="13" y="14" width="1" height="1" fill="#1d1d1d"/><rect x="14" y="14" width="1" height="1" fill="#f6d54a"/><rect x="15" y="14" width="3" height="1" fill="#d4aa00"/><rect x="18" y="14" width="1" height="1" fill="#f6d54a"/><rect x="19" y="14" width="3" height="1" fill="#d4aa00"/><rect x="22" y="14" width="1" height="1" fill="#f6d54a"/><rect x="23" y="14" width="3" height="1" fill="#d4aa00"/><rect x="26" y="14" width="1" height="1" fill="#f6d54a"/><rect x="27" y="14" width="1" height="1" fill="#1d1d1d"/><rect x="12" y="15" width="1" height="1" fill="#1d1d1d"/><rect x="13" y="15" width="1" height="1" fill="#d4aa00"/><rect x="14" y="15" width="1" height="1" fill="#f6d54a"/><rect x="15" y="15" width="3" height="1" fill="#d4aa00"/><rect x="18" y="15" width="1" height="1" fill="#f6d54a"/><rect x="19" y="15" width="3" height="1" fill="#d4aa00"/><rect x="22" y="15" width="1" height="1" fill="#f6d54a"/><rect x="23" y="15" width="3" height="1" fill="#d4aa00"/><rect x="26" y="15" width="1" height="1" fill="#f6d54a"/><rect x="27" y="15" width="1" height="1" fill="#1d1d1d"/><rect x="11" y="16" width="1" height="1" fill="#1d1d1d"/><rect x="12" y="16" width="2" height="1" fill="#d4aa00"/><rect x="14" y="16" width="1" height="1" fill="#f6d54a"/><rect x="15" y="16" width="3" height="1" fill="#d4aa00"/><rect x="18" y="16" width="1" height="1" fill="#f6d54a"/><rect x="19" y="16" width="3" height="1" fill="#d4aa00"/><rect x="22" y="16" width="1" height="1" fill="#f6d54a"/><rect x="23" y="16" width="3" height="1" fill="#d4aa00"/><rect x="26" y="16" width="1" height="1" fill="#f6d54a"/><rect x="27" y="16" width="1" height="1" fill="#1d1d1d"/><rect x="10" y="17" width="1" height="1" fill="#1d1d1d"/><rect x="11" y="17" width="16" height="1" fill="#f6d54a"/><rect x="27" y="17" width="1" height="1" fill="#1d1d1d"/><rect x="9" y="18" width="1" height="1" fill="#1d1d1d"/><rect x="10" y="18" width="1" height="1" fill="#f6d54a"/><rect x="11" y="18" width="3" height="1" fill="#d4aa00"/><rect x="14" y="18" width="1" height="1" fill="#f6d54a"/><rect x="15" y="18" width="3" height="1" fill="#d4aa00"/><rect x="18" y="18" width="1" height="1" fill="#f6d54a"/><rect x="19" y="18" width="3" height="1" fill="#d4aa00"/><rect x="22" y="18" width="1" height="1" fill="#f6d54a"/><rect x="23" y="18" width="3" height="1" fill="#d4aa00"/><rect x="26" y="18" width="1" height="1" fill="#f6d54a"/><rect x="27" y="18" width="1" height="1" fill="#d4aa00"/><rect x="28" y="18" width="1" height="1" fill="#1d1d1d"/><rect x="8" y="19" width="1" height="1" fill="#1d1d1d"/><rect x="9" y="19" width="1" height="1" fill="#d4aa00"/><rect x="10" y="19" width="1" height="1" fill="#f6d54a"/><rect x="11" y="19" width="3" height="1" fill="#d4aa00"/><rect x="14" y="19" width="1" height="1" fill="#f6d54a"/><rect x="15" y="19" width="3" height="1" fill="#d4aa00"/><rect x="18" y="19" width="1" height="1" fill="#f6d54a"/><rect x="19" y="19" width="3" height="1" fill="#d4aa00"/><rect x="22" y="19" width="1" height="1" fill="#f6d54a"/><rect x="23" y="19" width="3" height="1" fill="#d4aa00"/><rect x="26" y="19" width="1" height="1" fill="#f6d54a"/><rect x="27" y="19" width="1" height="1" fill="#d4aa00"/><rect x="28" y="19" width="1" height="1" fill="#1d1d1d"/><rect x="7" y="20" width="1" height="1" fill="#1d1d1d"/><rect x="8" y="20" width="2" height="1" fill="#d4aa00"/><rect x="10" y="20" width="1" height="1" fill="#f6d54a"/><rect x="11" y="20" width="3" height="1" fill="#d4aa00"/><rect x="14" y="20" width="1" height="1" fill="#f6d54a"/><rect x="15" y="20" width="3" height="1" fill="#d4aa00"/><rect x="18" y="20" width="1" height="1" fill="#f6d54a"/><rect x="19" y="20" width="3" height="1" fill="#d4aa00"/><rect x="22" y="20" width="1" height="1" fill="#f6d54a"/><rect x="23" y="20" width="3" height="1" fill="#d4aa00"/><rect x="26" y="20" width="1" height="1" fill="#f6d54a"/><rect x="27" y="20" width="1" height="1" fill="#d4aa00"/><rect x="28" y="20" width="1" height="1" fill="#1d1d1d"/><rect x="6" y="21" width="1" height="1" fill="#1d1d1d"/><rect x="7" y="21" width="21" height="1" fill="#f6d54a"/><rect x="28" y="21" width="1" height="1" fill="#1d1d1d"/><rect x="5" y="22" width="1" height="1" fill="#1d1d1d"/><rect x="6" y="22" width="1" height="1" fill="#f6d54a"/><rect x="7" y="22" width="3" height="1" fill="#d4aa00"/><rect x="10" y="22" width="1" height="1" fill="#f6d54a"/><rect x="11" y="22" width="3" height="1" fill="#d4aa00"/><rect x="14" y="22" width="1" height="1" fill="#f6d54a"/><rect x="15" y="22" width="3" height="1" fill="#d4aa00"/><rect x="18" y="22" width="1" height="1" fill="#f6d54a"/><rect x="19" y="22" width="3" height="1" fill="#d4aa00"/><rect x="22" y="22" width="1" height="1" fill="#f6d54a"/><rect x="23" y="22" width="3" height="1" fill="#d4aa00"/><rect x="26" y="22" width="1" height="1" fill="#f6d54a"/><rect x="27" y="22" width="2" height="1" fill="#d4aa00"/><rect x="29" y="22" width="1" height="1" fill="#1d1d1d"/><rect x="4" y="23" width="1" height="1" fill="#1d1d1d"/><rect x="5" y="23" width="1" height="1" fill="#d4aa00"/><rect x="6" y="23" width="1" height="1" fill="#f6d54a"/><rect x="7" y="23" width="3" height="1" fill="#d4aa00"/><rect x="10" y="23" width="1" height="1" fill="#f6d54a"/><rect x="11" y="23" width="3" height="1" fill="#d4aa00"/><rect x="14" y="23" width="1" height="1" fill="#f6d54a"/><rect x="15" y="23" width="3" height="1" fill="#d4aa00"/><rect x="18" y="23" width="1" height="1" fill="#f6d54a"/><rect x="19" y="23" width="3" height="1" fill="#d4aa00"/><rect x="22" y="23" width="1" height="1" fill="#f6d54a"/><rect x="23" y="23" width="3" height="1" fill="#d4aa00"/><rect x="26" y="23" width="1" height="1" fill="#f6d54a"/><rect x="27" y="23" width="2" height="1" fill="#d4aa00"/><rect x="29" y="23" width="1" height="1" fill="#1d1d1d"/><rect x="3" y="24" width="4" height="1" fill="#1d1d1d"/><rect x="7" y="24" width="3" height="1" fill="#d4aa00"/><rect x="10" y="24" width="1" height="1" fill="#f6d54a"/><rect x="11" y="24" width="3" height="1" fill="#d4aa00"/><rect x="14" y="24" width="1" height="1" fill="#f6d54a"/><rect x="15" y="24" width="3" height="1" fill="#d4aa00"/><rect x="18" y="24" width="1" height="1" fill="#f6d54a"/><rect x="19" y="24" width="3" height="1" fill="#d4aa00"/><rect x="22" y="24" width="1" height="1" fill="#f6d54a"/><rect x="23" y="24" width="3" height="1" fill="#d4aa00"/><rect x="26" y="24" width="1" height="1" fill="#f6d54a"/><rect x="27" y="24" width="2" height="1" fill="#d4aa00"/><rect x="29" y="24" width="1" height="1" fill="#1d1d1d"/><rect x="7" y="25" width="3" height="1" fill="#1d1d1d"/><rect x="10" y="25" width="20" height="1" fill="#f6d54a"/><rect x="30" y="25" width="1" height="1" fill="#1d1d1d"/><rect x="10" y="26" width="4" height="1" fill="#1d1d1d"/><rect x="14" y="26" width="1" height="1" fill="#f6d54a"/><rect x="15" y="26" width="3" height="1" fill="#d4aa00"/><rect x="18" y="26" width="1" height="1" fill="#f6d54a"/><rect x="19" y="26" width="3" height="1" fill="#d4aa00"/><rect x="22" y="26" width="1" height="1" fill="#f6d54a"/><rect x="23" y="26" width="3" height="1" fill="#d4aa00"/><rect x="26" y="26" width="1" height="1" fill="#f6d54a"/><rect x="27" y="26" width="3" height="1" fill="#d4aa00"/><rect x="30" y="26" width="1" height="1" fill="#1d1d1d"/><rect x="14" y="27" width="4" height="1" fill="#1d1d1d"/><rect x="18" y="27" width="1" height="1" fill="#f6d54a"/><rect x="19" y="27" width="3" height="1" fill="#d4aa00"/><rect x="22" y="27" width="1" height="1" fill="#f6d54a"/><rect x="23" y="27" width="3" height="1" fill="#d4aa00"/><rect x="26" y="27" width="1" height="1" fill="#f6d54a"/><rect x="27" y="27" width="3" height="1" fill="#d4aa00"/><rect x="30" y="27" width="1" height="1" fill="#1d1d1d"/><rect x="18" y="28" width="4" height="1" fill="#1d1d1d"/><rect x="22" y="28" width="1" height="1" fill="#f6d54a"/><rect x="23" y="28" width="3" height="1" fill="#d4aa00"/><rect x="26" y="28" width="1" height="1" fill="#f6d54a"/><rect x="27" y="28" width="3" height="1" fill="#d4aa00"/><rect x="30" y="28" width="1" height="1" fill="#1d1d1d"/><rect x="22" y="29" width="3" height="1" fill="#1d1d1d"/><rect x="25" y="29" width="6" height="1" fill="#f6d54a"/><rect x="31" y="29" width="1" height="1" fill="#1d1d1d"/><rect x="25" y="30" width="4" height="1" fill="#1d1d1d"/><rect x="29" y="30" width="1" height="1" fill="#d4aa00"/><rect x="30" y="30" width="1" height="1" fill="#f6d54a"/><rect x="31" y="30" width="1" height="1" fill="#1d1d1d"/><rect x="29" y="31" width="3" height="1" fill="#1d1d1d"/>
<rect x="13" y="21" width="2" height="1" fill="#ff5c8d"/><rect x="26" y="21" width="2" height="1" fill="#ff5c8d"/>
<g class="tri-eyes"><rect x="16" y="18" width="1" height="1" fill="#1d1d1d"/><rect x="17" y="17" width="1" height="1" fill="#1d1d1d"/><rect x="18" y="18" width="1" height="1" fill="#1d1d1d"/><rect x="22" y="18" width="1" height="1" fill="#1d1d1d"/><rect x="23" y="17" width="1" height="1" fill="#1d1d1d"/><rect x="24" y="18" width="1" height="1" fill="#1d1d1d"/></g>
<rect x="17" y="22" width="1" height="1" fill="#1d1d1d"/><rect x="18" y="23" width="6" height="1" fill="#1d1d1d"/><rect x="19" y="24" width="4" height="1" fill="#1d1d1d"/><rect x="24" y="22" width="1" height="1" fill="#1d1d1d"/>
</g>
</svg>
<!-- tri:end -->
</div>
</div>
<div class="cell cell-pad lab-roles" data-reveal>
<p class="lab-roles-title label">Where you meet Tri</p>
<div class="lab-role" data-physics="heat">
<p class="lab-kind"><span>GAMES</span> Physics guide</p>
<p class="desc">
In the games, FEAScript does the maths and Tri explains what it means, keeping Field Notes on the
physics you meet.
</p>
</div>
<div class="lab-role" data-physics="flow">
<p class="lab-kind"><span>FEM BLOCKS</span> Mission guide</p>
<p class="desc">
In the block editor, Tri introduces each of the nine missions, thinks while FEAScript solves, and
cheers when your simulation meets the goal.
</p>
</div>
<div class="lab-role" data-physics="front">
<p class="lab-kind"><span>TUTORIALS</span> Tips</p>
<p class="desc">
In the <a href="https://feascript.com/#tutorials">tutorials</a>, Tri leaves short technical tips on
what the text leaves out, with links to the documentation.
</p>
</div>
</div>
</div>
</div>
</section>
<!-- ───────────── PLAY ───────────── -->
<section id="play" class="section">
<div class="section-frame">
<div class="eyebrow label">
<p>Play and build</p>
</div>
<div class="section-head">
<h2 data-reveal>Play and build. <span class="accent">Real simulations inside.</span></h2>
<p data-reveal>
Play a game while FEAScript solves the physics behind every move, or build a simulation yourself, block
by block. Nothing is a fake animation: every temperature, bent beam and swirl of fluid comes from
FEAScript solving the actual equations.
</p>
</div>
<div class="grid grid-2">
<article id="critical-mesh" class="cell lab-card" data-physics="heat" data-reveal>
<a class="lab-shot" href="critical-mesh/index.html">
<img src="assets/critical-mesh.png" alt="Critical Mesh: the engineer walks on a glowing heat map of the Plate" loading="lazy" />
</a>
<div class="lab-card-body">
<p class="lab-kind"><span>PLAY</span> Game · story campaign</p>
<h3>Critical Mesh</h3>
<p>
Nodessa, 2089. The city runs on a single glowing plate of alloy, and you're its new night engineer.
Roll the die, carry heat cells across the floor and mount them, then watch FEAScript solve the
temperature under your boots. Push your luck too far, and the Plate melts down.
</p>
<ul class="lab-list">
<li>A story campaign of 10 night shifts and 3 engineering interludes, plus an endless mode with high scores</li>
<li>
Four FEAScript models: heat conduction (with a Gmsh mesh), beam bending, front propagation and
Stokes flow
</li>
<li>The equation is always on screen, and 15 Field Notes explain the physics as you meet it</li>
</ul>
<a class="lab-btn heat" href="critical-mesh/index.html">▶ Play Critical Mesh</a>
</div>
</article>
<article id="fem-blocks" class="cell lab-card" data-physics="flow" data-reveal>
<a class="lab-shot" href="blocks/index.html">
<img src="assets/fem-blocks.png" alt="FEM Blocks: pixel blocks on the left, a heat map and the heat equation on the right" loading="lazy" />
</a>
<div class="lab-card-body">
<p class="lab-kind"><span>BUILD</span> Block editor · no code</p>
<h3>FEM Blocks</h3>
<p>
Snap pixel blocks together to build a simulation: a shape, a material, heaters and what happens at
every edge. Press Run and FEAScript solves it. The editor is built on
<a href="https://developers.google.com/blockly">Blockly</a>, and Tri guides you through nine missions,
from a warm wire to a swirling tank of honey.
</p>
<ul class="lab-list">
<li>Click any block to see which part of the equation it controls</li>
<li>Every program is real FEAScript code: see it, copy it, use it</li>
<li>"The math" tab explains the equation, then shows your mesh, your nodes and your matrix K</li>
</ul>
<a class="lab-btn flow" href="blocks/index.html">▶ Start building</a>
</div>
</article>
</div>
<div class="lab-more" data-reveal>
<p class="lab-kind"><span>SOON</span> More games</p>
<p>
Critical Mesh is the first Tri's Lab game, and more are on the way. Have an idea for one? Tell us on
<a href="https://discord.gg/3DVjNcuW4f">Discord</a> or
<a href="https://github.com/FEAScript/FEAScript-tris-lab/issues">GitHub</a>.
</p>
</div>
</div>
</section>
<!-- ───────────── LEARN ───────────── -->
<section id="learn" class="section">
<div class="section-frame">
<div class="eyebrow label">
<p>What you learn</p>
</div>
<div class="section-head">
<h2 data-reveal>The ideas behind <span class="accent">every simulation.</span></h2>
<p data-reveal>
Engineers use the finite element method (FEM) to design bridges, engines and phones. Everything in
the lab is built on six of its big ideas, and each one is simple enough to try for yourself.
</p>
</div>
<div class="grid grid-3">
<article class="cell cell-pad lab-idea" data-physics="heat" data-reveal>
<p class="lab-eq">−∇·(k ∇T) = Q</p>
<h3>Every equation is a balance</h3>
<p class="desc">
Physics equations say that something balances at every point: heat in a plate, forces in a beam, fluid
in a pipe. In the heat equation, the heat flowing in, flowing out and made there all add up.
</p>
</article>
<article class="cell cell-pad lab-idea" data-physics="front" data-reveal>
<p class="lab-eq">T = T₀ or ∂T/∂n = 0</p>
<h3>The edges matter</h3>
<p class="desc">
An edge can be held at a fixed temperature, cooled by air, or insulated so no heat escapes. These
boundary conditions change the whole answer.
</p>
</article>
<article class="cell cell-pad lab-idea" data-physics="structure" data-reveal>
<p class="lab-eq">T ≈ Σ Tᵢ Nᵢ</p>
<h3>Split the shape into elements</h3>
<p class="desc">
A shape too complicated to solve in one go is split into many small, simple pieces called elements.
They meet at points called nodes, and the temperature is worked out at each node.
</p>
</article>
<article class="cell cell-pad lab-idea" data-physics="flow" data-reveal>
<p class="lab-eq">K · T = F</p>
<h3>Solve all the nodes together</h3>
<p class="desc">
Each node gets one equation, linked to its neighbours. FEAScript solves all of them at once, usually in
well under a second.
</p>
</article>
<article class="cell cell-pad lab-idea" data-physics="heat" data-reveal>
<p class="lab-eq">copper k ≈ 400 · foam k ≈ 0.03</p>
<h3>Materials change the result</h3>
<p class="desc">
The conductivity k says how easily heat moves through a material. Copper spreads heat fast, foam
almost stops it. That's why pans are metal and their handles aren't.
</p>
</article>
<article class="cell cell-pad lab-idea" data-physics="structure" data-reveal>
<p class="lab-eq">beam · front · flow</p>
<h3>One method, many problems</h3>
<p class="desc">
Swap the equation and the same steps solve other problems: how a beam bends, how molten metal freezes
and how a thick fluid flows.
</p>
</article>
<p class="cell cell-note prose" style="grid-column: 1 / -1" data-reveal>
<span class="tag">Support</span>
<a href="https://github.com/sponsors/FEAScript">Donations</a> help accelerate the next generation of
FEAScript's solvers, performance, documentation and tutorials.
</p>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="footer-inner">
<div class="footer-grid">
<div class="footer-brand">
<a class="footer-wordmark" href="https://feascript.com/">
<svg viewBox="14 79 242 242" aria-hidden="true">
<polygon points="17,254 190,82 253,317" fill="#d4aa00" />
</svg>
<span
>FEAScrip<svg class="wm-t" viewBox="0 0 30 115" fill="none" stroke="currentColor">
<path stroke-width="5.9" d="M15 0V100A11.4 11.4 0 0 0 26.4 111.4H29.5" />
<path stroke-width="5.4" d="M0.4 16.9H29.6" /></svg
></span>
</a>
<p class="footer-tagline">Finite element simulation in JavaScript, for the browser and Node.js.</p>
<a class="footer-mail" href="mailto:info@feascript.com">info@feascript.com</a>
</div>
<nav class="footer-col" aria-label="Tri's Lab">
<h2>Tri's Lab</h2>
<ul>
<li><a href="critical-mesh/index.html">Critical Mesh</a></li>
<li><a href="blocks/index.html">FEM Blocks</a></li>
</ul>
</nav>
<nav class="footer-col" aria-label="Resources">
<h2>Resources</h2>
<ul>
<li><a href="https://feascript.com/#tutorials">Tutorials</a></li>
<li><a href="https://docs.feascript.com">Documentation</a></li>
<li><a href="https://blog.feascript.com/">Blog</a></li>
<li><a href="https://github.com/FEAScript/FEAScript-tris-lab/issues">Support</a></li>
</ul>
</nav>
<nav class="footer-col" aria-label="Community">
<h2>Community</h2>
<ul>
<li><a href="https://discord.gg/3DVjNcuW4f">Discord</a></li>
<li><a href="https://github.com/FEAScript/FEAScript-core">GitHub</a></li>
<li><a href="https://www.youtube.com/@FEAScript">YouTube</a></li>
<li><a href="https://www.linkedin.com/company/feascript/">LinkedIn</a></li>
<li><a href="https://bsky.app/profile/feascript.com">Bluesky</a></li>
</ul>
</nav>
</div>
<div class="footer-bottom">
<span>© 2023-<span id="currentYear"></span> FEAScript</span>
<span>Core: MIT license · Website: CC BY 4.0 · FEM Blocks uses Blockly (Apache 2.0)</span>
</div>
</div>
</footer>
<script src="https://feascript.com/feascript-website.js"></script>
</body>
</html>