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.