Robust implementation of elastoplastic constitutive models using automatic differentiation in PyTorch
Year: 2026
Type: article
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.
Source: Acta Polytechnica
Institution: Czech Technical University in Prague
Language: English
Topic: Soil, Finite Element Methods
Subfield: Mechanics of Materials
Field: Engineering
Domain: Physical Sciences
Open Access status: diamond
OpenAlex ID: W7124431268
FWCI:
Cites:
Cited by:
Related to:
