Skip to content

Add tutorial for 1D Beam Element Analysis using FEAScript #3

Description

@ferrari212

Motivation

As part of the work on the linear elasticity solver, I have implemented a simple 1D beam example using a cantilever beam.

The corresponding implementation is available in the following pull request:

I think this would also be a good opportunity to create a tutorial on the FEAScript website explaining how to solve a simple beam problem with FEAScript.

Proposed Tutorial

The tutorial would include:

  • A brief introduction to the Euler-Bernoulli beam equation.
  • Definition of the cantilever beam problem.
  • Solving the problem with FEAScript.
  • Visualization of the displacement results.
  • Comparison with the analytical solution.

Notes

This tutorial depends on the beam implementation being merged into FEAScript-core first. Once the implementation is accepted, I can prepare the documentation and submit a pull request for the website.

I expect this tutorial to serve as the first structural mechanics example in the documentation and as a foundation for future tutorials covering topics such as truss, frame, and linear elasticity analysis.

Activity

  1. self-assigned this
    on Aug 18, 2026
  2. added theissue type on Aug 18, 2026
  3. nikoscham commented on Aug 20, 2026

    @nikoscham
    Member

    I am working on the beam tutorial @ferrari212. Thanks a lot for your input. I will post updates soon.

  4. nikoscham commented on Aug 21, 2026

    @nikoscham
    Member

    Hi @ferrari212. Thanks again for your work!

    I have added the following basic tutorial:
    https://feascript.com/tutorials/cantilever-beam-1d.html
    which also has an analytical solution in order to verify the FEAScript results.
    Feel free to propose any updates/modifications.

    Also, if you want, you could also prepare one more tutorial corresponding to your example https://github.com/FEAScript/FEAScript-core/blob/main/examples/eulerBernoulliBeamScript/clampedSpringSupportedBeam1D/clampedSpringSupportedBeam1D.js

  5. nikoscham commented on Aug 21, 2026

    @nikoscham
    Member

    What is also required is to update plotSolution so it can plot eulerBernoulliBeamScript results directly. Now plotSolution assumes one scalar value per node so it can't be directly used for the beam model (or in any model with multiple DoF per node). In the tutorial we have to manually extract the solution (as also in the creeping flow case: https://feascript.com/tutorials/lid-driven-cavity-2d-creeping-flow.html), so I suppose it's a bit complex for the users. A dofsPerNode option should be added to plotSolution, to simplify these kind of tutorials. We should add it to the roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions