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 through a 2D pillar array results

Creeping flow

Creeping flow through a 2D pillar array

Stokes flow in a channel with a staggered array of pillars, on an unstructured Gmsh mesh of quadratic triangles with Taylor-Hood elements

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

More variants

The same problems, set up in other ways:

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.