Skip to content

Commit 65da816

Browse files
committed
Add VTK-style plotting functionality. Rename flowBoundaryConditionsScript
1 parent e7c02d7 commit 65da816

50 files changed

Lines changed: 992 additions & 846 deletions

Some content is hidden

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

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
# FEAScript-core
44

5-
[![GitHub release](https://img.shields.io/github/v/release/FEAScript/FEAScript-core?logo=github)](https://github.com/FEAScript/FEAScript-core/releases)
65
[![npm version](https://img.shields.io/npm/v/feascript)](https://www.npmjs.com/package/feascript)
7-
[![Last Commit](https://img.shields.io/github/last-commit/FEAScript/FEAScript-core?logo=github)](https://github.com/FEAScript/FEAScript-core/commits/main)
8-
[![License](https://img.shields.io/github/license/FEAScript/FEAScript-core?logo=github)](https://github.com/FEAScript/FEAScript-core/blob/main/LICENSE)
96

107
[FEAScript](https://feascript.com/) is a lightweight finite element simulation library written in JavaScript. It empowers users to perform simulations for physics and engineering applications in both browser-based and server-side environments. This is the core library of the FEAScript project.
118

@@ -19,7 +16,7 @@
1916
- <b>Meshing:</b> simple 1D/2D mesh generation, unstructured mesh import from Gmsh (`.msh`)
2017
- <b>Solvers:</b> frontal, Jacobi (CPU/WebGPU) and LU, Newton–Raphson for nonlinear systems
2118
- <b>Performance:</b> web worker support for multi-threaded computation
22-
- <b>Visualization:</b> interactive plots with Plotly
19+
- <b>Visualization:</b> interactive rendering with vtk.js and Plotly
2320

2421
<!-- ## Contents
2522
@@ -84,7 +81,7 @@ FEAScript works well in interactive JavaScript playgrounds where you can write c
8481
Install FEAScript and its peer dependencies from npm as follows:
8582

8683
```bash
87-
npm install feascript mathjs plotly.js
84+
npm install feascript mathjs @kitware/vtk.js
8885
```
8986

9087
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.

examples/creepingFlowScript/lidDrivenCavity2DCreepingFlow/lidDrivenCavity2DCreepingFlow.js

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

0 commit comments

Comments
 (0)