Skip to content

Commit 0ef43b4

Browse files
authored
Feature/vtkjs (#73)
1 parent e7c02d7 commit 0ef43b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+4697
-1162
lines changed

NOTICE.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
11
FEAScript makes use of the following third-party software:
22

3-
1. **math.js**
3+
1. **Comlink**
4+
- License: Apache 2.0 (https://github.com/GoogleChromeLabs/comlink/blob/main/LICENSE)
5+
- Source: https://github.com/GoogleChromeLabs/comlink
6+
7+
2. **d3-scale**
8+
- License: ISC (https://github.com/d3/d3-scale/blob/main/LICENSE)
9+
- Source: https://github.com/d3/d3-scale
10+
11+
3. **gl-matrix**
12+
- License: MIT (https://github.com/toji/gl-matrix/blob/master/LICENSE.md)
13+
- Source: https://github.com/toji/gl-matrix
14+
15+
4. **math.js**
416
- License: Apache 2.0 (https://github.com/josdejong/mathjs/blob/develop/LICENSE)
517
- Source: https://github.com/josdejong/mathjs
618

7-
2. **plotly.js**
19+
5. **plotly.js**
820
- License: MIT (https://github.com/plotly/plotly.js/blob/master/LICENSE)
921
- Source: https://github.com/plotly/plotly.js/tree/master
1022

11-
3. **Comlink**
12-
- License: Apache 2.0 (https://github.com/GoogleChromeLabs/comlink/blob/main/LICENSE)
13-
- Source: https://github.com/GoogleChromeLabs/comlink
14-
15-
4. **taichi.js**
23+
6. **taichi.js**
1624
- License: MIT (https://github.com/AmesingFlank/taichi.js/blob/main/LICENSE)
17-
- Source: https://github.com/AmesingFlank/taichi.js
25+
- Source: https://github.com/AmesingFlank/taichi.js
26+
27+
7. **vtk.js**
28+
- License: BSD 3-Clause (https://github.com/Kitware/vtk-js/blob/master/LICENSE)
29+
- Source: https://github.com/Kitware/vtk-js

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
- <b>Meshing:</b> simple 1D/2D mesh generation, unstructured mesh import from Gmsh (`.msh`)
2020
- <b>Solvers:</b> frontal, Jacobi (CPU/WebGPU) and LU, Newton–Raphson for nonlinear systems
2121
- <b>Performance:</b> web worker support for multi-threaded computation
22-
- <b>Visualization:</b> interactive plots with Plotly
22+
- <b>Visualization:</b> interactive rendering with vtk.js and Plotly
2323

2424
<!-- ## Contents
2525
@@ -84,7 +84,7 @@ FEAScript works well in interactive JavaScript playgrounds where you can write c
8484
Install FEAScript and its peer dependencies from npm as follows:
8585

8686
```bash
87-
npm install feascript mathjs plotly.js
87+
npm install feascript mathjs
8888
```
8989

9090
Then, import it in your JavaScript file:

dist/feascript.cjs.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/feascript.cjs.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/feascript.esm.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/feascript.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/feascript.umd.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/feascript.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/creepingFlowScript/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ This directory contains Node.js examples demonstrating how to use the FEAScript
1111

1212
This example solves a 2D lid-driven cavity flow using the creeping flow solver with Taylor-Hood (Q2-Q1) elements. For detailed information on the model setup, refer to the corresponding [tutorial](https://feascript.com/tutorials/lid-driven-cavity-2d-creeping-flow.html) on the FEAScript website.
1313

14-
## HTML Examples
15-
16-
Each example also includes an HTML variant (e.g., `lidDrivenCavity2DCreepingFlow.html`) that runs the same simulation in the browser with built-in visualization using Plotly.js. Simply open the HTML file in a web browser to run.
17-
1814
## Running the Node.js Examples
1915

2016
#### 1. Create package.json with ES module support:

examples/creepingFlowScript/lidDrivenCavity2DCreepingFlow/lidDrivenCavity2DCreepingFlow.html

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)