Skip to content

Commit 27dab96

Browse files
committed
Add CodePen and WebWorkers examples at the lid-driven tutorial
1 parent 0253f7f commit 27dab96

14 files changed

Lines changed: 390 additions & 19 deletions

feascript-website.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
════════════════════════════════════════════════════════════════
33
FEAScript Website
44
Lightweight Finite Element Simulation in JavaScript
5-
Version: 0.2.0 (RC) | https://feascript.com
5+
Version: 0.2.0 | https://feascript.com
66
CC BY 4.0 License © 2023–2026 FEAScript
77
════════════════════════════════════════════════════════════════
88
*/

index.html

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
════════════════════════════════════════════════════════════════
55
FEAScript Website
66
Lightweight Finite Element Simulation in JavaScript
7-
Version: 0.2.0 (RC) | https://feascript.com
7+
Version: 0.2.0 | https://feascript.com
88
CC BY 4.0 License © 2023–2026 FEAScript
99
════════════════════════════════════════════════════════════════
1010
-->
@@ -138,7 +138,9 @@ <h1 class="top">
138138
src="./assets/cold-plate-logo-results2.png"
139139
alt="Results of heat conduction around the FEAScript logo"
140140
/>
141-
<p class="image-caption">Heat conduction around the FEAScript logo (mesh generated by Gmsh, solved with FEAScript)</p>
141+
<p class="image-caption">
142+
Heat conduction around the FEAScript logo (mesh generated by Gmsh, solved with FEAScript)
143+
</p>
142144
<img
143145
src="./assets/advection-diffusion-1d-results.png"
144146
alt="Results of advection-diffusion with Gaussian source tutorial"
@@ -275,8 +277,8 @@ <h2 id="whyusefeascript"><a name="Why Use FEAScript"></a>Why Use FEAScript</h2>
275277
<h2 id="howtousefeascript"><a name="Getting Started"></a>How to Use FEAScript</h2>
276278

277279
<p>
278-
You can run simulations with FEAScript by calling its functions from JavaScript (the FEAScript API).
279-
The API offers full programmatic control and works across multiple environments, including the browser
280+
You can run simulations with FEAScript by calling its functions from JavaScript (the FEAScript API). The
281+
API offers full programmatic control and works across multiple environments, including the browser
280282
(simple HTML pages and online JavaScript playgrounds, e.g.
281283
<a href="https://codepen.io/"
282284
>CodePen<img
@@ -358,9 +360,9 @@ <h2 id="howtousefeascript"><a name="Getting Started"></a>How to Use FEAScript</h
358360
margin-left: 2px;
359361
margin-bottom: 4px;
360362
" /></a
361-
>) or use FEAScript mesh generation tools &#8594; configure the model &#8594; add a container
362-
(e.g., <code>&lt;div id="resultsCanvas">&lt;/div&gt;</code>) &#8594; run the simulation. Here is a
363-
simple example (see the <a href="#tutorials">tutorials section</a> for more details):
363+
>) or use FEAScript mesh generation tools &#8594; configure the model &#8594; add a container (e.g.,
364+
<code>&lt;div id="resultsCanvas">&lt;/div&gt;</code>) &#8594; run the simulation. Here is a simple
365+
example (see the <a href="#tutorials">tutorials section</a> for more details):
364366
</p>
365367

366368
<pre class="prettyprint">
@@ -680,6 +682,17 @@ <h2 id="tutorials"><a name="Tutorials"></a>Tutorials</h2>
680682
<a href="https://feascript.com/tutorials/lid-driven-cavity-2d-stokes.html" class="badge badge-basic"
681683
>Basic HTML</a
682684
>
685+
<a
686+
href="https://feascript.com/tutorials/lid-driven-cavity-2d-stokes-worker.html"
687+
class="badge badge-mt"
688+
>Multi-threaded</a
689+
>
690+
<a href="https://codepen.io/FEAScript/pen/XJKGmRz" class="badge badge-codepen"
691+
>CodePen<img
692+
src="https://upload.wikimedia.org/wikipedia/commons/4/44/Icon_External_Link.svg"
693+
alt="External Link Icon"
694+
style="width: 16px; height: 16px; vertical-align: middle; margin-left: 2px; margin-bottom: 4px"
695+
/></a>
683696
</li>
684697
<li>
685698
<span class="tutorial-name">Solidification Front Propagation in a 2D Domain</span>

tutorials/advection-diffusion-1d.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
════════════════════════════════════════════════════════════════
55
FEAScript Website
66
Lightweight Finite Element Simulation in JavaScript
7-
Version: 0.2.0 (RC) | https://feascript.com
7+
Version: 0.2.0 | https://feascript.com
88
CC BY 4.0 License © 2023–2026 FEAScript
99
════════════════════════════════════════════════════════════════
1010
-->

tutorials/heat-conduction-1d-wall.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
════════════════════════════════════════════════════════════════
55
FEAScript Website
66
Lightweight Finite Element Simulation in JavaScript
7-
Version: 0.2.0 (RC) | https://feascript.com
7+
Version: 0.2.0 | https://feascript.com
88
CC BY 4.0 License © 2023–2026 FEAScript
99
════════════════════════════════════════════════════════════════
1010
-->

tutorials/heat-conduction-2d-fin-gmsh.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
════════════════════════════════════════════════════════════════
55
FEAScript Website
66
Lightweight Finite Element Simulation in JavaScript
7-
Version: 0.2.0 (RC) | https://feascript.com
7+
Version: 0.2.0 | https://feascript.com
88
CC BY 4.0 License © 2023–2026 FEAScript
99
════════════════════════════════════════════════════════════════
1010
-->

tutorials/heat-conduction-2d-fin-performance-test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
════════════════════════════════════════════════════════════════
55
FEAScript Website
66
Lightweight Finite Element Simulation in JavaScript
7-
Version: 0.2.0 (RC) | https://feascript.com
7+
Version: 0.2.0 | https://feascript.com
88
CC BY 4.0 License © 2023–2026 FEAScript
99
════════════════════════════════════════════════════════════════
1010
-->

tutorials/heat-conduction-2d-fin-webgpu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
════════════════════════════════════════════════════════════════
55
FEAScript Website
66
Lightweight Finite Element Simulation in JavaScript
7-
Version: 0.2.0 (RC) | https://feascript.com
7+
Version: 0.2.0 | https://feascript.com
88
CC BY 4.0 License © 2023–2026 FEAScript
99
════════════════════════════════════════════════════════════════
1010
-->

tutorials/heat-conduction-2d-fin-worker.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
════════════════════════════════════════════════════════════════
55
FEAScript Website
66
Lightweight Finite Element Simulation in JavaScript
7-
Version: 0.2.0 (RC) | https://feascript.com
7+
Version: 0.2.0 | https://feascript.com
88
CC BY 4.0 License © 2023–2026 FEAScript
99
════════════════════════════════════════════════════════════════
1010
-->

tutorials/heat-conduction-2d-fin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
════════════════════════════════════════════════════════════════
55
FEAScript Website
66
Lightweight Finite Element Simulation in JavaScript
7-
Version: 0.2.0 (RC) | https://feascript.com
7+
Version: 0.2.0 | https://feascript.com
88
CC BY 4.0 License © 2023–2026 FEAScript
99
════════════════════════════════════════════════════════════════
1010
-->

tutorials/heat-conduction-2d-rhom-fin-gmsh.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
════════════════════════════════════════════════════════════════
55
FEAScript Website
66
Lightweight Finite Element Simulation in JavaScript
7-
Version: 0.2.0 (RC) | https://feascript.com
7+
Version: 0.2.0 | https://feascript.com
88
CC BY 4.0 License © 2023–2026 FEAScript
99
════════════════════════════════════════════════════════════════
1010
-->

0 commit comments

Comments
 (0)