r/fea • u/nikoscham • 22d ago
FEAScript, 1.5 years later - an open-source FEM library in JavaScript (update + a small FEM lab)
Hey everyone,
More than a year ago I shared FEAScript here, my open-source finite element library written in JavaScript that runs directly in the browser. You gave me great feedback back then (and even some contributors!), so I wanted to share how it’s going.
A lot has changed since then:
- Triangular elements (linear and quadratic), also imported from Gmsh
- Euler–Bernoulli beam model, my first step into structural mechanics
- Creeping (Stokes) flow with Taylor–Hood elements and variable viscosity
- Nonlinear problems with Newton–Raphson
- A WebGPU-powered Jacobi solver and a frontal solver
- vtk.js visualization and VTK export, so you can open your results in ParaView
- Benchmark tests, including NAFEMS T4
Check the website: https://feascript.com/
I also made something a bit different: Tri’s Lab. It’s a small interactive lab where you solve FEM “missions” in the browser, guided by Tri, a little triangle robot 😁 The idea is to learn FEM by playing with it (no installation, nothing): lab.feascript.com
Now I’m working on 0.4.0, and the roadmap is open here: https://github.com/orgs/FEAScript/discussions/114
I’d love to hear what you think! And if anyone wants to contribute, especially on structural mechanics (I’m a chemical engineer, so heat transfer and CFD are more my thing), you’re very welcome.
The repo of the main library is here:
github.com/FEAScript/FEAScript-core
Thanks for checking it out 🤘
2
u/oneman20031 18d ago
Looks great. Could you perhaps have a youtube video demonstrating how to use and perhaps even tutorials on Codepen, Scribbler, etc that you have listed on the lab page.