Title: Automating modeling in mechanics: LLMs as designers of physics-constrained neural networks for constitutive modeling of materials
Primary area: applications to physical sciences (physics, chemistry, biology, etc.)
Keywords: Large Language Models (LLMs), Physics-constrained neural networks, Constitutive Artificial Neural Networks (CANNs), Automated model generation, Data-driven solid mechanics

Abstract: Large Language Model (LLM)-based agentic frameworks increasingly adopt the paradigm of dynamically generating task-specific agents. We suggest that not only agents but also specialized software modules for scientific and engineering tasks can be generated on demand. We demonstrate this concept in the field of solid mechanics. There, so-called constitutive models are required to describe the relationship between mechanical stress and body deformation. Constitutive models are essential for both the scientific understanding and industrial application of materials. However, even recent data-driven methods of constitutive modeling, such as Constitutive Artificial Neural Networks (CANNs), still require substantial expert knowledge and human labor. We present a framework in which an LLM generates a CANN on demand, tailored to a given material class and dataset provided by the user. The framework covers LLM-based architecture selection, integration of physical constraints, and complete code generation. Evaluation on three benchmark problems demonstrates that LLM-generated CANNs achieve accuracy comparable to or greater than manually engineered counterparts, while also exhibiting reliable generalization to unseen loading scenarios and extrapolation to large deformations. These findings indicate that LLM-based generation of physics-constrained neural networks can substantially reduce the expertise required for constitutive modeling and represent a step toward practical end-to-end automation.

TL;DR: We show that LLMs can automatically generate physics-constrained neural networks, reducing the expertise needed for constitutive modeling in solid mechanics.