指令式AI工具在结构拓扑优化设计中的代码生成能力与可靠性研究

RESEARCH ON CODE GENERATION CAPABILITY AND RELIABILITY OF PROMPT-BASED AI TOOLS IN STRUCTURAL TOPOLOGY OPTIMIZATION DESIGN

  • 摘要: 在轻量化结构设计的智能化发展过程中,结构拓扑优化的求解与分析手段(包括代码生成、工况适配、后处理等)须引入高效的辅助工具。主流大语言模型(如DeepSeek–V3、ChatGPT–5.2、Gemini 3.0 Pro等)作为强大的AI辅助工具,结合规范化的人机交互指令流程,能够实现力学领域中拓扑优化代码的自动化生成与计算可靠性验证。本研究以结构拓扑优化设计的99行经典代码为基准,通过典型数值算例,研究主流AI工具实现代码生成的交互过程与修正方法,探讨不同AI工具的能力迁移效果、代码生成边界,并给出了利用AI工具辅助结构设计中的拓展案例。研究结果为大学生运用AI工具辅助开展学习研究提供一定的借鉴思路。

     

    Abstract: In the intelligent evolution of lightweight structural design, structural topology optimization requires the integration of highly efficient auxiliary tools to streamline its solution and analysis methods, including code generation, load case adaptation, and post-processing. As powerful AI-assisted tools, mainstream Large Language Models (LLMs)—such as DeepSeek-V3, ChatGPT-5.2, and Gemini 3.0 Pro—can achieve automated generation of topology optimization code and computational reliability verification in the field of mechanics when combined with a standardized human-computer interaction prompting workflow. Benchmarked against the classic 99-line code for structural topology optimization design, this study investigates the interactive processes and correction methods for code generation across mainstream AI tools using typical numerical examples. Furthermore, it explores the capability migration effects and code generation boundaries of different AI tools, and presents extended case studies utilizing AI tools to assist in structural design. The research findings provide valuable insights and practical approaches for university students to leverage AI tools to facilitate their learning and research.

     

/

返回文章
返回