Robust implementation of elastoplastic constitutive models using automatic differentiation in PyTorch

Read full text
Authors: Tomáš Janda, Michal Šejnoha, Alena Zemanová, Tereza Žalská
Cited by: 0

Abstract

This paper explores the use of automatic differentiation (AD) for implementing complex elastoplastic constitutive models in finite element analysis. Traditional approaches require manually deriving and coding the derivatives of residual functions governing implicit stress return mapping, a process that becomes cumbersome for advanced models. We demonstrate how AD can simplify the implementation of consistent material stiffness operators and improve code maintainability by using PyTorch and its autograd functionality. A drained triaxial shear test is used to compare AD with manually coded and finite difference derivatives, highlighting the efficiency of the proposed approach. The example shows that AD simplifies code development and reduces the required source code by over 50 %. These findings support the use of AD as a practical approach for implementing and testing constitutive models, especially in the early development stages.

Fields of Study & Subjects

Soil Finite Element Methods Advanced Numerical Methods in Computational Mathematics Engineering Applied Research

Publication details

Journal / source
Acta Polytechnica
Volume
65
Issue
6
Pages
640–654
Publication date
15 January 2026
Language
EN