Tutorials

Learn by running.

These tutorials provide a step-by-step introduction to FEAScript. They show how to integrate finite element simulations into your own websites and applications, or how to run them in interactive JavaScript playgrounds such as CodePen and Scribbler. Several tutorials come in variants that solve the same physical problem in different configurations, from the basic example to more advanced setups with external meshes or multiple threads. For the equations and options behind each example, see the documentation.

New to finite elements? Start with Tri's Lab by FEAScript, where you learn the finite element method through games and block-based missions, with no code to write.

Advection-diffusion with Gaussian source results

General-form PDE

Advection-diffusion with a Gaussian source term

1D steady-state scalar transport governed by the advection-diffusion equation with a localized Gaussian source term

Cantilever beam under a tip load results

Structural mechanics

Cantilever beam under a tip load

1D Euler–Bernoulli cantilever beam bending under a concentrated tip load, with the finite element solution verified against the classical analytical solution

Creeping flow on a lid-driven 2D cavity results

Creeping flow

Creeping flow in a 2D lid-driven cavity

Stokes flow in a square 2D cavity driven by a moving lid, with velocity and pressure fields resolved

Heat conduction in a 2D fin results

Heat conduction

Heat conduction in a 2D fin

2D steady-state heat conduction in a cooling fin with mixed boundary conditions including constant temperature, symmetry, and convective cooling

Heat conduction through a wall results

Heat conduction

Heat conduction through a wall

1D steady-state heat conduction across a wall with convection boundary condition at one end and constant temperature at the other

Solidification front propagation results

Front propagation

Solidification front propagation in a 2D domain

Transient simulation of a solidification front advancing through a 2D domain using the eikonal equation

Found a problem or have feedback on the above tutorials? Tell us on GitHub or Discord.

Stay in the loop

Join the mailing list.

Receive new tutorials, project updates and news.