Welcome to these Numerical Tours of Computational Mechanics with FEniCS.

What is it about ?

These numerical tours will introduce you to a wide variety of topics in computational continuum and structural mechanics using the finite element software FEniCS. Many covered topics can be considered as standard and will help the reader in getting started with FEniCS using solid mechanics examples.

Other topics will also be more exploratory and will reflect currently investigated research topics, illustrating the versatility of FEniCS.

The full set of demos can be obtained from the COmputational MEchanics Toolbox (COMET) available at

A new set of demos illustrating how to couple FEniCS with the MFront code generator have been added. They are based on the mgis.fenics module of the MFrontGenericInterfaceSupport (MGIS) project. A general introduction of the package is available here and the demos source files can be found here. This project has been realized in collaboration with Thomas Helfer (CEA,

Citing and license

If you find these demos useful for your research work, please consider citing them using the following Zenodo DOI :


title={Numerical Tours of Computational Mechanics with {FE}ni{CS}},
howpublished = {},
author={Jeremy Bleyer},

All this work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License license.

The MGIS project can be cited through the following paper


 doi = {10.21105/joss.02003},
 url = {},
 year = {2020},
 publisher = {The Open Journal},
 volume = {5},
 number = {48},
 pages = {2003},
 author = {Thomas Helfer and Jeremy Bleyer and Tero Frondelius and
           Ivan Yashchuk and Thomas Nagel and Dmitri Naumov},
 title = {The `MFrontGenericInterfaceSupport` project},
 journal = {Journal of Open Source Software}

How do I get started ?

You can find instructions on how to install FEniCS on the FEniCS project website In the following numerical tours, we will use the Python interface for the different FEniCS scripts. These demos are compatible with FEniCS 2018.1.0 but many should work with older versions after minor changes.

FEniCS is also distributed along with an important number of documented or undocumented examples, some of them will be revisited in these tours but do not hesitate over looking at other interesting examples.

In the following, we will assume that readers possess basic knowledge of FEniCS commands. In particular, we advise you to go first through the documentation and tutorials if this is not the case.

About the author

Jeremy Bleyer is a researcher in Solid and Structural Mechanics at Laboratoire Navier, a joint research unit of Ecole Nationale des Ponts et Chaussées, IFSTTAR and CNRS (UMR 8205).


_images/logo_Navier.png _images/logo_tutelles.png