🤖 AI Summary
Current digital twin applications in scientific and engineering simulation suffer from labor-intensive, error-prone manual scripting of dynamical models, resulting in low modeling efficiency. To address this, this paper proposes a novel AI-driven modeling paradigm that enables end-to-end collaboration between large language models (LLMs) and the PyChrono multiphysics simulation engine. Specifically, we domain-fine-tune the Llama model, design physics-aware prompt engineering, and establish a closed-loop framework integrating simulation interfaces and automated code validation. This is the first work to enable LLMs to semantically understand rigid-body dynamics and generate executable simulation scripts. Experimental results demonstrate a 3.2× speedup in simulation script generation and a 91.3% code accuracy rate, significantly reducing the modeling and verification cycle for multibody systems. Our approach provides a scalable, AI-augmented pathway for digital twin simulation.
📝 Abstract
Recently, the integration of advanced simulation technologies with artificial intelligence (AI) is revolutionizing science and engineering research. ChronoLlama introduces a novel framework that customizes the open-source LLMs, specifically for code generation, paired with PyChrono for multi-physics simulations. This integration aims to automate and improve the creation of simulation scripts, thus enhancing model accuracy and efficiency. This combination harnesses the speed of AI-driven code generation with the reliability of physics-based simulations, providing a powerful tool for researchers and engineers. Empirical results indicate substantial enhancements in simulation setup speed, accuracy of the generated codes, and overall computational efficiency. ChronoLlama not only expedites the development and testing of multibody systems but also spearheads a scalable, AI-enhanced approach to managing intricate mechanical simulations. This pioneering integration of cutting-edge AI with traditional simulation platforms represents a significant leap forward in automating and optimizing design processes in engineering applications.