AutoSAM自动解析工程文档生成反应堆模拟输入文件,提升建模效率与透明度。
AutoSAM: an Agentic Framework for Automating Input File Generation for the SAM Code with Multi-Modal Retrieval-Augmented Generation
- 基于多模态检索增强生成的智能体框架,融合文档解析与代码语法转换
- 四类案例测试中实现100%结构化数据利用,文本提取率达88%,图像几何提取完整
- 适合核能仿真工程师快速构建可验证的反应堆模型,降低人工错误风险
在先进反应堆系统的设计与安全分析中,构建系统级热工水力代码(如系统分析模块 SAM)的输入文件仍是一项繁重任务。分析师需从异构工程文档中提取并协调设计数据,并手动转化为求解器特定语法。本文提出 AutoSAM,一个自动化生成 SAM 输入文件的智能体框架。该框架结合大语言模型代理、对求解器用户手册与理论手册的检索增强生成,以及针对 PDF、图像、电子表格和文本文件的专用分析工具。AutoSAM 接入非结构化工程文档(包括系统图、设计报告和数据表),将仿真相关参数提取为可人工审查的中间表示,并合成经验证的、求解器兼容的输入文件。其多模态检索管道整合科学文本提取、基于视觉的图表解析、语义嵌入与问答能力。我们在四个复杂度递增的案例中评估:单管稳态模型、具有温度反馈的固态燃料通道、先进燃烧测试反应堆堆芯,以及熔盐反应堆实验主回路。所有案例中,该智能体生成的模型均符合预期热工水力行为,且明确标识缺失数据、标注假设值。框架实现结构化输入 100% 利用率,PDF 文本提取约 88%,视觉几何提取 100% 完整。结果表明,这为基于提示的反应堆建模提供了可行路径:分析师提供系统描述与支持文档,智能体将其转化为透明且可执行的 SAM 模拟。
原文摘要 · Abstract (English)
In the design and safety analysis of advanced reactor systems, constructing input files for system-level thermal-hydraulics codes such as the System Analysis Module (SAM) remains a labor-intensive task. Analysts must extract and reconcile design data from heterogeneous engineering documents and manually translate it into solver-specific syntax. In this paper, we present AutoSAM, an agentic framework that automates SAM input file generation. The framework combines a large language model agent with retrieval-augmented generation over the solver's user guide and theory manual, together with specialized tools for analyzing PDFs, images, spreadsheets, and text files. AutoSAM ingests unstructured engineering documents, including system diagrams, design reports, and data tables, extracts simulation-relevant parameters into a human-auditable intermediate representation, and synthesizes validated, solver-compatible input decks. Its multimodal retrieval pipeline integrates scientific text extraction, vision-based figure interpretation, semantic embedding, and query answering. We evaluate AutoSAM on four case studies of increasing complexity: a single-pipe steady-state model, a solid-fuel channel with temperature reactivity feedback, the Advanced Burner Test Reactor core, and the Molten Salt Reactor Experiment primary loop. Across all cases, the agent produces runnable SAM models consistent with expected thermal-hydraulic behavior while explicitly identifying missing data and labeling assumed values. The framework achieves 100% utilization of structured inputs, about 88% extraction from PDF text, and 100% completeness in vision-based geometric extraction. These results demonstrate a practical path toward prompt-driven reactor modeling, in which analysts provide system descriptions and supporting documentation while the agent translates them into transparent, and executable, SAM simulations.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。