Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9161044
fix: removed dist and converted plotly into vtk js
sridhar-mani Mar 9, 2026
2335be6
fix: converted into vtk js
sridhar-mani Mar 9, 2026
b4cd9f5
live delete
sridhar-mani Mar 9, 2026
b30a882
Add `prepare` and `pretest` lifecycle scripts to auto-build `dist/` (…
Copilot Mar 9, 2026
46991c2
[WIP] WIP Address feedback on converting Plotly to VTK.js (#66)
Copilot Mar 9, 2026
d4447b2
Update src/visualization/vtkSolutionScript.js
sridhar-mani Mar 9, 2026
89643f2
Update src/index.js
sridhar-mani Mar 9, 2026
f8927a9
[WIP] Update to address feedback on Plotly to VTK.js conversion (#67)
Copilot Mar 9, 2026
9d191aa
fix: externatlise vtk js
sridhar-mani Mar 9, 2026
b052997
Revert "fix: externatlise vtk js"
sridhar-mani Mar 9, 2026
6d5f966
fix: externalied vtk js
sridhar-mani Mar 9, 2026
bf1e0b5
fix: sepecific move
sridhar-mani Mar 9, 2026
434ef04
fix: vtk issues
sridhar-mani Mar 9, 2026
c509948
feat: implemented both vtk js and plotly.
sridhar-mani Mar 11, 2026
4673a26
Add error handling for missing plotly.js optional peer dependency (#70)
Copilot Mar 11, 2026
ac8fde6
Add HTML examples for various simulations (#71)
nikoscham Mar 12, 2026
aad3620
fix: included vtk js example
sridhar-mani Mar 13, 2026
aa7dc0f
- Implemented functions for plotting solutions using VTK and Plotly.
nikoscham Mar 16, 2026
d0245f7
minor-feat: example html
sridhar-mani Mar 17, 2026
7a5e44c
Update vtk.js plotting function
nikoscham Mar 17, 2026
8342666
Merge branch 'vtkjs' of https://github.com/FEAScript/FEAScript-core i…
nikoscham Mar 17, 2026
403bc2c
Merge branch 'main' into vtkjs
nikoscham Mar 17, 2026
2bd2f5c
fix: improve dependency installation fallback in CI workflow
nikoscham Mar 17, 2026
177b82c
refactor: remove HTML example files and update README for clarity
nikoscham Mar 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/scripts-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
cache: npm

- name: Install dependencies
run: npm ci
run: |
npm ci || npm install --no-audit --no-fund

- name: Run FEAScript examples
run: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- <b>Meshing:</b> simple 1D/2D mesh generation, unstructured mesh import from Gmsh (`.msh`)
- <b>Solvers:</b> frontal, Jacobi (CPU/WebGPU) and LU, Newton–Raphson for nonlinear systems
- <b>Performance:</b> web worker support for multi-threaded computation
- <b>Visualization:</b> interactive plots with Plotly
- <b>Visualization:</b> interactive scientific rendering with vtk.js

<!-- ## Contents

Expand Down Expand Up @@ -84,7 +84,7 @@ FEAScript works well in interactive JavaScript playgrounds where you can write c
Install FEAScript and its peer dependencies from npm as follows:

```bash
npm install feascript mathjs plotly.js
npm install feascript mathjs @kitware/vtk.js
```
Comment on lines 86 to 88
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

README now instructs users to install only @kitware/vtk.js, but the codebase still supports a Plotly backend (renderOptions.backend === "plotly") and plotly.js remains an (optional) peer dependency. Consider either documenting Plotly as an optional install (and how to select the backend) or removing Plotly support/dependencies to match the migration messaging.

Copilot uses AI. Check for mistakes.

Then, import it in your JavaScript file:
Expand Down
4 changes: 2 additions & 2 deletions dist/feascript.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/feascript.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/feascript.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/feascript.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/feascript.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/feascript.umd.js.map

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions examples/creepingFlowScript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ This directory contains Node.js examples demonstrating how to use the FEAScript

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.

## HTML Examples

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.

## Running the Node.js Examples

#### 1. Create package.json with ES module support:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ════════════════════════════════════════════════════════════════
* FEAScript Core Library
* Lightweight Finite Element Simulation in JavaScript
* Version: 0.2.0 | https://feascript.com
* Version: 0.3.0 (RC) | https://feascript.com
* MIT License © 2023–2026 FEAScript
* ════════════════════════════════════════════════════════════════
*/
Expand Down
4 changes: 0 additions & 4 deletions examples/frontPropagationScript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ This directory contains Node.js examples demonstrating how to use the FEAScript

This example demonstrates solving an eikonal equation in a 2D domain to track the movement of a solidification interface. For detailed information on the model setup, refer to the corresponding [tutorial](https://feascript.com/tutorials/solidification-front-2d.html) in the FEAScript website.

## HTML Examples

Each example also includes an HTML variant (e.g., `solidificationFront2D.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.

## Running the Node.js Examples

#### 1. Create package.json with ES module support:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ════════════════════════════════════════════════════════════════
* FEAScript Core Library
* Lightweight Finite Element Simulation in JavaScript
* Version: 0.2.0 | https://feascript.com
* Version: 0.3.0 (RC) | https://feascript.com
* MIT License © 2023–2026 FEAScript
* ════════════════════════════════════════════════════════════════
*/
Expand Down
4 changes: 0 additions & 4 deletions examples/generalFormPDEScript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ This directory contains Node.js examples demonstrating how to use the FEAScript

This example demonstrates solving a one-dimensional advection-diffusion problem with a Gaussian source term. The problem models the transport of a substance under the effects of both diffusion and advection. For detailed information on the model setup, refer to the corresponding [tutorial](https://feascript.com/tutorials/advection-diffusion-1d.html) in the FEAScript website.

## HTML Examples

Each example also includes an HTML variant (e.g., `advectionDiffusion1D.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.

## Running the Node.js Examples

#### 1. Create package.json with ES module support:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ════════════════════════════════════════════════════════════════
* FEAScript Core Library
* Lightweight Finite Element Simulation in JavaScript
* Version: 0.2.0 | https://feascript.com
* Version: 0.3.0 (RC) | https://feascript.com
* MIT License © 2023–2026 FEAScript
* ════════════════════════════════════════════════════════════════
*/
Expand Down
4 changes: 0 additions & 4 deletions examples/heatConductionScript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ Implementation using a Gmsh-generated mesh for a rhomboid domain (the mesh file,

For detailed information on the model setup, refer to the corresponding [tutorial](https://feascript.com/tutorials/heat-conduction-2d-rhom-fin-gmsh.html) in the FEAScript website.

## HTML Examples

Each example also includes an HTML variant (e.g., `heatConduction1DWall.html`, `heatConduction2DFin.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.

## Running the Node.js Examples

#### 1. Create package.json with ES module support:
Expand Down
Loading
Loading