journal article·2025-11-14Open access

Evaluating the Performance of Large Language Models for Geometry and Simulation File Generation in Physics-Based Simulations

Ossama Shafiq, Amin Rahmat, Alessio Alexiadis, Bahman Ghiassi

Applied Sciences· Volume 15· Issue 22

Abstract

Finite-element simulations and computer-aided design workflows require complex preprocessing, with geometry creation and simulation setup traditionally demanding significant manual expertise. The question emerges: can machine learning, namely large language models, help automate these processes? This study evaluates how well nine large language models can automate finite-element simulations starting from natural language prompts, generating both the geometry files for meshing (using Gmsh, an open-source geometry and mesh generator) and the input files needed for the solver (using Elmer, an open-source multiphysics simulation tool). Two standard test cases, a simple bar and a wheel and axle assembly, are used to evaluate and compare their performance. A set of criteria and a scoring system is introduced to assess performance across geometry and simulation setup, covering aspects such as file completeness, Boolean operations, shape fidelity, and displacement error. Results show that most LLMs excel at generating solver input files, achieving 78–88% success rate with <1% displacement error when executed. Geometry generation proves more challenging, with 70% success for simple shapes but only 56% for assemblies. Critically, no model successfully implemented Boolean operations required for merging components; GPT-4o uniquely attempted these operations but failed due to volume reuse errors. This 0% success rate for Boolean operations represents the primary bottleneck for assembly automation. Notable findings include extreme performance variability in the smallest model (PHI-3 Mini, varying 0–97% between similar tasks) and complete elimination of unit errors when explicitly prompted for SI units. The results reveal a clear capability gap: while LLMs reliably generate physics solver inputs, they cannot produce ready-to-mesh assemblies, requiring manual intervention for Boolean operations. While the study focuses on a Gmsh–Elmer pipeline, the results likely generalise to other simulation software.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: 3D Shape Modeling and Analysis · Model Reduction and Neural Networks · Advanced Multi-Objective Optimization Algorithms

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Engineering, University of Birmingham, Edgbaston, Birmingham B15 2TT, UK

School of Chemical Engineering, University of Birmingham, Edgbaston, Birmingham B15 2TT, UK

References (30)

Show source-provided references
1. From text to tech: Shaping the future of physics-based simulations with AI-driven generative models10.1016/j.rineng.2023.101721 ↗
2. Chen, M., Tworek, J., Jun, H., Yuan, Q., de Oliveira Pinto, H.P., Kaplan, J., Edwards, H., Burda, Y., Joseph, N., and Brockman, G. (2021). Evaluating Large Language Models Trained on Code. arXiv.
3. Marcus, G. (2020). The Next Decade in AI: Four Steps Towards Robust Artificial Intelligence. arXiv.
4. Bubeck, S., Chandrasekaran, V., Eldan, R., Gehrke, J., Horvitz, E., Kamar, E., Lee, P., Lee, Y.T., Li, Y., and Lundberg, S. (2023). Sparks of Artificial General Intelligence: Early experiments with GPT-4. arXiv.
5. Yamada, Y., Bao, Y., Lampinen, A.K., Kasai, J., and Yildirim, I. (2023). Evaluating Spatial Understanding of Large Language Models. arXiv.
6. Xie, K., Zhang, L., Li, X., Gu, P., and Chen, Z. (2022). SES-X: A MBSE Methodology Based on SES/MB and X Language. Information, 14.10.3390/info14010023 ↗
7. Abdin, M., Aneja, J., Awadalla, H., Awadallah, A., Awan, A.A., Bach, N., Bahree, A., Bakhtiari, A., Bao, J., and Behl, H. (2024). Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone. arXiv.
8. (1987). General Tolerances for Linear and Angular Dimensions (Standard No. ISO 2768-1:1989).
9. Budynas, R., and Nisbett, K. (2014). Shigley’s Mechanical Engineering Design in SI Units, McGraw-Hill. [10th ed.].
10. Verduzco, J.C., Holbrook, E., and Strachan, A. (2023). GPT-4 as an interface between researchers and computational software: Improving usability and reproducibility. arXiv.
11. Kumar, V., Gleyzer, L., Kahana, A., Shukla, K., and Karniadakis, G.E. (2023). MyCrunchGPT: A ChatGPT assisted framework for scientific machine learning. arXiv.10.1615/JMachLearnModelComput.2023049518 ↗
12. Li, W., Zhang, X., Guo, Z., Mao, S., Luo, W., Peng, G., Huang, Y., Wang, H., and Li, S. (2025). FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementation. arXiv.10.18653/v1/2025.acl-long.839 ↗
13. Du, Y., Chen, S., Zan, W., Li, P., Wang, M., Song, D., Li, B., Hu, Y., and Wang, B. (2024). BlenderLLM: Training Large Language Models for Computer-Aided Design with Self-improvement. arXiv.
14. Gmsh: A 3-D finite element mesh generator with built-in pre- and post-processing facilities10.1002/nme.2579 ↗
15. CSC—IT Center for Science (2025, May 29). Elmer FEM Solver. [Online]. Available online: https://www.csc.fi/web/elmer.
16. Reynolds, L. (2025, June 14). LangChain: Open-Source Library for Building LLM Applications. Available online: https://github.com/langchain-ai/langchain.
17. Jiang, A.Q., Sablayrolles, A., Roux, A., Mensch, A., Savary, B., Bamford, C., Chaplot, D.S., de las Casas, D., Hanna, E.B., and Bressand, F. (2024). Mixtral of Experts. arXiv.
18. Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., and Bhosale, S. (2023). Llama 2: Open Foundation and Fine-Tuned Chat Models. arXiv.
19. Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., and Vaughan, A. (2024). The Llama 3 Herd of Models. arXiv.
20. Peng, A., Wu, M., Allard, J., Kilpatrick, L., and Heidel, S. (2025, June 14). GPT-3.5 Turbo Fine-Tuning and API Updates. Open AI 2023. Available online: https://openai.com/index/gpt-3-5-turbo-fine-tuning-and-api-updates/.
21. OpenAI, Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F.L., Almeida, D., Altenschmidt, J., and Altman, S. (2023). GPT-4 Technical Report. arXiv.
22. Open AI, Hurst, A., Lerer, A., Goucher, A.P., Perelman, A., Ramesh, A., Clark, A., Ostrow, A.J., Welihinda, A., and Hayes, A. (2024). GPT-4o System Card. arXiv.
23. Formlabs Blog (2025, June 14). Understanding Accuracy, Precision & Tolerance in 3D Printing. Available online: https://formlabs.com/global/3d-printers/?srsltid=AfmBOoqj5eOY38gafH7hZcmuIaYwrnFsMPytmpGMlqTlMpgKCB18xAy7.
24. A survey on 3D CAD model quality assurance and testing tools10.1016/j.cad.2016.10.003 ↗
25. Mantyla, M. (1988). An Introduction to Solid Modeling, Computer Science Press.
26. (2019). Digital Product Definition Data Practices (Standard No. Y14.41).
27. (2019). Standard for Verification and Validation in Computational Solid Mechanics (Standard No. V&V 10-2019).
28. Cook, R.D. (2001). Concepts and Applications of Finite Element Analysis, John Wiley & Sons.
29. Zienkiewicz, O., and Taylor, R. (2013). The Finite Element Method for Solid and Structural Mechanics, Butterworth-Heinemann.
30. Roache, P. (1998). Verification and Validation in Computational Science and Engineering, Hermosa Publishers.