Elastoplastic return mapping algorithm

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!

The basic radial return mapping for a von Mises yield surface can be implemented as shown in @bleyerj’s tutorial here. Another tutorial on that site demonstrates the MFront code generator, which can be used for more general materials.