# Elastoplastic return mapping algorithm

**URL:** <https://fenicsproject.discourse.group/t/elastoplastic-return-mapping-algorithm/4375>\
**Category:** Uncategorized\
**Created:** [October 22, 2020, 9:48am UTC](https://fenicsproject.discourse.group/t/elastoplastic-return-mapping-algorithm/4375 "2020-10-22T09:48:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mashsquad777](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/mashsquad777/32/1894_2.png) [@mashsquad777](https://fenicsproject.discourse.group/u/mashsquad777)\
**Post date:** [October 22, 2020, 9:48am UTC](https://fenicsproject.discourse.group/t/elastoplastic-return-mapping-algorithm/4375/1 "2020-10-22T09:48:43Z")

</div>

Dear members,  
Hi! I am simulating the coupled thermo-mechanical problem in my project with my C++ FEM code. It will be interesting to know if FENICS offers some example code where elastoplastic material model is implemented with return mapping algorithm? Thank you!

---

<div class="post-metadata">

**Author:** ![kamensky](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kamensky](https://fenicsproject.discourse.group/u/kamensky)\
**Post date:** [October 22, 2020, 2:37pm UTC](https://fenicsproject.discourse.group/t/elastoplastic-return-mapping-algorithm/4375/2 "2020-10-22T14:37:59Z")

</div>

The basic radial return mapping for a von Mises yield surface can be implemented as shown in @bleyerj’s tutorial [here](https://comet-fenics.readthedocs.io/en/latest/demo/2D_plasticity/vonMises_plasticity.py.html). Another [tutorial](https://comet-fenics.readthedocs.io/en/latest/demo/plasticity_mfront/plasticity_mfront.py.html) on that site demonstrates the [_MFront_ code generator](https://thelfer.github.io/mgis/web/FEniCSBindings.html), which can be used for more general materials.
