基于多智能体协同与物理约束分层规则检索的CFD仿真智能体

A CFD Simulation Agent Based on Multi-Agent Collaboration and Physics-Constrained Hierarchical Rule Retrieval

  • 摘要: 针对计算流体力学(CFD)仿真中网格生成与求解参数配置高度依赖专家经验,且求解发散后缺少自动诊断与修复手段的问题,提出一种基于多智能体协同与物理约束分层规则检索、具有多求解器扩展能力的CFD仿真智能体框架,实现CFD全流程自动化。该框架由规划、网格生成、前处理、求解与后处理五类智能体协同构成,核心机制包括:将参数知识按约束强度分为硬约束、软推荐与经验启发三层,通过约束传播图实现级联规则的广度优先激活,确保数值稳定性等关键约束得到确定性执行,其余参数由大语言模型综合生成;集成多构型网格自动生成程序,实现从几何与来流条件到求解结果的端到端仿真;设计统一求解器接口并嵌入上下文感知的智能诊断与修复闭环。RAE2822与NACA0012翼型共60组工况试验表明,参数配置准确率达91.3%,网格一次生成成功率达98.3%,一次求解成功率由基线76.7%提升至88.3%,平均收敛步数较扁平检索基线降低约40%;20个注入故障样本中,75.0%在3轮内自动修复。ONERA M6三维跨声速算例进一步验证了框架的收敛性与精度,表面压力分布与AGARD试验数据吻合良好。结果表明,该框架打通了从几何输入到仿真输出的全流程自动化链路,显著降低了专家经验依赖,提升了参数配置准确性与求解鲁棒性。

     

    Abstract: To address the heavy reliance on expert experience in mesh generation and solver parameter configuration for computational fluid dynamics (CFD) simulations, as well as the lack of automatic diagnosis and repair mechanisms after solver divergence, this study proposed a CFD simulation agent framework with multi-solver extensibility, based on multi-agent collaboration and physics-constrained hierarchical rule retrieval, to automate the entire CFD workflow. The framework consisted of five collaborating agent types: planning, mesh generation, preprocessing, solving, and post-processing. Its core mechanisms included organizing parameter knowledge into three layers according to constraint strength—hard constraints, soft recommendations, and empirical heuristics—and activating cascaded rules in breadth-first order through a constraint propagation graph, thereby ensuring deterministic enforcement of critical constraints such as numerical stability while allowing a large language model to synthesize the remaining parameters; integrating automatic mesh generation programs for multiple configurations to enable end-to-end simulation from geometry and freestream conditions to solution results; and designing a unified solver interface with an embedded context-aware intelligent diagnosis and repair loop. Tests were conducted on a total of 60 operating conditions for the RAE2822 and NACA0012 airfoils. The results show that the parameter configuration accuracy reaches 91.3%, the one-shot mesh generation success rate reaches 98.3%, the first-run solution success rate increases from the baseline of 76.7% to 88.3%, and the average number of iterations to convergence decreases by approximately 40% relative to the flat-retrieval baseline; 75.0% of 20 injected fault samples are automatically repaired within three rounds. A three-dimensional transonic ONERA M6 case further validates the convergence and accuracy of the framework, with surface pressure distributions agreeing well with the AGARD experimental data. The results demonstrate that the framework establishes a fully automated workflow from geometry input to simulation output, substantially reduces reliance on expert experience, and improves parameter configuration accuracy and solver robustness.

     

/

返回文章
返回